Subversion Repositories oidplus

Rev

Rev 1131 | Rev 1143 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1131 Rev 1138
Line 452... Line 452...
452
                                $doshow = true;
452
                                $doshow = true;
453
                        }
453
                        }
454
 
454
 
455
                        $output .= '<div id="fileattachments_table" class="table-responsive">';
455
                        $output .= '<div id="fileattachments_table" class="table-responsive">';
456
                        $output .= '<table class="table table-bordered table-striped">';
456
                        $output .= '<table class="table table-bordered table-striped">';
-
 
457
                        $output .= '<thead>';
457
                        $output .= '<tr>';
458
                        $output .= '<tr>';
458
                        $output .= '<th>'._L('Filename').'</th>';
459
                        $output .= '<th>'._L('Filename').'</th>';
459
                        $output .= '<th>'._L('Size').'</th>';
460
                        $output .= '<th>'._L('Size').'</th>';
460
                        $output .= '<th>'._L('File type').'</th>';
461
                        $output .= '<th>'._L('File type').'</th>';
461
                        $output .= '<th>'._L('Download').'</th>';
462
                        $output .= '<th>'._L('Download').'</th>';
462
                        if ($can_delete) $output .= '<th>'._L('Delete').'</th>';
463
                        if ($can_delete) $output .= '<th>'._L('Delete').'</th>';
463
                        $output .= '</tr>';
464
                        $output .= '</tr>';
-
 
465
                        $output .= '</thead>';
-
 
466
                        $output .= '<tbody>';
464
                        if ($files) foreach ($files as $file) {
467
                        if ($files) foreach ($files as $file) {
465
                                if (is_dir($file)) continue;
468
                                if (is_dir($file)) continue;
466
 
469
 
467
                                $output .= '<tr>';
470
                                $output .= '<tr>';
468
                                $output .= '<td>'.htmlentities(basename($file)).'</td>';
471
                                $output .= '<td>'.htmlentities(basename($file)).'</td>';
Line 484... Line 487...
484
 
487
 
485
                                $output .= '</tr>';
488
                                $output .= '</tr>';
486
                                $doshow = true;
489
                                $doshow = true;
487
                                $found_files = true;
490
                                $found_files = true;
488
                        }
491
                        }
-
 
492
                        $output .= '</tbody>';
489
 
493
 
-
 
494
                        if (!$found_files) {
-
 
495
                                $output .= '<tfoor>';
490
                        if (!$found_files) $output .= '<tr><td colspan="'.($can_delete ? 5 : 4).'"><i>'._L('No attachments').'</i></td></tr>';
496
                                $output .= '<tr><td colspan="' . ($can_delete ? 5 : 4) . '"><i>' . _L('No attachments') . '</i></td></tr>';
-
 
497
                                $output .= '</tfoot>';
-
 
498
                        }
491
 
499
 
492
                        $output .= '</table></div>';
500
                        $output .= '</table></div>';
493
 
501
 
494
                        if ($can_upload) {
502
                        if ($can_upload) {
495
                                $output .= '<form action="javascript:void(0);" onsubmit="return OIDplusPagePublicAttachments.uploadAttachmentOnSubmit(this);" enctype="multipart/form-data" id="uploadAttachmentForm">';
503
                                $output .= '<form action="javascript:void(0);" onsubmit="return OIDplusPagePublicAttachments.uploadAttachmentOnSubmit(this);" enctype="multipart/form-data" id="uploadAttachmentForm">';