本文整理汇总了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'] . "';\">";