本文整理匯總了PHP中DbConnect::queryAdmin方法的典型用法代碼示例。如果您正苦於以下問題:PHP DbConnect::queryAdmin方法的具體用法?PHP DbConnect::queryAdmin怎麽用?PHP DbConnect::queryAdmin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DbConnect
的用法示例。
在下文中一共展示了DbConnect::queryAdmin方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: to
</ul>
</div> ';
/*
echo "<div style=\"
position:absolute;
top=260px;
left=10px;
height=20px;
line-height=20px;
\">
<b>公告:今天下雨但是依然正常營業哦<br/>
我們的配送團隊依然會將餐品保質保量地送到宿舍<br/>謝謝大家的支持٩(๑`^´๑)۶
<br/>2015.4.2</b>
</div>";
*/
if (DbConnect::queryAdmin($username) && !isset($_GET['action'])) {
$row = DbConnect::selectByOpenId("name", $username);
echo "<div style=\" -moz-border-radius:30px;-webkit-border-radius:30px;border-radius: 5px;position:absolute;color:#000;background:#ffffff;bottom:0; width:97%; height:80px;\">";
echo "個人信息:<br/>" . $row['name'];
echo "</br>";
echo "默認地址: ";
$row = DbConnect::selectByOpenId("apartment, number, telephone", $username);
echo $row['apartment'] . "樓" . $row['number'];
echo "</br>";
echo "手機號:";
echo $row['telephone'] . " 平台運行狀態:{$status}";
echo "</div>";
echo "<div class=\"box\" style=\" position:absolute;background:rgb(255,0,0); left:1%;top:56%; boder:1px solid;\" onclick=\" location.href='order.php?rest=4';\">開始點餐</div>";
echo "<div class=\"box\" style=\" position:absolute;background:#66cc00; to(rgb(255, 255,255))); top:56%; right:1%; boder:1px solid;\"onclick=\" location.href='modify.php';\">修改送餐地址</div>";
echo "<div class=\"box\" style=\" position:absolute; background:#0066ff; top:56%; left:26% ;boder:1px solid;\" onclick=\" location.href='deliver.php';\">內部界麵</div>";
echo "<div class=\"box\" style=\" position:absolute; background:#ffd700; top:56%; right:26%; boder:1px solid;\" onclick=\" location.href='myorder.php';\">查看已下訂單</div>";
示例2: alert
$con = DbConnect::connection();
$status = DbConnect::getStatus($con);
if (strcmp($_SESSION['openid'], 'oZUx9jiZVMqe3iNB9NxNqzvHpRTc') == 0) {
echo "<p> <script language=\"javascript\"> alert(\"請通過關注微信平台liankexinda進行點餐,通過瀏覽器點餐目前無法識別。\"); </script> </p>";
exit;
}
if (!isset($_SESSION['openid'])) {
echo "<p> <script language=\"javascript\"> alert(\"請通過關注微信平台liankexinda進行點餐,通過瀏覽器點餐目前無法識別。\"); </script> </p>";
exit;
}
$time = Time::getTimeLevel();
if (($time == 2 and !isset($_GET['a'])) && !DbConnect::queryAdmin($username)) {
echo "<p> <script language=\"javascript\"> alert(\"對不起~我們的訂餐時間已經截止,勤勞的運送員已經在采購~12點左右,美食就能出現在宿舍門口啦。沒有訂餐的同學不要著急下午的訂餐時間將在11點50後開放\"); </script> </p>";
exit;
}
if (($time == 4 and !isset($_GET['a'])) && !DbConnect::queryAdmin($username)) {
echo "<p> <script language=\"javascript\"> alert(\"對不起~我們的訂餐時間已經截止,勤勞的運送員已經在采購~5點半左右,美食就能出現在宿舍門口啦。沒有訂餐的同學不要著急下一次訂餐時間將在17:30後開放\"); </script> </p>";
exit;
}
$type = 0;
if (!isset($_GET['type'])) {
$type = 1;
} else {
$type = $_GET['type'];
}
if ($type == 1) {
echo "<div id='main'>";
$result = DbConnect::queryRest($status);
while ($row = mysql_fetch_array($result)) {
if (isset($_GET['rest']) && $_GET['rest'] == $row['restid']) {
echo "<div class=\"presssubmenu\" onclick=\" location.href='/order.php?rest=" . $row['restid'] . "';\">";