index.html 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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_pointprod}</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.admin_pointprod_goods_name}</dt>
  16. <dd><input type="text" name="pg_name" id="pg_name" class="txt" value='{$Request.get.pg_name}'></dd>
  17. <dd>
  18. <select name="pg_state">
  19. <option value="" >{$Think.lang.admin_pointprod_state}</option>
  20. <option value="show" {eq name="Request.get.pg_state" value="show"}selected=selected{/eq}>{$Think.lang.admin_pointprod_show_up}</option>
  21. <option value="nshow" {eq name="Request.get.pg_state" value="nshow"}selected=selected{/eq}>{$Think.lang.admin_pointprod_show_down}</option>
  22. <option value="commend" {eq name="Request.get.pg_state" value="commend"}selected=selected{/eq}>{$Think.lang.admin_pointprod_commend}</option>
  23. </select>
  24. </dd>
  25. </dl>
  26. <div class="btn_group">
  27. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  28. <a href="{:url('Pointprod/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  29. </div>
  30. </div>
  31. </form>
  32. <div class="explanation" id="explanation">
  33. <div class="title" id="checkZoom">
  34. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  35. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  36. </div>
  37. <ul>
  38. <li>{$Think.lang.pointprod_help1}</li>
  39. </ul>
  40. </div>
  41. <table class="ds-default-table">
  42. <thead>
  43. <tr class="thead">
  44. <th class="w24">&nbsp;</th>
  45. <th class="w48">&nbsp;</th>
  46. <th class="w300">{$Think.lang.admin_pointprod_goods_name}</th>
  47. <th class="w60">{$Think.lang.admin_pointprod_goods_points}</th>
  48. <th class="w60">{$Think.lang.admin_pointprod_goods_price}</th>
  49. <th class="w60">{$Think.lang.admin_pointprod_goods_storage}</th>
  50. <th class="w60">{$Think.lang.admin_pointprod_goods_view}</th>
  51. <th class="w60">{$Think.lang.admin_pointprod_salenum}</th>
  52. <th class="w60">{$Think.lang.admin_pointprod_show_up}</th>
  53. <th class="w60">{$Think.lang.admin_pointprod_commend}</th>
  54. <th>{$Think.lang.ds_handle}</th>
  55. </tr>
  56. </thead>
  57. <tbody>
  58. {notempty name="prod_list"}
  59. {foreach name="prod_list" item="v"}
  60. <tr class="hover" id="ds_row_{$v.pgoods_id}">
  61. <td><input type="checkbox" name="pg_id[]" value="{$v.pgoods_id}" class="checkitem"></td>
  62. <td class="picture"><div class="size-44x44"><span class="thumb size-44x44"><i></i><img src="{$v.pgoods_image_small}" onload="javascript:ResizeImage(this,44,44);"/></span></div></td>
  63. <td><a href="{:url('home/Pointprod/pinfo',['id'=>$v.pgoods_id])}" target="_blank" >{$v.pgoods_name}</a></td>
  64. <td class="align-center">{$v.pgoods_points}</td>
  65. <td class="align-center">{$v.pgoods_price}</td>
  66. <td class="align-center">{$v.pgoods_storage}</td>
  67. <td class="align-center">{$v.pgoods_view}</td>
  68. <td class="align-center">{$v.pgoods_salenum}</td>
  69. <td class="align-center power-onoff">
  70. {eq name="v.pgoods_show" value="0"}
  71. <a href="JavaScript:void(0);" class=" disabled" ajax_branch='pgoods_show' ds_type="inline_edit" fieldname="pgoods_show" fieldid="{$v.pgoods_id}" fieldvalue="0" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  72. {else /}
  73. <a href="JavaScript:void(0);" class=" enabled" ajax_branch='pgoods_show' ds_type="inline_edit" fieldname="pgoods_show" fieldid="{$v.pgoods_id}" fieldvalue="1" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  74. {/eq}
  75. <td class="align-center yes-onoff">
  76. {eq name="v.pgoods_commend" value="0"}
  77. <a href="JavaScript:void(0);" class=" disabled" ajax_branch='pgoods_commend' ds_type="inline_edit" fieldname="pgoods_commend" fieldid="{$v.pgoods_id}" fieldvalue="0" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  78. {else /}
  79. <a href="JavaScript:void(0);" class=" enabled" ajax_branch='pgoods_commend' ds_type="inline_edit" fieldname="pgoods_commend" fieldid="{$v.pgoods_id}" fieldvalue="1" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  80. {/eq}</td>
  81. <td class="w72 align-center">
  82. <a href="{:url('Pointprod/prod_edit',['pg_id'=>$v.pgoods_id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  83. <a href="javascript:dsLayerConfirm('{:url('Pointprod/prod_drop',['pg_id'=>$v.pgoods_id])}','{$Think.lang.ds_ensure_del}',{$v.pgoods_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  84. </td>
  85. </tr>
  86. {/foreach}
  87. {else /}
  88. <tr class="no_data">
  89. <td colspan="11">{$Think.lang.ds_no_record}</td>
  90. </tr>
  91. {/notempty}
  92. </tbody>
  93. <tfoot>
  94. {notempty name="prod_list"}
  95. <tr>
  96. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  97. <td colspan="16" id="dataFuncs"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  98. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  99. </td>
  100. </tr>
  101. {/notempty}
  102. </tfoot>
  103. </table>
  104. {$show_page|raw}
  105. </div>
  106. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>