index.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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($albumclass_list)}
  20. <a class="btn btn-mini" target="_blank" href="{:url('home/Store/index',['store_id'=>$albumclass_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. {if $filtered}
  24. <a href="{:url('Goodsalbum/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  25. {/if}
  26. </div>
  27. </div>
  28. </form>
  29. <div class="explanation" id="explanation">
  30. <div class="title" id="checkZoom">
  31. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  32. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  33. </div>
  34. <ul>
  35. <li>{$Think.lang.g_album_del_tips}</li>
  36. </ul>
  37. </div>
  38. <form method='post' id="picForm" name="picForm">
  39. <table class="ds-default-table">
  40. <thead>
  41. <tr class="thead">
  42. <th class="w24"></th>
  43. <th class="w72 center">{$Think.lang.g_album_fmian}</th>
  44. <th class="w270">{$Think.lang.g_album_one}</th>
  45. <th class="w270">{$Think.lang.g_album_shop}</th>
  46. <th class="w270">{$Think.lang.g_album_pic_count}</th>
  47. <th class="align-center">{$Think.lang.ds_handle}</th>
  48. </tr>
  49. </thead>
  50. <tbody>
  51. {notempty name="albumclass_list"}
  52. {foreach name="albumclass_list" item="v"}
  53. <tr class="hover edit" id="ds_row_{$v.aclass_id}">
  54. <td><input value="{$v.aclass_id}" class="checkitem" type="checkbox" name="aclass_id[]"></td>
  55. <td>
  56. {notempty name="v.aclass_cover"}
  57. <img src="{:goods_cthumb($v.aclass_cover,240,$v.store_id)}" onload="javascript:ResizeImage(this,70,70);">
  58. {else /}
  59. <img src="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.default_goods_image)}" onload="javascript:ResizeImage(this,70,70);">
  60. {/notempty}
  61. </td>
  62. <td class="name">{$v.aclass_name}</td>
  63. <td class="class"><a href="{:url('home/Store/index',['store_id'=>$v.store_id])}" >{$v.store_name}</td>
  64. <td>{$pic_count[$v.aclass_id] ? $pic_count[$v.aclass_id] : 0}</td>
  65. <td class="align-center">
  66. <a href="{:url('Goodsalbum/pic_list',['aclass_id'=>$v.aclass_id])}" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.g_album_pic_one}</a>
  67. <a href="javascript:dsLayerConfirm('{:url('Goodsalbum/aclass_del',['aclass_id'=>$v.aclass_id])}','{$Think.lang.ds_ensure_del}',{$v.aclass_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a></td>
  68. </tr>
  69. {/foreach}
  70. {else}
  71. <tr class="no_data">
  72. <td colspan="10">{$Think.lang.ds_no_record}</td>
  73. </tr>
  74. {/notempty}
  75. </tbody>
  76. <tfoot>
  77. {notempty name="albumclass_list"}
  78. <tr colspan="15" class="tfoot">
  79. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  80. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  81. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  82. </td>
  83. </tr>
  84. {/notempty}
  85. </tfoot>
  86. </table>
  87. {$show_page|raw}
  88. </form>
  89. </div>
  90. <script type="text/javascript">
  91. function submit_delete(ids_str){
  92. _uri = ADMINSITEURL+"/Goodsalbum/aclass_del.html?aclass_id=" + ids_str;
  93. dsLayerConfirm(_uri,'{$Think.lang.ds_ensure_del}');
  94. }
  95. </script>