listSms.jsp 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>已发送短信</title>
  8. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  9. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  10. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/core/base.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/plugins/ligerGrid.js" type="text/javascript"></script>
  12. <link href="${pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript">
  16. var grid = null;
  17. $(function () {
  18. loadGrid("","");
  19. });
  20. function loadGrid(phone,userState) {
  21. grid = $("#maingrid4").ligerGrid({
  22. columns: [
  23. { display: '短信类型', name: 'wordname', width: 120 },
  24. { display: '手机号码', name: 'call_mobile', width: 150 },
  25. { display: '创建时间', name: 'create_date', width: 100 },
  26. { display: '发送人', name: 'name', width: 100 },
  27. { display: '状态', name: 'msg', width: 100 },
  28. {
  29. display: '操作', isAllowHide: false,
  30. render: function (row){
  31. var html = '<a href=\"#\" onclick=\"window.parent.f_addTab(new Date().getTime(), \'查看短信\', \'${pageContext.request.contextPath }/SmsAction.do?task=info&sms_id='
  32. + row.sms_id + '\');\">查看</a>&nbsp;';
  33. return html;
  34. }
  35. }
  36. ],
  37. pageSize:20,
  38. url: 'SmsAction.do?task=list&state='+userState+'&phone='+phone+'&time=' + new Date().getTime(),
  39. pageParmName: 'p', //页索引参数名,(提交给服务器)
  40. pagesizeParmName: 'pSize', //页记录数参数名,(提交给服务器)
  41. width: '99.5%',
  42. height: '97%'
  43. });
  44. }
  45. function searchByKword(){
  46. var phone = $("#phone").val();
  47. var userState = $("#sendState").val();
  48. loadGrid(phone,userState);
  49. }
  50. </script>
  51. </head>
  52. <body >
  53. <div class="container-layout">
  54. <div id="title" class="form-button">
  55. <input type="button" class="l-button" value="发送短信" onclick="window.parent.f_addTab(new Date().getTime(), '发送短信', '${pageContext.request.contextPath }/SmsAction.do?task=toCreate');"/>
  56. </div>
  57. <div class="default_search" style="margin: 0;">
  58. <ul class="list_search">
  59. <li class="title">手机号码:</li>
  60. <li class="text"><input type="text" name="phone" id="phone">
  61. </li>
  62. </ul>
  63. <ul class="list_search">
  64. <li class="title">状态:</li>
  65. <li class="text">
  66. <select name="sendState" id="sendState" style="width:120px;">
  67. <option value="" selected>全部</option>
  68. <option value="1">成功</option>
  69. <option value="0">失败</option>
  70. </select>
  71. </li>
  72. </ul>
  73. <ul>
  74. <li class="search-button"><input type="button" class='l-button'
  75. name="search" onclick="searchByKword()" value="查询" /></li>
  76. </ul>
  77. </div>
  78. <div style="clear:both;"></div>
  79. <div style="overflow: hidden; clear: both;">
  80. <div id="maingrid4" style="margin:0; padding:0"></div>
  81. </div>
  82. <div style="display:none;">
  83. <!-- g data total ttt -->
  84. </div>
  85. </div>
  86. <%@ include file="/include/message.jsp"%>
  87. </body>
  88. </html>