carset.html 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {template 'public/header'}
  2. {template 'public/comhead'}
  3. <style type="text/css">
  4. .nav-tabs{
  5. margin-top: 30px;
  6. }
  7. .nav-tabs>li>a:hover{
  8. color: #333;
  9. border-color: #31C2A5;
  10. background-color: white;
  11. }
  12. .nav-tabs > li.active > a,.nav-tabs > li.active > a:hover{
  13. background-color: #31C2A5;
  14. color: white;
  15. border-color: #31C2A5;
  16. }
  17. .nav.nav-tabs{border-color: #31C2A5;}
  18. .yg5_key>div{float: left;line-height: 34px;}
  19. .store_td1{height: 45px;}
  20. .store_list_img{width: 60px;height: 60px;}
  21. .yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;}
  22. .yg5_tr2>td{padding: 15px;border: 1px solid #e5e5e5;text-align: center;}
  23. .yg5_tr1>td{
  24. border: 1px solid #e5e5e5;
  25. padding-left: 15px;
  26. background-color: #FAFAFA;
  27. font-weight: bold;
  28. text-align: center;
  29. }
  30. .yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}
  31. </style>
  32. <ul class="nav nav-tabs">
  33. <li class="active"><a href="{php echo $this->createWebUrl('carset')}">拼车置顶管理</a></li>
  34. {if $count['total']<3}
  35. <li><a href="{php echo $this->createWebUrl('addcarset')}">添加拼车置顶</a></li>
  36. {/if}
  37. </ul>
  38. <div class="main">
  39. <div class="panel panel-default">
  40. <div class="panel-body">
  41. <a class="btn btn-primary" href="javascript:location.reload()"><i class="fa fa-refresh"></i>刷新</a>
  42. </div>
  43. </div>
  44. <!-- 门店列表部分开始 -->
  45. <div class="panel panel-default">
  46. <div class="panel-heading">
  47. 拼车置顶管理
  48. </div>
  49. <div class="panel-body" style="padding: 0px 15px;">
  50. <div class="row">
  51. <table class="yg5_tabel col-md-12">
  52. <tr class="yg5_tr1">
  53. <td class="store_td1 col-md-1">排序</td>
  54. <td class="col-md-2">期限</td>
  55. <td class="col-md-2">价格</td>
  56. <td class="col-md-3">操作</td>
  57. </tr>
  58. {loop $list $row}
  59. <tr class="yg5_tr2">
  60. <td><div>{$row['num']}</div></td>
  61. <td>
  62. {if $row['type']==1}一天{elseif $row['type']==2}一周{elseif $row['type']==3}一个月{/if}
  63. </td>
  64. <td>{$row['money']}</td>
  65. <td><a class="btn btn-warning btn-sm" href="{php echo $this->createWebUrl('addcarset', array('id' => $row['id']))}" title="编辑">改</a>&nbsp;&nbsp;
  66. <button type="button" class="btn btn-danger btn-sm" data-toggle="modal" data-target="#myModal{$row['id']}">删</button>
  67. </td>
  68. </tr>
  69. <div class="modal fade" id="myModal{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  70. <div class="modal-dialog" role="document">
  71. <div class="modal-content">
  72. <div class="modal-header">
  73. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  74. <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
  75. </div>
  76. <div class="modal-body" style="font-size: 20px">
  77. 确定删除么?
  78. </div>
  79. <div class="modal-footer">
  80. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  81. <a href="{php echo $this->createWebUrl('carset', array('id' => $row['id']))}" type="button" class="btn btn-info" >确定</a>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. {/loop}
  87. </table>
  88. </div>
  89. </div>
  90. </div>
  91. {$pager}
  92. </div>
  93. <!-- {template 'common/footer'} -->{template 'common/footer'}