人人商城

templat.html 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {template '_header'}
  2. <div class="page-heading"><h2>模板设置</h2></div>
  3. <form action="" method="post" class="form-horizontal form-validate" enctype="multipart/form-data">
  4. <div class="form-group">
  5. <label class="col-sm-2 control-label">手机端模板</label>
  6. <div class="col-sm-9 col-xs-12">
  7. {ifp 'sysset.template.edit'}
  8. <select class='form-control' name='data[style]'>
  9. {loop $styles $style}
  10. <option value='{$style}' {if $style==$data['style']}selected{/if}>{$style}</option>
  11. {/loop}
  12. </select>
  13. {else}
  14. <input type="hidden" name="data[style]" value="{$set['shop']['style']}"/>
  15. <div class='form-control-static'>
  16. {if empty($data['style'])}default{else}{$data['style']}{/if}
  17. </div>
  18. {/if}
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-sm-2 control-label">商品详情页模板</label>
  23. <div class="col-sm-9 col-xs-12">
  24. {ifp 'sysset.template.edit'}
  25. <label class="radio-inline"><input type="radio" name="data[detail_temp]" value="0" {if empty($data['detail_temp'])}checked="checked"{/if}> 滑动切换模式</label>
  26. <label class="radio-inline"><input type="radio" name="data[detail_temp]" value="1" {if !empty($data['detail_temp'])}checked="checked"{/if}> Tab切换模式</label>
  27. {else}
  28. <div class='form-control-static'>{if empty($data['detail_temp'])}滑动切换模式{else}Tab切换模式{/if}</div>
  29. {/if}
  30. <div class="help-block text-danger">注意: PC端访问WAP强制是Tab切换模式</div>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="col-sm-2 control-label"></label>
  35. <div class="col-sm-9 col-xs-12">
  36. {ifp 'sysset.template.edit'}
  37. <input type="submit" value="提交" class="btn btn-primary"/>
  38. {/if}
  39. </div>
  40. </div>
  41. </form>
  42. {template '_footer'}