Нема описа
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. {include file="public/layout" /}
  2. <script type="text/javascript" src="__SKIN__/js/clipboard.min.js"></script>
  3. <body class="system-web" style="overflow-y: scroll;">
  4. <div id="append_parent"></div>
  5. <div id="ajaxwaitid"></div>
  6. <div class="page">
  7. {include file="system/bar" /}
  8. <div class="flexigrid htitx">
  9. <form method="post" id="handlepost" action="{:url('System/web')}" enctype="multipart/form-data" name="form1">
  10. <div class="ncap-form-default">
  11. <dl class="row">
  12. <dt class="tit">
  13. <label for="site_url">站点状态</label>
  14. </dt>
  15. <dd class="opt">
  16. <label class="curpoin"><input id="web_status0" name="web_status" value="0" type="radio" {if condition="!isset($config.web_status) OR empty($config.web_status)"} checked="checked"{/if}>开启</label>
  17. &nbsp;
  18. <label class="curpoin"><input id="web_status1" name="web_status" value="1" type="radio" {if condition="isset($config.web_status) AND $config.web_status eq 1"} checked="checked"{/if}>关闭</label>
  19. <input type="hidden" id="old_web_status" value="{$config.web_status|default='0'}">
  20. <!-- <p class="notic2 red none" id="web_status_tips" style="text-indent: 1em;">提示:关闭网站,系统会切换成动态URL模式!</p> -->
  21. {eq name="$web_cmsmode" value="2"}
  22. <dd class="variable">
  23. <div><p><b>变量名</b></p></div>
  24. <div class="r"><b>标签调用</b></div>
  25. </dd>
  26. {/eq}
  27. </dd>
  28. </dl>
  29. <div id="div_web_status_close" class="{if condition='!isset($config.web_status) OR empty($config.web_status)'}none{/if}">
  30. <!-- <dl class="row">
  31. <dt class="tit">
  32. <label for="web_status_mode">&nbsp;</label>
  33. </dt>
  34. <dd class="opt">
  35. <label class="">
  36. <input type="checkbox" name="web_close_port[]" class="web_close_port" value="pc" onclick="webClosePort(this);"/>电脑端&nbsp;&nbsp;
  37. </label>
  38. <label class="">
  39. <input type="checkbox" name="web_close_port[]" class="web_close_port" value="mobile" onclick="webClosePort(this);"/>手机端&nbsp;&nbsp;
  40. </label>
  41. </dd>
  42. </dl>
  43. <script type="text/javascript">
  44. function webClosePort(obj) {
  45. var a = 2;
  46. $('.web_close_port').each(function() {
  47. if (!$(this).attr('checked')) a--;
  48. });
  49. if (0 === parseInt(a)) {
  50. $(obj).attr('checked', true);
  51. layer.alert('至少保留一项', {
  52. shade: layer_shade,
  53. area: ['480px', '190px'],
  54. move: false,
  55. title: '提示',
  56. btnAlign:'r',
  57. closeBtn: 3,
  58. success: function () {
  59. $(".layui-layer-content").css('text-align', 'left');
  60. }
  61. });
  62. return;
  63. }
  64. }
  65. </script> -->
  66. <dl class="row">
  67. <dt class="tit">
  68. <label for="web_status_mode">&nbsp;</label>
  69. </dt>
  70. <dd class="opt">
  71. <label class="curpoin">
  72. <input type="radio" name="web_status_mode" value="0" {if condition='empty($config.web_status_mode)'}checked="checked"{/if}/>文案显示&nbsp;&nbsp;
  73. </label>
  74. <label class="curpoin">
  75. <input type="radio" name="web_status_mode" value="1" {if condition='!empty($config.web_status_mode) && 1 == $config.web_status_mode'}checked="checked"{/if}/>跳转链接&nbsp;&nbsp;
  76. </label>
  77. <label class="curpoin">
  78. <input type="radio" name="web_status_mode" value="2" {if condition='!empty($config.web_status_mode) && 2 == $config.web_status_mode'}checked="checked"{/if}/>模板页面&nbsp;&nbsp;
  79. </label>
  80. </dd>
  81. </dl>
  82. <dl class="row dl_web_status_mode {if condition='!empty($config.web_status_mode)'}none{/if}" id="dl_web_status_mode_0">
  83. <dt class="tit">
  84. <label for="web_status_text">&nbsp;</label>
  85. </dt>
  86. <dd class="opt">
  87. <input id="web_status_text" name="web_status_text" value="{if condition='!isset($config.web_status_text)'}网站暂时关闭,维护中……{else /}{$config.web_status_text}{/if}" class="input-txt" type="text" autocomplete="off" />
  88. <p class="notic"></p>
  89. </dd>
  90. </dl>
  91. <dl class="row dl_web_status_mode {if condition='empty($config.web_status_mode) || 1 != $config.web_status_mode'}none{/if}" id="dl_web_status_mode_1">
  92. <dt class="tit">
  93. <label for="web_status_url">&nbsp;</label>
  94. </dt>
  95. <dd class="opt">
  96. <input id="web_status_url" name="web_status_url" value="{$config.web_status_url|default=''}" class="input-txt" type="text" placeholder="关闭后,访问网站跳转的URL,http://" autocomplete="off"/>
  97. <p class="notic">如果设置跳转URL,必须带有http:// 或 https://</p>
  98. </dd>
  99. </dl>
  100. <dl class="row dl_web_status_mode {if condition='empty($config.web_status_mode) || 2 != $config.web_status_mode'}none{/if}" id="dl_web_status_mode_2">
  101. <dt class="tit">
  102. <label for="web_status_tpl">&nbsp;</label>
  103. </dt>
  104. <dd class="opt">
  105. <input id="web_status_tpl" name="web_status_tpl" value="{if condition="isset($config['web_status_tpl'])"}{$config.web_status_tpl|default=''}{else /}__SITE_URL____ROOT_DIR__/public/close.html{/if}" class="input-txt" type="text" placeholder="关闭后,访问网站显示的个性化页面,public/close.html" autocomplete="off"/>
  106. <p class="notic">静态模板路径前面不要带有子目录</p>
  107. </dd>
  108. </dl>
  109. </div>
  110. <dl class="row">
  111. <dt class="tit">
  112. <label for="web_name">网站简称</label>
  113. </dt>
  114. <dd class="opt ui-web_name ui-text">
  115. <input id="web_name" name="web_name" value="{$config.web_name|default=''}" class="input-txt ui-input" type="text" data-num="10" />
  116. <p class="notic">一般不超过10个字符</p>
  117. <p class="ui-big-text none">一般不超过10个字符(<span class="ui-textTips">还可以输入10个字符</span>)</p>
  118. </dd>
  119. {eq name="$web_cmsmode" value="2"}
  120. <dd class="variable">
  121. <div><p>web_name</p></div>
  122. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_name');" class="ui-btn3 blue web_name" data-clipboard-text="{literal}{eyou:global name='web_name' /}{/literal}">复制标签</a></div>
  123. </dd>
  124. {/eq}
  125. </dl>
  126. <dl class="row">
  127. <dt class="tit">
  128. <label for="web_logo">网站LOGO</label>
  129. </dt>
  130. <dd class="opt">
  131. <div class="dan-pane">
  132. <div class="images_upload images_upload_html" style="display:inline-block;">
  133. <a href="javascript:void(0);" onclick="GetUploadify(1, '', 'allimg', 'img_call_back_pc');" class="img-upload no-float" title="点击上传">
  134. <div class="y-line" id="web_logo_local_y_line" {notempty name="$config.web_logo_local"} style="display: none;" {/notempty}></div>
  135. <div class="x-line" id="web_logo_local_x_line" {notempty name="$config.web_logo_local"} style="display: none;" {/notempty}></div>
  136. <img src="{$config.web_logo_local}" id="web_logo_local_src" class="pic_con" {empty name="$config.web_logo_local"} style="display: none;" {/empty}>
  137. </a>
  138. <a href="javascript:void(0)" onclick="clear_pic('web_logo_local', 'web_logo_local_src', 'web_logo_local_y_line', 'web_logo_local_x_line')" class="delect" title="删除"></a>
  139. <input type="hidden" id="web_logo_local" name="web_logo_local" value="{$config.web_logo_local|default=''}">
  140. </div>
  141. <script type="text/javascript">
  142. function img_call_back_pc(fileurl_tmp) {
  143. $('#web_logo_local_y_line, #web_logo_local_x_line').hide();
  144. $('#web_logo_local_src').show().attr('src', fileurl_tmp);
  145. $('#web_logo_local').val(fileurl_tmp);
  146. }
  147. function clear_pic(id_0, id_1, id_2, id_3) {
  148. $('#' + id_0).val('');
  149. $('#' + id_1).hide().attr('src', '');
  150. $('#' + id_2 + ', #' + id_3).show();
  151. }
  152. </script>
  153. </div>
  154. </dd>
  155. {eq name="$web_cmsmode" value="2"}
  156. <dd class="variable">
  157. <div><p>web_logo</p></div>
  158. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_logo');" class="ui-btn3 blue web_logo" data-clipboard-text="{literal}{eyou:global name='web_logo' /}{/literal}">复制标签</a></div>
  159. </dd>
  160. {/eq}
  161. </dl>
  162. <!-- <dl class="row">
  163. <dt class="tit">
  164. <label for="web_mobile_logo">手机端LOGO</label>
  165. </dt>
  166. <dd class="opt">
  167. <div class="dan-pane">
  168. <div class="images_upload images_upload_html" style="display:inline-block;">
  169. <a href="javascript:void(0);" onclick="GetUploadify(1, '', 'allimg', 'img_call_back_mobile');" class="img-upload mb15" title="点击上传">
  170. <div class="y-line" id="web_mobile_logo_local_y_line"></div>
  171. <div class="x-line" id="web_mobile_logo_local_x_line"></div>
  172. <img src="{$config.web_mobile_logo}" id="web_mobile_logo_local_src" class="pic_con">
  173. </a>
  174. <a href="javascript:void(0)" onclick="clear_pic('web_mobile_logo', 'web_mobile_logo_local_src', 'web_mobile_logo_local_y_line', 'web_mobile_logo_local_x_line')" class="delect" title="删除"></a>
  175. <input type="hidden" id="web_mobile_logo" name="web_mobile_logo" value="{$config.web_mobile_logo|default=''}">
  176. </div>
  177. <script type="text/javascript">
  178. function img_call_back_mobile(fileurl_tmp) {
  179. $('#web_mobile_logo_local_y_line, #web_mobile_logo_local_x_line').hide();
  180. $('#web_mobile_logo_local_src').show().attr('src', fileurl_tmp);
  181. $('#web_mobile_logo').val(fileurl_tmp);
  182. }
  183. </script>
  184. </div>
  185. </dd>
  186. {eq name="$web_cmsmode" value="2"}
  187. <dd class="variable">
  188. <div><p>web_mobile_logo</p></div>
  189. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_mobile_logo');" class="ui-btn3 blue web_mobile_logo" data-clipboard-text="{literal}{eyou:global name='web_mobile_logo' /}{/literal}">复制标签</a></div>
  190. </dd>
  191. {/eq}
  192. </dl> -->
  193. <dl class="row">
  194. <dt class="tit">
  195. <label for="web_ico">地址栏图标</label>
  196. </dt>
  197. <dd class="opt">
  198. <div class="input-file-show">
  199. <span class="show">
  200. <a id="img_a_web_ico" class="nyroModal" rel="gal" href="{$config.web_ico|default='javascript:void(0);'}?t={php}echo time();{/php}" target="_blank">
  201. <i id="img_i_web_ico" class="fa fa-picture-o" {notempty name="$config.web_ico"}onmouseover="layer_tips=layer.tips('<img src={$config.web_ico|default=''}?t={php}echo time();{/php} width=32 height=32>',this,{tips: [1, '#fff']});"{/notempty} onmouseout="layer.close(layer_tips);"></i>
  202. </a>
  203. </span>
  204. <span class="type-file-box">
  205. <input type="text" id="web_ico" name="web_ico" value="{$config.web_ico|default=''}" class="type-file-text" autocomplete="off">
  206. <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button">
  207. <input class="type-file-file" onClick="GetUploadify(1,'','allimg','web_ico_img_call_back')" size="30" hidefocus="true" nc_type="change_site_logo" title="点击前方预览图可查看大图,点击按钮选择文件并提交表单后上传生效">
  208. </span>
  209. </div>
  210. <span class="err"></span>
  211. <p class="notic">建议尺寸 32 * 32 (像素) 的.ico文件。<br/>如果无法正常显示新上传图标,清空浏览器缓存后访问。</p>
  212. </dd>
  213. {eq name="$web_cmsmode" value="2"}
  214. <dd class="variable">
  215. <div><p>web_ico</p></div>
  216. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_ico');" class="ui-btn3 blue web_ico" data-clipboard-text="{literal}{eyou:global name='web_ico' /}{/literal}">复制标签</a></div>
  217. </dd>
  218. {/eq}
  219. </dl>
  220. <dl class="row">
  221. <dt class="tit">
  222. <label for="web_basehost">网站网址</label>
  223. </dt>
  224. <dd class="opt">
  225. <input id="web_basehost" name="web_basehost" value="{$config.web_basehost|default=''}" placeholder="{$Request.scheme}://" class="input-txt" type="text" />
  226. <p class="notic"></p>
  227. </dd>
  228. {eq name="$web_cmsmode" value="2"}
  229. <dd class="variable">
  230. <div><p>web_basehost</p></div>
  231. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_basehost');" class="ui-btn3 blue web_basehost" data-clipboard-text="{literal}{eyou:global name='web_basehost' /}{/literal}">复制标签</a></div>
  232. </dd>
  233. {/eq}
  234. </dl>
  235. <dl class="row">
  236. <dt class="tit">
  237. <label for="web_copyright">版权信息</label>
  238. </dt>
  239. <dd class="opt">
  240. <textarea cols="60" id="web_copyright" name="web_copyright" class="h20">{$config.web_copyright|default=''}</textarea>
  241. <p class="notic"></p>
  242. </dd>
  243. {eq name="$web_cmsmode" value="2"}
  244. <dd class="variable">
  245. <div><p>web_copyright</p></div>
  246. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_copyright');" class="ui-btn3 blue web_copyright" data-clipboard-text="{literal}{eyou:global name='web_copyright' /}{/literal}">复制标签</a></div>
  247. </dd>
  248. {/eq}
  249. </dl>
  250. <dl class="row">
  251. <dt class="tit">
  252. <label for="web_recordnum">备案号</label>
  253. </dt>
  254. <dd class="opt ui-keyword">
  255. {eq name='$config.web_recordnum_mode' value='1'}
  256. <textarea rows="5" cols="60" id="web_recordnum" name="web_recordnum" class="h40">{$config.web_recordnum|default=''}</textarea>
  257. {else /}
  258. <textarea rows="5" cols="60" id="web_recordnum" name="web_recordnum" class="h20">{$config.web_recordnum|htmlspecialchars_decode|strip_tags}</textarea>
  259. {/eq}
  260. <input type="hidden" id="web_recordnum_mode" name="web_recordnum_mode" value="{$config.web_recordnum_mode|default='0'}">
  261. &nbsp;[<a href="javascript:void(0);" onclick="show_recordnum(this);">{eq name='$config.web_recordnum_mode' value='
  262. 1'}普通模式{else /}代码模式{/eq}</a>]
  263. <p class="notic"></p>
  264. </dd>
  265. {eq name="$web_cmsmode" value="2"}
  266. <dd class="variable">
  267. <div><p>web_recordnum</p></div>
  268. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_recordnum');" class="ui-btn3 blue web_recordnum" data-clipboard-text="{literal}{eyou:global name='web_recordnum' /}{/literal}">复制标签</a></div>
  269. </dd>
  270. {/eq}
  271. </dl>
  272. <dl class="row">
  273. <dt class="tit">
  274. <label for="web_garecordnum">公安备案号</label>
  275. </dt>
  276. <dd class="opt ui-keyword">
  277. {eq name='$config.web_garecordnum_mode' value='1'}
  278. <textarea rows="5" cols="60" id="web_garecordnum" name="web_garecordnum" class="h40">{$config.web_garecordnum|default=''}</textarea>
  279. {else /}
  280. <textarea rows="5" cols="60" id="web_garecordnum" name="web_garecordnum" class="h20">{$config.web_garecordnum|htmlspecialchars_decode|strip_tags}</textarea>
  281. {/eq}
  282. <input type="hidden" id="web_garecordnum_mode" name="web_garecordnum_mode" value="{$config.web_garecordnum_mode|default='0'}">
  283. &nbsp;[<a href="javascript:void(0);" onclick="show_garecordnum(this);">{eq name='$config.web_garecordnum_mode' value='
  284. 1'}普通模式{else /}代码模式{/eq}</a>]
  285. <p class="notic"></p>
  286. </dd>
  287. {eq name="$web_cmsmode" value="2"}
  288. <dd class="variable">
  289. <div><p>web_garecordnum</p></div>
  290. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_garecordnum');" class="ui-btn3 blue web_garecordnum" data-clipboard-text="{literal}{eyou:global name='web_garecordnum' /}{/literal}">复制标签</a></div>
  291. </dd>
  292. {/eq}
  293. </dl>
  294. </div>
  295. <div class="hDiv">
  296. <div class="hDivBox">
  297. <table cellspacing="0" cellpadding="0" style="width: 100%">
  298. <thead>
  299. <tr>
  300. <th class="sign w10" axis="col0">
  301. <div class="tc"></div>
  302. </th>
  303. <th abbr="article_title" axis="col3" class="w10">
  304. <div class="tc">首页TDK信息</div>
  305. </th>
  306. <th abbr="ac_id" axis="col4">
  307. <div class=""></div>
  308. </th>
  309. </tr>
  310. </thead>
  311. </table>
  312. </div>
  313. </div>
  314. <div class="ncap-form-default">
  315. <dl class="row">
  316. <dt class="tit">
  317. <label for="web_title">标题</label>
  318. </dt>
  319. <dd class="opt ui-web_title ui-text">
  320. <input id="web_title" name="web_title" value="{$config.web_title|default=''}" class="input-txt ui-input" type="text" data-num="80" />
  321. <p class="notic">标题(Title)一般不超过80个字符</p>
  322. <p class="ui-big-text none">一般不超过80个字符(<span class="ui-textTips">还可以输入80个字符</span>)</p>
  323. </dd>
  324. {eq name="$web_cmsmode" value="2"}
  325. <dd class="variable">
  326. <div><p>web_title</p></div>
  327. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_title');" class="ui-btn3 blue web_title" data-clipboard-text="{literal}{eyou:global name='web_title' /}{/literal}">复制标签</a></div>
  328. </dd>
  329. {/eq}
  330. </dl>
  331. <dl class="row">
  332. <dt class="tit">
  333. <label for="web_keywords">关键词</label>
  334. </dt>
  335. <dd class="opt ui-keyword ui-text">
  336. <input id="web_keywords" name="web_keywords" value="{$config.web_keywords|default=''}" class="input-txt ui-input" type="text" data-num="100" />
  337. <p class="notic">关键词(KeyWords)一般不超过100个字符</p>
  338. <p class="ui-big-text none">一般不超过100个字符(<span class="ui-textTips">还可以输入100个字符</span>)</p>
  339. <!--
  340. <input type="text" value="{$config.web_keywords|default=''}" name="web_keywords" id="web_keywords" class="input-txt ui-input" data-num="100">
  341. <input type="hidden" id="web_keywords_1607062084" value="web_keywords">
  342. <script type="text/javascript">
  343. $(function() { $('#web_keywords').tagsInput({width: '450px', height: 'auto'}); });
  344. </script>
  345. <span class="err"></span>
  346. <p class="notic">输入标签结束后可用回车或空格分开</p>
  347. -->
  348. </dd>
  349. {eq name="$web_cmsmode" value="2"}
  350. <dd class="variable">
  351. <div><p>web_keywords</p></div>
  352. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_keywords');" class="ui-btn3 blue web_keywords" data-clipboard-text="{literal}{eyou:global name='web_keywords' /}{/literal}">复制标签</a></div>
  353. </dd>
  354. {/eq}
  355. </dl>
  356. <dl class="row">
  357. <dt class="tit">
  358. <label for="web_description">描述</label>
  359. </dt>
  360. <dd class="opt ui-web_description ui-text">
  361. <textarea rows="5" cols="60" id="web_description" name="web_description" style="height:60px;" class="ui-input keywordsTextarea" data-num="200" onkeyup="monitorInputStr();" onkeypress="monitorInputStr();">{$config.web_description|default=''}</textarea>
  362. <p class="notic">描述(Description)建议不超过200个字符</p>
  363. <p class="ui-big-text {empty name='$config.web_keywords'}none{/empty}" id="beenWritten">你已输入<span id="beenWrittenStr">0</span>个字符</p>
  364. </dd>
  365. {eq name="$web_cmsmode" value="2"}
  366. <dd class="variable">
  367. <div><p>web_description</p></div>
  368. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_description');" class="ui-btn3 blue web_description" data-clipboard-text="{literal}{eyou:global name='web_description' /}{/literal}">复制标签</a></div>
  369. </dd>
  370. {/eq}
  371. </dl>
  372. </div>
  373. <div class="hDiv">
  374. <div class="hDivBox">
  375. <table cellspacing="0" cellpadding="0" style="width: 100%">
  376. <thead>
  377. <tr>
  378. <th class="sign w10" axis="col0">
  379. <div class="tc"></div>
  380. </th>
  381. <th abbr="article_title" axis="col3" class="w10">
  382. <div class="tc">第三方代码</div>
  383. </th>
  384. <th abbr="ac_id" axis="col4">
  385. <div class=""></div>
  386. </th>
  387. </tr>
  388. </thead>
  389. </table>
  390. </div>
  391. </div>
  392. <div class="ncap-form-default">
  393. <dl class="row">
  394. <dt class="tit">
  395. <label for="web_thirdcode_pc">电脑端</label>
  396. </dt>
  397. <dd class="opt">
  398. <textarea rows="5" cols="60" id="web_thirdcode_pc" name="web_thirdcode_pc" style="height:80px;">{$config.web_thirdcode_pc|default=''}</textarea>
  399. <p class="notic">代码会放在 &lt;/body&gt; 标签以上(一般用于放置百度商桥代码、站长统计代码、谷歌翻译代码等)</p>
  400. </dd>
  401. {eq name="$web_cmsmode" value="2"}
  402. <dd class="variable">
  403. <div><p>web_thirdcode_pc</p></div>
  404. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_thirdcode_pc');" class="ui-btn3 blue web_thirdcode_pc" data-clipboard-text="{literal}{eyou:global name='web_thirdcode_pc' /}{/literal}">复制标签</a></div>
  405. </dd>
  406. {/eq}
  407. </dl>
  408. <dl class="row">
  409. <dt class="tit">
  410. <label for="web_thirdcode_wap">手机端</label>
  411. </dt>
  412. <dd class="opt">
  413. <textarea rows="5" cols="60" id="web_thirdcode_wap" name="web_thirdcode_wap" style="height:80px;">{$config.web_thirdcode_wap|default=''}</textarea>
  414. <p class="notic">代码会放在 &lt;/body&gt; 标签以上(一般用于放置百度商桥代码、站长统计代码、谷歌翻译代码等)</p>
  415. </dd>
  416. {eq name="$web_cmsmode" value="2"}
  417. <dd class="variable">
  418. <div><p>web_thirdcode_wap</p></div>
  419. <div class="r"><a href="javascript:void(0);" onclick="showtext('web_thirdcode_wap');" class="ui-btn3 blue web_thirdcode_wap" data-clipboard-text="{literal}{eyou:global name='web_thirdcode_wap' /}{/literal}">复制标签</a></div>
  420. </dd>
  421. {/eq}
  422. </dl>
  423. <div class="bot">
  424. <a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onclick="adsubmit();">确认提交</a>
  425. </div>
  426. </div>
  427. </form>
  428. </div>
  429. </div>
  430. <script type="text/javascript">
  431. $(function(){
  432. // tipsText();
  433. // 关闭站点
  434. $('input[name=web_status]').click(function(){
  435. $('#div_web_status_close').hide();
  436. // $('#web_status_tips').hide();
  437. // var seo_pseudo = {$seo_pseudo|default=0};
  438. // var old_web_status = $('#old_web_status').val();
  439. // if(2 == seo_pseudo && old_web_status == 0 && $(this).val() == 1){
  440. // $('#web_status_tips').show();
  441. // }
  442. if ($(this).val() == 1) {
  443. $('#div_web_status_close').show();
  444. }
  445. });
  446. $('input[name=web_status_mode]').click(function(){
  447. var web_status_mode = $(this).val();
  448. $('.dl_web_status_mode').hide();
  449. $('#dl_web_status_mode_'+web_status_mode).show();
  450. });
  451. });
  452. function adsubmit(){
  453. if($('input[name=web_status]:checked').val() == 1){
  454. var web_status_mode = $('input[name=web_status_mode]:checked').val();
  455. if(web_status_mode == 1){
  456. if ($.trim($('input[name=web_status_url]').val()) == '') {
  457. showErrorMsg('跳转的URL不能为空!');
  458. $('input[name=web_status_url]').focus();
  459. return false;
  460. } else if (!checkURL($('input[name=web_status_url]').val())) {
  461. showErrorMsg('跳转的URL格式不正确!');
  462. $('input[name=web_status_url]').focus();
  463. return false;
  464. }
  465. }
  466. }
  467. layer_loading("正在处理");
  468. $('#handlepost').submit();
  469. }
  470. function web_logo_img_call_back(fileurl_tmp)
  471. {
  472. $("#web_logo_local").val(fileurl_tmp);
  473. $("#img_a_web_logo").attr('href', fileurl_tmp);
  474. $("#img_i_web_logo").attr('onmouseover', "layer_tips=layer.tips('<img src="+fileurl_tmp+" class=\\'layer_tips_img\\'>',this,{tips: [1, '#fff']});");
  475. }
  476. function web_ico_img_call_back(fileurl_tmp)
  477. {
  478. $("#web_ico").val(fileurl_tmp);
  479. $("#img_a_web_ico").attr('href', fileurl_tmp);
  480. $("#img_i_web_ico").attr('onmouseover', "layer_tips=layer.tips('<img src="+fileurl_tmp+" width=32 height=32>',this,{tips: [1, '#fff']});");
  481. }
  482. function showtext(classname){
  483. var clipboard1 = new Clipboard("."+classname);clipboard1.on("success", function(e) {layer.msg("复制成功");});clipboard1.on("error", function(e) {layer.msg("复制失败!请手动复制", {icon:5});});
  484. }
  485. function show_recordnum(obj)
  486. {
  487. var recordnumObj = $('#web_recordnum');
  488. var value = recordnumObj.val();
  489. var valuehtml = "";
  490. if (value.indexOf('&lt;/a&gt;') == -1) {
  491. valuehtml = '<a href="https://beian.miit.gov.cn/" rel="nofollow" target="_blank">'+value+'</a>';
  492. }
  493. var web_recordnum_mode = $('#web_recordnum_mode').val();
  494. if (web_recordnum_mode == 0) { // 切换为代码模式
  495. $('#web_recordnum_mode').val(1);
  496. $(obj).html('普通模式');
  497. recordnumObj.css('height', '40px');
  498. recordnumObj.val(valuehtml);
  499. } else { // 切换为普通模式
  500. $('#web_recordnum_mode').val(0);
  501. $(obj).html('代码模式');
  502. recordnumObj.css('height', '20px');
  503. recordnumObj.val(removeHTMLTag(value));
  504. }
  505. }
  506. function show_garecordnum(obj)
  507. {
  508. var gaRecordnumObj = $('#web_garecordnum');
  509. var value = gaRecordnumObj.val();
  510. var valuehtml = "";
  511. if (value.indexOf('&lt;/a&gt;') == -1) {
  512. var recordcode = value.replace(/([^\d\-]+)/g, '');
  513. valuehtml = '<a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode='+recordcode+'" rel="nofollow" target="_blank">'+value+'</a>';
  514. }
  515. var web_garecordnum_mode = $('#web_garecordnum_mode').val();
  516. if (web_garecordnum_mode == 0) { // 切换为代码模式
  517. $('#web_garecordnum_mode').val(1);
  518. $(obj).html('普通模式');
  519. gaRecordnumObj.css('height', '40px');
  520. gaRecordnumObj.val(valuehtml);
  521. } else { // 切换为普通模式
  522. $('#web_garecordnum_mode').val(0);
  523. $(obj).html('代码模式');
  524. gaRecordnumObj.css('height', '20px');
  525. gaRecordnumObj.val(removeHTMLTag(value));
  526. }
  527. }
  528. //过滤HTML标签
  529. function removeHTMLTag(str) {
  530. str = str.replace(/<\/?[^>]*>/g, ''); //去除HTML tag
  531. str = str.replace(/[ | ]*\n/g, '\n'); //去除行尾空白
  532. str = str.replace(/ /ig, ''); //去掉
  533. return str;
  534. }
  535. </script>
  536. {include file="public/footer" /}