代码拉取完成,页面将自动刷新
同步操作将从 gujiejing/WEBWMS 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<?php
header('Content-type: text/html; charset=utf-8');
require_once('connDB.php');
$id=' ';
//if(isset($_POST['id']) && isset($_POST['delsure'])){\
if(isset($_GET['id']) && isset($_GET['delsure'])){
//echo 'del id id';
//$id = $_POST['id'];
//echo $_GET['delsure'];
$id = $_GET['id'];
$sql="SELECT nID, ID FROM asnd WHERE nID =$id";
//echo $sql;
$result1 = mysql_query($sql,$dbc);
$row_Rec1 = mysql_fetch_assoc($result1);
$id2 = $row_Rec1['ID'];
//echo '<br>';
//echo $id2;
$sql="DELETE FROM webwms.asnd WHERE asnd.nID = $id";
//echo '<br>';
//echo $sql;
mysql_query($sql,$dbc);
//echo '';
$sql = "SELECT nID, ID, ASNID, ITEMNO, SKU, SKUCN, SKUEN, VEDCODE, UOM, UOMNUM, ";
$sql = $sql."FDUNIT, TWEIGHT, UNITWEIGHT, SKUN,CUSTMITEM,COO,UNITPRICE,TPRICE,LOC FROM asnd WHERE ID=$id2 ";
$result = mysql_query($sql,$dbc);
$row_Rec = mysql_fetch_assoc($result);
$strHtml = "";
$strHtml = $strHtml."<table border='1'>";
$strHtml = $strHtml."<tr>";
$strHtml = $strHtml."<td>nID</td>";
$strHtml = $strHtml."<td>ID</td>";
$strHtml = $strHtml."<td>ASNID</td>";
$strHtml = $strHtml."<td>ITEMNO</td>";
$strHtml = $strHtml."<td>SKU</td>";
$strHtml = $strHtml."<td>SKUCN</td>";
$strHtml = $strHtml."<td>SKUEN</td>";
$strHtml = $strHtml."<td>VEDCODE</td>";
$strHtml = $strHtml."<td>UOM</td>";
$strHtml = $strHtml."<td>UOMNUM</td>";
$strHtml = $strHtml."<td>FDUNIT</td>";
$strHtml = $strHtml."<td>TWEIGHT</td>";
$strHtml = $strHtml."<td>UNITWEIGHT</td>";
$strHtml = $strHtml."<td>SKUN</td>";
$strHtml = $strHtml."<td>CUSTMITEM</td>";
$strHtml = $strHtml."<td>COO</td>";
$strHtml = $strHtml."<td>UNITPRICE</td>";
$strHtml = $strHtml."<td>TPRICE</td>";
$strHtml = $strHtml."<td>LOC</td>";
$strHtml = $strHtml."<td>操作</td>";
$strHtml = $strHtml."</tr>";
do{
$strHtml = $strHtml."<tr>";
$strHtml = $strHtml."<td>".$row_Rec['nID']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['ID']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['ASNID']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['ITEMNO']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['SKU']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['SKUCN']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['SKUEN']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['VEDCODE']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['UOM']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['UOMNUM']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['FDUNIT']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['TWEIGHT']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['UNITWEIGHT']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['SKUN']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['CUSTMITEM']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['COO']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['UNITPRICE']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['TPRICE']."</td>";
$strHtml = $strHtml."<td>".$row_Rec['LOC']."</td>";
$strHtml = $strHtml."<td>";
$strHtml = $strHtml."<a href=\"#\" id=\"".$row_Rec['nID']."\" id2=\"".$row_Rec['ID']."\" >DEL</a>";
$strHtml = $strHtml." | ";
$strHtml = $strHtml."<a href=\"#\" id=\"".$row_Rec['nID']."\">MODIFY</a>";
$strHtml = $strHtml."</td>";
$strHtml = $strHtml."</tr>";
} while($row_Rec = mysql_fetch_assoc($result));
$strHtml = $strHtml."</table>";
echo $strHtml;
mysql_close($dbc);
return;
}
if(isset($_GET['id'])){
$id = $_GET['id'];
echo 'ID为:'.$id.'<br>';
echo '你确认要删除这条收货明细吗?<br>';
echo 'Do you sure to Delete this ASN detail?<br>';
//echo '<form action="delasn.php" method="POST">';
echo '<input name="id" type="hidden" id="id" value="'.$id.'"/>';
echo '<input name="delsure" type="hidden" id="delsure" value="ture" />';
echo '<input type="submit" name="Submit" value="(是的)YES DO IT" onclick="javascript:updataDetail('.$id.');" />';
//echo '</form>';
}
?>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。