index.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <a href="{:U('PluginsSlider/add')}" class="btn btn-primary">新增</a>
  5. </div>
  6. <div class="row">
  7. <div class="col-xs-12">
  8. <div class="alert alert-block alert-success">
  9. </div>
  10. </div>
  11. <div class="col-xs-12">
  12. <div class="table-responsive">
  13. <table class="table table-striped table-bordered table-hover">
  14. <thead>
  15. <tr>
  16. <th>ID</th>
  17. <th>广告位名称</th>
  18. <th>广告位置</th>
  19. <th>图片</th>
  20. <th>URL</th>
  21. <th>排序</th>
  22. <th>操作</th>
  23. </tr>
  24. </thead>
  25. <tbody>
  26. <volist name="list" id="data" empty="$empty">
  27. <tr>
  28. <td>{$data.slider_id}</td>
  29. <td>{$data.slider_name}</td>
  30. <td><?php echo $type_config[$data['type']]; ?></td>
  31. <td><img src="__ROOT__/{$data.image}" /></td>
  32. <td>{$data.url}</td>
  33. <td>{$data.sort_order}</td>
  34. <td>
  35. <a class="btn btn-xs btn-info" href='{:U("PluginsSlider/edit",array("id"=>$data["slider_id"]))}'>
  36. <i class="icon-edit bigger-120"></i>
  37. </a>
  38. <a class="delete btn btn-xs btn-danger" href='{:U("PluginsSlider/del",array("id"=>$data["slider_id"]))}' >
  39. <i class="icon-trash bigger-120"></i>
  40. </a>
  41. </td>
  42. </tr>
  43. </volist>
  44. <tr>
  45. <td colspan="5" class="page">{$page}</td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. </div>
  52. </block>