Ejemplo n.º 1
0
function sellonefahuo_add($fields, $i)
{
    print "<script type=\"text/javascript\" language=\"javascript\" src=\"" . ROOT_DIR . "general/ERP/Enginee/jquery/jquery.js\"></script>";
    print "<script>\n\$(document).ready(function(){\n\t if(\$(\"#fahuostate\").attr('checked')==true)\n\t\t \$(\"#fahuoarea\").show();\n\t else\n\t\t \$(\"#fahuoarea\").hide();\n\t \n\t if(\$(\"#kaipiaostate\").attr('checked')==true)\n\t\t \$(\"#kaipiaoarea\").show();\n\t else\n\t\t \$(\"#kaipiaoarea\").hide();\n\t\t\n\t \$(\"#fahuostate\").click(function(){\n\t  \tif(\$(this).attr('checked')==true)\n\t    \t\$(\"#fahuoarea\").slideDown('slow');\n\t \telse\n\t  \t\t\$(\"#fahuoarea\").slideUp('slow');\n\t });\n\t  \t\t\n\t  \$(\"#kaipiaostate\").click(function(){\n\t  \tif(\$(this).attr('checked')==true)\n\t    \t\$(\"#kaipiaoarea\").slideDown('slow');\n\t \telse\n\t  \t\t\$(\"#kaipiaoarea\").slideUp('slow');\n\t });\n\t \n\t \$(\"form\").submit(function(){\n\t \n\t \tif(\$(\"input[name=supplyid]\").val()=='')\n\t \t{\n\t \t\t\talert('必须选择一个客户');\n\t \t\t\treturn false;\n\t \t}\n\t \tif(\$(\"input[name=storeid]\").val()=='')\n\t \t{\n\t \t\t\talert('必须选择一个仓库');\n\t \t\t\treturn false;\n\t \t}\t\n\t \tif(\$(\"#fahuostate\").attr('checked')==true)\n\t \t{\n\t \t\tif(\$(\"#address\").val()=='')\n\t \t\t{\n\t \t\t\talert('地址不能为空');\n\t \t\t\treturn false;\n\t \t\t}\n\t \t\tif(\$(\"#mobile\").val()=='')\n\t \t\t{\n\t \t\t\talert('电话不能为空');\n\t \t\t\treturn false;\n\t \t\t}\n\t \t}\n\t \tif(\$(\"#kaipiaostate\").attr('checked')==true)\n\t \t{\n\t \t\tif(\$(\"#fapiaoneirong\").val()=='')\n\t \t\t{\n\t \t\t\talert('发票内容不能为空');\n\t \t\t\treturn false;\n\t \t\t}\n\t \t}\n\t \treturn true;\n\t });\n\t\n\t  \n});\n</script>";
    print "\n<TR><TD class=TableContent noWrap>发货:</TD>\n<TD class=TableContent colspan=2>\n<input type='Checkbox' name='fahuostate' id='fahuostate' " . ($fields['value']['fahuostate'] == 0 ? "checked" : "") . " value='0'>\n</td></TR>\n<tr><td colspan=3 class=TableData>\n<div id='fahuoarea' >\n<table class=TableBlock width='100%' >\n\n<TR>\n<TD class=TableData noWrap width=20%>地址:</TD>\n<TD class=TableData noWrap colspan='2'><INPUT type='text' title=''\n\t\t\tonkeydown='if(event.keyCode==13)event.keyCode=9' accesskey='16' class='SmallInput'  maxLength=200 size='30'\n\t\t\tname='address' id='address' value='" . $fields['value']['address'] . "'  >&nbsp;\n必填</TD></TR>\n<TR>\n<TD class=TableData noWrap width=20%>电话:</TD>\n<TD class=TableData noWrap colspan='2'><INPUT type='text' title=''\n\t\t\tonkeydown='if(event.keyCode==13)event.keyCode=9' accesskey='17' class='SmallInput'  maxLength=200 size='30'\n\t\t\tname='mobile' id='mobile' value='" . $fields['value']['mobile'] . "'  >&nbsp;\n必填</TD></TR>\n<TR>\n<TD class=TableData noWrap width=20%>发货单号:</TD>\n<TD class=TableData noWrap colspan=2><INPUT type='text' title=''\n\t\t\tonkeydown='if(event.keyCode==13)event.keyCode=9' accesskey='10' class='SmallInput'  maxLength=200 size='30'\n\t\t\tname='fahuodan' value=''  >&nbsp;\n</TD></TR>\n<TR>\n<TD class=TableData noWrap width=20%>发货运费:</TD>\n<TD class=TableData noWrap colspan='2'><INPUT type='text' title=''\n\t\t\tonkeydown='if(event.keyCode==13)event.keyCode=9' accesskey='11' class='SmallInput'  maxLength=200 size='30'\n\t\t\tname='fahuoyunfei' value='' onkeypress=\"check_input_num('MONEY')\" onblur=\"this.value=Math.round(this.value*100)/100;\">&nbsp;\n必须为货币格式</TD></TR>\n<TR>\n<TD class=TableData noWrap width=20%>运费结算:</TD><TD class=TableData noWrap colspan='2'>\n";
    print_select_single_select2('yunfeitype', $fields['value']['yunfeitype'], 'yunfeitype', 'id', 'name');
    print "</td></tr>\n<TR><TD class=TableData noWrap>发货方式:</TD>\n<TD class=TableData noWrap colspan='2'>";
    print_select_single_select2('fahuotype', $fields['value']['fahuotype'], 'fahuotype', 'id', 'name');
    print "</TD></TR>\n\n<script Language='JavaScript'>\nfunction clear_zuiwanfahuodate()\n{\n  document.form1.zuiwanfahuodate.value='';\n}\n</script><TR><TD class=TableData noWrap width=20%>最晚发货日期:</TD>\n<TD class=TableData colspan='2'><INPUT class=SmallInput maxLength=20  name=zuiwanfahuodate value='" . date("Y-m-d") . "' title='' onkeydown='if(event.keyCode==13)event.keyCode=9' >\n<input type='button'  title=''  value='选择' class='SmallButton' onclick=\"td_calendar('../../Framework/sms_index/calendar_begin.php?datetime=zuiwanfahuodate');\" title='选择' name='button'>&nbsp;&nbsp;<input type='button'  title=''  value='清除' class='SmallButton' onClick='clear_zuiwanfahuodate()' title='清除' name='button'></TD></TR>\n</table></div></td></tr>";
    print "\n<TR><TD class=TableContent noWrap>开票:</TD>\n<TD class=TableContent colspan=2>\n<input type='Checkbox' name='kaipiaostate' id='kaipiaostate' " . ($fields['value']['kaipiaostate'] == 0 ? "checked" : "") . " value='0'>\n</td></TR>\n<tr><td colspan=3 class=TableData>\n<div id='kaipiaoarea' >\n<table class=TableBlock width='100%' >\n<TR>\n<TD class=TableData noWrap width=20%>发票内容:</TD>\n<TD class=TableData noWrap colspan=2><INPUT type='text' title=''\n\t\t\tonkeydown=\"if(event.keyCode==13)event.keyCode=9\" accesskey='6' class=\"SmallInput\"  maxLength=200 size=30\n\t\t\tname='fapiaoneirong' id='fapiaoneirong' value='" . $fields['value']['fapiaoneirong'] . "'  >&nbsp;\n必填</TD></TR>\n<TR>\n<TD class=TableData noWrap width=20%>发票号:</TD>\n<TD class=TableData noWrap colspan=2><INPUT type='text' title=''\n\t\t\tonkeydown=\"if(event.keyCode==13)event.keyCode=9\" accesskey='7' class='SmallInput'  maxLength=200 size=30\n\t\t\tname='fapiaono' value='" . $fields['value']['fapiaono'] . "'  >&nbsp;\n</TD></TR>\n<TR><TD class=TableData noWrap>发票类型:</TD>\n<TD class=TableData noWrap colspan=2>";
    print_select_single_select2('fapiaotype', $fields['value']['fapiaotype'], 'crm_piaoju_type', '编号', '票据类型');
    print "</TD></TR></table></div></td></tr>";
}
           <input   type="text" name="factpayamt" value="<?php 
echo $factpayamt;
?>
" size="15"  maxlength="50" onkeypress="check_input_num('MONEY')" onfocus="init_value('factpayamt')" onblur="check_value('factpayamt')" class="SmallInput">

       </td>

   </tr>

   <tr>
       <td nowrap width="100" align="right" class="TableContent"><b>入库类型&nbsp;</b></td>
       <td nowrap align="left" class="TableData">

	<?php 
print_select_single_select2("intype", '03', "requiretype", "id", "name", $intype);
?>
       </td>

       <td nowrap width="100" align="right" class="TableContent"><b>已付款金额&nbsp;</b></td>
       <td nowrap align="left" class="TableData">

           <input   type="text" name="payamt" value="<?php 
echo $payamt;
?>
" size="15"  maxlength="50" onkeypress="check_input_num('MONEY')" onfocus="init_value('payamt')" onblur="check_value('payamt')" class="SmallInput">

       </td>

   </tr>
Ejemplo n.º 3
0
       <td nowrap align="left" class="TableData">

           <input  readonly type="text" name="noFaxAmt" value="" size="10"  maxlength="50" onkeypress="check_input_num('MONEY')" onfocus="init_value('noFaxAmt')" onblur="check_value('noFaxAmt')" class="SmallInput">

       </td>

   </tr>



   <tr>
       <td nowrap width="100" align="right" class="TableContent"><b>收款方式&nbsp;</b></td>
       <td nowrap align="left" class="TableData">

<?php 
print_select_single_select2("paymentid", 'xj', "payment", "code", "name", $paymentid);
?>
       </td>

       <td nowrap width="100" align="right" class="TableContent"><b>销售业务员&nbsp;</b></td>
       <td nowrap align="left" class="TableData">

          <input   type="text" name="sellman_NAME" value="<?php 
echo returntablefield("user", "USER_NAME", $buyman, "NICK_NAME");
?>
" size="15"  maxlength="50"   onclick="query_user('sellman');"  class="SmallInput">
		   <input   type="hidden" name="sellman" value="<?php 
echo $sellman;
?>
"size="15"  maxlength="50">
Ejemplo n.º 4
0
</script><TR><TD class=TableContent noWrap width=20%>付款时间:</TD>
<TD class=TableData colspan="2"><INPUT class=SmallInput maxLength=20  name=paydate value="2011-11-07" title='' onkeydown="if(event.keyCode==13)event.keyCode=9" >
<input type="button"  title=''  value="选择" class="SmallButton" onclick="td_calendar('../../Framework/sms_index/calendar_begin.php?datetime=paydate');" title="选择" name="button">&nbsp;&nbsp;<input type="button"  title=''  value="清除" class="SmallButton" onClick="clear_paydate()" title="清除" name="button">必填</TD></TR>
<TR>
<TD class=TableData noWrap width=20%>金额:</TD>
<input type=hidden name='jine_原始值' value=''>
<TD class=TableData noWrap colspan="2"><INPUT type="text" title=''
			class='SmallStatic'  name='jine' value="<?php 
echo $jine;
?>
"  readonly>&nbsp;
<BR>必填 </TD></TR>
<TR><TD class=TableData noWrap>付款账户:</TD>
<TD class=TableData noWrap colspan="2">
<?php 
print_select_single_select2('accountid', '', 'bank', 'rowid', 'bankname');
?>
</TD></TR>
<TR>
<TD class=TableData noWrap width=20%>备注:</TD>
<TD class=TableData noWrap colspan="2"><TEXTAREA class=BigInput name=beizhu  title='' wrap=yes rows=5 cols=40  ></TEXTAREA>&nbsp;
</TD></TR>
<input type=hidden class=SmallInput name=createman value="<?php 
echo $_SESSION['LOGIN_USER_ID'];
?>
">
<input type=hidden class=SmallInput name=createtime value="<?php 
echo date("Y-m-d H:i:s");
?>
">
<input type=hidden class=SmallInput name=guanlianplanid value="<?php 
Ejemplo n.º 5
0
          <input type="text" name="tabledate" value="<?php 
echo date("Y-m-d");
?>
" readonly  class="SmallStatic">
          <input type="button" name="b1" value="浏览" class="SmallButton" onclick="query_date('tabledate');">
<b>*</b>
       </td>

   </tr>

   <tr>
       <td nowrap width="100" align="right" class="TableContent"><b>需求部门&nbsp;</b></td>
       <td nowrap align="left" class="TableData">
<?php 
print_select_single_select2("stockid", '', "department", "DEPT_ID", "DEPT_NAME", $stockid);
?>
<b>*</b>
       </td>

       <td nowrap width="100" align="right" class="TableContent"><b>订单金额&nbsp;</b></td>
       <td nowrap align="left" class="TableData">

           <input  readonly type="text" name="amt" value="<?php 
echo $amt;
?>
" size="15"  maxlength="50" onkeypress="check_input_num('MONEY')" onfocus="init_value('amt')" onblur="check_value('amt')" class="SmallInput">

       </td>

   </tr>
       <td nowrap width="100" align="right" class="TableContent"><b>支票日期&nbsp;</b></td>
       <td nowrap align="left" class="TableData">

          <input type="text" name="checkdate" value="<?php 
echo $checkdate;
?>
" readonly  class="SmallStatic">
          <input type="button" name="b1" value="浏览" class="SmallButton" onclick="query_date('checkdate');">

       </td>

       <td nowrap width="100" align="right" class="TableContent"><b>货币&nbsp;</b></td>
       <td nowrap align="left" class="TableData">

	<?php 
print_select_single_select2("currency", '', "currency", "currid", "currname", $currency);
?>
<b>*</b>
       </td>

   </tr>

   <tr>
       <td nowrap width="100" align="right" class="TableContent"><b>总金额&nbsp;</b></td>
       <td nowrap align="left" class="TableData">

           <input   type="text" name="paymoney" size="10"  maxlength="50" onkeypress="check_input_num('MONEY')" value="<?php 
echo $paymoney;
?>
" onfocus="init_value('paymoney')" onblur="check_value('paymoney')" class="SmallInput">
<b>*</b>
       <td nowrap width="15%" align="right" class="TableContent"><b>付款方式&nbsp;</b></td>
       <td nowrap width="35%" align="left" class="TableData">

	<?php 
print_select_single_select2("payment", '', "payment", "code", "name", $sendtype);
?>
       </td>

   </tr>

   <tr>
       <td nowrap width="15%" align="right" class="TableContent"><b>维修人员&nbsp;</b></td>
       <td nowrap width="35%" align="left" class="TableData">

	<?php 
print_select_single_select2("serviceman", '', "serviceman", "code", "name", $sendtype);
?>

       </td>

       <td nowrap width="15%" align="right" class="TableContent"><b>销售业务员&nbsp;</b></td>
       <td nowrap width="35%" align="left" class="TableData">

		 <input   type="text" name="sellman_NAME" value="<?php 
echo returntablefield("user", "USER_NAME", $sellman, "NICK_NAME");
?>
" size="15"  maxlength="50"   onclick="query_user('sellman');"  class="SmallInput">
		   <input   type="hidden" name="sellman" value="<?php 
echo $sellman;
?>
" size="15"  maxlength="50">
Ejemplo n.º 8
0
<TR><TD colspan=9 class=TableHeader height=30>&nbsp;计划安排审核</TD></TR>
</table>
<div id="shoppingcart">
<form name="form1" method="post" action="workplanmain_newai.php?action=shenhe&id=<?php 
echo $id;
?>
">
<table align=center class=TableBlock width=100% border=0 id="table1" >
<tr ><td align=center class=TableContent>编号</td><td class=TableLine2><?php 
echo $id;
?>
</td></tr>
<tr ><td align=center class=TableContent>主题</td><td class=TableLine2><?php 
echo $zhuti;
?>
 </td></tr>
<tr ><td align=center class=TableContent>审核结果</td><td class=TableLine2><?php 
print_select_single_select2('shenchastate', '', 'workplanshenhe', 'id', 'name');
?>
</td></tr>
<tr ><td align=center class=TableContent>审核批示</td><td class=TableLine2>
<TEXTAREA class=BigInput name=shenhepishi  title='' wrap=yes rows=5 cols=40  ></TEXTAREA>
</td></tr>

</table>
</div>
<p align=center><input type=submit value=" 保存 " class="SmallButton" >
&nbsp;&nbsp;<input type=button value=" 返回 " class="SmallButton" onclick="location='workplanmain_newai.php';"></p>
</form>
</body>
</html>
           <input   type="text" name="factpayamt" value="<?php 
echo $factpayamt;
?>
" size="15"  maxlength="50" onkeypress="check_input_num('MONEY')" onfocus="init_value('factpayamt')" onblur="check_value('factpayamt')" class="SmallInput">

       </td>

   </tr>

   <tr>
       <td nowrap width="15%" align="right" class="TableContent"><b>计划类型&nbsp;</b></td>
       <td nowrap width="35%" align="left" class="TableData">

    <?php 
print_select_single_select2("intype", '01', "intype", "id", "name", $intype);
?>

       </td>

       <td nowrap width="15%" align="right" class="TableContent"><b>已收定金&nbsp;</b></td>
       <td nowrap width="35%" align="left" class="TableData">

           <input   type="text" name="payamt" value="<?php 
echo $payamt;
?>
" size="15"  value="<?php 
echo $payamt;
?>
" maxlength="50" onkeypress="check_input_num('MONEY')" onfocus="init_value('payamt')" onblur="check_value('payamt')" class="SmallInput">