📄 fundinvoice.asp
字号:
<!--#include file="../inc/conn.asp"-->
<%
FunCode="F207"
session("title")="客户发票开具"
session("headline")="首页 -> 注册系统 -> 客户发票开具"
%>
<!--#include file="../inc/head2.asp"-->
<%
if request("act")="update" then
call update()
else
call list()
end if
sub Update()
username=session("username")
subject=request("subject")
fundamount=request("fundamount")
funddate=request("funddate")
fundtype=request("fundtype")
purpose=request("purpose")
address=request("address")
postcode=request("postcode")
receiver=request("receiver")
telephoneno=request("telephoneno")
'需要增加字段校验信息
set rs=server.createobject("adodb.recordset")
sql="select * from invoice"
rs.open sql,conn,1,3
rs.addnew
rs("username")=username
rs("subject")=subject
rs("fundamount")=fundamount
rs("funddate")=funddate
rs("fundtype")=fundtype
rs("purpose")=purpose
rs("address")=address
rs("postcode")=postcode
rs("receiver")=receiver
rs("telephoneno")=telephoneno
rs("regtime")=date()
rs("status")="正在确认"
rs("handle")="未受理"
rs.update
rs.close
set rs=nothing
mesg="发票开具提交成功,等待专员确认"
session("mesg")=mesg
Response.Redirect "../result.asp"
end sub
sub List()
%>
<br>
<img src="../images/dotdb.gif" width="10" height="10"> 说明: <br>
<br>
1、我司的客户,凡已汇出款项而未开发票者,均可要求我司开具; <br>
2、欲开具发票的客户请务必详细填写以下资料;<br>
3、若我司已收到您的真实款项,会在两个工作日之内,按您以下填写的资料将发票以挂号信形式寄出。 <br>
<br>
<form method='POST' action='fundinvoice.asp?act=update' name='fundinvoice' onsubmit='return check_input()'>
<br>
<br>
<table border=1 bordercolor=#3770A9 bordercolordark=#ffffff cellpadding=3
cellspacing=0 width=76% class="size09" align="center">
<tr>
<td colspan="2" bgcolor="#efefef" height="28">
<div align="center" class="color01">客户发票开具详细资料</div>
</td>
</tr>
<tbody>
<tr>
<td width="138" height="28">
<div align="center">发票抬头:</div>
</td>
<td
style="LINE-HEIGHT: 14pt" height="28">
<input type='text' name='subject' size='40' class="form">
</td>
</tr>
<tr>
<td width="138" height="28">
<div align="center">发票金额: </div>
</td>
<td
style="LINE-HEIGHT: 14pt" height="28">
<input type='text' name='fundamount' size='20' class="form">
</td>
</tr>
<tr>
<td width="138" height="28">
<div align="center">汇出日期:</div>
</td>
<td
style="LINE-HEIGHT: 14pt" height="28">
<input type='text' name='funddate' size='20' class="form">
</td>
</tr>
<tr>
<td width="138" height="28">
<div align="center">汇出方式:</div>
</td>
<td
style="LINE-HEIGHT: 14pt" height="28">
<input type='radio' name='fundtype' value='银行转帐/电汇' checked>
银行转帐/电汇
<input type='radio' name='fundtype' value='邮政汇款'>
邮政汇款</td>
</tr>
<tr>
<td width="138" height="28">
<div align="center">发票内容:<br>
(请勿超过120个字)</div>
</td>
<td
style="LINE-HEIGHT: 14pt" height="28">
<textarea name='purpose' rows='6' cols='40'>
请填写产品类别、数量及名称。如:
通用网址一个:中国。
国际域名二个:abc.com/abc.net。
100M特惠套餐一套:abc.com。
续费域名/主机:abc.com。
代理预付款:代理编号/会员名等等。
</textarea>
</td>
</tr>
<tr>
<td width="138" height="35">
<div align="center">邮寄地址:</div>
</td>
<td
style="LINE-HEIGHT: 14pt" height="35">
<input type='text' name='address' size='40' class="form">
</td>
</tr>
<tr>
<td width="138" height="28">
<div align="center">邮政编码:</div>
</td>
<td
style="LINE-HEIGHT: 14pt" height="28">
<input type='text' name='postcode' size='20' class="form">
</td>
</tr>
<tr>
<td width="138" height="28">
<div align="center">收 件 人: </div>
</td>
<td
style="LINE-HEIGHT: 14pt" height="28">
<input type='text' name='receiver' size='20' class="form">
</td>
</tr>
<tr>
<td width="138" height="28">
<div align="center">联系电话:</div>
</td>
<td
style="LINE-HEIGHT: 14pt" height="28">
<input type='text' name='telephoneno' size='20' class="form">
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#efefef" height="30">
<div align="center">
<input type="submit" value="确 定" name="B1" style="text-align: center">
</div>
</td>
</tr>
</tbody>
</table>
<br>
<br>
</form>
<br>
<script language='JavaScript'>
<!--
function check_input()
{
if (document.fundinvoice.subject.value=="")
{
alert('发票抬头不能为空!');
document.fundinvoice.subject.focus();
return false;
}
if (document.fundinvoice.purpose.value=="")
{
alert('汇款用途不能为空!');
document.fundinvoice.purpose.focus();
return false;
}
if (document.fundinvoice.fundamount.value=="")
{
alert('金额不能为空!');
document.fundinvoice.fundamount.focus();
return false;
}
if (isNaN(document.fundinvoice.fundamount.value))
{
alert('金额只能为数字!');
document.fundinvoice.fundamount.focus();
return false;
}
return true;
}
//-->
</script>
<%end sub%>
<!--#include file="../inc/bottom2.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -