You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.5 KiB

8 years ago
8 years ago
8 years ago
  1. <!DOCTYPE html><html><head><title>轮播图列表_后台管理</title>@include('admin.common.header')
  2. <div class="container-fluid">
  3. <div class="row">
  4. <!-- 左边开始 --><div class="col-sm-3 col-md-2 sidebar">@include('admin.common.leftmenu')</div><!-- 左边结束 -->
  5. <!-- 右边开始 --><div class="col-sm-9 col-md-10 rightbox"><div id="mainbox">
  6. <h2 class="sub-header">轮播图管理</h2>[ <a href="/fladmin/slide/add">添加轮播图</a> ]<br><br>
  7. <form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
  8. <thead><tr>
  9. <th>图片</th>
  10. <th>标题</th>
  11. <th>链接网址</th>
  12. <th>排序</th>
  13. <th>是否显示</th>
  14. <th>管理</th>
  15. </tr></thead>
  16. <tbody>
  17. <?php if($posts){foreach($posts as $row){ ?><tr>
  18. <td><img style="<?php if(empty($row->pic) || !imgmatch($row->pic)){ echo "display:none;"; } ?>" src="<?php if(imgmatch($row->pic)){echo $row->pic;} ?>" width="90" height="60"></td>
  19. <td><?php echo $row->title; ?></td>
  20. <td><?php echo $row->url; ?></td>
  21. <td><?php echo $row->rank; ?></td>
  22. <td><?php if($row->is_show==0){echo "";}else{echo "<font color=red>否</font>";} ?></td>
  23. <td><a href="/fladmin/slide/edit?id=<?php echo $row->id; ?>">修改</a> | <a onclick="delconfirm('/fladmin/slide/del?id=<?php echo $row->id; ?>')" href="javascript:;">删除</a></td>
  24. </tr><?php }} ?>
  25. </tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 -->
  26. <nav aria-label="Page navigation">{{ $posts->links() }}</nav>
  27. </div></div><!-- 右边结束 --></div></div>
  28. </body></html>