function ismember() { if (getsession("id") == false) { die("權限不足!!"); } else { return true; } }
?> <br> <a href=".">預約單/取消</a> | <a href="search.php">查詢/預約</a> | <a href="view.php">會議室瀏覽</a><br> <br> <fieldset><legend>預約單</legend> <table border=2> <tr><th><a href=".?sort=0">預約單編號</a></th><th><a href=".?sort=1">使用日期</a><br>(年/月/日)</th><th>使用時段</th><th>會議室編號</th><th>借用人</th><th></th></tr> <?php $A = new db(); $B = new db(); switch (get("sort")) { case 0: $A->query("select * from reserves where name='" . getsession("id") . "' order by serial") ?: $A->error(); break; case 1: $A->query("select * from reserves where name='" . getsession('id') . "' order by date") ?: $A->error(); break; } if ($A->count() > 0) { while ($A->fetch()) { ?> <tr> <td><?php echo $A->element("serial"); ?> </td> <td><?php echo str_replace("-", "/", $A->element("date")); ?> </td> <td><?php
$("#floor").on("change", function() { location = "view.php?floor=" + $("#floor").val(); }); $("#date").on("change", function() { $("#godate").submit(); }); $(".room").on("change", function() { $("#gogo").submit(); }); }); </script> </head> <body> <button onclick="location='/44/login/logout.php'">登出</button> <?php echo getsession("account") . " #" . getsession("id") . " ~" . getsession("name"); ?> <br> <a href=".">預約單/取消</a> | <a href="search.php">查詢/預約</a> | <a href="view.php">會議室瀏覽</a><br> <br> <fieldset><legend>請選擇樓層</legend> <select name="floor" id="floor"> <option value="-1" <?php if (!get("floor")) { ?> selected <?php } ?> disabled>請選擇樓層</option> <?php $A = new db();
<?php include $_SERVER["DOCUMENT_ROOT"] . "/44/func/mysql.php"; isroot(); ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>無標題文件</title> </head> <body> <button onclick="location='/44/login/logout.php'">登出</button> <?php echo getsession("account") . " #" . getsession("id") . "~ Administator"; ?> <br> <a href="/44/admin/">會員管理</a> | <a href="/44/admin/floor.php">樓層管理</a> | <a href="/44/admin/reserve.php">預約單管理</a> <br><br> <form action="/44/admin/adduser.php" method="post"> <fieldset><legend>新增帳號</legend> <label>帳號:</label><input type="textbox" name="account"> <label>密碼:</label><input type="textbox" name="password"><br> <label>姓名:</label><input type="textbox" name="name"><br> <label>密碼提示語:</label><input type="textbox" name="question"> <label>答案:</label><input type="textbox" name="answer"><br> <input type="submit" value="新增"> </fieldset> </form><br> <?php $A = new db(); $A->query("select * from accounts");
function content_568f82da0d1b93_65128834($_smarty_tpl) { echo $_smarty_tpl->getSubTemplate("header_comm.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> <body class="bodybox bodyclick"> <div id="my_setlist" data-role="page" class="mainbox my_setlist"> <div id="headerbox" class="headerbox"> <?php echo $_smarty_tpl->getSubTemplate("header_back.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> <div class="contentbox settings" data-role="content"> <ul class="jsbox"> <li> <a class="rowbox" href="/user/setting.html"> <div class="mr-10" style="padding:8px 0"> <div class="useravatar_set"> <img src="<?php echo $_smarty_tpl->tpl_vars['data']->value['avatar'][2]; ?> " data-original="<?php echo $_smarty_tpl->tpl_vars['data']->value['avatar'][1]; ?> " class="avatar_lazy"> </div> </div> <div class="row-flex1 mt-10"> <h3 class="line20 color-black"><?php echo $_smarty_tpl->tpl_vars['data']->value['fname']; echo $_smarty_tpl->tpl_vars['data']->value['lname']; ?> </h3> <p class="f12 color-999 line20">登录账号:<?php echo $_smarty_tpl->tpl_vars['data']->value['account']; ?> </p> </div> <div class="ico ico-jt mt-10"></div> </a> </li> </ul> <ul class="jsbox"> <li> <a href="/message/msglist" class="rowbox"> <div class="row-flex1"> <span class="ico ico-infocenter mr-5"></span>消息中心 </div> <div class="ico ico-jt"></div> </a> </li> </ul> <ul class="jsbox"> <li> <a href="/share/myshares.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-myhome mr-5"></span>我的主页 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/user_group/my.html" class="rowbox"> <div class="row-flex1"> <span class="ico my-xq mr-5"></span>我的明星群 </div> <div class="ico ico-jt"></div> </a> </li> </ul> <ul class="jsbox"> <li> <a href="/mybuys/myorders.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-myorder mr-5"></span>我的订单 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/mybuys/aftersales.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-myorder mr-5"></span>售后中心 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/ask/myasks.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-myorder mr-5"></span>我求定制 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/m_raise/goodsraise_my.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-myorder mr-5"></span>超级筹 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/m_cut/goodscut_my.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-mypurse mr-5"></span>超级砍 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/mk_market/feeback_my.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-mypurse mr-5"></span>超级返 </div> <div class="ico ico-jt"></div> </a> </li> </ul> <ul class="jsbox"> <li> <a href="/mk_market/index.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-bole mr-5"></span>大伯乐 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/mk_market/red_packet.html?fsuid=<?php echo $_smarty_tpl->tpl_vars['suid']->value; ?> " class="rowbox"> <div class="row-flex1"> <span class="ico ico-mypurse mr-5"></span>抢红包 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/mybuys/mysharemoney.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-mypurse mr-5"></span>现金 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/mybuys/myscore.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-mypurse mr-5"></span>享金 </div> <div class="ico ico-jt"></div> </a> </li> <li> <a href="/mybuys/mycoupons.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-mypurse mr-5"></span>卡券 </div> <div class="ico ico-jt"></div> </a> </li> </ul> <ul class="jsbox"> <li> <a href="/identify.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-rzcenter mr-5"></span>认证 </div> <div class="ico ico-jt"></div> </a> </li> </ul> <ul class="jsbox"> <li> <a href="/user/setting.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-mysetting mr-5"></span>设置 </div> <div class="ico ico-jt"></div> </a> </li> </ul> <?php if (getsession('is_third_login') && getsession('account_type') != 2) { ?> <ul class="jsbox"> <li> <a href="/user/bang_cellphone.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-out mr-5"></span>绑定登陆手机 </div> <div class="ico ico-jt"></div> </a> </li> </ul> <?php } ?> <ul class="jsbox"> <li> <a href="/user/logout.html" class="rowbox"> <div class="row-flex1"> <span class="ico ico-out mr-5"></span>切换登陆账号 </div> </a> </li> </ul> </div> <?php echo $_smarty_tpl->getSubTemplate("footer_bar.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </div> </div> <script data-main="<?php echo $_smarty_tpl->tpl_vars['static_url']->value; ?> /moblie/app/js/myShare_mysetlist.js?v=77" src="<?php echo $_smarty_tpl->tpl_vars['static_url']->value; ?> /moblie/app/require.js"></script> <?php echo $_smarty_tpl->getSubTemplate("footer_comm_new.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0); ?> </body> </html><?php }
?> <input type="hidden" name="step" value="3"> </form></td> </tr> </table> </fieldset> <?php break; case 3: $A = new db(); $serial = rand(999999, 9999999); $date = get("date"); $section = get("section"); $floor = get("floor"); $room = get("room"); $name = getsession("id"); $A->query("insert into reserves values ('','{$serial}','{$date}','{$section}','{$floor}','{$room}','{$name}')") ?: $A->error(); ?> <fieldset><legend>已新增以下預約單</legend> <table border=2> <tr><th>使用日期<br>(年/月/日)</th><th>使用時段</th><th>會議室號碼</th></tr> <tr> <td><?php echo str_replace("/", "-", get("date")); ?> </td> <td><?php echo section(get("section")); ?> </td> <td><a href="search.php?step=4&floor=<?php