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