📄 index.php
字号:
<?
include_once("inc/auth.php");
include_once("inc/utility_all.php");
?>
<html>
<head>
<title>新建采购订单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script Language="JavaScript">
function add_detail()
{
if (document.form1.PRO_ID.value=="")
{
alert("请选择产品!!");
return;
}
if(CheckForm())
{
document.form1.OP.value="1";
document.form1.submit();
}
}
function LoadWindow3()
{
URL="../product_select";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
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");
}
function CheckForm()
{
if(document.form1.PROVIDER_ID.value=="")
{ alert("供应商名称不能为空!");
return (false);
}
if(document.form1.PROVIDER_NAME.value=="")
{ alert("供应商名称不能为空!");
return (false);
}
if(document.form1.ORDER_NO.value=="")
{ alert("供应商名称不能为空!");
return (false);
}
if(document.form1.ORDER_NAME.value=="")
{ alert("订单名称不能为空!");
return (false);
}
return (true);
}
function LoadWindow()
{
URL="/module/user_select_single";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+200;
window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:350px;dialogHeight:300px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function td_calendar(fieldname)
{
myleft=document.body.scrollLeft+event.clientX-event.offsetX-80;
mytop=document.body.scrollTop+event.clientY-event.offsetY+140;
window.showModalDialog("/inc/calendar.php?FIELDNAME="+fieldname,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:280px;dialogHeight:205px;dialogTop:"+mytop+"px;dialogLeft:"+myleft+"px");
}
function chk(input,KC,KT,count)
{
var lstr="";
if(count==1)
{
if(document.all(KC).checked)
{
document.all(KT).value=document.all(KC).value;
}
else
{
document.all(KT).value="";
}
}
else
{
for(i=0;i<document.all(KC).length;i++)
{
el=document.all(KC).item(i);
if(el.checked)
{
val=el.value;
lstr+=val+",";
}
}
document.all(KT).value=lstr;
}
}
function LoadWindow1(kname,codeid)
{
URL="codedefine.php?kname="+kname+"&codeid="+codeid;
myleft=(screen.availWidth-650)/2;
window.open(URL,"formul_edit","height=300,width=550,status=0,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left="+myleft+",resizable=yes");
}
function LoadWindow2()
{
URL="/general/sale_manage/supply/linkman/provider_select";
loc_x=document.body.scrollLeft+event.clientX-event.offsetX-100;
loc_y=document.body.scrollTop+event.clientY-event.offsetY+170;
window.showModalDialog(URL,self,"edge:raised;scroll:0;status:0;help:0;resizable:1;dialogWidth:325px;dialogHeight:245px;dialogTop:"+loc_y+"px;dialogLeft:"+loc_x+"px");
}
function edit_line(LINE_ID)
{
document.form1.OP.value="1";
document.form1.LINE_ID.value=LINE_ID;
document.form1.submit();
}
function delete_line(LINE_ID)
{
msg='确认要删除该明细?';
if(window.confirm(msg))
{
document.form1.OP.value="2";
document.form1.LINE_ID.value=LINE_ID;
document.form1.submit();
}
}
</script>
</head>
<body class="bodycolor" topmargin="5">
<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
<tr>
<td class="Big"><img src="/images/notify_new.gif" align="absmiddle"><span class="big3"> 新建采购订单</span>
</td>
</tr>
</table>
<br>
<?
if($ORDER_ID!="")
{
$query="select * from SUPPLY_ORDER where ORDER_ID='$ORDER_ID'";
$cursor= exequery($connection,$query);
if($ROW=mysql_fetch_array($cursor))
{
$ORDER_NO1=$ROW["ORDER_NO"];
$ORDER_NAME1=$ROW["ORDER_NAME"];
$ORDER_TYPE1=$ROW["ORDER_TYPE"];
$ORDER_MEMO1=$ROW["ORDER_MEMO"];
$PROVIDER_ID1=$ROW["PROVIDER_ID"];
$LINKMAN_ID1=$ROW["LINKMAN_ID"];
$CREATOR1=$ROW["CREATOR"];
$RECIVER1=$ROW["RECIVER"];
$CREATE_DATE1=$ROW["CREATE_DATE"];
$BEGIN_DATE1=$ROW["BEGIN_DATE"];
$ORDER_PRINT1=$ROW["ORDER_PRINT"];
$REMARK1=$ROW["REMARK"];
$USERDEF11=$ROW["USERDEF1"];
$USERDEF21=$ROW["USERDEF2"];
$USERDEF31=$ROW["USERDEF3"];
$USERDEF41=$ROW["USERDEF4"];
$USERDEF51=$ROW["USERDEF5"];
}
$query2="select PROVIDER_NAME from PROVIDER where PROVIDER_ID='$PROVIDER_ID1'";
$cursor2 = exequery($connection, $query2);
if($ROW=mysql_fetch_array($cursor2))
$PROVIDER_NAME1=$ROW["PROVIDER_NAME"];
$query2="select USER_NAME from USER where USER_ID='$CREATOR1'";
$cursor2 = exequery($connection, $query2);
if($ROW=mysql_fetch_array($cursor2))
$CREATOR_NAME1=$ROW["USER_NAME"];
$query2="select USER_NAME from USER where USER_ID='$RECIVER1'";
$cursor2 = exequery($connection, $query2);
if($ROW=mysql_fetch_array($cursor2))
$RECIVER_NAME1=$ROW["USER_NAME"];
}
?>
<table border="0" cellspacing="1" width="450" class="small" bgcolor="#000000" cellpadding="3" align="center" >
<form action="add.php" enctype="multipart/form-data" method="post" name="form1" onsubmit="return CheckForm();">
<tr>
<td nowrap class="TableHeader" colspan="4" align="left">
采购订单基本信息:
</td>
</tr>
<tr>
<td nowrap class="TableData">供应商名称: </td>
<td class="TableData">
<input type="hidden" name="PROVIDER_ID" value="<?=$PROVIDER_ID1?>">
<input type="text" name="PROVIDER_NAME" class="BigStatic" size="15" maxlength="100" readonly value="<?=$PROVIDER_NAME1?>">
<input type="button" value="选 择" class="SmallButton" onClick="LoadWindow2()" title="选择供应商" name="button">
</td>
<td nowrap class="TableData">订单编号: </td>
<td nowrap class="TableData">
<input type="text" name="ORDER_NO" class="BigInput" size="15" maxlength="100" value="<?=$ORDER_NO1?>">
</td>
</tr>
<tr>
<td nowrap class="TableData">订单类型: </td>
<td nowrap class="TableData" colspan="3">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -