message.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {extend name="default/base/base_member" /}
  2. {block name="member_btn"}
  3. {if $isallowsend}
  4. <a href="{:url('Membermessage/sendmsg')}" class="dsm-btn dsm-btn-orange" title="{$Think.lang.home_message_send_message}"><i class="iconfont">&#xe75a;</i>{$Think.lang.home_message_send_message}</a>
  5. {/if}
  6. {/block}
  7. {block name="member_main"}
  8. <table class="dsm-default-table">
  9. <thead>
  10. <tr>
  11. <th class="w30"></th>
  12. <th class="w100 tl">
  13. {if $drop_type == 'msg_seller'}
  14. {$Think.lang.home_message_storename}
  15. {else /}
  16. {$Think.lang.home_message_sender}
  17. {/if}
  18. </th>
  19. <th class="tl">{$Think.lang.home_message_content}</th>
  20. <th class="w300">{$Think.lang.home_message_last_update}</th>
  21. <th class="w110">{$Think.lang.home_message_command}</th>
  22. </tr>
  23. {notempty name="message_array"}
  24. <tr>
  25. <td colspan="20"><input type="checkbox" id="all" class="checkall"/>
  26. <label for="all">{$Think.lang.home_message_select_all}</label>
  27. {if $drop_type == 'msg_list'}
  28. <a href="javascript:void(0)" class="dsm-btn-mini" uri="{:url('Membermessage/dropcommonmsg',['drop_type'=>$drop_type])}" name="message_id" confirm="{$Think.lang.home_message_delete_confirm}?" ds_type="batchbutton"><i class="iconfont">&#xe725;</i>{$Think.lang.home_message_delete}</a>
  29. {/if}
  30. {if $drop_type == 'msg_system' || $drop_type == 'msg_seller'}
  31. <a href="javascript:void(0)" class="dsm-btn-mini" uri="{:url('Membermessage/dropbatchmsg',['drop_type'=>$drop_type])}" name="message_id" confirm="{$Think.lang.home_message_delete_confirm}?" ds_type="batchbutton">{$Think.lang.home_message_delete}</a>
  32. {/if}
  33. </td>
  34. </tr>
  35. {/notempty}
  36. </thead>
  37. <tbody>
  38. {notempty name="message_array"}
  39. {foreach name="message_array" item="v"}
  40. <tr class="bd-line">
  41. <td class="tc"><input type="checkbox" class="checkitem" value="{$v.message_id}"/></td>
  42. <td class="tl">{$v.from_member_name}</td>
  43. <td class="link2 {if $v.message_open == 0}font_bold{/if} tl">{if $v.message_type==1}{:htmlspecialchars_decode($v.message_body)}{else}{:parsesmiles($v.message_body)}{/if}</td>
  44. <td>{:date('Y-m-d H:i:s',$v.message_update_time)}</td>
  45. <td class="dsm-table-handle">
  46. {if $drop_type == 'msg_list'}
  47. <span><a href="{:url('Membermessage/showmsgcommon',['type'=>$drop_type,'message_id'=>$v.message_id])}{if $v.message_parent_id>0}#{$v.message_id}{/if}" class="btn-blue"><i class="iconfont">&#xe731;</i>
  48. <p>{$Think.lang.home_message_view_detail}</p>
  49. </a></span> <span><a href="javascript:void(0)" onclick="ds_ajaxget_confirm('{:url('Membermessage/dropcommonmsg',['drop_type'=>$drop_type,'message_id'=>$v.message_id])}','{$Think.lang.home_message_delete_confirm}?');" class="btn-red"><i class="iconfont">&#xe725;</i>
  50. <p>{$Think.lang.home_message_delete}</p>
  51. </a></span>
  52. {/if}
  53. {if $drop_type=='msg_system' || $drop_type =='msg_seller'}
  54. <span><a href="{:url('Membermessage/showmsgbatch',['type'=>$drop_type,'message_id'=>$v.message_id])}{if $v.message_parent_id>0}#{$v.message_id}{/if}" class="btn-acidblue"><i class="iconfont">&#xe70b;</i>
  55. <p>{$Think.lang.home_message_view_detail}</p>
  56. </a></span><span><a href="javascript:void(0)" onclick="ds_ajaxget_confirm('{:url('Membermessage/dropbatchmsg',['drop_type'=>$drop_type,'message_id'=>$v.message_id])}','{$Think.lang.home_message_delete_confirm}?');" class="btn-red"><i class="iconfont">&#xe725;</i>
  57. <p>{$Think.lang.home_message_delete}</p>
  58. </a></span>
  59. {/if}</td>
  60. </tr>
  61. {/foreach}
  62. {else /}
  63. <tr>
  64. <td colspan="20" class="norecord"><div class="warning-option"><i>&nbsp;</i><span>{$Think.lang.no_record}</span></div></td>
  65. </tr>
  66. {/notempty}
  67. </tbody>
  68. <tfoot>
  69. {notempty name="message_array"}
  70. <tr>
  71. <td colspan="20"><div class="pagination">{$show_page|raw}</div></td>
  72. </tr>
  73. {/notempty}
  74. </tfoot>
  75. </table>
  76. {/block}