人人商城

index.html 9.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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.shop.edit'}
  8. <input type="text" name="data[name]" class="form-control" value="{$data['name']}" />
  9. {else}
  10. <input type="hidden" name="data[name]" value="{$data['name']}"/>
  11. <div class='form-control-static'>{$data['name']}</div>
  12. {/if}
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="col-sm-2 control-label">商城LOGO</label>
  17. <div class="col-sm-9 col-xs-12">
  18. {ifp 'sysset.shop.edit'}
  19. {php echo tpl_form_field_image('data[logo]', $data['logo'])}
  20. <span class='help-block'>正方型图片</span>
  21. {else}
  22. <input type="hidden" name="data[logo]" value="{$data['logo']}"/>
  23. {if !empty($data['logo'])}
  24. <a href='{php echo tomedia($data['logo'])}' target='_blank'>
  25. <img src="{php echo tomedia($data['logo'])}" style='width:100px;border:1px solid #ccc;padding:1px' />
  26. </a>
  27. {/if}
  28. {/if}
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="col-sm-2 control-label">商城简介</label>
  33. <div class="col-sm-9 col-xs-12">
  34. {ifp 'sysset.shop.edit'}
  35. <textarea name="data[description]" class="form-control richtext" cols="70">{$data['description']}</textarea>
  36. {else}
  37. <textarea name="data[description]" class="form-control richtext" cols="70" style="display:none">{$data['description']}</textarea>
  38. <div class='form-control-static'>{$data['description']}</div>
  39. {/if}
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="col-sm-2 control-label">店招</label>
  44. <div class="col-sm-9 col-xs-12">
  45. {ifp 'sysset.shop.edit'}
  46. {php echo tpl_form_field_image('data[img]', $data['img'])}
  47. <span class='help-block'>商城首页店招,建议尺寸640*450</span>
  48. {else}
  49. <input type="hidden" name="data[img]" value="{$data['img']}"/>
  50. {if !empty($data['img'])}
  51. <a href='{php echo tomedia($data['img'])}' target='_blank'>
  52. <img src="{php echo tomedia($data['img'])}" style='width:200px;border:1px solid #ccc;padding:1px' />
  53. </a>
  54. {/if}
  55. {/if}
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="col-sm-2 control-label">商城海报</label>
  60. <div class="col-sm-9 col-xs-12">
  61. {ifp 'sysset.shop.edit'}
  62. {php echo tpl_form_field_image('data[signimg]', $data['signimg'])}
  63. <span class='help-block'>推广海报,建议尺寸640*640</span>
  64. {else}
  65. <input type="hidden" name="data[signimg]" value="{$data['signimg']}"/>
  66. {if !empty($data['signimg'])}
  67. <a href='{php echo tomedia($data['signimg'])}' target='_blank'>
  68. <img src="{php echo tomedia($data['signimg'])}" style='width:100px;border:1px solid #ccc;padding:1px' />
  69. </a>
  70. {/if}
  71. {/if}
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="col-sm-2 control-label">获取未关注者信息</label>
  76. <div class="col-sm-9 col-xs-12">
  77. {ifp 'sysset.shop.edit'}
  78. <label class="radio-inline">
  79. <input type="radio" name="data[getinfo]" value="2" {if $data['getinfo']==2}checked=""{/if}> 关闭
  80. </label>
  81. <label class="radio-inline">
  82. <input type="radio" name="data[getinfo]" value="1" {if empty($data['getinfo']) || $data['getinfo']==1}checked=""{/if}> 开启
  83. </label>
  84. {else}
  85. <input type="hidden" name="data[name]" value="{$data['name']}"/>
  86. <div class='form-control-static'>{if $data['getinfo']==0}关闭{else}开启{/if}</div>
  87. {/if}
  88. <div class="help-block"> 如果开启此选项,则是会弹出绿色微信授权框</div>
  89. </div>
  90. </div>
  91. <div class="form-group">
  92. <label class="col-sm-2 control-label">售罄图标</label>
  93. <div class="col-sm-9 col-xs-12">
  94. {ifp 'sysset.shop.edit'}
  95. {php echo tpl_form_field_image('data[saleout]', $data['saleout'])}
  96. <span class='help-block'>商品售罄图标,建议尺寸80*80,空则不显示</span>
  97. {else}
  98. <input type="hidden" name="data[saleout]" value="{$data['saleout']}"/>
  99. {if !empty($data['saleout'])}
  100. <a href='{php echo tomedia($data['saleout'])}' target='_blank'>
  101. <img src="{php echo tomedia($data['saleout'])}" style='width:200px;border:1px solid #ccc;padding:1px' />
  102. </a>
  103. {/if}
  104. {/if}
  105. </div>
  106. </div>
  107. <div class="form-group">
  108. <label class="col-sm-2 control-label">加载图标</label>
  109. <div class="col-sm-9 col-xs-12">
  110. {ifp 'sysset.shop.edit'}
  111. {php echo tpl_form_field_image('data[loading]', $data['loading'])}
  112. <span class='help-block'>商品列表图片加载图标,建议尺寸100*100(根据实际需求调整),空则不显示</span>
  113. {else}
  114. <input type="hidden" name="data[loading]" value="{$data['loading']}"/>
  115. {if !empty($data['loading'])}
  116. <a href=""{php echo tomedia($data['loading'])}" target='_blank'>
  117. <img src="{php echo tomedia($data['loading'])}" style='width:200px;border:1px solid #ccc;padding:1px' />
  118. </a>
  119. {/if}
  120. {/if}
  121. </div>
  122. </div>
  123. <div class="form-group">
  124. <label class="col-sm-2 control-label">全局统计代码</label>
  125. <div class="col-sm-9 col-xs-12">
  126. {ifp 'sysset.shop.edit'}
  127. <textarea name="data[diycode]" class="form-control richtext" cols="70" rows="5">{$data['diycode']}</textarea>
  128. {else}
  129. <textarea name="data[diycode]" class="form-control richtext" cols="70" style="display:none" rows="5">{$data['diycode']}</textarea>
  130. <div class='form-control-static'>{$data['diycode']}</div>
  131. {/if}
  132. </div>
  133. </div>
  134. <div class="form-group">
  135. <label class="col-sm-2 control-label">开启导航条</label>
  136. <div class="col-sm-9 col-xs-12">
  137. {ifp 'sysset.shop.edit'}
  138. <label class="radio-inline"><input type="radio" name="data[funbar]" value="0" {if empty($data['funbar'])}checked=""{/if}> 关闭</label>
  139. <label class="radio-inline"><input type="radio" name="data[funbar]" value="1" {if intval($data['funbar'])==1}checked=""{/if}> 样式一(左侧满屏可折叠)</label>
  140. <label class="radio-inline"><input type="radio" name="data[funbar]" value="2" {if intval($data['funbar'])==2}checked=""{/if}> 样式二(右侧跟随)</label>
  141. {else}
  142. <input type="hidden" name="data[name]" value="{$data['name']}"/>
  143. <div class='form-control-static'>{if empty($data['funbar'])}关闭{else}开启{/if}</div>
  144. {/if}
  145. <div class="help-block"> 如果开启此选项,导航内容请到导航条中编辑</div>
  146. </div>
  147. </div>
  148. <div class="form-group">
  149. <label class="col-sm-2 control-label">商品图片预览</label>
  150. <div class="col-sm-9 col-xs-12">
  151. {ifp 'sysset.shop.edit'}
  152. <label class="radio-inline"><input type="radio" name="data[close_preview]" value="1" {if intval($data['close_preview'])==1}checked=""{/if}>关闭</label>
  153. <label class="radio-inline"><input type="radio" name="data[close_preview]" value="0" {if empty($data['close_preview'])}checked=""{/if}> 开启</label>
  154. {else}
  155. <div class='form-control-static'>{if empty($data['close_preview'])}开启{else}关闭{/if}</div>
  156. {/if}
  157. <div class="help-block"> 如果开启此选项,则商品详情里面的图片可以放大预览</div>
  158. </div>
  159. </div>
  160. <div class="form-group">
  161. <label class="col-sm-2 control-label"></label>
  162. <div class="col-sm-9 col-xs-12">
  163. {ifp 'sysset.shop.edit'}
  164. <input type="submit" value="提交" class="btn btn-primary" />
  165. {/if}
  166. </div>
  167. </div>
  168. </form>
  169. {template '_footer'}