⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 applyholiday.asp

📁 功能非常强大的一款办公自动化软件原代码,其中的文档签收功能特别实用.不相信下下来看下.
💻 ASP
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" --> 

<html>
<head>
<title>休假申请</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="apply.css" type="text/css">
</head>

<body text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false">
<%if request.servervariables("Request_Method")="POST" then
ipaddress=request.servervariables("remote_addr")
applytime=CDate(now())
set rs=server.createobject("adodb.recordset")
sql="select * from applyholiday where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("title")=request("title")
rs("timestart")=request("timestart")
rs("timeend")=request("timeend")
rs("workpeople")=request("hiddenselect")
rs("day")=request("day")
rs("reason")=request("reason")
rs("applyname")=session("username")
rs("applyid")=session("uid")
rs("dep")=session("dep")
rs("applytime")=applytime
rs("ipaddress")=ipaddress
rs.update
if rs.eof then
response.redirect "error.htm"
response.end
end if
applyid=rs("id")
rs.close
peoplelist=request("hiddenselect")
 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
sql="select * from applygz where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("flowid")=applyid
rs("handlename")=session("username")
rs("handleid")=session("uid")
rs("nextid")=nextpeople
rs("title")="休假申请"&request("title")
rs("handletime")=applytime
rs("ipaddress")=ipaddress
rs("handletype")="2"
rs.update
rs.close
 
sql="select * from newwork where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("userid")=nextpeople
rs("userlist")=peoplelist
rs("title")=request("title")
rs("typed")="休假申请"
rs("url")="xiujiasp.asp"
rs("baseid")=applyid
rs("applytime")=applytime
rs.update
rs.close
response.write("<script language=javascript>alert('提交申请成功!')</script>")
response.write("<script>document.location='shenqing.asp'</script>")
response.end
end if
%>
<div align="center">
  <form name="form" method="post" action="">
    <table cellpadding="0" cellspacing="0" width="100%" class=main-table height="60">
      <tr> 
        <td valign="top" height="49"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
             <td width="60" align="center">&nbsp; </td>
            <td height="45" align="center"><img src="images/applyholiday.gif"></td>
            
            </tr>
          </table>
          <table cellpadding="1" cellspacing="1" width="100%" height="250">
            <script language="JavaScript" src="apply.js"></script>

            <tr valign="middle" > 
              <td width="60"> </td>
              <td valign="top"> 
                <table width="100%" border="0" cellspacing="0" cellpadding="0" height="40">
                  <tr> 
                    <td width="80">休假名称:</td>
                    <td> 
                      <input type="text" class="noinput"  name="title" size="72" tableindex=1 maxlength="45" title="请输入休假名称!">
                    </td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr valign="middle" > 
                    <td width="80" height="40" align="left">始休日期:</td>
                    <td height="40" width="200"> 
                      <input class="noinput" type="text" readonly title="点击选择始休日期!"  name="timestart" size="25" onClick="setday(timestart,document.all.timestart)" style="cursor:hand;" >
                    </td>
                    <td height="40" width="80" align="center">止休日期:</td>
                    <td height="40"> 
                      <input class="noinput" type="text" readonly title="点击选择止休日期!"  name="timeend" size="25" onClick="setday(timeend,document.all.timeend)" style="cursor:hand" >
                    </td>
                  </tr>
                  <tr valign="middle" > 
                    <td width="80" height="40" align="left">休假天数:</td>
                    <td height="40" width="200"> 
                      <input class="noinput" type="text" title="点击输入休假天数!"  name="day" size="25" maxlength="15" >
                    </td>
                    <td height="40" align="center" width="80">审批领导:</td>
                    <td height="40"> 
                      <input type="text" readonly title="从右边选择审批领导!"  name="username" size="25" class="noinput" onClick="javascript:alert('从右边选择审批领导')">
                    </td>
                  </tr>
                  <tr> 
                    <td height="40" width="80" align="left">申 请 人:</td>
                    <td height="40" width="200"> 
                      <input class="nobinput" type="text" readonly value=<%=session("username")%> size="25" name="text">
                    </td>
                    <td height="40" width="80"> 
                      <div align="center">申请部门:</div>
                    </td>
                    <td height="40"> 
                      <input class="nobinput" type="text" readonly value=<%=session("dep")%> name="applydep" size="25">
                    </td>
                  </tr>
                </table>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" height="120">
                  <tr> 
                    <td width="80" valign="top">休假原因:</td>
                    <td valign="top"> 
                      <textarea class="body1" name="reason" rows="8" cols="70"></textarea>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" height="40">
            <tr> 
              <td align="right" width="50%"> 
                <input type="image"  class="f0input" value="提交申请" name="submit" onClick="return checkholiday();return false;" src="images/applygif.gif" alt="提交申请">
              </td>
              <td align="center" width="60"></td>
              <td align="left"> 
                <input  type="image" class="f0input" name="send" value=" 返 回 " onClick="history.go(-1);return false;" src="images/fanhuigif.gif" alt="返回">
              </td>
            </tr>
          </table>
        </td>
        <td width="200" valign="top" height="280"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0" height="390" bgcolor="ECF2FC">
            <tr> 
              <td class="linetd" valign="top"> 
                <!--#include file="turnmore.asp"-->
              </td>
              <td width="4" background="images/emailr.gif" > <img src="images/emailr.gif"> 
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr > 
        <td height="10"> </td>
        <td height="10"> 
          <input type="hidden" name="hiddenselect">
        </td>
      </tr>
    </table>
  </form>
  <script language=javascript src="calendar.js">

</script>
</div>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -