人人商城

storesetting.html 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {template 'header'}
  2. <ul class="we7-page-tab">
  3. <li {if $operate == 'store_status'}class="active"{/if}><a href="{php echo $this->createWebUrl('setting', array('operate' => 'store_status','direct' => '1'))}">状态设置</a></li>
  4. <li {if $operate == 'menu'}class="active"{/if}><a href="{php echo $this->createWebUrl('setting', array('operate' => 'menu','direct' => '1'))}">菜单设置</a></li>
  5. </ul>
  6. {if $operate == 'store_status'}
  7. <form action="" class="form we7-form" method="post">
  8. <div class="form-group">
  9. <label class="control-label col-sm-2">关闭商城</label>
  10. <div class="col-sm-8 form-control-static">
  11. <input type="radio" name="status" id="status-1" {if $settings['status'] == 1} checked="checked"{/if} value="1">
  12. <label class="radio-inline" for="status-1">
  13. </label>
  14. <input type="radio" name="status" id="status-0" {if $settings['status'] == 0} checked="checked"{/if} value="0">
  15. <label class="radio-inline" for="status-0">
  16. </label>
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <div class="control-label col-sm-2"></div>
  21. <div class="col-sm-8">
  22. <input type="hidden" name="token" value="{$_W['token']}">
  23. <input type="submit" class="btn btn-primary" name="submit" value="提交">
  24. </div>
  25. </div>
  26. </form>
  27. {elseif $operate == 'menu'}
  28. <form action="" class="form we7-form" method="post">
  29. {if !empty($goods_menu)}
  30. {loop $goods_menu $key $menu}
  31. <div class="form-group">
  32. <label class="control-label col-sm-2">{$menu['title']}</label>
  33. <div class="col-sm-8 form-control-static">
  34. <input type="radio" name="hide[{$key}]" id="status-{$key}-0" {if $settings[$key] == 0} checked="checked"{/if} value="0">
  35. <label class="radio-inline" for="status-{$key}-0">
  36. 显示
  37. </label>
  38. <input type="radio" name="hide[{$key}]" id="status-{$key}-1" {if $settings[$key] == 1} checked="checked"{/if} value="1">
  39. <label class="radio-inline" for="status-{$key}-1">
  40. 隐藏
  41. </label>
  42. </div>
  43. </div>
  44. {/loop}
  45. {/if}
  46. <div class="form-group">
  47. <div class="control-label col-sm-2"></div>
  48. <div class="col-sm-8">
  49. <input type="hidden" name="token" value="{$_W['token']}">
  50. <input type="submit" class="btn btn-primary" name="submit" value="提交">
  51. </div>
  52. </div>
  53. </form>
  54. {/if}
  55. {template 'common/footer'}