function stdfoot($normalpage = true, $update = true, $adminpage = false, $torrentspage = false, $forumpage = false) { global $STYLEPATH, $tpl, $no_columns, $PRINT_DEBUG, $STYLETYPE; $tpl->set('to_top', print_top()); $tpl->set('tracker_url', print_trackerurl()); $tpl->set('site_name', print_sitename()); $tpl->set('user_name', print_username()); $tpl->set('main_footer', bottom_menu() . "<br />\n"); $tpl->set('xbtit_version', print_version()); $tpl->set('style_copyright', print_designer()); $tpl->set('xbtit_debug', $PRINT_DEBUG ? print_debug() : ""); $tpl->set('news_text', print_disclaimer()); if ($STYLETYPE == 2) { // It's a style modified for atmoner's original system // Improvement of template by atmoner if ($normalpage && !$no_columns) { $tpl->set("RIGHT_COL", true, true); $tpl->set("LEFT_COL", true, true); $tpl->set("NO_HEADER", true, true); $tpl->set("NO_FOOTER", true, true); } elseif ($adminpage) { $tpl->set("RIGHT_COL", false, true); $tpl->set("LEFT_COL", true, true); $tpl->set("NO_HEADER", true, true); $tpl->set("NO_FOOTER", true, true); } elseif ($torrentspage || $forumpage || $no_columns == 1) { $tpl->set("RIGHT_COL", false, true); $tpl->set("LEFT_COL", false, true); $tpl->set("NO_HEADER", true, true); $tpl->set("NO_FOOTER", true, true); } else { $tpl->set("RIGHT_COL", false, true); $tpl->set("LEFT_COL", false, true); $tpl->set("NO_HEADER", false, true); $tpl->set("NO_FOOTER", false, true); } echo $tpl->fetch(load_template('main.tpl')); } elseif ($STYLETYPE == 3) { // It's a style modified for Petr1fied's enhanced version of atmoner's system. $tpl->set("TYPE1_EXCLUSIVE_1", false, true); $tpl->set("TYPE1_EXCLUSIVE_2", false, true); $tpl->set("TYPE1_EXCLUSIVE_3", false, true); $tpl->set("TYPE1_EXCLUSIVE_4", false, true); $tpl->set("TYPE1_EXCLUSIVE_5", false, true); $tpl->set("TYPE2_EXCLUSIVE_1", false, true); $tpl->set("TYPE2_EXCLUSIVE_2", false, true); $tpl->set("TYPE2_EXCLUSIVE_3", false, true); $tpl->set("TYPE2_EXCLUSIVE_4", false, true); $tpl->set("TYPE2_EXCLUSIVE_5", false, true); $tpl->set("TYPE3_EXCLUSIVE_1", false, true); $tpl->set("TYPE3_EXCLUSIVE_2", false, true); $tpl->set("TYPE3_EXCLUSIVE_3", false, true); $tpl->set("TYPE3_EXCLUSIVE_4", false, true); $tpl->set("TYPE3_EXCLUSIVE_5", false, true); $tpl->set("TYPE4_EXCLUSIVE_1", false, true); $tpl->set("TYPE4_EXCLUSIVE_2", false, true); $tpl->set("TYPE4_EXCLUSIVE_3", false, true); $tpl->set("TYPE4_EXCLUSIVE_4", false, true); $tpl->set("TYPE4_EXCLUSIVE_5", false, true); if ($normalpage && !$no_columns) { $tpl->set("HAS_LEFT_COL", true, true); $tpl->set("HAS_RIGHT_COL", true, true); $tpl->set("IS_DISPLAYED_1", true, true); $tpl->set("IS_DISPLAYED_2", true, true); $tpl->set("IS_DISPLAYED_3", true, true); $tpl->set("IS_DISPLAYED_4", true, true); $tpl->set("IS_DISPLAYED_5", true, true); $tpl->set("TYPE1_EXCLUSIVE_1", true, true); $tpl->set("TYPE1_EXCLUSIVE_2", true, true); $tpl->set("TYPE1_EXCLUSIVE_3", true, true); $tpl->set("TYPE1_EXCLUSIVE_4", true, true); $tpl->set("TYPE1_EXCLUSIVE_5", true, true); } elseif ($adminpage) { $tpl->set("HAS_LEFT_COL", true, true); $tpl->set("HAS_RIGHT_COL", false, true); $tpl->set("IS_DISPLAYED_1", true, true); $tpl->set("IS_DISPLAYED_2", true, true); $tpl->set("IS_DISPLAYED_3", true, true); $tpl->set("IS_DISPLAYED_4", true, true); $tpl->set("IS_DISPLAYED_5", true, true); $tpl->set("TYPE2_EXCLUSIVE_1", true, true); $tpl->set("TYPE2_EXCLUSIVE_2", true, true); $tpl->set("TYPE2_EXCLUSIVE_3", true, true); $tpl->set("TYPE2_EXCLUSIVE_4", true, true); $tpl->set("TYPE2_EXCLUSIVE_5", true, true); } elseif ($torrentspage || $forumpage || $no_columns == 1) { $tpl->set("HAS_LEFT_COL", false, true); $tpl->set("HAS_RIGHT_COL", false, true); $tpl->set("IS_DISPLAYED_1", true, true); $tpl->set("IS_DISPLAYED_2", true, true); $tpl->set("IS_DISPLAYED_3", true, true); $tpl->set("IS_DISPLAYED_4", true, true); $tpl->set("IS_DISPLAYED_5", true, true); $tpl->set("IS_DISPLAYED_5", true, true); $tpl->set("TYPE3_EXCLUSIVE_1", true, true); $tpl->set("TYPE3_EXCLUSIVE_2", true, true); $tpl->set("TYPE3_EXCLUSIVE_3", true, true); $tpl->set("TYPE3_EXCLUSIVE_4", true, true); $tpl->set("TYPE3_EXCLUSIVE_5", true, true); } else { $tpl->set("HAS_LEFT_COL", false, true); $tpl->set("HAS_RIGHT_COL", false, true); $tpl->set("IS_DISPLAYED_1", false, true); $tpl->set("IS_DISPLAYED_2", false, true); $tpl->set("IS_DISPLAYED_3", false, true); $tpl->set("IS_DISPLAYED_4", false, true); $tpl->set("IS_DISPLAYED_5", false, true); $tpl->set("IS_DISPLAYED_5", false, true); $tpl->set("TYPE4_EXCLUSIVE_1", true, true); $tpl->set("TYPE4_EXCLUSIVE_2", true, true); $tpl->set("TYPE4_EXCLUSIVE_3", true, true); $tpl->set("TYPE4_EXCLUSIVE_4", true, true); $tpl->set("TYPE4_EXCLUSIVE_5", true, true); } echo $tpl->fetch(load_template('main.tpl')); } else { // It's an original style type. Also default to this if there's an unknown value for the $STYLETYPE variable. if ($normalpage && !$no_columns) { echo $tpl->fetch(load_template('main.tpl')); } elseif ($adminpage) { if (file_exists(load_template('main.left_column.tpl'))) { echo $tpl->fetch(load_template('main.left_column.tpl')); } else { echo $tpl->fetch(load_template('main.tpl')); } } elseif ($torrentspage || $forumpage || $no_columns == 1) { if (file_exists(load_template('main.no_columns.tpl'))) { echo $tpl->fetch(load_template('main.no_columns.tpl')); } else { echo $tpl->fetch(load_template('main.tpl')); } } else { if (file_exists(load_template('main.no_header_1_column.tpl'))) { echo $tpl->fetch(load_template('main.no_header_1_column.tpl')); } else { echo $tpl->fetch(load_template('main.tpl')); } } } ob_end_flush(); if ($update) { register_shutdown_function('updatedata'); } }
function stdfoot($normalpage = true, $update = true, $adminpage = false, $torrentspage = false, $forumpage = false) { global $STYLEPATH, $tpl, $no_columns; $tpl->set('to_top', print_top()); $tpl->set('tracker_url', print_trackerurl()); $tpl->set('site_name', print_sitename()); $tpl->set('user_name', print_username()); $tpl->set('main_footer', bottom_menu() . "<br />\n"); $tpl->set('xbtit_version', print_version()); $tpl->set('style_copyright', print_designer()); $tpl->set('xbtit_debug', print_debug()); if ($normalpage && !$no_columns) { echo $tpl->fetch(load_template('main.tpl')); } elseif ($adminpage) { echo $tpl->fetch(load_template('main.left_column.tpl')); } elseif ($torrentspage || $forumpage || $no_columns == 1) { echo $tpl->fetch(load_template('main.no_columns.tpl')); } else { echo $tpl->fetch(load_template('main.no_header_1_column.tpl')); } ob_end_flush(); if ($update) { register_shutdown_function('updatedata'); } }
session_start(); //ini_set('session.save_path', $_SERVER['DOCUMENT_ROOT'].'/sessions'); include 'mysql.php'; include 'header.php'; include 'functions.php'; include 'class/CUser.php'; check_user(); if (isset($_SESSION['user_id'])) { $sc = 'function del_j(id) { if(confirm(\'Удалить препарат?\')) window.location = "apteka_add.php?del="+id; }'; $user = unserialize($_SESSION['user_class']); print_header('Аптека', $sc); print_username(false); $arr_ed = array(); $arr_ed[] = ''; $query = "SELECT `name` FROM `apteka_ed`"; $sql = mysql_query($query) or die(mysql_error()); while ($i = mysql_fetch_assoc($sql)) { $arr_ed[] = $i['name']; } $curd = date('Y-m-d'); $d1 = strtotime($curd); //$arr = array(1=>'1otd_apteka',2=>'2otd_apteka',3=>'3otd_apteka',4=>'ofd_apteka',5=>'fizio_apteka',6=>'rentgen_apteka',7=>'kdl_apteka',8=>'uzi_apteka',9=>'nko_apteka'); //$arr_otd = array(1=>'1 Отделение',2=>'2 Отделение',3=>'3 отделение',4=>'ОФД',5=>'Физио',6=>'Рентген',7=>'КДЛ',8=>'УЗИ',9=>'НКО'); print '<h2>Аптека</h2>'; print '<p><a href="apteka_add.php">Новое поступление</a> | <a href="apteka_firma.php">Поставшики</a></p><br>'; //---------------------------------------------------------------------------------------------------------------------------------- // Просмотр препаратов по отделениям
<?php session_start(); include 'mysql.php'; include 'header.php'; include 'functions.php'; include 'class/CUser.php'; include "class/CPacient.php"; check_user(); $mounth = array("Январь", "Февраль", "Март", "Апрель", "Май", "Июнь", "Июль", "Август", "Сентябрь", "Октябрь", "Ноябрь", "Декабрь"); if (isset($_SESSION['user_class'])) { $user = unserialize($_SESSION['user_class']); $iswhile = false; print_header("Список пациентов"); print_username(); /*if(check_access($user,array($GLOBALS['group_admin'],$GLOBALS['group_gl'],$GLOBALS['group_san_propusk'],$GLOBALS['group_register']))) { echo '<br><div align="center"><span style="color: red; font-size: 20pt;"><b>Доступ запрещен</b></span></div>'; exit; }*/ print '<h2>Список пациентов</h2>'; //if(!check_access($user,array($GLOBALS['group_admin'],$GLOBALS['group_gl'],$GLOBALS['group_san_propusk'],$GLOBALS['group_register']))) //{ print '<table> <tr> <td> <a href="' . LPU_HOST . 'pacient_edit.php"><img src="' . LPU_HOST . 'themes/img/new_pacient.png" style="margin: 2px;vertical-align: middle">Новый пациент</a> </td> </tr> </table>'; // если производиться поиск