No Description

edit.htm 33KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. {include file="public/layout" /}
  2. {eq name="$editor.editor_select" value="1"}
  3. {load href="__PUBLIC__/plugins/Ueditor/ueditor.config.js" /}
  4. {load href="__PUBLIC__/plugins/Ueditor/ueditor.all.min.js" /}
  5. {load href="__PUBLIC__/plugins/Ueditor/lang/zh-cn/zh-cn.js" /}
  6. {else/}
  7. {load href="__PUBLIC__/plugins/ckeditor/ckeditor.js" /}
  8. {/eq}
  9. <body class="bodysy-w">
  10. <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
  11. <div id="append_parent"></div>
  12. <div id="ajaxwaitid"></div>
  13. <div id="geduan_div" class="h10"></div>
  14. <div id="page_div" class="page min-hg-c mb-20" style="min-width:auto;box-shadow:none;">
  15. <div class="fixed-bar">
  16. <div class="item-title" style="margin-bottom: 6px;">
  17. {include file="public/callback_page_1" /}<!-- 返回箭头 -->
  18. <a class="back_sz" href="javascript:void(0);" data-href="{:url('Custom/help',['channel'=>$channeltype])}" onclick="openHelpframe(this, '设置与帮助', '500px', '100%', 'r');" title="设置与帮助"><i class="iconfont e-shezhi-tongyong"></i></a>
  19. <div class="subject">
  20. <h3>编辑文档</h3>
  21. <h5></h5>
  22. </div>
  23. <ul class="tab-base nc-row">
  24. <li><a href="javascript:void(0);" data-index='1' class="tab current"><span>基础内容</span></a></li>
  25. <li><a href="javascript:void(0);" data-index='2' class="tab"><span>SEO优化</span></a></li>
  26. <li><a href="javascript:void(0);" data-index='3' class="tab"><span>更多设置</span></a></li>
  27. <!-- #weapp_diy001_tab# -->
  28. <!-- #weapp_diy002_tab# -->
  29. <!-- #weapp_demontrate_li# -->
  30. <!-- #weapp_li# -->
  31. </ul>
  32. </div>
  33. </div>
  34. <form class="form-horizontal" id="post_form" action="{:url('Custom/edit')}" method="post">
  35. <!-- 常规信息 -->
  36. <div class="ncap-form-default tab_div_1">
  37. <div class="layui-tab" style="margin-top: -20px;padding-bottom: 50px;">
  38. <ul class="layui-tab-title">
  39. <li class="layui-this">基础信息</li>
  40. <li>扩展信息</li>
  41. <li>其他信息</li>
  42. </ul>
  43. <div class="layui-tab-content">
  44. <div class="layui-tab-item layui-show">
  45. <dl class="row">
  46. <dt class="tit">
  47. <label for="title">文档类型</label>
  48. </dt>
  49. <dd class="opt">
  50. <?php
  51. //评审政策文件 不允许更改区域
  52. if((int)$typeid === 1232){
  53. ?>
  54. <select name="area_tag_id" id="">
  55. <option value="0"></option>
  56. <option value="10000" {eq name="$field.area_tag_id" value="10000"}selected{/eq}>伪山东</option>
  57. {foreach $product_area_data as $key=>$vo}
  58. <option value="{$vo.id}" {eq name="$field.area_tag_id" value="$vo.id"}selected{/eq}> {$vo.name} </option>
  59. {/foreach}
  60. </select>
  61. <?php
  62. }else{
  63. ?>
  64. <select name="area_tag_id" id="">
  65. <option value="0"></option>
  66. <option value="10000" {eq name="$field.area_tag_id" value="10000"}selected{/eq}>伪山东</option>
  67. {foreach $product_area_data as $key=>$vo}
  68. <option value="{$vo.id}" {eq name="$field.area_tag_id" value="$vo.id"}selected{/eq}> {$vo.name} </option>
  69. {/foreach}
  70. </select>
  71. <?php
  72. }
  73. ?>
  74. 编辑时不要修改此项,影响序列号
  75. </dd>
  76. </dl>
  77. <dl class="row">
  78. <dt class="tit">
  79. <label for="title"><em>*</em>价格</label>
  80. </dt>
  81. <dd class="opt">
  82. <input type="text" name="users_price" value="{$field.users_price}" id="users_price" class="w200">
  83. <span class="err"></span>
  84. </dd>
  85. </dl>
  86. <!--start--->
  87. <dl class="row {empty name="$global.web_citysite_open"} none {/empty} ">
  88. <dt class="tit">
  89. <label for="title">所属区域</label>
  90. </dt>
  91. <dd class="opt">
  92. <?php
  93. if((int)$typeid === 126 || (int)$typeid === 825 || (int)$typeid === 826 || (int)$typeid === 117 || (int)$typeid === 115 || (int)$typeid === 111){
  94. ?>
  95. <select name="province_id" id="province_id" onchange="set_city_list(0);" disabled="false">
  96. <option value="0">全国</option>
  97. {volist name=':get_site_province_list()' id='vo'}
  98. <option value="{$vo.id}" {eq name="$field.province_id" value="$vo.id" } selected {/eq} >{$vo.name}</option>
  99. {/volist}
  100. </select>
  101. <select name="city_id" id="city_id" class="none ml5" onchange="set_area_list(0);" disabled="false">
  102. <option value="">--请选择--</option>
  103. </select>
  104. <select name="area_id" id="area_id" class="none ml5" disabled="false">
  105. <option value="">--请选择--</option>
  106. </select>
  107. <?php }else{ ?>
  108. <select name="province_id" id="province_id" onchange="set_city_list(0);">
  109. <option value="0">全国</option>
  110. {volist name=':get_site_province_list()' id='vo'}
  111. <option value="{$vo.id}" {eq name="$field.province_id" value="$vo.id" } selected {/eq} >{$vo.name}</option>
  112. {/volist}
  113. </select>
  114. <select name="city_id" id="city_id" class="none ml5" onchange="set_area_list(0);">
  115. <option value="">--请选择--</option>
  116. </select>
  117. <select name="area_id" id="area_id" class="none ml5">
  118. <option value="">--请选择--</option>
  119. </select>
  120. <?php } ?>
  121. <span class="err"></span>
  122. <p class="notic"></p>
  123. </dd>
  124. </dl>
  125. <dl class="row">
  126. <dt class="tit">
  127. <label for="title"><em>*</em>文档标题</label>
  128. </dt>
  129. <dd class="opt">
  130. <input type="text" name="title" value="{$field.title}" id="title" class="input-txt" maxlength="200" {eq name="$channelRow.is_repeat_title" value="0"} oninput="check_title_repeat(this,'{$field.aid}');" {/eq}>
  131. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  132. 副标题:<input type="text" name="subtitle" value="{$field.subtitle}" id="subtitle" class="w200">
  133. <span class="err"></span>
  134. <p class="notic"></p>
  135. </dd>
  136. </dl>
  137. <dl class="row">
  138. <dt class="tit">
  139. <label for="title"><em>*</em>栏目分类</label>
  140. </dt>
  141. <dd class="opt">
  142. <input type="hidden" name="attr[typeid]" id="attr_typeid" value="{$field.typeid}">
  143. <select name="typeid" id="typeid">
  144. {$arctype_html}
  145. </select>
  146. <span class="err"></span>
  147. <p class="notic">谨慎切换,自定义字段的内容会随着栏目切换而清空,在保存之前不受影响!</p>
  148. 编辑时不要修改此项,影响序列号
  149. </dd>
  150. </dl>
  151. {notempty name='$global.web_stypeid_open'}
  152. <?php if((int)$topid !== 38){ ?>
  153. <dl class="row">
  154. <dt class="tit">
  155. <label for="stypeid">副栏目分类</label>
  156. </dt>
  157. <dd class="opt">
  158. <input type="hidden" name="stypeid" id="stypeid" value="{$field.stypeid}" class="input-txt" onkeyup="this.value=this.value.replace(/[^\d\,]/g,'');" onpaste="this.value=this.value.replace(/[^\d\,]/g,'');" placeholder="">
  159. &nbsp;<a href="javascript:void(0);" data-channel="{$channeltype}" onclick="select_stypeid(this);" class="ncap-btn ncap-btn-green">选择副栏目(只能选一个)</a>
  160. <span class="err"></span>
  161. <p class="notic">支持同频道模型的栏目ID</p>
  162. <div id="stypeid_txt" class="pt5">
  163. {volist name='$stypeid_arr' id='vo'}{gt name='$key' value='0'}&nbsp;&nbsp;|&nbsp;&nbsp;{/gt}<span>{$vo.typename}</span>{/volist}
  164. </div>
  165. </dd>
  166. </dl>
  167. <?php } ?>
  168. <dl class="row">
  169. <dt class="tit">
  170. <label for="title">关联产品</label>
  171. </dt>
  172. <dd class="opt">
  173. <select name="product_id" id="catchoose3">
  174. <option value="0">默认产品</option>
  175. {foreach $pro_list as $key=>$vo}
  176. <option value="{$vo.id}" {eq name="$field.product_id" value="$vo.id"}selected{/eq}>{$vo.typename}</option>
  177. {/foreach}
  178. </select>
  179. </dd>
  180. </dl>
  181. {/notempty}
  182. <dl class="row">
  183. <dt class="tit">
  184. <label>文档属性</label>
  185. </dt>
  186. <dd class="opt">
  187. {volist name="archives_flags" id="vo"}
  188. <input type="hidden" name="attr[{$vo.flag_fieldname}]" {if $field[$vo.flag_fieldname] == 1}value="1"{else/}value="0"{/if}>
  189. <label><input type="checkbox" name="{$vo.flag_fieldname}" value="1" {if $field[$vo.flag_fieldname] == 1}checked{/if}>{$vo.flag_name}<!-- [{$vo.flag_attr}] --></label>&nbsp;
  190. {/volist}
  191. <span class="err"></span>
  192. <p class="notic">如需管理,请点击右上角设置与帮助按钮</p>
  193. </dd>
  194. </dl>
  195. <dl class="row {if condition="$field.is_jump != 1"}none{/if} dl_jump">
  196. <dt class="tit">
  197. <label>跳转网址</label>
  198. </dt>
  199. <dd class="opt">
  200. <input type="text" value="{$field.jumplinks}" name="jumplinks" id="jumplinks" class="input-txt" placeholder="http://">
  201. <span class="err"></span>
  202. <p class="notic">请输入完整的URL网址(包含http或https),设置后访问该条信息将直接跳转到设置的网址</p>
  203. </dd>
  204. </dl>
  205. <dl class="row" style="z-index:2;">
  206. <dt class="tit">
  207. <label>文档标签</label>
  208. </dt>
  209. <dd class="opt">
  210. <input type="text" value="{$field.tags}" name="tags" id="tags" class="input-txt" placeholder="多个标签之间以逗号隔开" autocomplete="off" oninput="get_common_tagindex_input(this);" onfocus="$('#often_tags').hide();" onkeyup="this.value=this.value.replace(/[\,]/g,',');" onpaste="this.value=this.value.replace(/[\,]/g,',')">&nbsp;
  211. <a href="javascript:void(0);" onclick="get_common_tagindex(this);">显示常用标签</a>&nbsp;<img id="tag_loading" src="__STATIC__/common/images/loading.gif" style="display: none;" />
  212. <div class="often_tags" id="often_tags" data-opt="edit" style="display: none;"></div>
  213. <div class="often_tags" id="often_tags_input" style="display: none;"></div>
  214. <input type="hidden" id="tags_click_count">
  215. </dd>
  216. </dl>
  217. {if condition="!empty($channelfield_row['litpic']) AND 1 == $channelfield_row['litpic']['ifeditable']"}
  218. <dl class="row">
  219. <dt class="tit">
  220. <label>封面图片</label>
  221. </dt>
  222. <dd class="opt">
  223. <div class="input-file-show div_litpic_local" {neq name="$field.is_remote" value="0"}style="display: none;"{/neq}>
  224. <span class="show">
  225. <a id="img_a" target="_blank" class="nyroModal" rel="gal" href="{$field.litpic_local|default='javascript:void(0);'}">
  226. <i id="img_i" class="fa fa-picture-o" {notempty name="$field.litpic_local"}onmouseover="layer_tips=layer.tips('<img src={$field.litpic_local|default=''} class=\'layer_tips_img\'>',this,{tips: [1, '#fff']});"{/notempty} onmouseout="layer.close(layer_tips);"></i>
  227. </a>
  228. </span>
  229. <span class="type-file-box">
  230. <input type="text" id="litpic_local" name="litpic_local" value="{$field.litpic_local|default=''}" class="type-file-text" autocomplete="off">
  231. <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button">
  232. <input class="type-file-file" onClick="GetUploadify(1,'','allimg','img_call_back')" size="30" hidefocus="true" nc_type="change_site_logo"
  233. title="点击前方预览图可查看大图,点击按钮选择文件并提交表单后上传生效">
  234. </span>
  235. </div>
  236. <input type="text" id="litpic_remote" name="litpic_remote" value="{$field.litpic_remote|default=''}" placeholder="http://" class="input-txt" onKeyup="keyupRemote(this, 'litpic');" {neq name="$field.is_remote" value="1"}style="display: none;"{/neq}>
  237. &nbsp;
  238. <label><input type="checkbox" name="is_remote" id="is_remote" value="1" {eq name="$field.is_remote" value="1"}checked="checked"{/eq} onClick="clickRemote(this, 'litpic');">远程图片</label>
  239. <span class="err"></span>
  240. <p class="notic">当没有手动上传图片时候,会自动提取相册的第一张图片作为封面</p>
  241. </dd>
  242. </dl>
  243. {/if}
  244. <?php if((int)$topid === 38){ ?>
  245. <!---显示职称级别--->
  246. <dl class="row">
  247. <dt class="tit">
  248. <label for="title">职称级别</label>
  249. </dt>
  250. <dd class="opt">
  251. <select name="level_group_id" id="catchoose5">
  252. {foreach $level_group_list as $key=>$vo}
  253. <option value="{$vo.id}" {eq name="$field.level_group_id" value="$vo.id"}selected{/eq}>{$vo.typename}</option>
  254. {/foreach}
  255. </select>
  256. <select name="level_group_name" id="catchoose6">
  257. {foreach $level_group_name as $key=>$vo}
  258. <option value="{$vo.aid}" {eq name="$field.level_id" value="$vo.aid"}selected{/eq}>{$vo.title}</option>
  259. {/foreach}
  260. </select>
  261. </dd>
  262. </dl>
  263. <script>
  264. $('#catchoose5').change(function(){
  265. ///console.log($(this).val());
  266. console.log($(this).val());
  267. var data = {
  268. 'typeid': $(this).val()
  269. };
  270. //请求
  271. $.post("/login.php?m=admin&c=Archives&a=get_level_list", data, function (res){
  272. //计算select
  273. var html = '';
  274. $.each(res.data,function (i,e){
  275. html += '<option value="'+e.aid+'">'+e.title+'</option>';
  276. });
  277. //console.log(html);
  278. $('#catchoose6').html(html);
  279. });
  280. });
  281. </script>
  282. <?php } ?>
  283. <?php
  284. //echo $typeid;
  285. //论文期刊模板参考
  286. if((int)$typeid === 127){
  287. ?>
  288. <dl class="row">
  289. <dt class="tit">
  290. <label for="title">关联期刊</label>
  291. </dt>
  292. <dd class="opt">
  293. <input type="text" name="lunwen_id" value="{$field.lunwen_id}"/>
  294. </dd>
  295. </dl>
  296. <?php
  297. }
  298. ?>
  299. <?php
  300. if((int)$typeid === 126 || (int)$typeid === 825 || (int)$typeid === 826){
  301. $tag_name = "职称标签";
  302. }else{
  303. $tag_name = "文章标签";
  304. ?>
  305. <?php
  306. }
  307. ?>
  308. <dl class="row">
  309. <dt class="tit">
  310. <label for="title">{$tag_name}</label>
  311. </dt>
  312. <dd class="opt">
  313. <select name="product_tag_id" id="catchoose666">
  314. <option value="0">默认标签</option>
  315. {foreach $product_tag as $key=>$vo}
  316. <option value="{$vo.aid}" {eq name="$field.product_tag_id" value="$vo.aid"}selected{/eq}>{$vo.title}</option>
  317. {/foreach}
  318. </select>
  319. </dd>
  320. </dl>
  321. <!-- #weapp_diy001_excel# -->
  322. <!-- #weapp_diy002_excel# -->
  323. <!---end--->
  324. </div>
  325. <div class="layui-tab-item">
  326. {include file="archives/get_field_addonextitem" /}
  327. </div>
  328. <div class="layui-tab-item">
  329. </div>
  330. </div>
  331. </div>
  332. </div>
  333. <!-- 常规信息 -->
  334. <!-- SEO参数 -->
  335. <div class="ncap-form-default tab_div_2" style="display:none;">
  336. <dl class="row">
  337. <dt class="tit">
  338. <label for="seo_title">SEO标题</label>
  339. </dt>
  340. <dd class="opt">
  341. <input type="text" value="{$field.seo_title}" name="seo_title" id="seo_title" class="input-txt">
  342. <p class="notic">一般不超过80个字符,为空时系统自动构成,可以到 <a href="{:url('Seo/index', array('inc_type'=>'seo'))}">SEO设置 - SEO基础</a> 中设置构成规则。</p>
  343. </dd>
  344. </dl>
  345. <dl class="row">
  346. <dt class="tit">
  347. <label>SEO关键词</label>
  348. </dt>
  349. <dd class="opt">
  350. <textarea rows="5" cols="60" id="seo_keywords" name="seo_keywords" style="height:20px;">{$field.seo_keywords}</textarea>
  351. <span class="err"></span>
  352. <p class="notic">一般不超过100个字符,多个关键词请用英文逗号(,)隔开,建议3到5个关键词。</p>
  353. </dd>
  354. </dl>
  355. <dl class="row">
  356. <dt class="tit">
  357. <label>SEO描述</label>
  358. </dt>
  359. <dd class="opt">
  360. <textarea rows="5" cols="60" id="seo_description" name="seo_description" style="height:54px;" class="keywordsTextarea" onkeyup="monitorInputStr();" onkeypress="monitorInputStr();">{$field.seo_description}</textarea>
  361. <span class="err"></span>
  362. <p class="notic">一般不超过100个字符,不填写时系统自动提取正文的前100个字符</p>
  363. <p class="notic2 {empty name='$field.seo_description'}none{/empty}" id="beenWritten">你已输入<span id="beenWrittenStr">0</span>个字符</p>
  364. <p><label><input type="checkbox" name="basic_update_seo_description" value="1" {if condition="!empty($global['basic_update_seo_description'])"} checked="checked" {/if}>勾选后SEO描述将随正文内容更新</label></p>
  365. </dd>
  366. </dl>
  367. </div>
  368. <!-- SEO参数 -->
  369. <!-- 其他参数 -->
  370. <div class="ncap-form-default tab_div_3" style="display:none;">
  371. {if condition="!empty($channelfield_row['author']) AND 1 == $channelfield_row['litpic']['ifeditable']"}
  372. <dl class="row">
  373. <dt class="tit">
  374. <label for="author">作者</label>
  375. </dt>
  376. <dd class="opt">
  377. <input type="hidden" value="{$field.users_id}" name="users_id" class="input-txt">
  378. <input type="text" value="{$field.author}" name="author" id="author" class="input-txt">
  379. <span class="err"></span>
  380. <p class="notic">设置作者默认名称(将同步至管理员笔名)</p>
  381. </dd>
  382. </dl>
  383. {/if}
  384. <dl class="row dl_origin">
  385. <dt class="tit">
  386. <label>来源</label>
  387. </dt>
  388. <dd class="opt origin-hot">
  389. <input type="text" value="{$field.origin}" name="origin" id="origin" class="input-txt" onclick="searchOrigin(this);" autocomplete="off">
  390. <div class="origin-hot-list" style="display: none;" id="search_keywords_list_origin"></div>
  391. <textarea id="system_originlist_str" style="display: none;">{$system_originlist_str}</textarea>
  392. <span class="setting" onclick="set_originlist();">设置</span>
  393. <span class="err"></span>
  394. <p class="notic">为空时默认“网络”</p>
  395. </dd>
  396. </dl>
  397. <dl class="row">
  398. <dt class="tit">
  399. <label>点击数</label>
  400. </dt>
  401. <dd class="opt">
  402. <input type="text" value="{$field.click}" name="click" id="click" class="input-txt">
  403. <span class="err"></span>
  404. <p class="notic"></p>
  405. </dd>
  406. </dl>
  407. <dl class="row">
  408. <dt class="tit">
  409. <label>阅读权限</label>
  410. </dt>
  411. <dd class="opt">
  412. <input type="hidden" value="{$field.arcrank}" name="old_arcrank" class="input-txt">
  413. <select name="arcrank" id="arcrank" {if $field.arcrank < 0 && $admin_info.role_id > 0 && $auth_role_info.check_oneself < 1} disabled="disabled" {/if}>
  414. {volist name="arcrank_list" id="vo"}
  415. <option value="{$vo.rank}" {eq name="$vo.rank" value="$field.arcrank"}selected{/eq}>{$vo.name}</option>
  416. {/volist}
  417. </select>
  418. <span class="err"></span>
  419. <p class="notic"></p>
  420. </dd>
  421. </dl>
  422. <!-- #weapp_UsersGroup_content_users_id={$field.users_id}#--><!-- #weapp_UsersGroup_content# -->
  423. <dl class="row">
  424. <dt class="tit">
  425. <label for="articleForm">发布时间</label>
  426. </dt>
  427. <dd class="opt">
  428. <input type="text" class="input-txt" id="add_time" name="add_time" value="{$field.add_time|date='Y-m-d H:i:s',###}" autocomplete="off">
  429. <span class="add-on input-group-addon">
  430. <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
  431. </span>
  432. <span class="err"></span>
  433. </dd>
  434. </dl>
  435. <dl class="row">
  436. <dt class="tit">
  437. <label for="tempview">文档模板</label>
  438. </dt>
  439. <dd class="opt">
  440. <select name="tempview" id="tempview">
  441. {volist name='$templateList' id='vo'}
  442. <option value="{$vo}" {eq name='$vo' value='$tempview'}selected{/eq}>{$vo}</option>
  443. {/volist}
  444. </select>
  445. <input type="hidden" name="type_tempview" value="{$tempview}" />
  446. <span class="err"></span>
  447. </dd>
  448. </dl>
  449. <dl class="row {notin name='$seo_pseudo' value='2,3'}no-grey{/notin}">
  450. <dt class="tit">
  451. <label>自定义文件名</label>
  452. </dt>
  453. <dd class="opt">
  454. <input type="text" {notin name='$seo_pseudo' value='2,3'}readonly="readonly" title="动态模式下不支持自定义文档url"{/notin} value="{$field.htmlfilename}" name="htmlfilename" id="htmlfilename" autocomplete="off" onkeyup="this.value=this.value.replace(/[^\u4E00-\u9FA5\w\-]/g,'-');" onpaste="this.value=this.value.replace(/[^\u4E00-\u9FA5\w\-]/g,'-');" class="input-txt {notin name='$seo_pseudo' value='2,3'}no-drop{/notin}">.html
  455. <span class="err"></span>
  456. <p class="notic">自定义文件名可由字母、数字、下划线(_)、连接符(-)等符号组成,除此之外其他字符将自动转为连接符(-)</p>
  457. </dd>
  458. </dl>
  459. </div>
  460. <!-- 其他参数 -->
  461. <!-- #weapp_diy001_body# -->
  462. <!-- #weapp_diy002_body# -->
  463. <!-- #weapp_div# -->
  464. <div class="ncap-form-default">
  465. <div class="bot2">
  466. <input type="hidden" name="gourl" value="{$gourl|default=''}">
  467. <input type="hidden" name="aid" value="{$field.aid|default='0'}" id="aid_val">
  468. <input type="hidden" name="channel" value="{$Request.param.channel|default=''}">
  469. <input type="hidden" name="editor_addonFieldExt" id="editor_addonFieldExt" value="">
  470. <a href="JavaScript:void(0);" onclick="check_submit();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  471. {include file="public/callback_page_2" /}<!-- 返回按钮 -->
  472. </div>
  473. </div>
  474. </form>
  475. </div>
  476. <script type="text/javascript">
  477. layui.use(['laydate','element'], function() {
  478. var $ = layui.jquery
  479. ,element = layui.element;
  480. var laydate = layui.laydate;
  481. laydate.render({
  482. elem: '#add_time'
  483. ,type: 'datetime'
  484. });
  485. })
  486. $(function () {
  487. try {
  488. var web_citysite_open = {$global['web_citysite_open']|default=0};
  489. if (web_citysite_open > 0) {
  490. var province_id = {$field.province_id|default=0};
  491. var city_id = {$field.city_id|default=0};
  492. var area_id = {$field.area_id|default=0};
  493. if (province_id > 0) {
  494. set_city_list(city_id);
  495. }
  496. if (city_id > 0) {
  497. set_area_list(area_id);
  498. }
  499. }
  500. }catch(e){}
  501. //选项卡切换列表
  502. $('.tab-base').find('.tab').click(function(){
  503. $('.tab-base').find('.tab').each(function(){
  504. $(this).removeClass('current');
  505. });
  506. $(this).addClass('current');
  507. var tab_index = $(this).data('index');
  508. $(".tab_div_1, .tab_div_2, .tab_div_3").hide();
  509. $(".tab_div_"+tab_index).show();
  510. layer.closeAll();
  511. });
  512. $('input[name=is_jump]').click(function(){
  513. if ($(this).is(':checked')) {
  514. $('.dl_jump').show();
  515. } else {
  516. $('.dl_jump').hide();
  517. }
  518. });
  519. var dftypeid = {$field.typeid|default='0'};
  520. $('#typeid').change(function(){
  521. var current_channel = $(this).find('option:selected').data('current_channel');
  522. if (0 < $(this).val() && {$channeltype} != current_channel) {
  523. showErrorMsg('请选择对应模型的栏目!');
  524. $(this).val(dftypeid);
  525. } else if ({$channeltype} == current_channel) {
  526. layer.closeAll();
  527. }
  528. var aid = $("input[name=aid]").val();
  529. GetAddonextitem(1, $(this).val(), {$channeltype}, aid, true);
  530. });
  531. $(document).click(function(){
  532. $('#often_tags').hide();
  533. $('#often_tags_input').hide();
  534. event.stopPropagation();
  535. });
  536. $('#often_tags').click(function(){
  537. $('#often_tags').show();
  538. event.stopPropagation();
  539. });
  540. });
  541. // 判断输入框是否为空
  542. function check_submit(){
  543. if($.trim($('input[name=title]').val()) == ''){
  544. $($('.tab-base').find('.tab')[0]).trigger('click');
  545. showErrorMsg('标题不能为空!');
  546. $('input[name=title]').focus();
  547. return false;
  548. }
  549. if ($('#typeid').val() == 0) {
  550. $($('.tab-base').find('.tab')[0]).trigger('click');
  551. showErrorMsg('请选择栏目…!');
  552. $('#typeid').focus();
  553. return false;
  554. }
  555. layer_loading('正在处理');
  556. if(!ajax_check_htmlfilename())
  557. {
  558. layer.closeAll();
  559. showErrorMsg('同栏目下,自定义文件名已存在!');
  560. $('input[name=htmlfilename]').focus();
  561. return false;
  562. }
  563. setTimeout(function (){
  564. editor_auto_210607();
  565. $('#post_form').submit();
  566. }, 1);
  567. }
  568. function img_call_back(fileurl_tmp)
  569. {
  570. $("#litpic_local").val(fileurl_tmp);
  571. $("#img_a").attr('href', fileurl_tmp);
  572. $("#img_i").attr('onmouseover', "layer_tips=layer.tips('<img src="+fileurl_tmp+" class=\\'layer_tips_img\\'>',this,{tips: [1, '#fff']});");
  573. $("input[name=is_litpic]").attr('checked', true); // 自动勾选属性[图片]
  574. }
  575. </script>
  576. <script>
  577. try{
  578. var mt20_1649209614 = sessionStorage.getItem("mt20_1649209614");
  579. if (mt20_1649209614 == 1){
  580. $("#geduan_div").removeClass("h10");
  581. }else{
  582. $("#geduan_div").addClass("h10");
  583. }
  584. }catch(e){}
  585. </script>
  586. {include file="public/footer" /}