send_sms_search.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:3k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ page import = "com.redmoon.oa.BasicDataMgr"%>
  3. <%@ page import = "com.redmoon.oa.person.*"%>
  4. <%@ page import = "com.redmoon.oa.dept.*"%>
  5. <%@ page import = "cn.js.fan.web.*"%>
  6. <%@ page import = "cn.js.fan.util.*"%>
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  10. <title>查询短讯</title>
  11. <link rel="stylesheet" type="text/css" href="../common.css">
  12. <script>
  13. function findObj(theObj, theDoc)
  14. {
  15.   var p, i, foundObj;
  16.   
  17.   if(!theDoc) theDoc = document;
  18.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  19.   {
  20.     theDoc = parent.frames[theObj.substring(p+1)].document;
  21.     theObj = theObj.substring(0,p);
  22.   }
  23.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  24.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  25.     foundObj = theDoc.forms[i][theObj];
  26.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  27.     foundObj = findObj(theObj,theDoc.layers[i].document);
  28.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  29.   
  30.   return foundObj;
  31. }
  32. var GetDate=""; 
  33. function SelectDate(ObjName,FormatDate){
  34. var PostAtt = new Array;
  35. PostAtt[0]= FormatDate;
  36. PostAtt[1]= findObj(ObjName);
  37. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  38. }
  39. function SetDate()
  40. findObj(ObjName).value = GetDate; 
  41. }
  42. </script>
  43. </head>
  44. <body class="bodycolor">
  45. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  46. <%
  47. if (!privilege.isUserPrivValid(request, "admin")) {
  48. out.println(SkinUtil.makeErrMsg(request, SkinUtil.LoadString(request, "pvg_invalid")));
  49. return;
  50. }
  51. %>
  52. <br>
  53. <table width="80%"  border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#FFFFFF" class="tableframe">
  54. <form action="send_sms_list.jsp?op=search" method="post">
  55.   <tr>
  56.     <td height="24" colspan="2" class="right-title">&nbsp;&nbsp;查询短讯</td>
  57.     </tr>
  58.   <tr>
  59.     <td height="24">&nbsp;用户名</td>
  60.     <td width="85%"><input type="text" name="userName" size="20" maxlength="25" class="BigInput"></td>
  61.   </tr>
  62.   <tr>
  63.     <td height="24">&nbsp;手机号码</td>
  64.     <td><input type="text" name="sendMobile" size="20" maxlength="25" class="BigInput"></td>
  65.   </tr>
  66.   <tr>
  67.     <td height="24">&nbsp;发送内容</td>
  68.     <td><input type="text" name="msgText" size="20" maxlength="25" class="BigInput"></td>
  69.   </tr>
  70.   <tr>
  71.     <td height="24">&nbsp;发送时间</td>
  72.     <td><input maxLength="10" size="20" name="fromSendTime"> 
  73.         <img style="CURSOR: hand" onClick="SelectDate('fromSendTime', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">&nbsp;至 
  74.         <input maxLength="10" size="20" name="toSendTime"><img style="CURSOR: hand" onClick="SelectDate('toSendTime', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26"> 日期格式形如 1999-1-2 </td>
  75.   </tr>
  76.   <tr>
  77.     <td height="24">&nbsp;</td>
  78.     <td height="30"><input type="submit" name="Submit" value=" 查 询 "></td>
  79.   </tr>
  80. </form>
  81. </table>
  82. </body>
  83. </html>