index.html 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {extend name="layout" /}
  2. {block name="content"}
  3. <div class="row">
  4. <div class="col-md-12">
  5. <div class="block">
  6. {notempty name="tab_nav"}
  7. <ul class="nav nav-tabs">
  8. {volist name="tab_nav['tab_list']" id="tab"}
  9. <li {eq name="tab_nav.curr_tab" value="$key"}class="active"{/eq}>
  10. <a href="{$tab.url}">{$tab.title}</a>
  11. </li>
  12. {/volist}
  13. <li class="pull-right">
  14. <ul class="block-options push-10-t push-10-r">
  15. <li>
  16. <a href="{:url('index', ['type' => $type])}"><i class="si si-{$type=='list' ? 'list' : 'grid'}"></i></a>
  17. </li>
  18. <li>
  19. <button type="button" data-toggle="block-option" data-action="fullscreen_toggle"></button>
  20. </li>
  21. </ul>
  22. </li>
  23. </ul>
  24. {else/}
  25. <div class="block-header bg-gray-lighter">
  26. <ul class="block-options">
  27. <li>
  28. <button type="button" data-toggle="block-option" data-action="fullscreen_toggle"></button>
  29. </li>
  30. <li>
  31. <button type="button" data-toggle="block-option" data-action="refresh_toggle" data-action-mode="demo"><i class="si si-refresh"></i></button>
  32. </li>
  33. <li>
  34. <button type="button" data-toggle="block-option" data-action="content_toggle"></button>
  35. </li>
  36. <li>
  37. <button type="button" data-toggle="block-option" data-action="close"><i class="si si-close"></i></button>
  38. </li>
  39. </ul>
  40. <h3 class="block-title">{$page_title}</h3>
  41. </div>
  42. {/notempty}
  43. <div class="block-content tab-content">
  44. <div class="tab-pane active">
  45. <div class="row push-20">
  46. <div class="col-md-12">
  47. <div class="pull-right search-bar">
  48. <form class="input-group">
  49. <span class="input-group-addon"><i class="fa fa-search"></i></span>
  50. <input type="text" class="form-control" value="{:input('get.keyword')}" name="keyword" placeholder="请输入标识/名称/作者">
  51. </form>
  52. </div>
  53. <div class="toolbar-btn-action">
  54. <a title="全部" class="btn btn-default" href="{:url('index')}">全部({$total.all|default='0'})</a>
  55. <a title="已启用" class="btn btn-success" href="{:url('index', ['status' => '1'])}">已启用({$total['1']|default='0'})</a>
  56. <a title="已禁用" class="btn btn-warning" href="{:url('index', ['status' => '0'])}">已禁用({$total['0']|default='0'})</a>
  57. <a title="未安装" class="btn btn-info" href="{:url('index', ['status' => '-1'])}">未安装({$total['-1']|default='0'})</a>
  58. <a title="已损坏" class="btn btn-danger" href="{:url('index', ['status' => '-2'])}" id="hide_disable">已损坏({$total['-2']|default='0'})</a>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="row module-list push-20">
  63. {empty name="modules"}
  64. <div class="table-empty">
  65. <div class="text-center empty-info">
  66. <i class="fa fa-database"></i> 暂无数据<br>
  67. </div>
  68. </div>
  69. {/empty}
  70. {eq name="type" value="block"}
  71. {volist name="modules" id="module"}
  72. <div class="col-sm-6 col-md-4 col-lg-3">
  73. <div class="block block-rounded">
  74. <div class="block-content block-content-full text-center bg-{$module.bg_color|default='danger'} ribbon ribbon-bookmark ribbon-crystal">
  75. <div class="ribbon-box font-w600">{$module.version|default='无版本号'}</div>
  76. <div class="item item-2x item-circle bg-crystal-op push-20-t push-20 visibility-hidden" data-toggle="appear" data-offset="50" data-class="animated fadeIn">
  77. <i class="{$module.icon|default='fa fa-puzzle-piece'} text-white-op"></i>
  78. </div>
  79. <h3 class="h4 text-white">{$module.title|default='无模块标题'}</h3>
  80. <div class="text-white-op">
  81. <em>{$module.name|default=''}</em>
  82. </div>
  83. </div>
  84. <div class="block-content bg-gray-lighter">
  85. <div class="{$module.status_class} pull-right push-10-l">{$module.status_info|raw}</div>
  86. <div class="push-10">
  87. <a class="h5" href="{$module.author_url|default=''}" target="_blank"><i class="fa fa-user"></i> {$module.author|default=''}</a>
  88. </div>
  89. <div class="push-10 mheight-100">
  90. <div data-toggle="slimscroll" data-height="110px">
  91. <p class="text-gray-dark">{$module.description|raw|default='暂无简介'}</p>
  92. </div>
  93. </div>
  94. <div class="text-center push">
  95. {$module.actions|raw}
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. {/volist}
  101. {else/}
  102. {notempty name="modules"}
  103. <div class="col-md-12">
  104. <div class="builder-table-wrapper" id="builder-table-wrapper">
  105. <div class="builder-table" id="builder-table">
  106. <table class="table table-builder table-hover table-bordered table-striped">
  107. <thead>
  108. <tr>
  109. <th>名称</th>
  110. <th>图标</th>
  111. <th>版本</th>
  112. <th>作者</th>
  113. <th>简介</th>
  114. <th class="column-right_button">操作</th>
  115. </tr>
  116. </thead>
  117. <tbody>
  118. {volist name="modules" id="module"}
  119. <tr>
  120. <td>{$module.title|default='无模块标题'}</td>
  121. <td><i class="{$module.icon|default='fa fa-puzzle-piece'}"></i></td>
  122. <td>{$module.version|default='无版本号'}</td>
  123. <td><a href="{$module.author_url|default=''}" target="_blank">{$module.author|default=''}</a></td>
  124. <td>{$module.description|raw|default='暂无简介'}</td>
  125. <td>{$module.actions|raw}</td>
  126. </tr>
  127. {/volist}
  128. </tbody>
  129. </table>
  130. </div>
  131. </div>
  132. </div>
  133. {/notempty}
  134. {/eq}
  135. </div>
  136. <div class="data-table-toolbar">
  137. <div class="row">
  138. <div class="col-sm-12">
  139. {// 分页 }
  140. {notempty name="pages"}
  141. {$pages}
  142. {/notempty}
  143. {notempty name="row_list"}
  144. <div class="pagination-info pull-right">
  145. <form action="" method="get">
  146. <input type="text" class="form-control input-sm go-page" name="page" value="{:input('param.page', '1')}">
  147. <input type="text" class="form-control input-sm nums" name="list_rows" value="{php}echo input('param.list_rows', '') == '' ? config('list_rows') : input('param.list_rows');{/php}">
  148. <input type="submit" class="hidden">
  149. / <strong>{$row_list->lastPage()}</strong> 页,共 <strong>{$row_list->total()}</strong> 条数据,每页显示数量
  150. </form>
  151. </div>
  152. {/notempty}
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. {/block}