예제 #1
0
         echo "NOT";
         //不存在
     }
     exit;
 } elseif ($act == "doSpeedMatch") {
     $ps = " WHERE id={$aid} ";
     $row = loaddata_row($dbTable['application'][$cateid], $ps);
     // 	$year = substr($row['deadline'],0,4);
     // 	$month = substr($row['deadline'],5,2);
     // 	$day = substr($row['deadline'],8,2);
     // 	$hour = substr($row['deadline'],11,2);
     // 	$min = substr($row['deadline'],14,2);
     // 	$sec = substr($row['deadline'],17,2);
     // 	$deadline2 = date("Y-m-d H:i:s",mktime($hour, $min, $sec, $month, $day+7, $year));
     $msql = new phpMysql_h();
     $msql->init();
     $sql = "UPDATE " . $dbTable['application'][$cateid] . " SET status='2' , isSpeedMatch='1' , speedmatchTime=NOW() WHERE id={$aid} ";
     // 	$sql = "UPDATE ".$dbTable['application'][$cateid]." SET isSpeedMatch='1' , speedmatchTime=NOW() WHERE id=$aid ";
     $msql->query($sql);
     $ps = " WHERE isSpeedMatch='1' AND speedmatchTime!='' AND id=" . $aid;
     $row = loaddata_row($dbTable['application'][$cateid], $ps);
     if ($row) {
         echo "OK";
         //已完成快速服務設定
     } else {
         echo "NOT";
         //快速服務設定失敗
     }
     exit;
 } elseif ($act == "getLastDesc") {
     $ps = " WHERE id={$aid} ";
예제 #2
0
 function init()
 {
     $tmsql = new phpMysql_h();
     $tmsql->init();
     $str = "SELECT * FROM {$tmsql->system} ";
     $tmsql->query($str);
     list($tserial, $tgomark, $tpictext1, $tpictext2, $tpictext3) = mysql_fetch_row($tmsql->listmysql);
     $tmsql->close_mysql();
     $this->tn_serial = $tserial;
     $this->tn_gomark = $tgomark;
     $this->tn_pictext1 = $tpictext1;
     $this->tn_pictext2 = $tpictext2;
     $this->tn_pictext3 = $tpictext3;
 }