index.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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_article}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch" id="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.article_title}</dt>
  16. <dd><input type="text" value="{$Request.param.search_title}" name="search_title" class="txt"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.ds_articleclass}</dt>
  20. <dd>
  21. <select name="search_ac_id">
  22. <option value="">{$Think.lang.ds_please_choose}...</option>
  23. {foreach name="parent_list" item="v" key="k"}
  24. <option value="{$v.ac_id}" {if condition="$Request.param.search_ac_id eq $v.ac_id"}selected{/if}>{$v.ac_name|raw}</option>
  25. {/foreach}
  26. </select>
  27. </dd>
  28. </dl>
  29. <div class="btn_group">
  30. <input type="submit" class="btn" value="{$Think.lang.ds_search}">
  31. {if $filtered}
  32. <a href="{:url('Article/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  33. {/if}
  34. </div>
  35. </div>
  36. </form>
  37. <table class="ds-default-table">
  38. <thead>
  39. <tr>
  40. <th>{$Think.lang.article_sort}</th>
  41. <th>{$Think.lang.article_id}</th>
  42. <th>{$Think.lang.article_title}</th>
  43. <th>{$Think.lang.article_cate}</th>
  44. <th>{$Think.lang.article_show}</th>
  45. <th>{$Think.lang.article_time}</th>
  46. <th>{$Think.lang.ds_handle}</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. {notempty name="article_list"}
  51. {foreach name="article_list" item="article"}
  52. <tr id="ds_row_{$article.article_id}">
  53. <td>{$article.article_sort}</td>
  54. <td>{$article.article_id}</td>
  55. <td>{$article.article_title}</td>
  56. <td>{$article.ac_name|default=''}</td>
  57. <td>{if $article.article_show eq '1'}{$Think.lang.ds_yes}{else}{$Think.lang.ds_no}{/if}</td>
  58. <td>{$article.article_time}</td>
  59. <td>
  60. <a href="{:url('Article/edit',['article_id'=>$article.article_id])}" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  61. <a href="javascript:dsLayerConfirm('{:url('Article/drop',['article_id'=>$article.article_id])}','{$Think.lang.ds_ensure_del}',{$article.article_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
  62. </td>
  63. </tr>
  64. {/foreach}
  65. {else /}
  66. <tr class="no_data">
  67. <td colspan="10">{$Think.lang.ds_no_record}</td>
  68. </tr>
  69. {/notempty}
  70. </tbody>
  71. </table>
  72. {$show_page|raw}
  73. </div>