news.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <a href="{:U('WechatReply/news_add')}" class="btn btn-primary">新增</a>
  5. </div>
  6. <div class="row">
  7. <div class="col-xs-12">
  8. <div class="table-responsive">
  9. <table class="table table-striped table-bordered table-hover">
  10. <thead>
  11. <tr>
  12. <th>关键字</th>
  13. <th>图片</th>
  14. <th>启用</th>
  15. <th>操作</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. <volist name="list" id="data" empty="$empty">
  20. <tr>
  21. <td>{$data.keyword}</td>
  22. <td>
  23. <?php if($data['thumb']){ ?>
  24. <img src="__ROOT__/<?php echo resize($data['thumb'],50,50); ?>" />
  25. <?php }else{ ?>
  26. <img src="__ROOT__/Common/image/no_image_50x50.jpg" />
  27. <?php } ?>
  28. </td>
  29. <td>
  30. <switch name="data.status">
  31. <case value="1">是</case>
  32. <case value="0">否</case>
  33. </switch>
  34. </td>
  35. <td>
  36. <a class="btn btn-xs btn-info" href='{:U("WechatReply/news_edit",array("id"=>$data["nr_id"]))}'>
  37. <i class="icon-edit bigger-120"></i>
  38. </a>
  39. <a class="delete btn btn-xs btn-danger" href='{:U("WechatReply/news_del",array("id"=>$data["nr_id"]))}' >
  40. <i class="icon-trash bigger-120"></i>
  41. </a>
  42. </td>
  43. </tr>
  44. </volist>
  45. <tr>
  46. <td colspan="5" class="page">{$page}</td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. </div>
  52. </div>
  53. </block>