当前位置: 首页>>代码示例>>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;未经允许,请勿转载。