index.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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_activity_manage}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.activity_index_title}</dt>
  16. <dd><input type="text" name="searchtitle" id="searchtitle" class="txt" value='{$Request.get.searchtitle}'></dd>
  17. <dd>
  18. <select name="searchstate">
  19. <option value="0">{$Think.lang.activity_openstate}</option>
  20. <option value="2" {eq name="Request.get.searchstate" value="2"}selected=selected{/eq}>{$Think.lang.activity_openstate_open}</option>
  21. <option value="1" {eq name="Request.get.searchstate" value="1"}selected=selected{/eq}>{$Think.lang.activity_openstate_close}</option>
  22. </select>
  23. </dd>
  24. </dl>
  25. <dl>
  26. <dt>{$Think.lang.activity_index_periodofvalidity}</dt>
  27. <dd>
  28. <input type="text" name="searchstartdate" id="searchstartdate" class="txt date" readonly='' value='{$Request.get.searchstartdate}'>~
  29. <input type="text" name="searchenddate" id="searchenddate" class="txt date" readonly='' value='{$Request.get.searchenddate}'>
  30. </dd>
  31. </dl>
  32. <div class="btn_group">
  33. <a href="javascript:document.formSearch.submit();" class="btn " title="{$Think.lang.ds_query}">{$Think.lang.ds_query}</a>
  34. {if $filtered}
  35. <a href="{:url('Activity/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  36. {/if}
  37. </div>
  38. </div>
  39. </form>
  40. <div class="explanation" id="explanation">
  41. <div class="title" id="checkZoom">
  42. <h4 title="{$Think.lang.ds_explanation_tip}">{$Think.lang.ds_explanation}</h4>
  43. <span id="explanationZoom" title="{$Think.lang.ds_explanation_close}" class="arrow"></span>
  44. </div>
  45. <ul>
  46. <li>{$Think.lang.activity_index_help1}</li>
  47. <li>{$Think.lang.activity_index_help2}</li>
  48. <li>{$Think.lang.activity_index_help3}</li>
  49. <li>{$Think.lang.activity_index_help4}</li>
  50. </ul>
  51. </div>
  52. <table class="ds-default-table">
  53. <thead>
  54. <tr class="thead">
  55. <th class="w48 ">{$Think.lang.ds_sort}</th>
  56. <th class="w270">{$Think.lang.activity_index_title}</th>
  57. <th class="w96">{$Think.lang.activity_index_banner}</th>
  58. <th class="w96 align-center">{$Think.lang.ds_start_time}</th>
  59. <th class="w96 align-center">{$Think.lang.ds_end_time}</th>
  60. <th class="w96 align-center">{$Think.lang.activity_openstate}</th>
  61. <th class="align-center">{$Think.lang.ds_handle}</th>
  62. </tr>
  63. </thead>
  64. <tbody id="treet1">
  65. {notempty name="activity_list"}
  66. {foreach name="activity_list" item="v"}
  67. <tr class="hover edit row" id="ds_row_{$v.activity_id}">
  68. <td class="sort"><span class="editable" title="{$Think.lang.ds_editable}" required="1" fieldid="{$v.activity_id}" ajax_branch='activity_sort' fieldname="activity_sort" ds_type="inline_edit" >{$v.activity_sort}</span></td>
  69. <td class="name"><span class="editable" title="{$Think.lang.ds_editable}" required="1" fieldid="{$v.activity_id}" ajax_branch='activity_title' fieldname="activity_title" ds_type="inline_edit" >{$v.activity_title}</span></td>
  70. <td>
  71. <div class="link-logo">
  72. <span class="thumb size-logo"><i></i>
  73. <img height="31" width="88" src="{:ds_get_pic(ATTACH_ACTIVITY,$v.activity_banner)}" onload="javascript:ResizeImage(this,88,31);" />
  74. </span>
  75. </div>
  76. </td>
  77. <td class="nowrap align-center">{$v.activity_startdate|date="Y-m-d"}</td>
  78. <td class="align-center">{$v.activity_enddate|date="Y-m-d"}</td>
  79. <td class="align-center">{eq name="v.activity_state" value="1"}{$Think.lang.activity_openstate_open}{else/}{$Think.lang.activity_openstate_close}{/eq}</td>
  80. <td class="align-center">
  81. <a href="javascript:dsLayerOpen('{:url('Activity/edit',['activity_id'=>$v.activity_id])}','{$Think.lang.ds_edit}-{$v.activity_title}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  82. {if ($v.activity_state eq '0') OR ($v.activity_state lt TIMESTAMP)}
  83. <a href="javascript:dsLayerConfirm('{:url('Activity/del',['activity_id'=>$v.activity_id])}','{$Think.lang.ds_ensure_del}',{$v.activity_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  84. {/if}
  85. <a href="{:url('Activity/detail',['id'=>$v.activity_id])}" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.activity_index_deal_apply}</a>
  86. </td>
  87. </tr>
  88. {/foreach}
  89. {else /}
  90. <tr class="no_data">
  91. <td colspan="10">{$Think.lang.ds_no_record}</td>
  92. </tr>
  93. {/notempty}
  94. </tbody>
  95. </table>
  96. {$show_page|raw}
  97. </div>
  98. <script type="text/javascript" src="{$Think.ADMIN_SITE_ROOT}/js/jquery.edit.js" charset="utf-8"></script>
  99. <script type="text/javascript">
  100. $("#searchstartdate").datepicker({dateFormat: 'yy-mm-dd'});
  101. $("#searchenddate").datepicker({dateFormat: 'yy-mm-dd'});
  102. </script>