}
    unset($res_loc);
    // unsets all the waiters' _SESSION vars
    unset($_SESSION['catprinted']);
    if (isset($_REQUEST['mgmt_db_number'])) {
        $_SESSION['common_db'] = $_REQUEST['mgmt_db_number'];
    } elseif (!isset($_SESSION['common_db'])) {
        $_SESSION['common_db'] = common_find_first_db();
    }
    /*
    we almost always use this command var, so we get it here
    to make it available to other functions whithout other hassle
    */
    if (isset($_REQUEST['command'])) {
        $command = $_REQUEST['command'];
    } else {
        $command = 'none';
    }
    if (isset($_REQUEST['data'])) {
        $start_data = $_REQUEST['data'];
    }
    header("Content-Language: " . $_SESSION['language']);
    header("Content-type: text/html; charset=" . phr('CHARSET'));
    $tpl = new template();
    $tmp = head_line('Management section');
    $tpl->assign("head", $tmp);
    $menu = new menu();
    $tmp = $menu->main();
    $tpl->append("scripts", $tmp);
    $header_printed = 2;
}
Example #2
0
                    <li>|</li>
                    <LI><a href="javascript:void(0);" onclick="logout();">退出登录</a></li>
                    <li>|</li>
                    <li><a href="http://faq.idreamsoft.com" target="_blank">帮助</a></li>
                    <li>|</li>
                    <li><a href="index.php" target="_blank">网站首页</a></li>
                    <li>|</li>
                    <li><a href="http://www.idreamsoft.com" target="_blank">官方论坛</a></li>
                  </ul>
                  <div style="float:left"><?php 
echo iCMS_VER;
?>
</div>
                </div>
                <div class='main_menu'> <!--主菜单--> <?php 
menu::main();
?>
 </div>
              </div></td>
          </tr>
        </table>
        <div class="top_border"></div>
      </div></td>
  </tr>
  <tr>
    <td valign="top" width="1%"><!--次菜单-->
      <div class="left">
        <div class="main_menu_title">
          <div class="main_menu_title_left"></div>
          <div class="main_menu_title_right" id="off"> </div>
          <div class="none"></div>
        $cal_lang_file = ROOTDIR . '/jscalendar/lang/calendar-en.js';
    }
    ?>
	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 	<html>
	<head>
	<title>Smart Restaurant - Management</title>
	<meta http-equiv="Cache-Control" content="no-cache">
	<meta http-equiv="Expires" content="0">
	<script type="text/javascript" language="JavaScript" src="<?php 
    echo $jsurl;
    ?>
"></script>
	</script>
	</head>
<?php 
    if (!isset($_GET['print'])) {
        ?>
	<body class=mgmt_body>
<?php 
        $menu = new menu();
        echo $menu->main();
        ?>
	<table><TR><TD height="20">&nbsp;</TD></TR></table>

<?php 
    }
    $header_printed = 2;
}
$timestamp_start = $_SESSION['timestamp']['start'];
$timestamp_end = $_SESSION['timestamp']['end'];