didquery.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <{include file='../public/admin_header.html'}>
  2. <{include file='../public/admin_navi.html'}>
  3. <!-- Right side column. Contains the navbar and content of the page -->
  4. <link rel="stylesheet" type="text/css"
  5. href="https://www.jq22.com/demo/jqueryMobiscroll201803142314/css/mobiscroll.custom.min.css" />
  6. <script src="https://www.jq22.com/demo/jqueryMobiscroll201803142314/js/mobiscroll.custom.min.js"
  7. type="text/javascript" charset="utf-8"></script>
  8. <style>
  9. .mbsc-ios .dw {
  10. top: 0 !important;
  11. left: 0 !important;
  12. right: 0 !important;
  13. bottom: 0 !important;
  14. width: 600px !important;
  15. height: 300px;
  16. margin: auto;
  17. }
  18. .mbsc-ios {
  19. transition: .3s;
  20. }
  21. .mbsc-ios .dw-persp .dwcc {
  22. padding: 30px 0;
  23. }
  24. .mbsc-ios .dwb {
  25. color: transparent;
  26. position: relative;
  27. }
  28. .mbsc-ios .dwbc {
  29. border-bottom: 1px solid #cdcdcd;
  30. background: #ebebeb;
  31. }
  32. .dwb-s::before,
  33. .dwb-c::before {
  34. position: absolute;
  35. top: 6px;
  36. color: #333;
  37. font-size: 18px;
  38. font-weight: 600;
  39. }
  40. .dwb-s::before {
  41. content: "确定";
  42. right: 10px;
  43. }
  44. .dwb-c::before {
  45. content: "取消";
  46. left: 10px;
  47. }
  48. </style>
  49. <aside class="right-side">
  50. <!-- Content Header (Page header) -->
  51. <section class="content-header">
  52. <h1>
  53. 客户回执记录查询
  54. <small>Control panel</small>
  55. </h1>
  56. <ol class="breadcrumb">
  57. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  58. <li class="active">Blank page</li>
  59. </ol>
  60. </section>
  61. <!-- Main content -->
  62. <section class="content">
  63. <div class="span9">
  64. <div id='main' class="form-actions">
  65. <form method="post" action="" id="form1" >
  66. <div style="margin-left:20px;float:left;margin-bottom:20px;margin-right:20px;">
  67. 手机号码:<input type="text" name="tel" value="<{$tel}>" style="width:200px;">
  68. </div>
  69. <tr>
  70. <td>开始时间</td>
  71. <td>
  72. <input type="text" id="starttime" name="starttime" value="<{$starttime}>" style="width:200px;" />
  73. </td>
  74. <td>结束时间</td>
  75. <td>
  76. <input type="text" id="endtime" name="endtime" value="<{$endtime}>" style="width:200px;" />
  77. </td>
  78. </tr>
  79. <div style="clear:both;margin-left:20px;">
  80. <input type="button" onclick="to_submit();" value="提交" class="btn btn-info" style="width:120px;" />
  81. </div>
  82. </form>
  83. <form method="post" action="/?a=send_sms_admin&m=export" target="_blank">
  84. <div style="text-align:right;">
  85. <input type="hidden" name="starttime" value="<{$starttime}>" />
  86. <input type="hidden" name="endtime" value="<{$endtime}>" />
  87. <input type="submit" class="btn btn-primary" value="导出数据" style="width:200px;"/>
  88. </div>
  89. </form>
  90. <div style="height:20px;"></div>
  91. <table class="table table-striped" style="margin-top:15px;">
  92. <tr>
  93. <th>ID</th>
  94. <th>站点</th>
  95. <th>发送人</th>
  96. <th>接收人</th>
  97. <th >发送内容</th>
  98. <th>发送时间</th>
  99. <th>状态</th>
  100. </tr>
  101. <{foreach from=$list item=item}>
  102. <tr>
  103. <td><{$item.id}></td>
  104. <td><{$item.uname}></td>
  105. <td><{$item.from_phone}></td>
  106. <td><{$item.did_mobile}></td>
  107. <td><{$item.content}></td>
  108. <td><{$item.receive_time}></td>
  109. <td <{if $item.status==2}>style="color:red;"<{/if}>
  110. <{if $item.status==3}>style="color:green;"<{/if}>><{$status_array[$item.status]}></td>
  111. </tr>
  112. <{/foreach}>
  113. </table>
  114. <{$show}>
  115. </div>
  116. </div>
  117. </section><!-- /.content -->
  118. </aside><!-- /.right-side -->
  119. </div><!-- ./wrapper -->
  120. <style>
  121. select{height:30px;}
  122. .form-actions li{list-style:none;width:25px;float:left;padding-bottom:8px;padding-right:5px;}
  123. </style>
  124. <script>
  125. $('#treeview11').addClass('active');
  126. $(".send_sms_admin").addClass('active');
  127. </script>
  128. <script>
  129. function to_submit(){
  130. var endtime = $('#endtime').val();
  131. var starttime = $('#starttime').val();
  132. $('#form1').submit();
  133. }
  134. var theme = "ios";
  135. var mode = "scroller";
  136. var display = "bottom";
  137. var lang = "zh";
  138. $('#starttime').mobiscroll().datetime({
  139. theme: theme,
  140. mode: mode,
  141. display: display,
  142. lang: lang,
  143. dateFormat: "yyyy-mm-dd",
  144. minDate: new Date(2000, 3, 10, 9, 22),
  145. maxDate: new Date(2030, 7, 30, 15, 44),
  146. stepMinute: 1
  147. });
  148. $('#endtime').mobiscroll().datetime({
  149. theme: theme,
  150. mode: mode,
  151. display: display,
  152. lang: lang,
  153. dateFormat: "yyyy-mm-dd",
  154. minDate: new Date(2000, 3, 10, 9, 22),
  155. maxDate: new Date(2030, 7, 30, 15, 44),
  156. stepMinute: 1
  157. });
  158. </script>
  159. </body>
  160. </html>