Esempio n. 1
0
         $content .= '<tbody>';
         for ($i = $from; $i <= $to; ++$i) {
             $project = $projects[$i];
             $content .= $project->ToHTMLAutoShortForTable(GetUserPrivileges());
         }
         $content .= '</tbody>';
         $content .= '</table>';
         $content .= '</div>';
         $content .= '</div>';
     } else {
         $content .= ToPageHeader(Language::Word('absense'), 'h3', 'black');
     }
     $header .= ' :' . Language::PublicMenu('projects');
 } else {
     if ($_GET['content_type'] === $content_types_short['about_us']) {
         $parts = TextPart::FetchByRole('about_us');
         $size = count($parts);
         if ($user->GetPositionNum() != NotEmployeeNum) {
             $content .= MenuButton(Language::Word('add text block'), $link_to_admin_text_part, 'btn-primary', 'add', 'get');
         }
         if ($size) {
             require $link_to_pagination_init_template;
             $content .= '<div class="row">';
             $content .= '<div class="' . ColAllTypes(12) . ' center-block">';
             $content .= '<table class="table table-striped text-center">';
             $content .= '<thead>';
             $content .= '<tr>';
             $content .= '<th class="text-center">' . Language::Word('object name') . '</th>';
             $content .= '<th class="text-center">' . Language::Word('author') . '</th>';
             $content .= '<th class="text-center">' . Language::Word('date') . '</th>';
             $content .= '<th class="text-center">' . Language::Word('role') . '</th>';