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.

28 lines
1.1 KiB

7 years ago
7 years ago
7 years ago
  1. @extends('admin.layouts.app')
  2. @section('title', '品牌列表')
  3. @section('content')
  4. <h2 class="sub-header">品牌管理</h2>[ <a href="/fladmin/goodsbrand/add">品牌添加</a> ]<br><br>
  5. <form name="listarc"><div class="table-responsive"><table class="table table-striped table-hover">
  6. <thead>
  7. <tr>
  8. <th>编号</th>
  9. <th>名称</th>
  10. <th>是否显示</th>
  11. <th>更新时间</th>
  12. <th>管理</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. <?php if($posts){foreach($posts as $row){ ?>
  17. <tr>
  18. <td><?php echo $row["id"]; ?></td>
  19. <td><a href="<?php echo route('admin_goodsbrand_edit',array('id'=>$row["id"])); ?>"><?php echo $row["title"]; ?></a></td>
  20. <td><?php if($row['status']==0){echo "";}else{echo "<font color=red>否</font>";} ?></td>
  21. <td><?php echo date('Y-m-d',$row["add_time"]); ?></td>
  22. <td><a href="<?php echo route('admin_goodsbrand_edit',array('id'=>$row["id"])); ?>">修改</a>&nbsp;<a onclick="delconfirm('<?php echo route('admin_goodsbrand_del',array('id'=>$row["id"])); ?>')" href="javascript:;">删除</a></td>
  23. </tr>
  24. <?php }} ?>
  25. </tbody>
  26. </table></div><!-- 表格结束 --></form><!-- 表单结束 -->
  27. @endsection