index.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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><input type="checkbox" class="checkall"/></th>
  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="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="w24"><input type="checkbox" class="checkitem" name="del_id[]" value="{$v.ap_id}" /></td>
  49. <td class="name"><span class="editable" ds_type="inline_edit" ajax_branch='ap_branch' fieldname="ap_name" fieldid="{$v.ap_id}" required="1" title="{$Think.lang.ds_editable}">{$v.ap_name}</span></td>
  50. <td class="align-center sort"><span class="editable" ds_type="inline_edit" ajax_branch='ap_branch' fieldname="ap_width" fieldid="{$v.ap_id}" datatype="pint" title="{$Think.lang.ds_editable}">{$v.ap_width}</span></td>
  51. <td class="align-center sort"><span class="editable" ds_type="inline_edit" ajax_branch='ap_branch' fieldname="ap_height" fieldid="{$v.ap_id}" datatype="pint" title="{$Think.lang.ds_editable}">{$v.ap_height}</span></td>
  52. <td class="align-center">
  53. <a href="{:url('Appadv/adv',['ap_id'=>$v.ap_id])}" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_manage}</a>
  54. <a href="javascript:dsLayerOpen('{:url('Appadv/ap_edit',['ap_id'=>$v.ap_id])}','{$Think.lang.ds_edit}-{$v.ap_name}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  55. {if $v.ap_id >4} <a href="javascript:dsLayerConfirm('{:url('Appadv/ap_del',['ap_id'=>$v.ap_id])}','{$Think.lang.ds_ensure_install}',{$v.ap_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>{/if}
  56. </td>
  57. </tr>
  58. {/foreach}
  59. {else /}
  60. <tr class="no_data">
  61. <td colspan="15">{$Think.lang.ds_no_record}</td>
  62. </tr>
  63. {/notempty}
  64. </tbody>
  65. </table>
  66. {$showpage|raw}
  67. </div>
  68. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>