"; $strPageTitle=$strTitleAdvanced.$strTitleSpace."PPS".$strTitleSpace.$strCurrentTariff.$strTitleSpace."Multiple services"; //========================================================== //数据处理 //========================================================== //保存修改的变量 if(strlen($_POST['set']) > 0){ if (strlen($arr_editfieldUnit)>0){ $strSqlUpdate = $arr_editfieldAmount."='$amount',".$arr_editfieldUnit."='$unit'"; } else{ $strSqlUpdate = $arr_editfieldAmount."='$amount'"; } if ($DEBUG) echo "
strSqlUpdate:$strSqlUpdate"; if ($DEBUG) echo "
arr_editfieldUnit:$arr_editfieldUnit"; $where =" WHERE tariff_id=$tariffID"; $selSql ="Select count(*) FROM $tableName".$where; if($DEBUG) echo "
$selSql"; $result = @mysqli_query($srcDataConn,$selSql); $rows =mysqli_fetch_array($result); $rowsNum=$rows[0]; if($DEBUG) echo "
rowsNum=$rows[0]"; if($rowsNum){ $setSql="UPDATE $tableName SET $strSqlUpdate $where"; }else{ $setSql="REPLACE $tableName SET $strSqlUpdate $where"; } if($DEBUG) echo "
setSql=$setSql
"; $result= @mysqli_query($srcDataConn,$setSql); echo mysqli_error($srcDataConn); if(!$DEBUG){ echo " "; } } //========================================================== //输出并显示数据 //========================================================== $getSql="SELECT * FROM $tableName WHERE tariff_id='$tariffID'"; //echo $getSql; $result=mysqli_query($srcDataConn,$getSql); $rows=mysqli_fetch_array($result); echo mysqli_error($srcDataConn); ?> "; echo ""; echo ""; echo "$strPageTitle"; echo ""; echo " "; echo ""; echo ""; echo ""; adjust_title_tail(); adjust_content_head(); echo "
"; ?>
" method="POST"> "; echo ""; echo ""; echo ""; echo ""; echo ""; $return_tariff_id = $rows[tariff_id]; //定义返回时的页面 echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if (strlen($arr_editfieldUnit)>0){ echo ""; } else{ echo ""; } echo ""; ?>
Edit services
$strDescription$description
$strTariffRentChargeAmount  $moneyPara
$strUnitChargingTimeSecond--