index.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {extend name="default/base/base_seller" /}
  2. {block name="seller_main"}
  3. <div class="alert alert-block mt10"> <strong>{$Think.lang.instructions}:</strong>
  4. <ul class="mt5">
  5. <li>{$Think.lang.message_indicating1}</li>
  6. <li>{$Think.lang.message_indicating2}</li>
  7. </ul>
  8. </div>
  9. <table class="dssc-default-table">
  10. <thead>
  11. <tr>
  12. <th class="w30"></th>
  13. <th>{$Think.lang.message_content}</th>
  14. <th class="w200">{$Think.lang.send_time}</th>
  15. <th class="w70">{$Think.lang.ds_handle}</th>
  16. </tr>
  17. <tr>
  18. <td class="tc"><input id="all" class="checkall" type="checkbox" /></td>
  19. <td colspan="20"><label for="all">{$Think.lang.ds_all}</label>
  20. <a href="javascript:void(0);" ds_type="batchbutton" uri="{:url('Sellermsg/mark_as_read')}" name="smids" class="dssc-btn-mini"><i class="iconfont">&#xe632;</i>{$Think.lang.marked_read}</a>
  21. {if session('seller_is_admin')}
  22. <a href="javascript:void(0);" ds_type="batchbutton" uri="{:url('Sellermsg/del_msg')}" name="smids" class="dssc-btn-mini"><i class="iconfont">&#xe725;</i>{$Think.lang.ds_del}</a>
  23. {/if}
  24. </td>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. {notempty name="msg_list"}
  29. {foreach name="msg_list" item="val"}
  30. <tr class="bd-line">
  31. <td class="tc"><input class="checkitem" type="checkbox" value="{$val.storemsg_id}" /></td>
  32. <td class="tl {if empty($val['storemsg_readids']) || !in_array(session('seller_id'), $val['storemsg_readids'])}fb dark{/if}">{$val.storemsg_content}</td>
  33. <td>{:date('Y-m-d H:i:s',$val.storemsg_addtime)}</td>
  34. <td class="dscs-table-handle"><span><a href="javascript:void(0);" class="btn-blue" dialog_id="store_msg_info" dialog_title="{$Think.lang.system_message}" dialog_width="480" ds_type="dialog" uri="{:url('Sellermsg/msg_info',['storemsg_id'=>$val.storemsg_id])}"><i class="iconfont">&#xe70b;</i>
  35. <p>{$Think.lang.ds_view}</p>
  36. </a></span></td>
  37. </tr>
  38. {/foreach}
  39. {else}
  40. <tr>
  41. <td colspan="20" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
  42. </tr>
  43. {/notempty}
  44. </tbody>
  45. <tfoot>
  46. {notempty name="msg_list"}
  47. <tr>
  48. <td colspan="20"><div class="pagination">{$show_page|raw}</div></td>
  49. </tr>
  50. {/notempty}
  51. </tfoot>
  52. </table>
  53. <script>
  54. $(function () {
  55. $('a[ds_type="dialog"]').click(function () {
  56. $(this).parents('tr:first').children('.tl').removeClass('fb dark');
  57. });
  58. });
  59. </script>
  60. {/block}