in.html 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {template 'public/header'}
  2. {template 'public/comhead'}
  3. <link rel="stylesheet" type="text/css" href="../addons/zh_tcwq/template/public/ygcsslist.css">
  4. <script type="text/javascript">
  5. $(function(){
  6. $("#frame-0").show();
  7. $("#yframe-0").addClass("wyactive");
  8. })
  9. </script>
  10. <ul class="nav nav-tabs">
  11. <span class="ygxian"></span>
  12. <div class="ygdangq">当前位置:</div>
  13. <li class="active"><a href="{php echo $this->createWebUrl('in')}">商家入驻管理</a></li>
  14. <li><a href="{php echo $this->createWebUrl('addin')}">添加商家入驻</a></li>
  15. </ul>
  16. <div class="main">
  17. <div class="panel panel-default ygbody">
  18. <div class="panel-body">
  19. <p class="yangshi">请设置商家入驻的时间和价格</p>
  20. </div>
  21. </div>
  22. <!-- 门店列表部分开始 -->
  23. <div class="panel panel-default">
  24. <div class="panel-heading">
  25. 商家入驻管理
  26. </div>
  27. <div class="panel-body" style="padding: 0px 15px;">
  28. <div class="row">
  29. <table class="yg5_tabel col-md-12">
  30. <tr class="yg5_tr1">
  31. <td class="store_td1 col-md-1">排序</td>
  32. <td class="col-md-2">期限</td>
  33. <td class="col-md-2">本地价格</td>
  34. <td class="col-md-2">全国版价格</td>
  35. <td class="col-md-3">操作</td>
  36. </tr>
  37. {loop $list $row}
  38. <tr class="yg5_tr2">
  39. <td><div>{$row['num']}</div></td>
  40. <td>
  41. {if $row['type']==1}一周{elseif $row['type']==2}半年{elseif $row['type']==3}一年{/if}
  42. </td>
  43. <td>{$row['money']}</td>
  44. <td>{$row['money2']}</td>
  45. <td>
  46. <a href="{php echo $this->createWebUrl('addin', array('id' => $row['id']))}" class="storespan btn btn-xs">
  47. <span class="fa fa-pencil"></span>
  48. <span class="bianji">编辑
  49. <span class="arrowdown"></span>
  50. </span>
  51. </a>
  52. <a href="javascript:void(0);" class="storespan btn btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">
  53. <span class="fa fa-trash-o"></span>
  54. <span class="bianji">删除
  55. <span class="arrowdown"></span>
  56. </span>
  57. </a>
  58. <!-- <a class="btn btn-warning btn-xs" href="{php echo $this->createWebUrl('addin', array('id' => $row['id']))}" title="编辑">改</a>&nbsp;&nbsp;
  59. <button type="button" class="btn btn-danger btn-xs" data-toggle="modal" data-target="#myModal{$row['id']}">删</button> -->
  60. </td>
  61. </tr>
  62. <div class="modal fade" id="myModal{$row['id']}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  63. <div class="modal-dialog" role="document">
  64. <div class="modal-content">
  65. <div class="modal-header">
  66. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  67. <h4 class="modal-title" id="myModalLabel" style="font-size: 20px;">提示</h4>
  68. </div>
  69. <div class="modal-body" style="font-size: 20px">
  70. 确定删除么?
  71. </div>
  72. <div class="modal-footer">
  73. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  74. <a href="{php echo $this->createWebUrl('in', array('id' => $row['id']))}" type="button" class="btn btn-info" >确定</a>
  75. </div>
  76. </div>
  77. </div>
  78. </div>
  79. {/loop}
  80. {if empty($list)}
  81. <tr class="yg5_tr2">
  82. <td colspan="12">
  83. 暂无商家信息
  84. </td>
  85. </tr>
  86. {/if}
  87. </table>
  88. </div>
  89. </div>
  90. </div>
  91. {$pager}
  92. </div>
  93. <!-- {template 'common/footer'} -->{template 'common/footer'}