📄 new.php
字号:
<?php
include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
echo "\r\n<html>\r\n<head>\r\n<title>新建销售退货</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n\r\n<SCRIPT>\r\nvar sel_wirehouse;\r\nvar sel_place;\r\n\r\nvar wirehouse=new Array(\r\n";
$query = "SELECT * from WIREHOUSE where WH_OPEN=0 order by WH_NO";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$WH_ID = $ROW['WH_ID'];
$WH_NAME = $ROW['WH_NAME'];
echo " new Array(\"";
echo $WH_ID;
echo "\",\"";
echo $WH_NAME;
echo "\"),\r\n";
}
echo "new Array(\"0\",\"\")\r\n);\r\n\r\nvar place=new Array(\r\n";
$query = "SELECT * from WIREHOUSE_PLACE where PLACE_OPEN=0 order by PLACE_NO";
$cursor = exequery( $connection, $query );
while ( $ROW = mysql_fetch_array( $cursor ) )
{
$PLACE_ID = $ROW['PLACE_ID'];
$PLACE_NAME = $ROW['PLACE_NAME'];
$WH_ID = $ROW['WH_ID'];
echo "new Array(\"";
echo $WH_ID;
echo "\",\"";
echo $PLACE_ID;
echo "\",\"";
echo $PLACE_NAME;
echo "\"),\r\n";
}
echo "new Array(\"0\",\"0\",\"\")\r\n);\r\n\r\nfunction FillWirehouse(selwirehouse)\r\n{\r\n selwirehouse.options[0]=new Option(\"选择仓库\",\"0\");\r\n for(i=0;i<wirehouse.length;i++)\r\n {\r\n selwirehouse.options[i+1]=new Option(wirehouse[i][1],wirehouse[i][0]);\r\n }\r\n selwirehouse.options[0].selected=true;\r\n selwirehouse.length=i;\r\n}\r\n\r\nfunction FillPlace(selplace,Code)\r\n{\r\n selplace.options[0]=new Option(\"选择库位\",\"0\");\r\n count=1;\r\n for(i=0;i<place.length;i++)\r\n {\r\n if(place[i][0].toString()==Code)\r\n {\r\n selplace.options[count]=new Option(place[i][2],place[i][1]);\r\n count=count+1;\r\n }\r\n }\r\n selplace.options[0].selected=true;\r\n selplace.length=count;\r\n}\r\n\r\nfunction wirehouse_onchange()\r\n{\r\n FillPlace(sel_place,sel_wirehouse.value);\r\n}\r\n\r\nfunction InitSelSelect(selwirehouse,selplace)\r\n{\r\n sel_wirehouse=selwirehouse;\r\n sel_place=selplace;\r\n selwirehouse.onchange=Function(\"wirehouse_onchange();\");\r\n FillWirehouse(selwirehouse);\r\n}\r\n\r\nfunction CheckForm()\r\n{\r\n if(document.form1.CUSTOMER_ID.value==\"\")\r\n { alert(\"客户名称不能为空!\");\r\n return (false);\r\n }\r\n\r\n if(document.form1.COPY_TO_ID.value==\"\")\r\n { alert(\"经手人不能为空!\");\r\n return (false);\r\n }\r\n\r\n return (true);\r\n}\r\n\r\nfunction sendForm()\r\n{\r\n if(CheckForm()) document.form1.submit();\r\n}\r\n\r\n\r\nfunction LoadWindow()\r\n{\r\n URL=\"/module/user_select_single?ID=2\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n //window.open(URL,\"read_notify\",\"height=400,width=550,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=150,resizable=yes\");\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:350px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n\r\nfunction LoadWindow3()\r\n{\r\n URL=\"/general/sale_manage/crm/linkman/customer_select\";\r\n loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;\r\n loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;\r\n window.showModalDialog(URL,self,\"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:320px;dialogHeight:245px;dialogTop:\"+loc_y+\"px;dialogLeft:\"+loc_x+\"px\");\r\n}\r\n</script>\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n<table border=\"0\" width=\"90%\" cellspacing=\"0\" cellpadding=\"3\" class=\"small\">\r\n <tr>\r\n <td class=\"Big\"><img src=\"/images/notify_new.gif\" align=\"absmiddle\"><span class=\"big3\"> 新建销售退货</span>\r\n </td>\r\n </tr>\r\n</table>\r\n\r\n<table border=\"0\" width=\"95%\" cellpadding=\"2\" cellspacing=\"1\" align=\"center\" bgcolor=\"#000000\" class=\"small\">\r\n <form enctype=\"multipart/form-data\" action=\"add.php\" method=\"post\" name=\"form1\">\r\n <tr>\r\n <TD class=\"TableData\">客户名称:</TD>\r\n <TD class=\"TableData\">\r\n <input type=\"hidden\" name=\"CUSTOMER_ID\" value=\"";
echo $CUSTOMER_ID;
echo "\">\r\n <input type=\"text\" name=\"CUSTOMER_NAME\" class=\"BigStatic\" size=\"15\" maxlength=\"100\" readonly value=\"";
echo $CUSTOMER_NAME;
echo "\"> \r\n <input type=\"button\" value=\"选 择\" class=\"SmallButton\" onClick=\"LoadWindow3()\" title=\"选择客户名称\" name=\"button\">\r\n </TD>\r\n <TD class=\"TableData\">经手人:</TD>\r\n <TD class=\"TableData\">\r\n <INPUT class=\"BigInput\" name=\"COPY_TO_ID\" id=\"COPY_TO_ID\" type=hidden>\t\r\n <INPUT class=\"BigStatic\" name=\"COPY_TO_NAME\" id=\"COPY_TO_NAME\" readonly style=\"CURSOR: hand\" onclick=\"LoadWindow()\" size=20>\r\n <input type=\"button\" value=\"选 择\" class=\"SmallButton\" onClick=\"LoadWindow()\" title=\"选择人员\" name=\"button\">\r\n </TD>\r\n </TR>\r\n <tr>\r\n <TD class=\"TableData\">退货仓:</TD>\r\n <TD class=\"TableData\">\r\n <SELECT id=WH_ID size=1 name=WH_ID class='SmallSelect'>\r\n <OPTION selected></OPTION>\r\n </SELECT>\t\t \r\n <SELECT id=PLACE_ID size=1 name=PLACE_ID class='SmallSelect'>\r\n <OPTION selected></OPTION>\r\n </SELECT>\r\n <SCRIPT language=javascript>\r\nInitSelSelect(document.form1.WH_ID,document.form1.PLACE_ID);\r\n </SCRIPT>\r\n </TD>\r\n <TD class=\"TableData\">付款帐户:</TD>\r\n <TD class=\"TableData\">\r\n <INPUT name=\"BANK_NO\" id=\"BANK_NO\" size=30 maxlength=\"100\" class=\"BigInput\">\r\n </TD>\r\n </TR>\r\n <tr align=\"center\" class=\"TableControl\">\r\n <td colspan=\"4\" nowrap>\r\n <input type=\"button\" value=\"新建\" class=\"BigButton\" onclick=\"sendForm('');\"> \r\n <input type=\"reset\" value=\"重置\" class=\"BigButton\"> \r\n </td>\r\n </tr>\r\n </table>\r\n</form>\r\n\r\n</body>\r\n</html>";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -