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

📄 signature.asp

📁 功能非常强大的一款办公自动化软件原代码,其中的文档签收功能特别实用.不相信下下来看下.
💻 ASP
字号:
<!--#include file="check.asp"-->
<!--#include file="checkpower.asp"-->
<!--#INCLUDE FILE="connect.asp" --> 
<html>
<head>
<title>签名管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language=javascript src="apply.js"></script>
<script language=javascript>
function delsignature(td) {
   if(confirm("您确定要删除吗?"))
	   { 	   
	   document.form.choosedel.value=td
			document.form.submit()
		  	 }
}
function addsign() {
if(document.form.hiddenselect.value=="") {
alert("请选择添加签名者")
document.form.username.focus()
return false;
}
if(document.form.file.value=="") {
alert("请选择签名文件位置")
document.form.file.focus()
return false;
}
    if(document.form.file.value!="") {     //判断文件路径是否正确
   var isValid=1
   var temp=document.form.file.value
  if(temp.indexOf(".")==-1)   {isValid=0}
  if(temp.indexOf("\\")==-1)   {isValid=0}
  if (isValid==0) {alert("附件路径有误!");document.form.file.focus();return false;}
                                            }
								var flag=""
                        	for(i=0;i<=id.length;i++)                        //判断用户是否有签名,如果有则提示
                                 {
                                    if (id[i]==document.form.hiddenselect.value)
                                     {
                                        flag="1"
                                     }
                                 }
                    if (flag=="1")
                     {
                         if (!confirm("该用户已经有签名图章了,上传的图章将覆盖原来的,您确定继续吗?"))
                                 {return false}
                        }
						
      var result=false                       
	  var PsoUrl="<%=SaveUrl%>"               //保存附件文件url路径
	  var MaxSize="<%=session("MaxSize")%>"   //限制上传附件文件的大小 
    var PsoPath=document.form.file.value     //定义附件路径
    var PsoFile                             //定义附件的文件名
	var PsoType                             //定义附件的扩展名
	PsoFile=PsoPath
    while(PsoFile.indexOf("\\")>0)             //获得附件的文件名
         { 
     i = PsoFile.indexOf("\\") 
     PsoFile = PsoFile.substring(i + 1, PsoFile.length); 
           }                                //获得附件的文件名
	                    
	 PsoPath=PsoPath.substring(0,PsoPath.lastIndexOf("\\"))   //获得附件的路径
	 PsoType=PsoFile
	 if (PsoType.lastIndexOf(".")>0)              //获得附件的扩展名
         { 
     i = PsoType.lastIndexOf(".") 
     PsoType = PsoType.substring(i + 1, PsoType.length); 
           } 
		   PsoType=PsoType.toLowerCase();
	if (PsoType=="bmp"||PsoType=="jpg"||PsoType=="gif") {
     //result=form.web.upload(PsoUrl,PsoFile,PsoPath,MaxSize)  //向服务器上传附件
     document.location="savesign.asp?no="+PsoFile+"&id="+PsoPath+"&uid="+document.form.hiddenselect.value+"&type="+PsoType
	 return false;
					   }
	else {
	alert("签名图章只能上传bmp、jpg、gif格式文件")
	 document.form.file.focus();
	return false;
	     }
 
	return false;      //上传附件完毕
 }

</script>
<link rel="stylesheet" href="apply.css" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false">
<%set rs=server.createobject("adodb.recordset")
 sql="select * from userlist where signaturename<>''"
 rs.open sql,conn,1,1
%>
 <form name="form" method="post" action="delsign.asp">
<table width="100%" cellpadding="0" cellspacing="0" align="center">
  <tr> 
    <td valign="top" width="80%"> 
     
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="50">
          <tr> 
            <td class="title" align="center"> <img src="images/systemsign.gif"> </td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="26">
          <tr height=1> 
            <td bgcolor="#A7BAE4" height="1" colspan="4"></td>
          </tr>
          <tr> 
            <td bgcolor="#D4DEF4" valign="top"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="0" height="26">
                <tr> 
                  <td width="30">&nbsp;</td>
                  <td width="160">目前共有<font class=picknum><b><%=rs.recordcount %></b></font>个签名图章</td>
                  <td><a href="#" onClick="return addsign()" class="aapply">添加签名</a>&nbsp; 
                    &nbsp; <a href="javascript:gosystem()" class="aapply"> 返 回</a> 
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr height=1> 
            <td bgcolor="#A7BAE4" height="1" colspan="4"></td>
          </tr>
        </table>
        <div align="left"> 
          <table width="100%" border="0" cellspacing="0" align="center" cellpadding="0">
            <tr align="center" bgcolor="#E7ECF7"> 
              <td height="26" width="24%">用户名称:</td>
              <td height="26" width="57%">签名图章:</td>
              <td height="26" width="19%">删 除:</td>
            </tr>
            <%if rs.eof then %>
            <tr height="1"> 
              <td bgcolor="#ffffff" colspan="4"><img src="images/spacer.gif" width="1" height="1"></td>
            </tr>
            <tr bgcolor="#F5FAFD" align="center"> 
              <td height="26" colspan="4" class="f6wait">目前您还没有添加签名图章</td>
            </tr>
            <tr height="1"> 
              <td bgcolor="#D6E1F8" colspan="4"><img src="images/spacer.gif" width="1" height="1"></td>
            </tr>
            <%
			else
			dim i
		  i=0
		  while not rs.eof
		  response.write("<script language=javascript>id["&i&"]='"&rs("uid")&"';</script>")
                i=i+1
		   %>
            <tr height="1"> 
              <td bgcolor="#ffffff" colspan="4"><img src="images/spacer.gif" width="1" height="1"></td>
            </tr>
            <tr align="center" bgcolor="#F5FAFD"> 
              <td height="26" width="24%"> <a href="showbig.asp?id=<%=rs("id")%>" target="_blank" class="aapply"> 
                <%=rs("name")%>(<%=rs("uid")%>) </a></td>
              <td height="26" width="57%"> <a href="showbig.asp?id=<%=rs("id")%>" target="_blank"> 
                <img src="showsign.asp?id=<%=rs("id")%>" width="80" height="50" border="0"></a></td>
              <td height="26" width="19%"> 
			  <img src="images/delete.gif" width="27" height="21" onClick="delsignature('<%=rs("id")%>')" style="cursor:hand"></td>
            </tr>
            <tr height="1"> 
              <td bgcolor="#D6E1F8" colspan="3"> <img src="images/spacer.gif" width="1" height="1"></td>
            </tr>
            <%rs.movenext
		  wend
		  end if
		  %>
          </table>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="26">
          <tr height=1> 
            <td bgcolor="#A7BAE4" height="1" colspan="4"></td>
          </tr>
          <tr> 
            <td bgcolor="#D4DEF4" align="center">用 户: 
              <input type="text" name="username" size="15" onClick="javascript:alert('从右边选择用户')" readonly style="cursor:hand">
              &nbsp;签名图章: 
              <input type="file" name="file" class="boxinput">
              <input type="hidden" name="hiddenselect">
              <input type="hidden" name="hiddennum" value="0">
              <input type="hidden" name="single" value="1">
              <input type="hidden" name="signaturefile">
              <input type="hidden" name="choosedel">
            </td>
          </tr>
          <tr height=1> 
            <td bgcolor="#A7BAE4" height="1" colspan="4"></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td> <object classid="clsid:8C9AA244-AC33-47F9-8968-CC114654A6EC" codebase="web.ocx" id="web" width="1" height="1">
              </object> </td>
          </tr>
        </table>

    </td>
    <td valign="top" width="20%"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="390" bgcolor="ECF2FC">
            <tr> 
              <td class="linetd" valign="top"> 
                <!--#include file="turnone.asp"-->
              </td>
              <td width="4" background="images/emailr.gif" > <img src="images/emailr.gif"> 
              </td>
            </tr>
     </table>
	</td>
  </tr>
</table>
      </form>
<!--#include file="close.asp"-->
</body>
</html>

⌨️ 快捷键说明

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