コード例 #1
0
ファイル: ClassEquipo.php プロジェクト: moiilopez/Taller
function buscarEntregados()
{
    return getDeliver();
}
コード例 #2
0
         $i++;
     }
     break;
 case "getSpotByADD":
     $addID = sqlReplace(trim($_POST['address']));
     $shopID = sqlReplace(trim($_POST['shopID']));
     $shopCircle = sqlReplace(trim($_POST['shopCircle']));
     $pay = sqlReplace(trim($_POST['pay']));
     $sql = "select useraddr_spot,useraddr_circle from qiyu_useraddr where useraddr_id=" . $addID;
     $rs = mysql_query($sql);
     $row = mysql_fetch_assoc($rs);
     if ($row) {
         $spot_id = $row['useraddr_spot'];
         $circle_id = $row['useraddr_circle'];
     }
     getDeliver($shopID, $spot_id, $circle_id, $shopCircle, $pay);
     break;
 case "addPrefer":
     $id = sqlReplace(trim($_POST['id']));
     $type = sqlReplace(trim($_POST['type']));
     if (empty($QIYU_ID_USER)) {
         echo "N";
     } else {
         //$user=sqlReplace(trim($_POST['user']));
         if ($type == '0') {
             $sql = "delete from qiyu_fav where fav_user="******" and fav_shop=" . $id;
             mysql_query($sql);
         } elseif ($type == '1') {
             $sql = "select fav_id from qiyu_fav where fav_shop=" . $id . " and fav_user=" . $QIYU_ID_USER;
             $rs = mysql_query($sql);
             $row = mysql_fetch_assoc($rs);