index.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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_spec}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <div class="explanation" id="explanation">
  13. <div class="title" id="checkZoom">
  14. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  15. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  16. </div>
  17. <ul>
  18. <li>{$Think.lang.spec_index_tip1}</li>
  19. <li>{$Think.lang.spec_index_tip2}</li>
  20. <li>{$Think.lang.spec_index_tip3}</li>
  21. </ul>
  22. </div>
  23. <form method="get" name="formSearch" id="formSearch">
  24. <div class="ds-search-form">
  25. <dl>
  26. <dt>{$Think.lang.sp_name}</dt>
  27. <dd><input type="text" value="{$Request.get.sp_name|default=''}" name="sp_name" id="sp_name" class="txt"></dd>
  28. </dl>
  29. <dl>
  30. <dt>{$Think.lang.gc_name}</dt>
  31. <dd><input type="text" value="{$Request.get.gc_name|default=''}" name="gc_name" id="gc_name" class="txt"></dd>
  32. </dl>
  33. <div class="btn_group">
  34. <input type="hidden" name="type" value="{$Request.param.type}">
  35. <a href="javascript:void(0);" id="dssubmit" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  36. <a href="{:url('spec/index',['type'=>$Request.param.type])}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  37. </div>
  38. </div>
  39. </form>
  40. <table class="ds-default-table">
  41. <thead>
  42. <tr>
  43. <th>{$Think.lang.sp_id}</th>
  44. <th>{$Think.lang.sp_name}</th>
  45. <th>{$Think.lang.gc_name}</th>
  46. <th>{$Think.lang.ds_handle}</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. {foreach name="spec_list" item="spec"}
  51. <tr id="ds_row_{$spec.sp_id}">
  52. <td>{$spec.sp_id}</td>
  53. <td>{$spec.sp_name}</td>
  54. <td>{$spec.gc_name}</td>
  55. <td>
  56. <a href="javascript:dsLayerOpen('{:url('Spec/spec_edit',['sp_id'=>$spec.sp_id])}','{$Think.lang.ds_edit}-{$spec.sp_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  57. {if $spec.sp_id != 1}
  58. <a href="javascript:dsLayerConfirm('{:url('Spec/spec_drop',['sp_id'=>$spec.sp_id])}','{$Think.lang.ds_ensure_del}',{$spec.sp_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  59. {/if}
  60. </td>
  61. </tr>
  62. {/foreach}
  63. </tbody>
  64. </table>
  65. {$show_page|raw}
  66. </div>
  67. <script>
  68. $('#dssubmit').click(function(){
  69. $('#formSearch').submit();
  70. });
  71. </script>