?? sendmsg.jsp
字號:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ include file="top.jsp"%>
<TABLE id=Table1 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR id=main_section vAlign=top>
<TD>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR >
<TD class=welcomeleft id=left_pane vAlign=top width=155 >
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 background=../images/back.gif height=586>
<TBODY>
<TR>
<TD valign=top>
<%@ include file="msg_mainmenu.jsp"%>
</TD></TR>
</TBODY></TABLE>
</TD><TD id=right_pane>
<form name="form1" method="post" action="sendmsgok.jsp" onSubmit="return check();">
<img src=../images/sendmsg.jpg>編寫短信
<TABLE cellSpacing="0" cellPadding="0" width="90%" align="center" border="0" class="article-page" bordercolor=red>
<TR>
<TD valign="top">
<TABLE style="BORDER-RIGHT: thin solid; BORDER-TOP: thin solid; FONT-SIZE: x-small; BORDER-LEFT: thin solid; BORDER-BOTTOM: thin solid; FONT-FAMILY: Verdana; HEIGHT: 66px" cellSpacing="0" cellPadding="2" width="100%" border="0">
<TR >
<TD style="WIDTH: 88px; HEIGHT: 27px" vAlign="top">接收人:</TD>
<TD style="HEIGHT: 27px" vAlign="top">
<%if(request.getParameter("recemem")==null){%>
<input name="recemem" type="text" maxlength="120" style="width:86%;" readonly="true" value="請選擇收信人"><%}else{%>
<input name="recemem" type="text" maxlength="120" style="width:86%;" readonly="true" value="<%=request.getParameter("recemem")%>">
<%}%>
<%
rs=stmt.executeQuery("SELECT * from member where flag=1");%>
<select name="allmem" onchange="selete();"><option value="請選擇收信人" selected>選擇接收人</option>
<%while(rs.next()){%>
<option value="<%=rs.getString("username")%>"><%=rs.getString("username")%></option><%}%>
</select>
<script language="javascript">
function selete(){
document.form1.recemem.value=document.form1.allmem.value;
}
</script>
</td>
</TR>
<TR >
<TD style="WIDTH: 88px; HEIGHT: 27px" vAlign="top">標題</TD>
<TD style="HEIGHT: 27px" vAlign="top"><input name="topic" type="text" maxlength="120" id="TaskCalendarPage1_BasePages1_theBodyControl_TaskPage_ascx_fEName" style="width:100%;" /> </TD>
</TR>
<TR>
<TD style="WIDTH: 88px" vAlign="top">附件</TD>
<TD vAlign="top">
<iframe name="ad" src="upload.jsp" width="100%" height="25" frameborder=0 scrolling=no></iframe>
</TD>
</TR>
<TR>
<TD height=20></TD>
</TR>
<TR>
<TD style="WIDTH: 88px" vAlign="top">正文</TD>
<TD vAlign="top">
<textarea name="content" cols="50" rows="1" style="display:none"></textarea>
<OBJECT id=doc_html style="LEFT: 0px; TOP: 0px" data=webedit/editor.htm width=100% height=320 type=text/x-scriptlet VIEWASTEXT>
</OBJECT>
</TD>
</TR>
</TABLE>
</TD>
</TR>
<tr>
<td class="article-page-body" height="100%" colspan="2" width="100%">
<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0" height="100%" bordercolor=blue>
<TR><TD height=2 valign="top">
<div id="TaskCalendarPage1_BasePages1_theBodyControl_Toolbar">
<table height="35" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<TD nowrap="nowrap" align="right" width="100%">
<input type="submit" name="aa" value="刷新" class="pushbutton" / disabled="disabled" >
<input type="submit" name="bb" value="編輯" class="pushbutton" / disabled="disabled" >
<input type="button" name="cc" value="保存" class="pushbutton"/ onclick="check1()">
<input type="submit" name="dd" value="發(fā)送" class="pushbutton"/>
</TD>
</tr>
</table>
</TD>
</TR>
</TABLE>
</form>
</TD></TR></TBODY></TABLE></TD></TR>
</TBODY>
</table>
<%@ include file="end.jsp"%>
<script language=javascript>
<!--
function check()
{
document.form1.content.value=document.form1.doc_html.value
if (document.form1.recemem.value == "請選擇收信人")
{
alert("請選擇收信人!");
document.form1.recemem.focus();
return (false);
}
if (document.form1.topic.value==""){
window.alert("請輸入標題!")
document.form1.topic.focus()
return false
}
if (document.form1.content.value==""){
window.alert("請輸入正文!")
document.form1.doc_html.focus()
return false
}
}
function check1(){
ff=document.form1
document.form1.content.value=document.form1.doc_html.value
if (ff.topic.value==""){
window.alert("請輸入標題!")
ff.topic.focus()
return false
}
if (ff.content.value==""){
window.alert("請輸入正文!")
ff.doc_html.focus()
return false
}
document.form1.submit()
}
//-->
</script>
</BODY>
</HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -