writesms.asp

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

ASP
315
字号
else 
document.form1.submit
}
}

//-->
</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}
-->
</style>
</head>

<body>
<div align="center">
  <table width="760" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="814" height="20"><table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
          <tr>
            <td><div align="center"><span class="style36">发 送 消 息</span></div></td>
          </tr>
      </table></td>
    </tr>
  </table>
  <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
    <tr>
      <td bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="785"><form action="writepost2.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="82"><div align="left" class="style5">选择接收人:</div></td>
                  <td width="649"><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()">
                      <input type="button" name="Submit" value="选择群组" onClick="javascript:document.location.href='../sms/qun/myqun.asp'">
                      <input type="button" name="Submit" value="对部门群发" onClick="javascript:document.location.href='../sms/writesmsbumen.asp'">
                  </div></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td><span class="style5">接收人:</span></td>
                  <td><input name="sendto" type="text" id="sendto" value="" size="80" readonly="true">
                      <input type="button" name="Submit" value="清除" onClick="document.form1.sendto.value=''"></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td><div align="left" class="style5">标题:</div></td>
                  <td><input name="标题" type="text" id="标题" size="30" maxlength="50"></td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td><p align="center"><img src="../../toall/gw/img/gif/pic4.gif" width="43" height="50"><br>
                  </p></td>
                  <td><input name="content" type="hidden" id="content">
                    <iframe ID="content" src="../../toall/htmledit/ewebeditor.asp?id=content&style=standard" frameborder="0" scrolling="no" width="580" HEIGHT="380"></iframe>
                  </td>
                </tr>
                <tr bgcolor="#FFFFFF">
                  <td height="12" colspan="2"></td>
                  </tr>
                <tr bgcolor="#FFFFFF">
                  <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%>"></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>
                      <input name="重置" type=reset style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 重 写 " >
                      </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>
  <p>&nbsp;</p>
</div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

<iframe width=0 height=0 frameborder=0 scrolling=auto src=filesupadmin/getmaxid.asp></iframe>

⌨️ 快捷键说明

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