Example #1
0
         $content .= '<tbody>';
         for ($i = $from; $i <= $to; ++$i) {
             $direction = $directions[$i];
             $content .= $direction->ToHTMLAutoShortForTable(GetUserPrivileges());
         }
         $content .= '</tbody>';
         $content .= '</table>';
         $content .= '</div>';
         $content .= '</div>';
     } else {
         $content .= ToPageHeader(Language::Word('absense'), 'h3', 'black');
     }
     $header .= ' :' . Language::PublicMenu('directions');
 } else {
     if ($_GET['content_type'] == $content_types_short['projects']) {
         $projects = Project::FetchAll();
         $size = count($projects);
         if ($user->GetPositionNum() != NotEmployeeNum) {
             $content .= MenuButton(Language::Word('add project'), $link_to_admin_project, 'btn-primary', 'add', 'get');
         }
         if ($size) {
             require $link_to_pagination_init_template;
             $content .= '<div class="row">';
             $content .= '<div class="' . ColAllTypes(1) . ' center-block"></div>';
             $content .= '<div class="' . ColAllTypes(10) . ' center-block">';
             $content .= '<table class="table table-striped text-center">';
             $content .= '<thead>';
             $content .= '<tr>';
             $content .= '<th class="text-center" width="20%">' . Language::Word('direction') . '</th>';
             $content .= '<th class="text-center" width="20%">' . Language::Word('object name') . '</th>';
             $content .= '<th class="text-center">' . Language::Word('date') . '</th>';