pic_list.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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_album}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.g_album_keyword}</dt>
  16. <dd><input class="txt" name="keyword" id="keyword" value="{$Request.get.keyword}" type="text"></dd>
  17. </dl>
  18. <div class="btn_group">
  19. {if $store_name!='' && !empty($albumpic_list)}
  20. <a class="btn btn-mini" target="_blank" href="{:url('home/Store/index',['store_id'=>$albumpic_list.0.store_id])}"><span>{$store_name}</span></a>
  21. {/if}
  22. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  23. <a href="{:url('Goodsalbum/pic_list',['aclass_id'=>$Request.param.aclass_id])}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  24. </div>
  25. </div>
  26. </form>
  27. <table class="ds-default-table">
  28. <tbody>
  29. {notempty name="albumpic_list"}
  30. <tr>
  31. <td colspan="20">
  32. <ul class="thumblists">
  33. {foreach name="albumpic_list" item="v"}
  34. <li class="picture" id="ds_row_{$v.apic_id}">
  35. <div class="size-64x64">
  36. <span class="thumb">
  37. <i></i>
  38. {notempty name="v.apic_cover"}
  39. <a data-lightbox="lightbox-image" href="{:goods_cthumb($v.apic_cover,1280,$v.store_id)}" rel="gal">
  40. <img title='{$v.apic_uploadtime|date="Y-m-d"}<br>{$v.apic_spec}px<br>{:number_format($v.apic_size/1024,2)}k' width="64" height="64" class="tip" src="{:goods_cthumb($v.apic_cover,240,$v.store_id)}">
  41. </a>
  42. {else}
  43. <img height="64" src="" max-height='70px' max-width="70px">
  44. {/notempty}
  45. </span>
  46. </div>
  47. <p>
  48. <span><input class="checkitem" type="checkbox" name="delbox[]" value="{$v.apic_id}"></span><span><a href="javascript:dsLayerConfirm('{:url('Goodsalbum/del_album_pic',['apic_id'=>$v.apic_id])}','{$Think.lang.ds_ensure_del}',{$v.apic_id})">{$Think.lang.ds_del}</a></span>
  49. </p>
  50. </li>
  51. {/foreach}
  52. </ul>
  53. </td>
  54. </tr>
  55. {else /}
  56. <tr class="no_data">
  57. <td colspan="15">{$Think.lang.ds_no_record}</td>
  58. </tr>
  59. {/notempty}
  60. </tbody>
  61. <tfoot>
  62. <tr class="tfoot">
  63. <td class="w48"><input id="checkallBottom" class="checkall" type="checkbox"/></td>
  64. <td colspan="16">
  65. <label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  66. <a class="btn btn-small" href="javascript:void(0);" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  67. </td>
  68. </tr>
  69. </tfoot>
  70. </table>
  71. {$show_page|raw}
  72. </div>
  73. <script>
  74. jQuery.browser={};(function(){jQuery.browser.msie=false; jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)./)){ jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})();
  75. </script>
  76. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.poshytip.min.js"></script>
  77. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  78. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  79. <script>
  80. $(function () {
  81. $('.tip').poshytip({
  82. className: 'tip-yellowsimple',
  83. alignTo: 'target',
  84. alignX: 'center',
  85. alignY: 'bottom',
  86. offsetX: 0,
  87. offsetY: 5,
  88. allowTipHover: false
  89. });
  90. });
  91. function submit_delete(ids_str){
  92. _uri = ADMINSITEURL+"/Goodsalbum/del_album_pic.html?apic_id=" + ids_str;
  93. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  94. }
  95. </script>