public function html() { template_html::doctype(); ?> <html> <head> <link href='<?php echo RUDE_URL_SRC . '/css/404.css'; ?> ' rel='stylesheet' type='text/css'> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <div id="container"> <div id="box"> <div id="content"> <h1>404</h1> <p>Страница не найдена</p> </div> </div> </div> </body> </html> <?php die; }
public function html() { template_html::doctype(); ?> <html> <?php template_html::header(); ?> <body> <?php template_html::menu(); ?> <script> rude.semantic.init.menu(); rude.semantic.init.dropdown(); </script> <div id="container"> <?php template_html::sidebar(); ?> <div id="homepage"> <div id="content" class="ui segment raised square-corners"> <?php $this->main(); ?> </div> </div> </div> <?php template_html::footer(); ?> </body> </html> <?php }
public static function sidebar() { template_html::dimmer(); template_html::registration(); template_html::authorization(); template_html::access_violation(); ?> <div id="sidebar"> <div class="ui vertical menu square-corners"> <div class="item header" onclick="rude.animate('#navigation'); rude.cookie.toggle('hide_navigation')"> Навигация </div> <div id="navigation" <?php if (cookies::is_equals('hide_navigation', 1)) { ?> style="display: none;"<?php } ?> > <a class="item subcategory" href="/"> <i class="icon home"></i> Вернуться на главную </a> <?php if (!template_session::is_authorized()) { ?> <a class="item subcategory" href="#" onclick="$('#authorization').modal('show'); return false;"> <i class="icon sign in"></i> Авторизация </a> <?php } ?> <?php if (!template_session::is_authorized()) { ?> <a class="item subcategory" href="#" onclick="$('#registration').modal('show'); return false;"> <i class="icon edit"></i> Регистрация </a> <?php } ?> <?php if (template_session::is_authorized()) { ?> <a class="item subcategory" href="#" onclick="$.post('/?page=logout', function() { rude.redirect('/'); }); return false;"> <i class="icon sign out"></i> Выход </a> <?php } ?> </div> <?php if (template_session::is_authorized()) { ?> <div class="item header" onclick="rude.animate('#management'); rude.cookie.toggle('hide_management')"> Управление </div> <div id="management" <?php if (cookies::is_equals('hide_management', 1)) { ?> style="display: none;"<?php } ?> > <a class="item subcategory <?php if (get('page') == 'departments') { ?> active<?php } ?> " href="/?page=departments"> <i class="icon"></i> Кафедры </a> <a class="item subcategory <?php if (get('page') == 'faculties') { ?> active<?php } ?> " href="/?page=faculties"> <i class="icon"></i> Факультеты </a> <a class="item subcategory <?php if (get('page') == 'qualifications') { ?> active<?php } ?> " href="/?page=qualifications"> <i class="icon"></i> Квалификации </a> <a class="item subcategory <?php if (get('page') == 'specializations') { ?> active<?php } ?> " href="/?page=specializations"> <i class="icon"></i> Специализации </a> <a class="item subcategory <?php if (get('page') == 'specialties') { ?> active<?php } ?> " href="/?page=specialties"> <i class="icon"></i> Специальности </a> <a class="item subcategory <?php if (get('page') == 'users') { ?> active<?php } ?> " href="/?page=users"> <i class="icon"></i> Пользователи </a> <a class="item subcategory <?php if (get('page') == 'calendar_legend') { ?> active<?php } ?> " href="/?page=calendar_legend"> <i class="icon"></i> Условные обозначения </a> <a class="item subcategory <?php if (get('page') == 'directions') { ?> active<?php } ?> " href="/?page=directions"> <i class="icon"></i> Направления </a> <a class="item subcategory <?php if (get('page') == 'settings') { ?> active<?php } ?> " href="/?page=settings"> <i class="icon"></i> Настройки </a> <a class="item subcategory <?php if (get('page') == 'stats') { ?> active<?php } ?> " href="/?page=stats"> <i class="icon"></i> База данных </a> </div> <div class="item header" onclick="rude.animate('#reports'); rude.cookie.toggle('hide_reports')"> Учебные планы </div> <div id="reports" <?php if (cookies::is_equals('hide_reports', 1)) { ?> style="display: none;"<?php } ?> > <a class="item subcategory <?php if (get('page') == 'reports') { ?> active<?php } ?> " href="/?page=reports"> <i class="icon"></i> Все планы </a> <a class="item subcategory <?php if (get('page') == 'reports-edit') { ?> active<?php } ?> " href="/?page=reports-edit"> <i class="icon"></i> Добавить новый </a> </div> <?php } ?> </div> </div> <?php }
public function html() { template_html::doctype(); ?> <html xmlns="http://www.w3.org/1999/html"> <?php template_html::header(); ?> <body> <?php template_html::menu(); ?> <script> rude.semantic.init.menu(); rude.semantic.init.dropdown(); rude.semantic.init.checkboxes(); </script> <div id="container"> <?php template_html::sidebar(); ?> <div id="content" class="ui segment raised square-corners content-reports"> <?php $this->main(); ?> </div> </div> <?php template_html::footer(); ?> </body> </html> <?php }