當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DbConnect::queryByUsername方法代碼示例

本文整理匯總了PHP中DbConnect::queryByUsername方法的典型用法代碼示例。如果您正苦於以下問題:PHP DbConnect::queryByUsername方法的具體用法?PHP DbConnect::queryByUsername怎麽用?PHP DbConnect::queryByUsername使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DbConnect的用法示例。


在下文中一共展示了DbConnect::queryByUsername方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: to

    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>";
    echo "<div class=\"box\" style=\" position:absolute; background:#ffd700; top:71%; left:1%; boder:1px solid;\" onclick=\" location.href='comments.php?username={$username}'; \">用戶評價</div>";
    if ($username == 'oZUx9jm9rFmgf--TRVFoRMFpkzXY' || $username == 'oZUx9jkw7wFL1f8rX5UOdoVgmF4k') {
        echo "<div class=\"box\" style=\" position:absolute; background:#000000; top:71%; right:1%; boder:1px solid;\" onclick=\" location.href='changeStatus.php'; \">改變平台運營狀態</div>";
    }
    //echo "<div class=\"box\" style=\" position:absolute; background:#ffd700; top:71%; left:1%; boder:1px solid;\" onclick=\" location.href='packageOrder.php';\">套餐界麵</div>";
    //echo "<div class=\"box\" style=\" position:absolute; background:#ffd700; top:71%; left:1%; boder:1px solid;\" onclick=\" location.href='myorder.php';\">訂餐提醒</div>";
    //echo "<div class=\"box\" style=\" position:absolute; background:#ffd700; top:71%; right:26%; boder:1px solid;\" onclick=\" location.href='NewPackage.php';\">創建套餐</div>";
} else {
    if (DbConnect::queryByUsername($username, $con) && !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'];
        echo "</div>";
        echo "<div class=\"box\" style=\" position:absolute; background:rgb(255,0,0);  top:56%;left:1%;  boder:1px solid;\" onclick=\" location.href='order.php?rest=1';\">開始點餐</div>";
        echo "<div class=\"box\" style=\" position:absolute;background:#66cc00;  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='introduction.php';\">使用說明</div>";
        echo "<div class=\"box\" style=\" position:absolute; background:#ffd700;  top:56%; left:26%; boder:1px solid;\" onclick=\" location.href='myorder.php';\">查看已下訂單</div>";
開發者ID:SebastianElvis,項目名稱:mtcds,代碼行數:31,代碼來源:alldishes.php


注:本文中的DbConnect::queryByUsername方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。