Bez popisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.htm 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page">
  6. <div class="fixed-bar">
  7. <div class="item-title">
  8. <a class="back_xin" href="{:url('Index/switch_map')}" title="返回"><i class="iconfont e-fanhui"></i></a>
  9. <div class="subject">
  10. <h3>积分兑换</h3>
  11. <h5></h5>
  12. </div>
  13. <ul class="tab-base nc-row">
  14. {eq name="'Memgift@gift_exchange_list'|is_check_access" value="1"}
  15. <li>
  16. <a {if condition="in_array($Request.action, ['gift_exchange_list'])"}class="current"{/if} href="{:url('Memgift/gift_exchange_list')}">
  17. <span>兑换列表</span>
  18. </a>
  19. </li>
  20. {/eq}
  21. {eq name="'Memgift@index'|is_check_access" value="1"}
  22. <li>
  23. <a {if condition="in_array($Request.action, ['index'])"}class="current"{/if} href="{:url('Memgift/index')}">
  24. <span>商品列表</span>
  25. </a>
  26. </li>
  27. {/eq}
  28. </ul>
  29. </div>
  30. </div>
  31. <div class="flexigrid" style="min-height: 600px;">
  32. <div class="mDiv pt0">
  33. <div class="ftitle">
  34. <div class="fbutton" style="float: none;">
  35. <!--<a data-href="{:url('Memgift/add')}" onclick="openFullframe(this, '兑换列表');">-->
  36. <a href="{:url('Memgift/add')}">
  37. <div class="add">
  38. <span><i class="layui-icon layui-icon-addition"></i>新增商品</span>
  39. </div>
  40. </a>
  41. </div>
  42. </div>
  43. <form class="navbar-form form-inline" id="searchForm" action="{:url('Memgift/index')}" method="get" onsubmit="layer_loading('正在处理');">
  44. {$searchform.hidden|default=''}
  45. <div class="sDiv">
  46. <div class="sDiv2">
  47. <select name="status" class="select" style="margin:0px 5px;">
  48. <option value="">--商品状态--</option>
  49. <option value="1" {eq name="$Request.param.status" value="1"}selected{/eq}>显示</option>
  50. <option value="0" {eq name="$Request.param.status" value="0"}selected{/eq}>隐藏</option>
  51. </select>
  52. </div>
  53. 价格范围:
  54. <div class="sDiv2">
  55. <input type="text" size="30" name="price1" value="{$Request.param.price1}" class="qsbox" style="background-color: #FFF;font-size: 12px;line-height: 24px;width: 40px;height: 24px;padding: 1px 5px 1px 5px;">
  56. </div>
  57. <span>至</span>
  58. <div class="sDiv2">
  59. <input type="text" size="30" name="price2" value="{$Request.param.price2}" class="qsbox" style="background-color: #FFF;font-size: 12px;line-height: 24px;width: 40px;height: 24px;padding: 1px 5px 1px 5px;">
  60. </div>
  61. <span style="width: 20px;display: inline-block;"></span>
  62. <div class="sDiv2">
  63. <input type="submit" style="border-radius: 0;color: #3398cc;line-height: 24px;padding: 0px 15px 0px 15px;font-size: 12px;background: #fff;border: 1px solid #3398cc;cursor: pointer;" value="搜索">
  64. </div>
  65. </div>
  66. </form>
  67. </div>
  68. <div class="hDiv">
  69. <div class="hDivBox">
  70. <table cellspacing="0" cellpadding="0" style="width: 100%">
  71. <thead>
  72. <tr>
  73. <th abbr="download_title" axis="col3" class="w60">
  74. <div class="tc">ID</div>
  75. </th>
  76. <th abbr="ac_id" axis="col4">
  77. <div class="text-l10">商品名称</div>
  78. </th>
  79. <th abbr="download_time" axis="col6" class="w100">
  80. <div class="tc">{$score.score_name}</div>
  81. </th>
  82. <th abbr="article_time" axis="col6" class="w80">
  83. <div class="tc">类型</div>
  84. </th>
  85. <th align="center" abbr="download_time" axis="col6" class="w80">
  86. <div class="tc">库存</div>
  87. </th>
  88. <th abbr="download_time" axis="col6" class="w100">
  89. <div class="tc">兑换者</div>
  90. </th>
  91. <th abbr="download_time" axis="col6" class="w80">
  92. <div class="tc">兑换次数</div>
  93. </th>
  94. <th abbr="download_time" axis="col6" class="w80">
  95. <div class="tc">显示</div>
  96. </th>
  97. <th axis="col1" class="w100">
  98. <div class="tc">操作</div>
  99. </th>
  100. <th abbr="article_time" axis="col6" class="w60">
  101. <div class="tc">排序</div>
  102. </th>
  103. </tr>
  104. </thead>
  105. </table>
  106. </div>
  107. </div>
  108. <div class="bDiv" style="height: auto;">
  109. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  110. <table style="width: 100%">
  111. <tbody>
  112. {empty name="list"}
  113. <tr>
  114. <td class="no-data" align="center" axis="col0" colspan="50">
  115. <div class="no_row">
  116. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  117. </div>
  118. </td>
  119. </tr>
  120. {else/}
  121. {foreach name="list" item="vo" key="k" }
  122. <tr>
  123. <td class="sort">
  124. <div class="tc w60">
  125. {$vo.gift_id}
  126. </div>
  127. </td>
  128. <td style="width: 100%">
  129. <div class="text-l10">
  130. {$vo.giftname}
  131. </div>
  132. </td>
  133. <td>
  134. <div class="w100 tc">
  135. {$vo.score}
  136. </div>
  137. </td>
  138. <td>
  139. <div class="tc w80">
  140. {eyou:if condition="$vo.type eq -1"}
  141. 实物
  142. {else /}
  143. 虚拟
  144. {/eyou:if}
  145. </div>
  146. </td>
  147. <td>
  148. <div class="tc w80">
  149. {$vo.stock}
  150. </div>
  151. </td>
  152. <td>
  153. <div class="tc w100">
  154. {eyou:empty name="$vo.num"}
  155. 无人兑换
  156. {else /}
  157. <a data-href="{:url('admin/Memgift/gift_exchange_list',array('gift_id'=>$vo.gift_id))}" onclick="openFullframe(this, '兑换列表');" style="cursor: pointer;"><u style="text-decoration: none;">查看兑换列表</u></a>
  158. {/eyou:empty}
  159. </div>
  160. </td>
  161. <td>
  162. <div class="tc w80">
  163. {$vo.num}
  164. </div>
  165. </td>
  166. <td>
  167. <div class="tc w80">
  168. {if condition="$vo['status'] eq 1"}
  169. <span class="yes" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} onClick="changeTableVal('memgift','gift_id','{$vo.gift_id}','status',this);" {/eq} ><i class="fa fa-check-circle"></i>是</span>
  170. {else /}
  171. <span class="no" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} onClick="changeTableVal('memgift','gift_id','{$vo.gift_id}','status',this);" {/eq} ><i class="fa fa-ban"></i>否</span>
  172. {/if}
  173. </div>
  174. </td>
  175. <td class="operation">
  176. <div class="w100 tc">
  177. {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
  178. <a href="{:url('Memgift/edit',array('gift_id'=>$vo['gift_id']))}" class="btn blue">编辑</a>
  179. {/eq}
  180. {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
  181. <i></i>
  182. <a class="btn red" href="javascript:void(0);" data-url="{:url('Memgift/del')}" data-id="{$vo.gift_id}" data-deltype="del" onClick="delfun(this);">删除</a>
  183. {/eq}
  184. </div>
  185. </td>
  186. <td class="sort">
  187. <div class="tc w60">
  188. {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
  189. <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'');" onpaste="this.value=this.value.replace(/[^\d]/g,'')" onchange="changeTableVal('memgift','gift_id','{$vo.gift_id}','sort_order',this);" size="4" value="{$vo.sort_order}" />
  190. {else /}
  191. {$vo.sort_order}
  192. {/eq}
  193. </div>
  194. </td>
  195. </tr>
  196. {/foreach}
  197. {/empty}
  198. </tbody>
  199. </table>
  200. </div>
  201. <div class="iDiv" style="display: none;"></div>
  202. </div>
  203. {notempty name="list"}
  204. <div class="footer-oper">
  205. <div class="nav-dropup">
  206. </div>
  207. {include file="public/page" /}
  208. </div>
  209. {/notempty}
  210. </div>
  211. </div>
  212. {include file="public/footer" /}