userWrite.jsp
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:2k
- <%@ page language="java" contentType="text/html;charset=UTF-8"
- session="true" errorPage="err.jsp" %>
- <script language="javascript">
- function checkForm1(){
- if (document.Gforms.utTakeUser.value.length == 0) {
- alert("您至少指定一个短信接收人!");
- document.Gforms.utTakeUser.focus();
- return false;
- }
- if (document.Gforms.utTopic.value.length == 0) {
- alert("短消息标题不能为空!");
- document.Gforms.utTopic.focus();
- return false;
- }
- if (document.Gforms.utTopic.value.length > 180) {
- alert("短消息标题字数不能大于200个字符!");
- document.Gforms.utTopic.focus();
- return false;
- }
- if (document.Gforms.utContent.value.length > 5000) {
- alert("短消息标题字数不能大于5000个字符!");
- document.Gforms.utContent.focus();
- return false;
- }
- postMsg();
- return true;
- }
- </script>
- <script language="javascript" src="GVscript/GVpost.js"></script>
- <style type="text/css">
- <!--
- .style1 {color: #FF0000}
- -->
- </style>
- <table width="99%" border="0" align="center" cellpadding="2" cellspacing="1" class="tab">
- <form name="Gforms" id="Gforms" method="post" action="userBox.jsp?act=<%=act%>" onSubmit="return checkForm1();postMsg();">
- <tr class="tab2">
- <td width="100"><strong>收信人</strong></td>
- <td height="22">
- <input name="utTakeUser" type="text" id="utTakeUser" size="40" maxlength="100" value="<%=userNames%>" />
- 多个收件人请用半角逗号(<span class="style1">,</span>)隔开。</td>
- </tr>
- <tr class="tab2">
- <td height="25"><strong>主题</strong></td>
- <td width="#"><input name="utTopic" type="text" id="utTopic" size="40" maxlength="100" />
- 标题不能为空</td>
- </tr>
- <tr class="tab2">
- <td height="12"><br>
- <strong>内容</strong><br>
- <span class="style1">允许置空</span><br>
- </td>
- <td><textarea name="utContent" cols="60" rows="8" id="utContent"></textarea></td>
- </tr>
- <tr class="tab2">
- <td height="12"><strong>发送方式</strong></td>
- <td>
- <input name="isPost" type="radio" value="0" checked="checked" />直接发送
-
- <input type="radio" name="isPost" value="1" />发送同时保存到发件箱
-
- <input type="radio" name="isPost" value="2" />暂不发送保存到草稿箱
- </td>
- </tr>
- <tr class="tab2">
- <td height="25"> </td>
- <td>
- <input name="gvSubmit" type="submit" id="gvSubmit" value="确定提交" class="btn"/>
- </td>
- </tr></form>
- </table>