site.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. {template 'common/header'}
  2. <div class="we7-page-title">站点设置</div>
  3. <ul class="we7-page-tab">
  4. <li{if $do == 'copyright'} class="active"{/if}><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" {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 reason" {if $settings['status'] == 0} style="display:none;" {/if}>
  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">{$settings['reason']}</textarea>
  23. <input type="hidden" name="reasons" value="{$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" value="{$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="verifycode-1" name="verifycode" {if $settings['verifycode'] == 1} checked="checked" {/if} value="1" />
  37. <label class="radio-inline" for="verifycode-1">
  38. </label>
  39. <input type="radio" id="verifycode-0" name="verifycode" {if $settings['verifycode'] == 0} checked="checked" {/if} value="0" />
  40. <label class="radio-inline" for="verifycode-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" name="mobile_status" id="mobile_status_status-1" {if $settings['mobile_status'] == 1} checked="checked" {/if} value="1" />
  48. <label class="radio-inline" for="mobile_status_status-1">
  49. </label>
  50. <input type="radio" name="mobile_status" id="mobile_status_status-0" {if $settings['mobile_status'] == 0} checked="checked" {/if} value="0" />
  51. <label class="radio-inline" for="mobile_status_status-0">
  52. </label>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-sm-2 control-label" style="text-align:left;">默认登录方式</label>
  57. <div class="col-sm-8 form-control-static">
  58. <input type="radio" name="login_type" id = "login_type_status-0" {if $settings['login_type'] == 0 || $settings['mobile_status'] == 0} checked="checked" {/if} value="0" />
  59. <label class="radio-inline" for="login_type_status-0">
  60. 账号密码登录
  61. </label>
  62. <input type="radio" name="login_type" id = "login_type_status-1" {if $settings['login_type'] == 1} checked="checked" {/if} {if $settings['mobile_status'] == 0} disabled {/if}value="1" />
  63. <label class="radio-inline" for="login_type_status-1">
  64. 手机登录
  65. </label>
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="col-sm-2 control-label" style="text-align:left;">强制绑定信息</label>
  70. <div class="col-sm-8 form-control-static">
  71. <input type="radio" id="bind_status-0" name="bind" value="" {if empty($settings['bind'])}checked{/if}/>
  72. <label class="radio-inline" for="bind_status-0">
  73. </label>
  74. <input type="radio" id="bind_status-1" name="bind" value="qq" {if $settings['bind'] == 'qq'}checked{/if}/>
  75. <label class="radio-inline" for="bind_status-1">
  76. qq
  77. </label>
  78. <input type="radio" id="bind_status-2" name="bind" value="wechat" {if $settings['bind'] == 'wechat'}checked{/if}/>
  79. <label class="radio-inline" for="bind_status-2">
  80. 微信
  81. </label>
  82. <input type="radio" id="bind_status-3" name="bind" value="mobile" {if $settings['bind'] == 'mobile'}checked{/if}/>
  83. <label class="radio-inline" for="bind_status-3">
  84. 手机号
  85. </label>
  86. </div>
  87. </div>
  88. <h5 class="page-header">版权信息</h5>
  89. <div class="form-group">
  90. <label class="col-sm-2 control-label" style="text-align:left;">是否显示首页</label>
  91. <div class="col-sm-8 form-control-static">
  92. <input type="radio" name="showhomepage" value="1" id="showhomepage_1" {if !empty($settings['showhomepage'])} checked{/if}>
  93. <label for="showhomepage_1" class="radio-inline"> 是</label>
  94. <input type="radio" name="showhomepage" value="0" id="showhomepage_2" {if empty($settings['showhomepage'])} checked{/if}>
  95. <label for="showhomepage_2" class="radio-inline"> 否</label>
  96. <div class="help-block">设置“否”后,打开地址时将直接跳转到登录页面,否则会跳转到首页。</div>
  97. </div>
  98. </div>
  99. <div class="form-group">
  100. <label class="col-sm-2 control-label" style="text-align:left;">网站名称</label>
  101. <div class="col-sm-8">
  102. <input type="text" name="sitename" class="form-control" value="{$settings['sitename']}" />
  103. </div>
  104. </div>
  105. <div class="form-group">
  106. <label class="col-sm-2 control-label" style="text-align:left;">网站URL</label>
  107. <div class="col-sm-8">
  108. <input type="text" name="url" class="form-control" value="{$settings['url']}" />
  109. </div>
  110. </div>
  111. <div class="form-group">
  112. <label class="col-sm-2 control-label" style="text-align:left;">keywords</label>
  113. <div class="col-sm-8">
  114. <input type="text" name="keywords" class="form-control" value="{$settings['keywords']}" />
  115. </div>
  116. </div>
  117. <div class="form-group">
  118. <label class="col-sm-2 control-label" style="text-align:left;">description</label>
  119. <div class="col-sm-8">
  120. <input type="text" name="description" class="form-control" value="{$settings['description']}" />
  121. </div>
  122. </div>
  123. <div class="form-group">
  124. <label class="col-sm-2 control-label" style="text-align:left;">左侧菜单定位</label>
  125. <div class="col-sm-8 form-control-static">
  126. <input type="radio" name="leftmenu_fixed" id="leftmenu_fixed_status-1" {if $settings['leftmenufixed'] == 1} checked="checked" {/if} value="1" />
  127. <label class="radio-inline" for="leftmenu_fixed_status-1">
  128. </label>
  129. <input type="radio" name="leftmenu_fixed" id="leftmenu_fixed_status-0" {if $settings['leftmenufixed'] == 0} checked="checked" {/if} value="0" />
  130. <label class="radio-inline" for="leftmenu_fixed_status-0">
  131. </label>
  132. <span class="help-block">选择“否”并保存后,左侧菜单随页面滚动而上下滚动</span>
  133. </div>
  134. </div>
  135. <div class="form-group">
  136. <label class="col-sm-2 control-label" style="text-align:left;">后台风格设置</label>
  137. <div class="col-sm-8">
  138. <select name="template" class="form-control">
  139. {loop $template $tpl}
  140. <option value="{$tpl}" {if $_W['setting']['basic']['template'] == $tpl}selected{/if}>
  141. {if !empty($template_ch_name[$tpl])}{$template_ch_name[$tpl]}{else}{$tpl}{/if}
  142. </option>
  143. {/loop}
  144. </select>
  145. <span class="help-block">favorite icon</span>
  146. </div>
  147. </div>
  148. <div class="form-group">
  149. <label class="col-sm-2 control-label" style="text-align:left;">favorite icon</label>
  150. <div class="col-sm-8">
  151. {php echo tpl_form_field_image('icon', $settings['icon'], '', array('global' => true, 'extras' => array('image'=> ' width="32" ')));}
  152. <span class="help-block">favorite icon</span>
  153. </div>
  154. </div>
  155. <div class="form-group">
  156. <label class="col-sm-2 control-label" style="text-align:left;">前台LOGO</label>
  157. <div class="col-sm-8">
  158. {php echo tpl_form_field_image('flogo', $settings['flogo'], '', array('global' => true));}
  159. <span class="help-block">最佳尺寸:220px*50px</span>
  160. <span class="help-block">此logo是指首页及登录页面logo。</span>
  161. </div>
  162. </div>
  163. <div class="form-group">
  164. <label class="col-sm-2 control-label" style="text-align:left;">背景图片</label>
  165. <div class="col-sm-8">
  166. {php echo tpl_form_field_image('background_img', $settings['background_img'], '', array('global' => true));}
  167. <span class="help-block">此图片是指登录页面的背景图。</span>
  168. </div>
  169. </div>
  170. <div class="form-group">
  171. <label class="col-sm-2 control-label" style="text-align:left;">前台幻灯片</label>
  172. <div class="col-sm-8">
  173. {php echo tpl_form_field_multi_image('slides', $settings['slides'], array('global' => true, 'thumb' => 0));}
  174. <span class="help-block">设置首页幻灯片。</span>
  175. </div>
  176. </div>
  177. <div class="form-group">
  178. <label class="col-sm-2 control-label" style="text-align:left;">前台幻灯片显示文字</label>
  179. <div class="col-sm-8">
  180. <input type="text" class="form-control" name="notice" value="{$settings['notice']}"/>
  181. <span class="help-block">该文字显示在幻灯片上。</span>
  182. </div>
  183. </div>
  184. <div class="form-group">
  185. <label class="col-sm-2 control-label" style="text-align:left;">后台LOGO</label>
  186. <div class="col-sm-8">
  187. {php echo tpl_form_field_image('blogo', $settings['blogo'], '', $options = array('global' => true));}
  188. <span class="help-block">最佳尺寸:110px*35px</span>
  189. <span class="help-block">此logo是指登录后在本系统左上角显示的logo。</span>
  190. </div>
  191. </div>
  192. <div class="form-group">
  193. <label class="col-sm-2 control-label" style="text-align:left;">第三方统计代码</label>
  194. <div class="col-sm-8">
  195. <textarea style="height:150px;" class="form-control" cols="70" name="statcode" autocomplete="off">{$settings['statcode']}</textarea>
  196. <span class="help-block">只支持百度统计</span>
  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. <textarea style="height:150px;" class="form-control" cols="70" name="footerright" autocomplete="off">{$settings['footerright']}</textarea>
  203. <span class="help-block">自定义底部右侧信息,支持HTML</span>
  204. </div>
  205. </div>
  206. <div class="form-group">
  207. <label class="col-sm-2 control-label" style="text-align:left;">底部左侧信息(下)</label>
  208. <div class="col-sm-8">
  209. <textarea style="height:150px;" class="form-control" cols="70" name="footerleft" autocomplete="off">{$settings['footerleft']}</textarea>
  210. <span class="help-block">自定义底部左侧信息,支持HTML</span>
  211. </div>
  212. </div>
  213. <div class="form-group">
  214. <label class="col-sm-2 control-label" style="text-align:left;">联系人</label>
  215. <div class="col-sm-8">
  216. <input type="text" name="person" class="form-control" value="{$settings['person']}" />
  217. </div>
  218. </div>
  219. <div class="form-group">
  220. <label class="col-sm-2 control-label" style="text-align:left;">联系电话</label>
  221. <div class="col-sm-8">
  222. <input type="text" name="phone" class="form-control" value="{$settings['phone']}" />
  223. </div>
  224. </div>
  225. <div class="form-group">
  226. <label class="col-sm-2 control-label" style="text-align:left;">QQ</label>
  227. <div class="col-sm-8">
  228. <input type="text" name="qq" class="form-control" value="{$settings['qq']}" />
  229. </div>
  230. </div>
  231. <div class="form-group">
  232. <label class="col-sm-2 control-label" style="text-align:left;">邮箱</label>
  233. <div class="col-sm-8">
  234. <input type="text" name="email" class="form-control" value="{$settings['email']}" />
  235. </div>
  236. </div>
  237. <div class="form-group">
  238. <label class="col-sm-2 control-label" style="text-align:left;">公司名称</label>
  239. <div class="col-sm-8">
  240. <input type="text" name="company" value="{$settings['company']}" class="form-control" />
  241. </div>
  242. </div>
  243. <div class="form-group">
  244. <label class="col-sm-2 control-label" style="text-align:left;">关于我们</label>
  245. <div class="col-sm-8">
  246. {php echo tpl_ueditor('companyprofile', $settings['companyprofile']);}
  247. <span class="help-block">该文字显示在个人中心->关于我们中</span>
  248. </div>
  249. </div>
  250. <div class="form-group">
  251. <label class="col-sm-2 control-label" style="text-align:left;">详细地址</label>
  252. <div class="col-sm-8">
  253. <input type="text" name="address" value="{$settings['address']}" class="form-control" />
  254. </div>
  255. </div>
  256. <div class="form-group">
  257. <label class="col-sm-2 control-label" style="text-align:left;">地理位置</label>
  258. <div class="col-sm-8">
  259. {php echo tpl_form_field_coordinate('baidumap', $settings['baidumap'])}
  260. </div>
  261. </div>
  262. <div class="form-group">
  263. <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">
  264. <input name="submit" type="submit" value="提交" class="btn btn-primary span3" />
  265. <input type="hidden" name="token" value="{$_W['token']}" />
  266. </div>
  267. </div>
  268. </form>
  269. <script type="text/javascript">
  270. $("#form1").submit(function() {
  271. if ($("input[name='status']:checked").val() == 1) {
  272. if ($("textarea[name='reason']").val() == '') {
  273. util.message('请填写站点关闭原因');
  274. return false;
  275. }
  276. }
  277. });
  278. $("input[name='status']").click(function() {
  279. if ($(this).val() == 1) {
  280. $(".reason").show();
  281. var reason = $("input[name='reasons']").val();
  282. $("textarea[name='reason']").text(reason);
  283. } else {
  284. $(".reason").hide();
  285. }
  286. });
  287. $("input[name='mobile_status']").click(function() {
  288. if ($(this).val() == 0) {
  289. $("#login_type_status-1").attr("checked", false);
  290. $("#login_type_status-0").prop("checked", true);
  291. $("#login_type_status-1").attr("disabled", true);
  292. } else {
  293. $("#login_type_status-1").attr("disabled", false);
  294. }
  295. });
  296. </script>
  297. </div>
  298. {template 'common/footer'}