人人商城

site.tpl.php 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
  2. <div class="we7-page-title">站点设置</div>
  3. <ul class="we7-page-tab">
  4. <li<?php if($do == 'copyright') { ?> class="active"<?php } ?>><a href="<?php echo url('system/site');?>">站点信息</a></li>
  5. </ul>
  6. <div class="clearfix">
  7. <form action="" method="post" class="we7-form" role="form" enctype="multipart/form-data" id="form1">
  8. <div class="form-group">
  9. <label class="col-sm-2 control-label" style="text-align:left;">关闭站点</label>
  10. <div class="col-sm-8 form-control-static">
  11. <input type="radio" name="status" id="status-1" <?php if($settings['status'] == 1) { ?> checked="checked" <?php } ?> value="1" />
  12. <label class="radio-inline" for="status-1">
  13. </label>
  14. <input type="radio" name="status" id="status-0" <?php if($settings['status'] == 0) { ?> checked="checked" <?php } ?> value="0" />
  15. <label class="radio-inline" for="status-0">
  16. </label>
  17. </div>
  18. </div>
  19. <div class="form-group reason" <?php if($settings['status'] == 0) { ?> style="display:none;" <?php } ?>>
  20. <label class="col-sm-2 control-label" style="text-align:left;">关闭原因</label>
  21. <div class="col-sm-8">
  22. <textarea style="height:150px;" class="form-control" cols="70" name="reason" autocomplete="off"><?php echo $settings['reason'];?></textarea>
  23. <input type="hidden" name="reasons" value="<?php echo $settings['reason'];?>">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="col-sm-2 control-label" style="text-align:left;">备案号</label>
  28. <div class="col-sm-8">
  29. <input type="text" name="icp" class="form-control" value="<?php echo $settings['icp'];?>">
  30. </div>
  31. </div>
  32. <h5 class="page-header">调试开关</h5>
  33. <div class="form-group">
  34. <label class="col-sm-2 control-label" style="text-align:left;">是否开启调试模式</label>
  35. <div class="col-sm-8 form-control-static">
  36. <input type="radio" id="develop_status-1" name="develop_status" <?php if($settings['develop_status'] == 1) { ?> checked="checked" <?php } ?> value="1" />
  37. <label class="radio-inline" for="develop_status-1">
  38. </label>
  39. <input type="radio" id="develop_status-0" name="develop_status" <?php if($settings['develop_status'] == 0) { ?> checked="checked" <?php } ?> value="0" />
  40. <label class="radio-inline" for="develop_status-0">
  41. </label>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="col-sm-2 control-label" style="text-align:left;">是否开启日志</label>
  46. <div class="col-sm-8 form-control-static">
  47. <input type="radio" id="log_status-1" name="log_status" <?php if($settings['log_status'] == 1) { ?> checked="checked" <?php } ?> value="1" />
  48. <label class="radio-inline" for="log_status-1">
  49. </label>
  50. <input type="radio" id="log_status-0" name="log_status" <?php if($settings['log_status'] == 0) { ?> checked="checked" <?php } ?> value="0" />
  51. <label class="radio-inline" for="log_status-0">
  52. </label>
  53. </div>
  54. </div>
  55. <h5 class="page-header">版权信息</h5>
  56. <div class="form-group">
  57. <label class="col-sm-2 control-label" style="text-align:left;">是否显示首页</label>
  58. <div class="col-sm-8 form-control-static">
  59. <input type="radio" name="showhomepage" value="1" id="showhomepage_1" <?php if(!empty($settings['showhomepage'])) { ?> checked<?php } ?>>
  60. <label for="showhomepage_1" class="radio-inline"> 是</label>
  61. <input type="radio" name="showhomepage" value="0" id="showhomepage_2" <?php if(empty($settings['showhomepage'])) { ?> checked<?php } ?>>
  62. <label for="showhomepage_2" class="radio-inline"> 否</label>
  63. <div class="help-block">设置“否”后,打开地址时将直接跳转到登录页面,否则会跳转到首页。</div>
  64. </div>
  65. </div>
  66. <div class="form-group">
  67. <label class="col-sm-2 control-label" style="text-align:left;">网站名称</label>
  68. <div class="col-sm-8">
  69. <input type="text" name="sitename" class="form-control" value="<?php echo $settings['sitename'];?>" />
  70. </div>
  71. </div>
  72. <div class="form-group">
  73. <label class="col-sm-2 control-label" style="text-align:left;">网站URL</label>
  74. <div class="col-sm-8">
  75. <input type="text" name="url" class="form-control" value="<?php echo $settings['url'];?>" />
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <label class="col-sm-2 control-label" style="text-align:left;">keywords</label>
  80. <div class="col-sm-8">
  81. <input type="text" name="keywords" class="form-control" value="<?php echo $settings['keywords'];?>" />
  82. </div>
  83. </div>
  84. <div class="form-group">
  85. <label class="col-sm-2 control-label" style="text-align:left;">description</label>
  86. <div class="col-sm-8">
  87. <input type="text" name="description" class="form-control" value="<?php echo $settings['description'];?>" />
  88. </div>
  89. </div>
  90. <div class="form-group">
  91. <label class="col-sm-2 control-label" style="text-align:left;">左侧菜单定位</label>
  92. <div class="col-sm-8 form-control-static">
  93. <input type="radio" name="leftmenu_fixed" id="leftmenu_fixed_status-1" <?php if($settings['leftmenufixed'] == 1) { ?> checked="checked" <?php } ?> value="1" />
  94. <label class="radio-inline" for="leftmenu_fixed_status-1">
  95. </label>
  96. <input type="radio" name="leftmenu_fixed" id="leftmenu_fixed_status-0" <?php if($settings['leftmenufixed'] == 0) { ?> checked="checked" <?php } ?> value="0" />
  97. <label class="radio-inline" for="leftmenu_fixed_status-0">
  98. </label>
  99. <span class="help-block">选择“否”并保存后,左侧菜单随页面滚动而上下滚动</span>
  100. </div>
  101. </div>
  102. <div class="form-group">
  103. <label class="col-sm-2 control-label" style="text-align:left;">后台风格设置</label>
  104. <div class="col-sm-8">
  105. <select name="template" class="form-control">
  106. <?php if(is_array($template)) { foreach($template as $tpl) { ?>
  107. <option value="<?php echo $tpl;?>" <?php if($_W['setting']['basic']['template'] == $tpl) { ?>selected<?php } ?>>
  108. <?php if(!empty($template_ch_name[$tpl])) { ?><?php echo $template_ch_name[$tpl];?><?php } else { ?><?php echo $tpl;?><?php } ?>
  109. </option>
  110. <?php } } ?>
  111. </select>
  112. <span class="help-block">favorite icon</span>
  113. </div>
  114. </div>
  115. <div class="form-group">
  116. <label class="col-sm-2 control-label" style="text-align:left;">favorite icon</label>
  117. <div class="col-sm-8">
  118. <?php echo tpl_form_field_image('icon', $settings['icon'], '', array('uniacid' => 0, 'global' => true, 'extras' => array('image'=> ' width="32" ')));?>
  119. <span class="help-block">favorite icon</span>
  120. </div>
  121. </div>
  122. <div class="form-group">
  123. <label class="col-sm-2 control-label" style="text-align:left;">前台LOGO</label>
  124. <div class="col-sm-8">
  125. <?php echo tpl_form_field_image('flogo', $settings['flogo'], '', array('uniacid' => 0, 'global' => true));?>
  126. <span class="help-block">最佳尺寸:220px*50px</span>
  127. <span class="help-block">此logo是指首页及登录页面logo。</span>
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <label class="col-sm-2 control-label" style="text-align:left;">背景图片</label>
  132. <div class="col-sm-8">
  133. <?php echo tpl_form_field_image('background_img', $settings['background_img'], '', array('uniacid' => 0, 'global' => true));?>
  134. <span class="help-block">最佳尺寸:1920px*800px</span>
  135. <span class="help-block">此图片是指登录页面的背景图。</span>
  136. </div>
  137. </div>
  138. <div class="form-group">
  139. <label class="col-sm-2 control-label" style="text-align:left;">前台幻灯片</label>
  140. <div class="col-sm-8">
  141. <?php echo tpl_form_field_multi_image('slides', $settings['slides'], array('uniacid' => 0,'global' => true, 'thumb' => 0));?>
  142. <span class="help-block">设置首页幻灯片。</span>
  143. </div>
  144. </div>
  145. <div class="form-group">
  146. <label class="col-sm-2 control-label" style="text-align:left;">前台幻灯片显示文字</label>
  147. <div class="col-sm-8">
  148. <input type="text" class="form-control" name="notice" value="<?php echo $settings['notice'];?>"/>
  149. <span class="help-block">该文字显示在幻灯片上。</span>
  150. </div>
  151. </div>
  152. <div class="form-group">
  153. <label class="col-sm-2 control-label" style="text-align:left;">后台LOGO</label>
  154. <div class="col-sm-8">
  155. <?php echo tpl_form_field_image('blogo', $settings['blogo'], '', $options = array('uniacid' => 0, 'global' => true));?>
  156. <span class="help-block">最佳尺寸:110px*35px</span>
  157. <span class="help-block">此logo是指登录后在本系统左上角显示的logo。</span>
  158. </div>
  159. </div>
  160. <div class="form-group">
  161. <label class="col-sm-2 control-label" style="text-align:left;">第三方统计代码</label>
  162. <div class="col-sm-8">
  163. <textarea style="height:150px;" class="form-control" cols="70" name="statcode" autocomplete="off"><?php echo $settings['statcode'];?></textarea>
  164. <span class="help-block">只支持百度统计</span>
  165. </div>
  166. </div>
  167. <div class="form-group">
  168. <label class="col-sm-2 control-label" style="text-align:left;">底部右侧信息(上)</label>
  169. <div class="col-sm-8">
  170. <textarea style="height:150px;" class="form-control" cols="70" name="footerright" autocomplete="off"><?php echo $settings['footerright'];?></textarea>
  171. <span class="help-block">自定义底部右侧信息,支持HTML</span>
  172. </div>
  173. </div>
  174. <div class="form-group">
  175. <label class="col-sm-2 control-label" style="text-align:left;">底部左侧信息(下)</label>
  176. <div class="col-sm-8">
  177. <textarea style="height:150px;" class="form-control" cols="70" name="footerleft" autocomplete="off"><?php echo $settings['footerleft'];?></textarea>
  178. <span class="help-block">自定义底部左侧信息,支持HTML</span>
  179. </div>
  180. </div>
  181. <div class="form-group">
  182. <label class="col-sm-2 control-label" style="text-align:left;">联系人</label>
  183. <div class="col-sm-8">
  184. <input type="text" name="person" class="form-control" value="<?php echo $settings['person'];?>" />
  185. </div>
  186. </div>
  187. <div class="form-group">
  188. <label class="col-sm-2 control-label" style="text-align:left;">联系电话</label>
  189. <div class="col-sm-8">
  190. <input type="text" name="phone" class="form-control" value="<?php echo $settings['phone'];?>" />
  191. </div>
  192. </div>
  193. <div class="form-group">
  194. <label class="col-sm-2 control-label" style="text-align:left;">QQ</label>
  195. <div class="col-sm-8">
  196. <input type="text" name="qq" class="form-control" value="<?php echo $settings['qq'];?>" />
  197. </div>
  198. </div>
  199. <div class="form-group">
  200. <label class="col-sm-2 control-label" style="text-align:left;">邮箱</label>
  201. <div class="col-sm-8">
  202. <input type="text" name="email" class="form-control" value="<?php echo $settings['email'];?>" />
  203. </div>
  204. </div>
  205. <div class="form-group">
  206. <label class="col-sm-2 control-label" style="text-align:left;">公司名称</label>
  207. <div class="col-sm-8">
  208. <input type="text" name="company" value="<?php echo $settings['company'];?>" class="form-control" />
  209. </div>
  210. </div>
  211. <div class="form-group">
  212. <label class="col-sm-2 control-label" style="text-align:left;">关于我们</label>
  213. <div class="col-sm-8">
  214. <?php echo tpl_ueditor('companyprofile', $settings['companyprofile']);?>
  215. <span class="help-block">该文字显示在个人中心->关于我们中</span>
  216. </div>
  217. </div>
  218. <div class="form-group">
  219. <label class="col-sm-2 control-label" style="text-align:left;">详细地址</label>
  220. <div class="col-sm-8">
  221. <input type="text" name="address" value="<?php echo $settings['address'];?>" class="form-control" />
  222. </div>
  223. </div>
  224. <div class="form-group">
  225. <label class="col-sm-2 control-label" style="text-align:left;">地理位置</label>
  226. <div class="col-sm-8">
  227. <?php echo tpl_form_field_coordinate('baidumap', $settings['baidumap'])?>
  228. </div>
  229. </div>
  230. <div class="form-group">
  231. <div class="col-sm-offset-2 col-md-offset-2 col-lg-offset-1 col-xs-12 col-sm-10 col-md-10 col-lg-11">
  232. <input name="submit" type="submit" value="提交" class="btn btn-primary span3" />
  233. <input type="hidden" name="token" value="<?php echo $_W['token'];?>" />
  234. </div>
  235. </div>
  236. </form>
  237. <script type="text/javascript">
  238. $("#form1").submit(function() {
  239. if ($("input[name='status']:checked").val() == 1) {
  240. if ($("textarea[name='reason']").val() == '') {
  241. util.message('请填写站点关闭原因');
  242. return false;
  243. }
  244. }
  245. });
  246. $("input[name='status']").click(function() {
  247. if ($(this).val() == 1) {
  248. $(".reason").show();
  249. var reason = $("input[name='reasons']").val();
  250. $("textarea[name='reason']").text(reason);
  251. } else {
  252. $(".reason").hide();
  253. }
  254. });
  255. $("input[name='mobile_status']").click(function() {
  256. if ($(this).val() == 0) {
  257. $("#login_type_status-1").attr("checked", false);
  258. $("#login_type_status-0").prop("checked", true);
  259. $("#login_type_status-1").attr("disabled", true);
  260. } else {
  261. $("#login_type_status-1").attr("disabled", false);
  262. }
  263. });
  264. </script>
  265. </div>
  266. <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>