Нема описа
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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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 min-hg-c-10">
  6. {include file="links/bar" /}
  7. <div class="flexigrid">
  8. <div class="mDiv pt0">
  9. <div class="ftitle">
  10. {eq name="'Links@add'|is_check_access" value="1"}
  11. <div class="fbutton">
  12. <a href="javascript:void(0);" data-href="{:U('Links/add')}" onclick="openFullframe(this, '新增链接');">
  13. <div class="add" title="新增链接">
  14. <span><i class="layui-icon layui-icon-addition"></i>新增链接</span>
  15. </div>
  16. </a>
  17. </div>
  18. {/eq}
  19. {include file="links/links_group_bar" /}
  20. </div>
  21. <form class="navbar-form form-inline" id="searchForm" action="{:U('Links/index')}" method="get" onsubmit="layer_loading('正在处理');">
  22. {$searchform.hidden|default=''}
  23. <div class="sDiv">
  24. <div class="sDiv2">
  25. <select name="groupid" class="select" style="margin:0px 5px;">
  26. <option value="">--全部--</option>
  27. {volist name="links_group" id="vo"}
  28. <option value="{$vo.id}" {eq name="$Request.param.groupid" value="$vo.id"}selected{/eq}>{$vo.group_name}</option>
  29. {/volist}
  30. </select>
  31. </div>
  32. <div class="sDiv2">
  33. <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="搜索相关数据...">
  34. <input type="submit" class="btn" value="搜索">
  35. <i class="iconfont e-sousuo"></i>
  36. </div>
  37. </div>
  38. </form>
  39. </div>
  40. <div class="hDiv">
  41. <div class="hDivBox">
  42. <table cellspacing="0" cellpadding="0" style="width: 100%">
  43. <thead>
  44. <tr>
  45. <th class="sign w40" axis="col0">
  46. <div class="tc"><input type="checkbox" autocomplete="off" class="checkAll"></div>
  47. </th>
  48. <th abbr="article_show" axis="col5" class="w40">
  49. <div class="tc">ID</div>
  50. </th>
  51. <th abbr="article_title" axis="col3" class="w250">
  52. <div class="text-l10">网站名称</div>
  53. </th>
  54. <th abbr="ac_id" axis="col4">
  55. <div class="text-l10">链接地址</div>
  56. </th>
  57. <th abbr="article_time" axis="col6" class="w50">
  58. <div class="tc">显示</div>
  59. </th>
  60. <th abbr="article_time" axis="col6" class="w80">
  61. <div class="tc">链接类型</div>
  62. </th>
  63. <th abbr="article_time" axis="col6" class="w150">
  64. <div class="tc">链接分组</div>
  65. </th>
  66. <th abbr="article_time" axis="col6" class="w100">
  67. <div class="tc">更新时间</div>
  68. </th>
  69. <th axis="col1" class="w120">
  70. <div class="tc">操作</div>
  71. </th>
  72. <th abbr="article_show" axis="col5" class="w60">
  73. <div class="tc">排序</div>
  74. </th>
  75. </tr>
  76. </thead>
  77. </table>
  78. </div>
  79. </div>
  80. <div class="bDiv" style="height: auto;">
  81. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  82. <table style="width: 100%">
  83. <tbody>
  84. {empty name="list"}
  85. <tr>
  86. <td class="no-data" align="center" axis="col0" colspan="50">
  87. <div class="no_row">
  88. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  89. </div>
  90. </td>
  91. </tr>
  92. {else/}
  93. {foreach name="list" item="vo" key="k" }
  94. <tr>
  95. <td class="sign">
  96. <div class="w40 tc"><input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.id}"></div>
  97. </td>
  98. <td class="sort">
  99. <div class="w40 tc">
  100. {$vo.id}
  101. </div>
  102. </td>
  103. <td class="">
  104. <div class="w250 text-l10">
  105. {eq name="'Links@edit'|is_check_access" value="1"}
  106. <a href="javascript:void(0);" data-href="{:U('Links/edit',array('id'=>$vo['id']))}" onclick="openFullframe(this, '编辑友情链接');">{$vo.title}</a>
  107. {else /}
  108. {$vo.title}
  109. {/eq}
  110. </div>
  111. </td>
  112. <td style="width: 100%">
  113. <div class="text-l10">
  114. <a href="{$vo.url}" target="_blank">{$vo.url}</a>
  115. </div>
  116. </td>
  117. <td>
  118. <div class="tc w50">
  119. {if condition="$vo['status'] eq 1"}
  120. <span class="yes" {eq name="'Links@edit'|is_check_access" value="1"}onClick="changeTableVal('links','id','{$vo.id}','status',this);"{/eq}><i class="fa fa-check-circle"></i>是</span>
  121. {else /}
  122. <span class="no" {eq name="'Links@edit'|is_check_access" value="1"}onClick="changeTableVal('links','id','{$vo.id}','status',this);"{/eq}><i class="fa fa-ban"></i>否</span>
  123. {/if}
  124. </div>
  125. </td>
  126. <td class="">
  127. <div class="w80 tc">
  128. {eq name="$vo['typeid']" value='1'}
  129. 文字
  130. {else /}
  131. 图片
  132. {/eq}
  133. </div>
  134. </td>
  135. <td class="">
  136. <div class="w150 tc">
  137. {$vo.group_name}
  138. </div>
  139. </td>
  140. <td class="">
  141. <div class="w100 tc">
  142. {$vo.update_time|date='Y-m-d',###}
  143. </div>
  144. </td>
  145. <td class="operation">
  146. <div class="w120 tc">
  147. {eq name="'Links@edit'|is_check_access" value="1"}
  148. <a href="javascript:void(0);" data-href="{:U('Links/edit',array('id'=>$vo['id']))}" class="btn blue" onclick="openFullframe(this, '编辑友情链接');">编辑</a>
  149. {/eq}
  150. <i></i>
  151. {eq name="'Links@del'|is_check_access" value="1"}
  152. <a class="btn red" href="javascript:void(0)" data-url="{:U('Links/del')}" data-id="{$vo.id}" onClick="delfun(this);">删除</a>
  153. {/eq}
  154. </div>
  155. </td>
  156. <i></i>
  157. <td class="sort">
  158. <div class="w60 tc">
  159. {eq name="'Links@edit'|is_check_access" value="1"}
  160. <input style="text-align: left;" type="text" onchange="changeTableVal('links','id','{$vo.id}','sort_order',this);" size="4" value="{$vo.sort_order}" />
  161. {else /}
  162. {$vo.sort_order}
  163. {/eq}
  164. </div>
  165. </td>
  166. </tr>
  167. {/foreach}
  168. {/empty}
  169. </tbody>
  170. </table>
  171. </div>
  172. <div class="iDiv" style="display: none;"></div>
  173. </div>
  174. {notempty name="list"}
  175. <div class="tDiv">
  176. <div class="tDiv2">
  177. <div class="fbutton checkboxall">
  178. <input type="checkbox" autocomplete="off" class="checkAll">
  179. </div>
  180. {eq name="'Links@del'|is_check_access" value="1"}
  181. <div class="fbutton">
  182. <a onclick="batch_del(this, 'ids');" data-url="{:U('Links/del')}" class="layui-btn layui-btn-primary">
  183. <span>批量删除</span>
  184. </a>
  185. </div>
  186. {/eq}
  187. {include file="public/page" /}
  188. </div>
  189. <div style="clear:both"></div>
  190. </div>
  191. {/notempty}
  192. </div>
  193. </div>
  194. <script>
  195. $(function(){
  196. $('input[name*=ids]').click(function(){
  197. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  198. $('.checkAll').prop('checked','checked');
  199. } else {
  200. $('.checkAll').prop('checked', false);
  201. }
  202. });
  203. $('input[type=checkbox].checkAll').click(function(){
  204. $('input[type=checkbox]').prop('checked',this.checked);
  205. });
  206. $('#searchForm select[name=groupid]').change(function(){
  207. $('#searchForm').submit();
  208. });
  209. });
  210. $(document).ready(function(){
  211. // 表格行点击选中切换
  212. $('#flexigrid > table>tbody >tr').click(function(){
  213. $(this).toggleClass('trSelected');
  214. });
  215. // 点击刷新数据
  216. $('.fa-refresh').click(function(){
  217. location.href = location.href;
  218. });
  219. });
  220. </script>
  221. {include file="public/footer" /}