📄 moneysp.asp
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" -->
<%if request.servervariables("Request_Method")="POST" then
ipaddress=request.servervariables("remote_addr")
applytime=CDate(now())
set rs=server.createobject("adodb.recordset")
sql="select * from newwork where id="&Clng(request("nwid"))
rs.open sql,conn,1,1
peoplelist=rs("userlist")
rs.close
if peoplelist<>"" then
postion=instr(peoplelist,";")
if postion=len(peoplelist) then
nextpeople=left(peoplelist,postion-1)
peoplelist=""
else
nextpeople=left(peoplelist,postion-1)
peoplelist=mid(peoplelist,postion+1)
end if
else
nextpeople=""
end if
sql="select * from applygz where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("flowid")=Clng(request("flowid"))
rs("handlename")=session("username")
rs("handleid")=session("uid")
rs("nextid")=nextpeople
rs("handletime")=applytime
rs("ipaddress")=ipaddress
rs("handletype")="4"
rs("remark")=request("yijian")
rs.update
rs.close
if request("choose")="1" then
sql="select * from applymoney where id="&Clng(request("flowid"))
rs.open sql,conn,1,3
rs("yijian")="<font color='blue'>"&rs("yijian")&request("yijian")&session("username")&" "&date()&"</font>"&"<br>"
if nextpeople="" then
rs("donetime")=applytime
rs("status")="1"
end if
rs.update
title=rs("title")
applyname=rs("applyname")
applyid=rs("applyid")
rs.close
if nextpeople="" then
sql="select * from mail where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("topeopleid")=applyid
rs("title")="("&title&")资金申请通过!"
rs("text")="您的资金申请已经审批通过,<a href='readmoney.asp?flowid="&Clng(request("flowid"))&"' class='readsp'>查看详细内容</a>"
rs("mailtime")=applytime
rs("senderid")=session("uid")
rs("sendername")=session("username")
rs("ipaddress")=ipaddress
rs.update
rs.close
else
sql="select * from newwork where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("userid")=nextpeople
rs("userlist")=peoplelist
rs("title")=title
rs("typed")="资金申请"
rs("url")="moneysp.asp"
rs("baseid")=Clng(request("flowid"))
rs("applytime")=applytime
rs.update
rs.close
end if
else
sql="select * from applymoney where id="&Clng(request("flowid"))
rs.open sql,conn,1,3
rs("yijian")="<font color='red'>"&rs("yijian")&request("yijian")&session("username")&" "&date()&"</font>"
rs("donetime")=applytime
rs("status")="2"
rs.update
title=rs("title")
applyid=rs("applyid")
rs.close
sql="select * from mail where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("topeopleid")=applyid
rs("title")="("&title&")资金申请被拒绝!"
rs("text")="您的资金申请拒绝通过!<a href='readmoney.asp?flowid="&Clng(request("flowid"))&"' class='readsp'>查看详细内容</a>"
rs("mailtime")=applytime
rs("senderid")=session("uid")
rs("sendername")=session("username")
rs("ipaddress")=ipaddress
rs.update
rs.close
end if
sql="select donetime,status from newwork where id="&Clng(request("nwid"))
rs.open sql,conn,1,3
rs("donetime")=applytime
rs("status")="1"
rs.update
rs.close
response.write("<script language=javascript>alert('提交审批意见成功!')</script>")
response.write("<script>document.location='right.asp'</script>")
response.end
end if
%>
<html>
<head>
<title>资金审批单</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" src="apply.js"></script>
<link rel="stylesheet" href="apply.css" type="text/css">
</head>
<!--#include file="checkuser.asp"-->
<%set rs=server.createobject("adodb.recordset")
sql="select * from applymoney where id="&Clng(request("flowid"))
rs.open sql,conn,1,1
if rs.eof then
response.redirect "error.htm"
response.end
end if
%>
<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false">
<form name="form" method="POST" action="">
<table cellpadding="0" cellspacing="0" width="100%" class=main-table>
<tr valign="top" align="center" >
<td colspan="3">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" class="title" align="center"> <img src="images/moneysp.gif"></td>
</tr>
</table>
<table cellpadding="2" cellspacing="1" width="90%" height="250" bgcolor="#555555">
<tr valign="middle" bgcolor="#f0f0f0" >
<td width="15%" height="35">
<div align="center">申请名称:</div>
</td>
<td height="35" colspan="3" class="applygz"><%=rs("title")%> </td>
</tr>
<tr valign="middle" bgcolor="#f0f0f0" >
<td width="15%" height="35" align="left" bgcolor="#f0f0f0">
<div align="center">申请金额:</div>
</td>
<td height="35" class="applygz" width="33%"><%=rs("amount")%></td>
<td height="35" bgcolor="#f0f0f0" width="15%">
<div align="center">申请时间:</div>
</td>
<td height="35" class="applygz" width="37%"><%=rs("applyday")%></td>
</tr>
<tr bgcolor="#f0f0f0">
<td height="35" width="15%" valign="middle">
<div align="center"> 详细用途: </div>
</td>
<td colspan="3" height="35" valign="middle" class="applygz"> <%=rs("reason")%>
</td>
</tr>
<tr bgcolor="#f0f0f0">
<td height="35" width="15%">
<div align="center">申 请 人:</div>
</td>
<td height="35" class="applygz" width="33%"><font color="black"><%=rs("applyname")%></font></td>
<td height="35" width="15%">
<div align="center">申请部门:</div>
</td>
<td height="35" class="applygz" width="37%"><font color="black"><%=rs("dep")%></font>
</td>
</tr>
<tr bgcolor="#f0f0f0">
<td height="35" width="15%">
<div align="center">审批结果:</div>
</td>
<td height="35" colspan="3" class="applygz"><%=rs("yijian")%> </td>
</tr>
<tr bgcolor="f0f0f0">
<td width="15%" height="100" bgcolor="f0f0f0"><div align="center">审批意见:</div></td>
<td width="84%" height="100" bgcolor="f0f0f0" colspan="4"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="31" bgcolor="f0f0f0" class="applygz">
<input type="radio" name="radio" value="radiobutton" checked onClick="zjspwriteyes()">
批准资金申请
<input type="radio" name="radio" value="radiobutton" onClick="zjspwriteno()">
拒绝资金申请 </td>
</tr>
<tr>
<td bgcolor="ffffff"><textarea name="yijian" style="width:100%;height:100%;" class="14textarea">同意资金申请! </textarea></td>
</tr>
</table></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="47%" height="40" align="right">
<input type="image" name="send" value=" 提 交 " onClick="return checkbxsp();return false;" src="images/okgif.gif" alt="确定">
</td>
<td width="7%" height="40"> </td>
<td width="46%" height="40">
<input type="image" name="send2" value=" 返 回 " onClick="history.go(-1);return false;" src="images/fanhuigif.gif" alt="返回">
<input type="hidden" name="choose" value="1">
<input type="hidden" name="flowid" value="<%=Clng(request("flowid"))%>">
<input type="hidden" name="nwid" value="<%=Clng(request("nwid"))%>">
</td>
</tr>
</table>
</form>
<!--#include file="close.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -