smslog.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_message}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch" id="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.ds_member_name}</dt>
  16. <dd><input class="txt" name="member_name" value="{$Request.get.member_name}" type="text"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.smslog_phone}</dt>
  20. <dd><input class="txt" name="smslog_phone" value="{$Request.get.smslog_phone}" type="text"></dd>
  21. </dl>
  22. <dl>
  23. <dt>{$Think.lang.smslog_smstime}</dt>
  24. <dd>
  25. <input class="txt date" type="text" value="{$Request.get.add_time_from}" id="add_time_from" name="add_time_from">
  26. ~
  27. <input class="txt date" type="text" value="{$Request.get.add_time_to}" id="add_time_to" name="add_time_to"/>
  28. </dd>
  29. </dl>
  30. <div class="btn_group">
  31. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  32. {if $filtered}
  33. <a href="{:url('Message/smslog')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  34. {/if}
  35. </div>
  36. </div>
  37. </form>
  38. <table class="ds-default-table">
  39. <thead>
  40. <tr class="thead">
  41. <th class="w24"></th>
  42. <th class="w96">{$Think.lang.ds_member_name}</th>
  43. <th class="w120">{$Think.lang.smslog_phone}</th>
  44. <th class="w96">{$Think.lang.smslog_captcha}</th>
  45. <th>{$Think.lang.smslog_msg}</th>
  46. <th class="w96">{$Think.lang.smslog_type}</th>
  47. <th class="w120">{$Think.lang.smslog_smstime}</th>
  48. <th class="w120">{$Think.lang.ds_handle}</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. {notempty name="smslog_list"}
  53. {foreach name="smslog_list" item="v"}
  54. <tr class="hover">
  55. <td class="w48"><input type="checkbox" name="check_smslog_id[]" value="{$v.smslog_id}" class="checkitem">
  56. <td>{$v.member_name}</td>
  57. <td>{$v.smslog_phone}</td>
  58. <td>{$v.smslog_captcha}</td>
  59. <td>{$v.smslog_msg}</td>
  60. <td>{$v.smslog_type}</td>
  61. <td>{$v.smslog_smstime|date="Y-m-d H:i:s"}</td>
  62. <td>
  63. <a href="javascript:dsLayerConfirm('{:url('message/smslog_del',['smslog_id'=>$v.smslog_id])}','{$Think.lang.ds_ensure_del}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  64. </td>
  65. </tr>
  66. {/foreach}
  67. {else}
  68. <tr class="no_data">
  69. <td colspan="10">{$Think.lang.ds_no_record}</td>
  70. </tr>
  71. {/notempty}
  72. <tfoot>
  73. {notempty name="smslog_list"}
  74. <tr class="tfoot">
  75. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  76. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  77. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  78. </td>
  79. </tr>
  80. {/notempty}
  81. </tfoot>
  82. </tbody>
  83. </table>
  84. {$show_page|raw}
  85. </div>
  86. <script type="text/javascript">
  87. $(function () {
  88. $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  89. var year2 = dateText.split('-') ;
  90. $('#add_time_to').datepicker( "option", "minDate", new Date(parseInt(year2[0]),parseInt(year2[1])-1,parseInt(year2[2])+1) );
  91. }});
  92. $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd',onSelect:function(dateText,inst){
  93. var year1 = dateText.split('-') ;
  94. $('#add_time_from').datepicker( "option", "maxDate", new Date(parseInt(year1[0]),parseInt(year1[1])-1,parseInt(year1[2])-1) );
  95. }});
  96. });
  97. </script>
  98. <script type="text/javascript">
  99. function submit_delete(ids_str){
  100. _uri = ADMINSITEURL+"/message/smslog_del.html?smslog_id=" + ids_str;
  101. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  102. }
  103. </script>