index.html 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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_navigation}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch" id="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.nav_title}</dt>
  16. <dd><input type="text" value="{$Request.param.nav_title}" name="nav_title" class="txt"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.nav_location}</dt>
  20. <dd>
  21. <select name="nav_location">
  22. <option value="">{$Think.lang.ds_please_choose}...</option>
  23. <option value="header" {if condition="$Request.param.nav_location eq 'header'"}selected{/if}>{$Think.lang.nav_top}</option>
  24. <option value="middle" {if condition="$Request.param.nav_location eq 'middle'"}selected{/if}>{$Think.lang.nav_midd}</option>
  25. <option value="footer" {if condition="$Request.param.nav_location eq 'footer'"}selected{/if}>{$Think.lang.nav_foo}</option>
  26. </select>
  27. </dd>
  28. </dl>
  29. <div class="btn_group">
  30. <input type="submit" class="btn" value="{$Think.lang.ds_search}">
  31. <a href="{:url('Navigation/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  32. </div>
  33. </div>
  34. </form>
  35. <table class="ds-default-table">
  36. <thead>
  37. <tr>
  38. <th class="w24"></th>
  39. <th>{$Think.lang.nav_sort}</th>
  40. <th>{$Think.lang.nav_title}</th>
  41. <th>{$Think.lang.nav_url}</th>
  42. <th>{$Think.lang.nav_location}</th>
  43. <th>{$Think.lang.nav_new_open}</th>
  44. <th>{$Think.lang.ds_handle}</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. {foreach name="nav_list" item="nav"}
  49. <tr id="ds_row_{$nav.nav_id}">
  50. <td><input type="checkbox" class="checkitem" name="nav_id[]" value="{$nav.nav_id}" /></td>
  51. <td>{$nav.nav_sort}</td>
  52. <td>{$nav.nav_title}</td>
  53. <td>{$nav.nav_url}</td>
  54. <td>{if $nav.nav_location eq 'header'}{$Think.lang.nav_top}{elseif $nav.nav_location eq 'middle'}{$Think.lang.nav_midd}{else}{$Think.lang.nav_foo}{/if}</td>
  55. <td>{if $nav.nav_new_open eq '0'}{$Think.lang.ds_no}{else}{$Think.lang.ds_yes}{/if}</td>
  56. <td>
  57. <a href="javascript:dsLayerOpen('{:url('Navigation/edit',['nav_id'=>$nav.nav_id])}','{$Think.lang.ds_edit}{$nav.nav_title}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  58. <a href="javascript:dsLayerConfirm('{:url('Navigation/drop',['nav_id'=>$nav.nav_id])}','{$Think.lang.ds_ensure_del}',{$nav.nav_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  59. </td>
  60. </tr>
  61. {/foreach}
  62. </tbody>
  63. <tfoot>
  64. {notempty name="nav_list"}
  65. <tr class="tfoot">
  66. <td><input type="checkbox" class="checkall" id="checkallBottom"></td>
  67. <td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
  68. &nbsp;&nbsp;<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
  69. </td>
  70. </tr>
  71. {/notempty}
  72. </tfoot>
  73. </table>
  74. {$show_page|raw}
  75. </div>
  76. <script type="text/javascript">
  77. function submit_delete(ids_str) {
  78. _uri = ADMINSITEURL + "/Navigation/drop.html?nav_id=" + ids_str;
  79. dsLayerConfirm(_uri, '{$Think.lang.ds_ensure_del}');
  80. }
  81. </script>