chengyue.asp

来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 302 行 · 第 1/2 页

ASP
302
字号

//-->
</SCRIPT>


<script Language="JavaScript">
function form_check()
{
	if(document.form1.接收人.value.length<1)
	{
		window.alert("请选择发送目标");
		document.form1.City.focus();
		return (false);
	}
}
function addsendtouser()
{
	var sendtouserstr,sendtouserstr1;
	sendtouserstr='|'+document.form1.userdept.value+':'+document.form1.City.value;
	sendtouserstr1='|'+document.form1.userdept.value+':所有人';
	if (document.form1.sendto.value.indexOf(sendtouserstr)==-1)
	{
		if (document.form1.City.value=="所有人") 
		{	document.form1.sendto.value=document.form1.sendto.value+'|'+document.form1.userdept.value+':'+document.form1.City.value;
		document.form1.sendto.value=document.form1.sendto.value;
		}
		else if (document.form1.City.value!="所有人" && document.form1.sendto.value.indexOf(sendtouserstr1)==-1)
		{
document.form1.sendto.value=document.form1.sendto.value+'|'+document.form1.City.value;
		document.form1.sendto.value=document.form1.sendto.value;
		}
		else
		{
			alert("该发送目标已包含在所有人中!");
		}
	}
	else
	{
		alert("该发送目标已经存在!");
	}
}
</script>




<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>短消息发送</title>
<style type="text/css">
<!--
.style2 {color: #FF0000}
.style5 {color: 12; font-size: 12px; }
.style36 {
	font-size: 13px;
	color: #FFFFFF;
	font-weight: bold;
}
.style37 {font-size: 12px}
.style38 {	color: #FFFFFF;
	font-size: 14px;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<div align="center">
  <table width="760" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="6" height="21"><img src="/img/bbs/leftlin1red.gif" width="6" height="22"></td>
      <td width="936" height="22" bgcolor="#FF3333"><div align="center" class="style38"><span class="style36">收 文  呈 阅(转)</span></div></td>
    </tr>
  </table>
  <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#FF0000">
    <tr>
      <td bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="785"><form action="../sms/writepost2forshouwechengyue.asp" method="post" name="form1" onSubmit="return dis()">
              <table width="99%" border="0" cellpadding="3" cellspacing="0" bgcolor="#AFDBFF">
                <tr bgcolor="#FFFFFF">
                  <td height="12"></td>
                  <td height="12"></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td width="80"><div align="left" class="style5">
                    <div align="right">选择接受人:</div>
                  </div></td>
                  <td width="651"><div align="left">
                      <select name="userdept" onchange ="changeselect(document.form1.userdept.options[document.form1.userdept.selectedIndex].value)">
                        <option value="请选择部门" selected>请选择部门</option>
                        <%=DbCombox()%>
                      </select>
                      <select name="City" id="City">
                        <option value="请选择对象" selected>请选择对象</option>
                      </select>
                      <input type="button" value="增加" onClick="addsendtouser()">
                      </div></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td><div align="right"><span class="style5">接收人:</span></div></td>
                  <td><textarea name="sendto" cols="80" readonly="true" id="sendto"></textarea>
                      <input type="button" name="Submit" value="清除" onClick="document.form1.sendto.value=''"></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td>&nbsp;</td>
                  <td><input name="many" type="checkbox" id="many" value="是">
                    <span class="style37">如果递交给多人,让每个人都知道</span></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td height="12" colspan="2"></td>
                  </tr>
                <tr bgcolor="#FFFFFF"><%on error resume next%>
                  <td><input name="信息属性" type="hidden" id="信息属性" value="短消息">
                      <input name="发送人帐号" type="hidden" id="发送人帐号" value="<%= Session("userssdfgfhtrh") %>">
                      <input name="发送人姓名" type="hidden" id="发送人姓名" value="<%= Session("names") %>">
                      <input name="datas" type="hidden" id="datas" value="<%=date%>">
                      <input name="content" type="hidden" id="content" value="你好,有待签收文!">
                      <input name="标题" type="hidden" id="标题" value="您有待签收文:<%=request("bt")%> (<%=request("s")%>,<%=now()%>)">
                     <%session("spidup")=request("id")%>
                      <input name="sptype" type="hidden" id="sptype" value="收文">
                      <input name="id" type="hidden" id="id" value="<%=request("id")%>"></td>
                  <td>                      <span class="style37"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff>                      </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong> </font></strong></font></strong></font></strong></font></strong> </font></strong></font></strong></font></strong>  <STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff> </font></strong></font></strong></font></strong></font></strong></FONT></STRONG></FONT></STRONG><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff> </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> <strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff> <STRONG><FONT color=#ffffff><strong><font color=#ffffff> </font></strong></FONT></STRONG></font></strong></font></strong></font></strong> </font></strong></FONT></STRONG> </FONT></STRONG> <STRONG><FONT color=#ffffff> <strong><font color=#ffffff>
                      
                      <STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff>
                      </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong> </font></strong></font></strong></font></strong></font></strong> </font></strong></font></strong></font></strong> <STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff>
                      
                      </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG> </font></strong></font></strong></font></strong></font></strong></FONT></STRONG></FONT></STRONG><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff> </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> </font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> <strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff> <STRONG><FONT color=#ffffff><strong><font color=#ffffff> </font></strong></FONT></STRONG><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
                      <input name="submit" type=submit id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px"  onClick='return check();'  value=" 递 交 ">
                      </font></strong></FONT></STRONG></font></strong></FONT></STRONG> <STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
                      
                      </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> </font></strong></font></strong></font></strong> </font></strong></FONT></STRONG> </FONT></STRONG> <STRONG><FONT color=#ffffff> <strong><font color=#ffffff>
                       
                      <input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px"   onClick="javascript:history.go(-1)" value= " 取 消 " >
                      </font></strong></FONT></STRONG> </font></strong></FONT></STRONG></span></span></span></td>
                </tr>
              </table>
          </form></td>
        </tr>
      </table></td>
    </tr>
  </table>
  </div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

⌨️ 快捷键说明

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