jftype.html 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {template 'public/header'}
  2. {template 'public/comhead'}
  3. <link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcsslist.css">
  4. <style type="text/css">
  5. .yg5_key>div{float: left;line-height: 34px;}
  6. .store_td1{height: 45px;}
  7. .store_list_img{width: 40px;height: 40px;}
  8. .yg5_tabel{border-color: #e5e5e5;outline: 1px solid #e5e5e5;}
  9. .yg5_tr2>td{padding: 10px;border: 1px solid #e5e5e5;text-align: center;}
  10. .yg5_tr1>td{
  11. border: 1px solid #e5e5e5;
  12. padding-left: 15px;
  13. background-color: #FAFAFA;
  14. font-weight: bold;
  15. text-align: center;
  16. }
  17. .yg5_btn{background-color: #EEEEEE;color: #333;border: 1px solid #E4E4E4;border-radius: 6px;width: 100px;height: 34px;}
  18. /*#frame-8{display: block;visibility: visible;}*/
  19. </style>
  20. <ul class="nav nav-tabs">
  21. <span class="ygxian"></span>
  22. <div class="ygdangq">当前位置:</div>
  23. <li class="active"><a href="{php echo $this->createWebUrl('jftype')}">商品分类管理</a></li>
  24. <li><a href="{php echo $this->createWebUrl('addjftype')}">添加商品分类</a></li>
  25. </ul>
  26. <div class="main">
  27. <!-- <div class="panel panel-default">
  28. <div class="panel-body">
  29. <a class="btn btn-primary" href="javascript:location.reload()"><i class="fa fa-refresh"></i>刷新</a>
  30. </div>
  31. </div> -->
  32. <!-- 门店列表部分开始 -->
  33. <div class="panel panel-default">
  34. <div class="panel-heading">
  35. 分类列表
  36. </div>
  37. <div class="panel-body" style="padding: 0px 15px;">
  38. <div class="row">
  39. <table class="yg5_tabel col-md-12">
  40. <tr class="yg5_tr1">
  41. <td class="store_td1 col-md-1">顺序</td>
  42. <td class="col-md-2">图标</td>
  43. <td class="col-md-2">类型名称</td>
  44. <td class="col-md-3">操作</td>
  45. </tr>
  46. {loop $list $row}
  47. <tr class="yg5_tr2">
  48. <td><div>{$row['num']}</div></td>
  49. <td>
  50. <img class="store_list_img" src="{media $row['img']}" alt=""/>
  51. </td>
  52. <td>{$row['name']}</td>
  53. <td>
  54. <a href="{php echo $this->createWebUrl('addjftype', array('id' => $row['id']))}" class="storespan btn btn-xs">
  55. <span class="fa fa-pencil"></span>
  56. <span class="bianji">编辑
  57. <span class="arrowdown"></span>
  58. </span>
  59. </a>
  60. <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
  61. <span class="fa fa-trash-o"></span>
  62. <span class="bianji">删除
  63. <span class="arrowdown"></span>
  64. </span>
  65. </a>
  66. <!-- <a class="btn btn-warning btn-xs" href="{php echo $this->createWebUrl('addjftype', array('id' => $row['id']))}" title="编辑">改</a>&nbsp;&nbsp;
  67. <button type="button" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">删</button> -->
  68. </td>
  69. </tr>
  70. <div class="modal fade" id="myModal{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  71. <div class="modal-dialog" role="document">
  72. <div class="modal-content">
  73. <div class="modal-header">
  74. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  75. <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
  76. </div>
  77. <div class="modal-body" style="font-size: 20px">
  78. 确定删除么?
  79. </div>
  80. <div class="modal-footer">
  81. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  82. <a href="{php echo $this->createWebUrl('jftype', array('id' => $row['id']))}" type="button" class="btn btn-info" >确定</a>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. {/loop}
  88. {if empty($list)}
  89. <tr class="yg5_tr2">
  90. <td colspan="4">
  91. 暂无商品分类
  92. </td>
  93. </tr>
  94. {/if}
  95. </table>
  96. </div>
  97. </div>
  98. </div>
  99. {$pager}
  100. </div>
  101. <script type="text/javascript">
  102. $(function(){
  103. // $("#frame-8").addClass("in");
  104. $("#frame-8").show();
  105. $("#yframe-8").addClass("wyactive");
  106. })
  107. </script>{template 'common/footer'}