adv_index.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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" name="formSearch" id="formSearch">
  12. <div class="ds-search-form">
  13. <dl>
  14. <dt>{$Think.lang.adv_ap_id}</dt>
  15. <dd>
  16. <select name="ap_id">
  17. <option value="">{$Think.lang.ds_please_choose}...</option>
  18. {foreach name="ap_list" item="ap_v"}
  19. <option value="{$ap_v.ap_id}" {if condition="$Request.param.ap_id eq $ap_v.ap_id"}selected{/if}>{$ap_v.ap_name}[{$ap_v.ap_width}X{$ap_v.ap_height}]</option>
  20. {/foreach}
  21. </select>
  22. </dd>
  23. </dl>
  24. <div class="btn_group">
  25. <input type="submit" class="btn" value="{$Think.lang.ds_search}">
  26. {if $filtered}
  27. <a href="{:url('Adv/adv')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  28. {/if}
  29. </div>
  30. </div>
  31. </form>
  32. <div class="explanation" id="explanation">
  33. <div class="title" id="checkZoom">
  34. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  35. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  36. </div>
  37. <ul>
  38. <li>{$Think.lang.adv_help3}</li>
  39. </ul>
  40. </div>
  41. <div class="fixed-empty"></div>
  42. <form method="post" id="store_form">
  43. <table class="ds-default-table">
  44. <thead>
  45. <tr class="thead">
  46. <th class="w24"></th>
  47. <th class="w300">{$Think.lang.adv_name}</th>
  48. <th class="w300">{$Think.lang.adv_ap_id}</th>
  49. <th class="w60">{$Think.lang.adv_sort}</th>
  50. <th class="w60">{$Think.lang.adv_clicknum}</th>
  51. <th class="w200">{$Think.lang.adv_code}</th>
  52. <th class="w60">{$Think.lang.adv_enabled}</th>
  53. <th class="w150">{$Think.lang.ds_start_time}</th>
  54. <th class="w150">{$Think.lang.ds_end_time}</th>
  55. <th class="align-center">{$Think.lang.ds_handle}</th>
  56. </tr>
  57. </thead>
  58. <tbody>
  59. {notempty name="adv_info"}
  60. {foreach name="adv_info" item="v"}
  61. <tr class="hover" id="ds_row_{$v.adv_id}">
  62. <td class="w24"><input type="checkbox" class="checkitem" name="del_id[]" value="{$v.adv_id}" /></td>
  63. <td class="name"><span class="editable" ds_type="inline_edit" ajax_branch='adv_branch' fieldname="adv_title" fieldid="{$v.adv_id}" required="1" title="{$Think.lang.ds_editable}">{$v.adv_title}</span></td>
  64. <td>
  65. {foreach name="ap_list" item="ap_v"}
  66. {if $ap_v.ap_id === $v.ap_id }
  67. <span title="{$ap_v.ap_name}">{$ap_v.ap_name}</span>
  68. {/if}
  69. {/foreach}
  70. </td>
  71. <td class="sort"><span title="{$Think.lang.ds_editable}" ajax_branch="adv_branch" datatype="number" fieldid="{$v.adv_id}" fieldname="adv_sort" ds_type="inline_edit" class="editable">{$v.adv_sort}</span></td>
  72. <td>{$v.adv_clicknum|default='0'}</td>
  73. <td><a data-lightbox="lightbox-image" data-title="{$v.adv_title}" href="{:ds_get_pic(ATTACH_ADV,$v.adv_code)}"><img src="{:ds_get_pic(ATTACH_ADV,$v.adv_code)}" onload="javascript:ResizeImage(this,60,60);" /></a></td>
  74. <td class="yes-onoff">
  75. {if $v.adv_enabled eq '0'}
  76. <a href="JavaScript:void(0);" class=" disabled" ajax_branch="adv_branch" ds_type="inline_edit" fieldname="adv_enabled" fieldid="{$v.adv_id}" fieldvalue="0" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  77. {else /}
  78. <a href="JavaScript:void(0);" class=" enabled" ajax_branch="adv_branch" ds_type="inline_edit" fieldname="adv_enabled" fieldid="{$v.adv_id}" fieldvalue="1" title="{$Think.lang.ds_editable}"><img src="{$Think.ADMIN_SITE_ROOT}/images/treetable/transparent.gif"></a>
  79. {/if}
  80. </td>
  81. <td>{$v.adv_startdate|date='Y-m-d'}</td>
  82. <td>{$v.adv_enddate|date='Y-m-d'}</td>
  83. <td>
  84. <a href="javascript:dsLayerOpen('{:url('Adv/adv_edit',['adv_id'=>$v.adv_id])}','{$Think.lang.ds_edit}-{$v.adv_title}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  85. <a href="javascript:dsLayerConfirm('{:url('Adv/adv_del',['adv_id'=>$v.adv_id])}','{$Think.lang.ds_ensure_del}',{$v.adv_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  86. </td>
  87. </tr>
  88. {/foreach}
  89. {else /}
  90. <tr class="no_data">
  91. <td colspan="15">{$ap_name}{$Think.lang.ds_no_record}</td>
  92. </tr>
  93. {/notempty}
  94. </tbody>
  95. </table>
  96. {$show_page|raw}
  97. </form>
  98. </div>
  99. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  100. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  101. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>