index.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.instant_message}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="fixed-empty"></div>
  13. <form method="get" name="formSearch" id="formSearch">
  14. <div class="ds-search-form">
  15. <dl>
  16. <dt>{$Think.lang.instant_message_from_type}</dt>
  17. <dd><input type="text" class="text" name="f_name" value="{$Request.get.f_name}" /></dd>
  18. </dl>
  19. <dl>
  20. <dt>{$Think.lang.instant_message_to_type}</dt>
  21. <dd><input type="text" class="text" name="t_name" value="{$Request.get.t_name}" /></dd>
  22. </dl>
  23. <dl>
  24. <dt>{$Think.lang.start_to_stop_time}</dt>
  25. <dd>
  26. <input class="txt date" type="text" value="{$Request.get.add_time_from}" id="add_time_from" name="add_time_from">
  27. ~
  28. <input class="txt date" type="text" value="{$Request.get.add_time_to}" id="add_time_to" name="add_time_to"/>
  29. </dd>
  30. </dl>
  31. <div class="btn_group">
  32. <a href="javascript:$('#formSearch').submit();" id="dssubmit" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  33. <a href="{:url('instant_message/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  34. </div>
  35. </div>
  36. </form>
  37. <table class="ds-default-table">
  38. <thead>
  39. <tr class="thead">
  40. <th class="w24">{$Think.lang.instant_message_id}</th>
  41. <th>{$Think.lang.instant_message_from_type}</th>
  42. <th>{$Think.lang.instant_message_to_type}</th>
  43. <th>{$Think.lang.message_content}</th>
  44. <th class="w200 align-center" >{$Think.lang.instant_message_add_time}</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. {notempty name="instant_message_list"}
  49. {foreach name="instant_message_list" item="v"}
  50. <tr class="hover edit" id="ds_row_{$v.instant_message_id}">
  51. <td>{$v.instant_message_id}</td>
  52. <td>[{$Think.lang.instant_message_type_text[$v['instant_message_from_type']]}]{$v.instant_message_from_name}</td>
  53. <td>[{$Think.lang.instant_message_type_text[$v['instant_message_to_type']]}]{$v.instant_message_to_name}</td>
  54. <td>{:parsesmiles($v['instant_message'],$v['instant_message_type'])}</td>
  55. <td>{$v.instant_message_add_time|date='Y-m-d H:i'}</td>
  56. </tr>
  57. {/foreach}
  58. {else /}
  59. <tr class="no_data">
  60. <td colspan="15">{$Think.lang.ds_no_record}</td>
  61. </tr>
  62. {/notempty}
  63. </tbody>
  64. </table>
  65. {$show_page|raw}
  66. </div>
  67. <link rel="stylesheet" href="{$Think.CHAT_SITE_URL}/css/chat.css">
  68. <script type="text/javascript">
  69. $(function(){
  70. $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
  71. $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
  72. });
  73. // 获得选中ID
  74. function getItems() {
  75. /* 获取选中的项 */
  76. var items = '';
  77. $('.checkitem:checked').each(function () {
  78. items += this.value + ',';
  79. });
  80. if (items != '') {
  81. items = items.substr(0, (items.length - 1));
  82. }else{
  83. layer.alert('{$Think.lang.please_check_the_option}', {icon: 2})
  84. }
  85. return items;
  86. }
  87. </script>
  88. {include file="public/footer" /}