ap_manage.html 3.4 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.adv_index_manage}</h3>
  7. </div>
  8. {include file="public/admin_items" /}
  9. </div>
  10. </div>
  11. <div class="fixed-empty"></div>
  12. <form method="get" action="" name="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.ap_name}</dt>
  16. <dd><input class="txt" type="text" name="search_name" id="search_name" value="{$Request.param.search_name}" /></dd>
  17. </dl>
  18. <div class="btn_group">
  19. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  20. {if $filtered}
  21. <a href="{:url('Adv/ap_manage')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  22. {/if}
  23. </div>
  24. </div>
  25. </form>
  26. <div class="explanation" id="explanation">
  27. <div class="title" id="checkZoom">
  28. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  29. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  30. </div>
  31. <ul>
  32. <li>{$Think.lang.adv_help2}</li>
  33. </ul>
  34. </div>
  35. <table class="ds-default-table">
  36. <thead>
  37. <tr class="thead">
  38. <th>{$Think.lang.ap_name}</th>
  39. <th class="align-center">{$Think.lang.ap_width}</th>
  40. <th class="align-center">{$Think.lang.ap_height}</th>
  41. <th class="w60">{$Think.lang.ds_enable}</th>
  42. <th class="align-center">{$Think.lang.ds_handle}</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. {notempty name="ap_list"}
  47. {foreach name="ap_list" item="v" key="k" }
  48. <tr class="hover" id="ds_row_{$v.ap_id}">
  49. <td class="name"><span>{$v.ap_name}</span></td>
  50. <td class="align-center sort"><span>{$v.ap_width}</span></td>
  51. <td class="align-center sort"><span>{$v.ap_height}</span></td>
  52. <td class="yes-onoff">
  53. {if $v.ap_isuse eq '0'}
  54. <a href="JavaScript:void(0);" class=" disabled" ajax_branch="ap_branch" ds_type="inline_edit" fieldname="ap_isuse" fieldid="{$v.ap_id}" fieldvalue="0" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  55. {else /}
  56. <a href="JavaScript:void(0);" class=" enabled" ajax_branch="ap_branch" ds_type="inline_edit" fieldname="ap_isuse" fieldid="{$v.ap_id}" fieldvalue="1" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  57. {/if}
  58. </td>
  59. <td class="align-center">
  60. <a href="{:url('Adv/adv',['ap_id'=>$v.ap_id])}" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_manage}</a>
  61. </td>
  62. </tr>
  63. {/foreach}
  64. {else /}
  65. <tr class="no_data">
  66. <td colspan="15">{$Think.lang.ds_no_record}</td>
  67. </tr>
  68. {/notempty}
  69. </tbody>
  70. </table>
  71. {$showpage|raw}
  72. </div>
  73. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>