123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955 |
- {include file="public/layout" /}
-
- {eq name="$editor.editor_select" value="1"}
- {load href="__PUBLIC__/plugins/Ueditor/ueditor.config.js" /}
- {load href="__PUBLIC__/plugins/Ueditor/ueditor.all.min.js" /}
- {load href="__PUBLIC__/plugins/Ueditor/lang/zh-cn/zh-cn.js" /}
- {else/}
- {load href="__PUBLIC__/plugins/ckeditor/ckeditor.js" /}
- {/eq}
-
- <body class="bodysy-w">
- <div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- <div id="geduan_div" class="h10"></div>
- <div id="page_div" class="page min-hg-c mb-20" style="min-width:auto;box-shadow:none;">
- <div class="fixed-bar">
- <div class="item-title">
- {include file="public/callback_page_1" /}<!-- 返回箭头 -->
- <a class="back_sz" href="javascript:void(0);" data-href="{:url('Special/help')}" onclick="openHelpframe(this, '设置与帮助', '500px', '100%', 'r');" title="设置与帮助"><i class="iconfont e-shezhi-tongyong"></i></a>
- <div class="subject">
- <h3>编辑专题</h3>
- <h5></h5>
- </div>
- <ul class="tab-base nc-row">
- <li><a href="javascript:void(0);" data-index='1' class="tab current"><span>基础内容</span></a></li>
- <li><a href="javascript:void(0);" data-index='2' class="tab"><span>专题文档</span></a></li>
- <li><a href="javascript:void(0);" data-index='3' class="tab"><span>SEO优化</span></a></li>
- <li><a href="javascript:void(0);" data-index='4' class="tab"><span>更多设置</span></a></li>
- <!-- #weapp_demontrate_li# -->
- <!-- #weapp_li# -->
- </ul>
- </div>
- </div>
- <form class="form-horizontal" id="post_form" action="{:url('Special/edit')}" method="post">
- <!-- 常规信息 -->
- <div class="ncap-form-default tab_div_1">
- <dl class="row">
- <dt class="tit">
- <label for="title"><em>*</em>文档标题</label>
- </dt>
- <dd class="opt">
- <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}>
-
- 副标题:<input type="text" name="subtitle" value="{$field.subtitle}" id="subtitle" class="w200">
- <input type="hidden" name="old_title" value="{$field.title}" class="input-txt">
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">
- <label for="title"><em>*</em>栏目分类</label>
- </dt>
- <dd class="opt">
- <input type="hidden" name="attr[typeid]" id="attr_typeid" value="{$field.typeid}">
- <select name="typeid" id="typeid">
- {$arctype_html}
- </select>
- <span class="err"></span>
- <p class="notic">谨慎切换,自定义字段的内容会随着栏目切换而清空,在保存之前不受影响!</p>
- </dd>
- </dl>
- {notempty name='$global.web_stypeid_open'}
- <dl class="row">
- <dt class="tit">
- <label for="stypeid">副栏目分类</label>
- </dt>
- <dd class="opt">
- <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="">
- <a href="javascript:void(0);" data-channel="{$channeltype}" onclick="select_stypeid(this);" class="ncap-btn ncap-btn-green">选择副栏目</a>
- <span class="err"></span>
- <p class="notic">支持同频道模型的栏目ID</p>
- <div id="stypeid_txt" class="pt5">
- {volist name='$stypeid_arr' id='vo'}{gt name='$key' value='0'} | {/gt}<span>{$vo.typename}</span>{/volist}
- </div>
- </dd>
- </dl>
- {/notempty}
- <dl class="row">
- <dt class="tit">
- <label>文档属性</label>
- </dt>
- <dd class="opt">
- {volist name="archives_flags" id="vo"}
- <input type="hidden" name="attr[{$vo.flag_fieldname}]" {if $field[$vo.flag_fieldname] == 1}value="1"{else/}value="0"{/if}>
- <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>
- {/volist}
- <span class="err"></span>
- <p class="notic">如需管理,请点击右上角设置与帮助按钮</p>
- </dd>
- </dl>
- <dl class="row {if condition="$field.is_jump != 1"}none{/if} dl_jump">
- <dt class="tit">
- <label>跳转网址</label>
- </dt>
- <dd class="opt">
- <input type="text" value="{$field.jumplinks}" name="jumplinks" id="jumplinks" class="input-txt" placeholder="http://">
- <span class="err"></span>
- <p class="notic">请输入完整的URL网址(包含http或https),设置后访问该条信息将直接跳转到设置的网址</p>
- </dd>
- </dl>
- <dl class="row" style="z-index:2;">
- <dt class="tit">
- <label>文档标签</label>
- </dt>
- <dd class="opt">
- <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,',')">
- <a href="javascript:void(0);" onclick="get_common_tagindex(this);">显示常用标签</a> <img id="tag_loading" src="__STATIC__/common/images/loading.gif" style="display: none;" />
- <div class="often_tags" id="often_tags" data-opt="edit" style="display: none;"></div>
- <div class="often_tags" id="often_tags_input" style="display: none;"></div>
- <input type="hidden" id="tags_click_count">
- </dd>
- </dl>
- <dl class="row {empty name="$global.web_citysite_open"} none {/empty} ">
- <dt class="tit">
- <label for="title">所属区域</label>
- </dt>
- <dd class="opt">
- <select name="province_id" id="province_id" onchange="set_city_list(0);">
- <option value="0">全国</option>
- {volist name=':get_site_province_list()' id='vo'}
- <option value="{$vo.id}" {eq name="$field.province_id" value="$vo.id" } selected {/eq} >{$vo.name}</option>
- {/volist}
- </select>
- <select name="city_id" id="city_id" class="none ml5" onchange="set_area_list(0);">
- <option value="">--请选择--</option>
- </select>
- <select name="area_id" id="area_id" class="none ml5">
- <option value="">--请选择--</option>
- </select>
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">
- <label>封面图片</label>
- </dt>
- <dd class="opt">
- <div class="input-file-show div_litpic_local" {neq name="$field.is_remote" value="0"}style="display: none;"{/neq}>
- <span class="show">
- <a id="img_a" target="_blank" class="nyroModal" rel="gal" href="{$field.litpic_local|default='javascript:void(0);'}">
- <i id="img_i" class="fa fa-picture-o" {notempty name="$field.litpic_local"}onmouseover="layer_tips=layer.tips('<img src={$field.litpic_local} class=\'layer_tips_img\'>',this,{tips: [1, '#fff']});"{/notempty} onmouseout="layer.close(layer_tips);"></i>
- </a>
- </span>
- <span class="type-file-box">
- <input type="text" id="litpic_local" name="litpic_local" value="{$field.litpic_local|default=''}" class="type-file-text" autocomplete="off">
- <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button">
- <input class="type-file-file" onClick="GetUploadify(1,'','allimg','img_call_back')" size="30" hidefocus="true" nc_type="change_site_logo"
- title="点击前方预览图可查看大图,点击按钮选择文件并提交表单后上传生效">
- </span>
- </div>
- <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}>
-
- <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>
- <span class="err"></span>
- <p class="notic">当没有手动上传图片时候,会自动提取正文的第一张图片作为缩略图</p>
- </dd>
- </dl>
-
- {include file="archives/get_field_addonextitem" /}
- </div>
- <!-- 常规信息 -->
- <!-- 专题节点 -->
- <div class="ncap-form-default tab_div_2" style="display:none;">
- <div class="special-add" onclick="specialNodeAdd();">
- <span><i class="layui-icon layui-icon-addition"></i>新增节点</span>
- </div>
- <div class="sort-list-special">
- {empty name='$specialNodeList'}
- <div class="special-items specialNodeItems" id="specialNode_1_item">
- <input type="hidden" name="specialNode[itemid][]" value="1">
- <div class="special-del" onclick="specialNodeDel(this);"><i class="fa fa-times" aria-hidden="true"></i>删除</div>
-
- <div class="special-items-row">
- <div class="special-item">
- <div class="special-item-l"><em>*</em>节点名称</div>
- <div class="special-item-r">
- <input type="text" name="specialNode[title][]" value="节点1" class="input-text" onkeyup="keyupNodeTitleUnique(this);">
- <span class="err"></span>
- </div>
- </div>
- <div class="special-item">
- <div class="special-item-l"><em>*</em>节点标识</div>
- <div class="special-item-r">
- <input type="text" name="specialNode[code][]" value="default1" class="input-text" onkeyup="keyupNodeCodeUnique(this);" onkeyup="this.value=this.value.replace(/[^\w\-\_]/g,'');" onpaste="this.value=this.value.replace(/[^\w\-\_]/g,'')">
- <span class="err"></span>
- </div>
- </div>
- </div>
-
- <div class="special-items-row">
- <div class="special-item">
- <div class="special-item-l">文档来源</div>
- <div class="special-item-r">
- <span class="option-item">
- <label class="ml5"><input type="radio" name="specialNode[isauto][1]" value="0" checked="checked" onclick="setNodeIsauto(this, 'specialNode_1_item');"> 节点文档列表</label>
- </span>
- <span class="option-item">
- <label class="ml5"><input type="radio" name="specialNode[isauto][1]" value="1" onclick="setNodeIsauto(this, 'specialNode_1_item');"> 自动获取文档</label>
- </span>
- </div>
- </div>
- </div>
-
- <div class="dl_specialNode_1_item_isauto_1" style="display: none;">
- <div class="special-items-row">
- <div class="special-item-l">关键字</div>
- <div class="special-item-r">
- <input type="text" name="specialNode[keywords][]" class="input-text">(以 , 逗号分开)
- </div>
- </div>
- <div class="special-items-row">
- <div class="special-item-l">所属栏目</div>
- <div class="special-item-r">
- <select name="specialNode[typeid][]">
- <option value="0">请选择栏目…</option>
- {$node_select_html}
- </select>
- </div>
- </div>
- <div class="special-items-row">
- <div class="special-item-l">文档数</div>
- <div class="special-item-r">
- <input type="text" name="specialNode[row][]" value="10" class="input-text" style="width: 50px;">
- </div>
- </div>
- </div>
-
- <div class="dl_specialNode_1_item_isauto_0">
- <div class="special-items-row">
- <div class="special-item-l">节点文档列表</div>
- <div class="special-item-r">
- <a href="javascript:void(0);" onclick="selectNodeArchives(this, 'specialNode_1_item');" class="ncap-btn ncap-btn-green">选择文档</a>
- </div>
- </div>
- <div class="special-items-row" style="display: none;">
- <div class="special-item-l"> </div>
- <div class="special-item-r">
- <div class="ment-comment-table pd0">
- <div class="ment-table-wrapper">
- <div class="ment-table ment-table-default" style="max-height: 307px;padding: 0 10px;overflow-y: auto;">
- <div class="ment-table-header">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
- <colgroup> <col width=""> <col width="60"> </colgroup>
- <thead>
- <tr>
- <th> <div class="ment-table-cell"><span>文档标题</span> </div> </th>
- <th> <div class="ment-table-cell"><span>操作</span> </div> </th>
- </tr>
- </thead>
- </table>
- </div>
- <div class="ment-table-body">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
- <colgroup> <col width=""> <col width="60"> </colgroup>
- <input type="hidden" name="specialNode[aidlist][]" value="">
- <input type="hidden" name="specialNode[htmllist][]" value="">
- <tbody class="ment-table-tbody archivesTbody"></tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {else/}
- {volist name='$specialNodeList' id='nodeVo'}
- <div class="special-items specialNodeItems" id="specialNode_{$i}_item">
- <input type="hidden" name="specialNode[node_id][]" value="{$nodeVo.node_id}">
- <input type="hidden" name="specialNode[itemid][]" value="{$i}">
- <div class="special-del" onclick="specialNodeDel(this);"><i class="fa fa-times" aria-hidden="true"></i>删除</div>
-
- <div class="special-items-row">
- <div class="special-item">
- <div class="special-item-l"><em>*</em>节点名称</div>
- <div class="special-item-r">
- <input type="text" name="specialNode[title][]" value="{$nodeVo.title|default='节点'.$i}" class="input-text" onkeyup="keyupNodeTitleUnique(this);">
- <span class="err"></span>
- </div>
- </div>
- <div class="special-item">
- <div class="special-item-l"><em>*</em>节点标识</div>
- <div class="special-item-r">
- <input type="text" name="specialNode[code][]" value="{$nodeVo.code|default='default'.$i}" class="input-text" onkeyup="keyupNodeCodeUnique(this);" onkeyup="this.value=this.value.replace(/[^\w\-\_]/g,'');" onpaste="this.value=this.value.replace(/[^\w\-\_]/g,'')">
- <span class="err"></span>
- </div>
- </div>
- </div>
-
- <div class="special-items-row">
- <div class="special-item">
- <div class="special-item-l">文档来源</div>
- <div class="special-item-r">
- <span class="option-item">
- <label class="ml5"><input type="radio" name="specialNode[isauto][{$i}]" value="0" {empty name='$nodeVo.isauto'} checked="checked" {/empty} onclick="setNodeIsauto(this, 'specialNode_{$i}_item');"> 节点文档列表</label>
- </span>
- <span class="option-item">
- <label class="ml5"><input type="radio" name="specialNode[isauto][{$i}]" value="1" {eq name='$nodeVo.isauto' value='1'} checked="checked" {/eq} onclick="setNodeIsauto(this, 'specialNode_{$i}_item');"> 自动获取文档</label>
- </span>
- </div>
- </div>
- </div>
-
- <div class="dl_specialNode_{$i}_item_isauto_1" {empty name='$nodeVo.isauto'} style="display: none;" {/empty}>
- <div class="special-items-row">
- <div class="special-item-l">关键字</div>
- <div class="special-item-r">
- <input type="text" name="specialNode[keywords][]" value="{$nodeVo.keywords|default=''}" class="input-text">(以 , 逗号分开)
- </div>
- </div>
- <div class="special-items-row">
- <div class="special-item-l">所属栏目</div>
- <div class="special-item-r">
- <select name="specialNode[typeid][]">
- <option value="0">请选择栏目…</option>
- {$node_select_html}
- </select>
- <script type="text/javascript">
- $(function(){
- $('#specialNode_{$i}_item').find("select[name='specialNode[typeid][]']").val({$nodeVo.typeid|default='0'});
- });
- </script>
- </div>
- </div>
- <div class="special-items-row">
- <div class="special-item-l">文档数</div>
- <div class="special-item-r">
- <input type="text" name="specialNode[row][]" value="{$nodeVo.row|default='10'}" class="input-text" style="width: 50px;">
- </div>
- </div>
- </div>
-
- <div class="dl_specialNode_{$i}_item_isauto_0" {eq name='$nodeVo.isauto' value='1'} style='display: none;' {/eq}>
- <div class="special-items-row">
- <div class="special-item-l">节点文档列表</div>
- <div class="special-item-r">
- <a href="javascript:void(0);" onclick="selectNodeArchives(this, 'specialNode_{$i}_item');" class="ncap-btn ncap-btn-green">选择文档</a>
- </div>
- </div>
- <div class="special-items-row">
- <div class="special-item-l"> </div>
- <div class="special-item-r">
- <div class="ment-comment-table pd0">
- <div class="ment-table-wrapper">
- <div class="ment-table ment-table-default" style="max-height: 307px;padding: 0 10px;overflow-y: auto;">
- <div class="ment-table-header">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
- <colgroup> <col width=""> <col width="60"> </colgroup>
- <thead>
- <tr>
- <th> <div class="ment-table-cell"><span>文档标题</span> </div> </th>
- <th> <div class="ment-table-cell"><span>操作</span> </div> </th>
- </tr>
- </thead>
- </table>
- </div>
- <div class="ment-table-body">
- <table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
- <colgroup> <col width=""> <col width="60"> </colgroup>
- <input type="hidden" name="specialNode[aidlist][]" value='{$nodeVo.aidlist|default=""}'>
- <input type="hidden" name="specialNode[htmllist][]" value='{$nodeVo.htmllist|default=""}'>
- <tbody class="ment-table-tbody archivesTbody">
- {volist name="$nodeVo.archivesList" id="arc" key='arc_i'}
- <tr draggable="false" class="ment-table-row">
- <td class="">
- <div class="ment-table-cell ellipsis">{$arc.title}</div>
- </td>
- <td class="">
- <div class="ment-table-cell">
- <a class="curpoin" href="javaScript:void(0);" data-aid="{$arc.aid}" data-id="specialNode_{$i}_item" onclick="delNodeArchives(this);">删除</a>
- </div>
- </td>
- </tr>
- {/volist}
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- {/volist}
- {/empty}
- </div>
- </div>
- <!-- 专题节点 -->
- <!-- SEO参数 -->
- <div class="ncap-form-default tab_div_3" style="display:none;">
- <dl class="row">
- <dt class="tit">
- <label for="seo_title">SEO标题</label>
- </dt>
- <dd class="opt">
- <input type="text" value="{$field.seo_title}" name="seo_title" id="seo_title" class="input-txt">
- <span class="err"></span>
- <p class="notic">一般不超过80个字符,为空时系统自动构成,可以到 <a href="{:url('Seo/index', array('inc_type'=>'seo'))}">SEO设置 - SEO基础</a> 中设置构成规则。</p>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">
- <label>SEO关键词</label>
- </dt>
- <dd class="opt">
- <textarea rows="5" cols="60" id="seo_keywords" name="seo_keywords" style="height:20px;">{$field.seo_keywords}</textarea>
- <span class="err"></span>
- <p class="notic">一般不超过100个字符,多个关键词请用英文逗号(,)隔开,建议3到5个关键词。</p>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">
- <label>SEO描述</label>
- </dt>
- <dd class="opt">
- <textarea rows="5" cols="60" id="seo_description" name="seo_description" style="height:54px;" class="keywordsTextarea" onkeyup="monitorInputStr();" onkeypress="monitorInputStr();">{$field.seo_description}</textarea>
- <span class="err"></span>
- <p class="notic">一般不超过100个字符,不填写时系统自动提取正文的前100个字符</p>
- <p class="notic2 {empty name='$field.seo_description'}none{/empty}" id="beenWritten">你已输入<span id="beenWrittenStr">0</span>个字符</p>
- <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>
- </dd>
- </dl>
- </div>
- <!-- SEO参数 -->
- <!-- 其他参数 -->
- <div class="ncap-form-default tab_div_4" style="display:none;">
- <dl class="row">
- <dt class="tit">
- <label for="author">作者</label>
- </dt>
- <dd class="opt">
- <input type="hidden" value="{$field.users_id}" name="users_id" class="input-txt">
- <input type="text" value="{$field.author}" name="author" id="author" class="input-txt">
- <span class="err"></span>
- <p class="notic">设置作者默认名称(将同步至管理员笔名)</p>
- </dd>
- </dl>
- <dl class="row dl_origin">
- <dt class="tit">
- <label>来源</label>
- </dt>
- <dd class="opt origin-hot">
- <input type="text" value="{$field.origin}" name="origin" id="origin" class="input-txt" onclick="searchOrigin(this);" autocomplete="off">
- <div class="origin-hot-list" style="display: none;" id="search_keywords_list_origin"></div>
- <textarea id="system_originlist_str" style="display: none;">{$system_originlist_str}</textarea>
- <span class="setting" onclick="set_originlist();">设置</span>
- <span class="err"></span>
- <p class="notic">为空时默认“网络”</p>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">
- <label>点击数</label>
- </dt>
- <dd class="opt">
- <input type="text" value="{$field.click}" name="click" id="click" class="input-txt">
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">
- <label>阅读权限</label>
- </dt>
- <dd class="opt">
- <input type="hidden" value="{$field.arcrank}" name="old_arcrank" class="input-txt">
- <select name="arcrank" id="arcrank" {if $field.arcrank < 0 && $admin_info.role_id > 0 && $auth_role_info.check_oneself < 1} disabled="disabled" {/if}>
- {volist name="arcrank_list" id="vo"}
- <option value="{$vo.rank}" {eq name="$vo.rank" value="$field.arcrank"}selected{/eq}>{$vo.name}</option>
- {/volist}
- </select>
- <span class="err"></span>
- <p class="notic"></p>
- </dd>
- </dl>
- <!-- #weapp_UsersGroup_content_users_id={$field.users_id}#--><!-- #weapp_UsersGroup_content# -->
- <dl class="row">
- <dt class="tit">
- <label for="articleForm">发布时间</label>
- </dt>
- <dd class="opt">
- <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">
- <span class="add-on input-group-addon">
- <i class="glyphicon glyphicon-calendar fa fa-calendar"></i>
- </span>
- <span class="err"></span>
- </dd>
- </dl>
- <dl class="row">
- <dt class="tit">
- <label for="tempview">文档模板</label>
- </dt>
- <dd class="opt">
- <select name="tempview" id="tempview">
- {volist name='$templateList' id='vo'}
- <option value="{$vo}" {eq name='$vo' value='$tempview'}selected{/eq}>{$vo}</option>
- {/volist}
- </select>
- <input type="hidden" name="type_tempview" value="{$tempview}" />
- <span class="err"></span>
- <p class="notic">模板命名规则:<br/>view_special.htm<br/>view_special_自定义.htm</p>
- </dd>
- </dl>
- <dl class="row {notin name='$seo_pseudo' value='2,3'}no-grey{/notin}" >
- <dt class="tit">
- <label>自定义文件名</label>
- </dt>
- <dd class="opt">
- <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
- <span class="err"></span>
- <p class="notic">自定义文件名可由字母、数字、下划线(_)、连接符(-)等符号组成,除此之外其他字符将自动转为连接符(-)</p>
- </dd>
- </dl>
- </div>
- <!-- 其他参数 -->
- <!-- #weapp_demontrate_div# -->
- <!-- #weapp_div# -->
- <div class="ncap-form-default">
- <div class="bot2">
- <input type="hidden" name="gourl" value="{$gourl|default=''}">
- <input type="hidden" name="aid" value="{$field.aid|default='0'}">
- <input type="hidden" name="editor_addonFieldExt" id="editor_addonFieldExt" value="">
- <a href="JavaScript:void(0);" onclick="check_submit();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
- {include file="public/callback_page_2" /}<!-- 返回按钮 -->
- </div>
- </div>
- </form>
- </div>
- <script type="text/javascript">
- layui.use('laydate', function() {
- var laydate = layui.laydate;
- laydate.render({
- elem: '#add_time', type: 'datetime'
- });
- });
-
- $(function () {
- try {
- var web_citysite_open = {$global['web_citysite_open']|default=0};
- if (web_citysite_open > 0) {
- var province_id = {$field.province_id|default=0};
- var city_id = {$field.city_id|default=0};
- var area_id = {$field.area_id|default=0};
- if (province_id > 0) {
- set_city_list(city_id);
- }
- if (city_id > 0) {
- set_area_list(area_id);
- }
- }
- }catch(e){}
-
- //选项卡切换列表
- $('.tab-base').find('.tab').click(function(){
- $('.tab-base').find('.tab').each(function(){
- $(this).removeClass('current');
- });
- $(this).addClass('current');
- var tab_index = $(this).data('index');
- $(".tab_div_1, .tab_div_2, .tab_div_3, .tab_div_4").hide();
- $(".tab_div_"+tab_index).show();
- layer.closeAll();
- });
-
- $('input[name=is_jump]').click(function(){
- if ($(this).is(':checked')) {
- $('.dl_jump').show();
- } else {
- $('.dl_jump').hide();
- }
- });
-
- var dftypeid = {$field.typeid|default='0'};
- $('#typeid').change(function(){
- var current_channel = $(this).find('option:selected').data('current_channel');
- if (0 < $(this).val() && {$channeltype} != current_channel) {
- showErrorMsg('请选择对应模型的栏目!');
- $(this).val(dftypeid);
- } else if ({$channeltype} == current_channel) {
- layer.closeAll();
- }
- var aid = $("input[name=aid]").val();
- GetAddonextitem(1, $(this).val(), {$channeltype}, aid, true);
- });
-
- $(document).click(function(){
- $('#often_tags').hide();
- $('#often_tags_input').hide();
- event.stopPropagation();
- });
-
- $('#often_tags').click(function(){
- $('#often_tags').show();
- event.stopPropagation();
- });
- });
-
- // 判断输入框是否为空
- function check_submit() {
- if ($.trim($('input[name=title]').val()) == '') {
- $($('.tab-base').find('.tab')[0]).trigger('click');
- showErrorMsg('标题不能为空!');
- $('input[name=title]').focus();
- return false;
- }
- if ($('#typeid').val() == 0) {
- $($('.tab-base').find('.tab')[0]).trigger('click');
- showErrorMsg('请选择栏目…!');
- $('#typeid').focus();
- return false;
- }
- if (!checkNode()) {
- return false;
- }
-
- var htmlfilename = $.trim($('input[name=htmlfilename]').val());
- if (htmlfilename != '') {
- var exp = /^\d{1,}$/;
- if (exp.test(htmlfilename)) {
- showErrorAlert('自定义文件名不能纯数字,会与文档ID冲突!');
- $('input[name=htmlfilename]').focus();
- return false;
- }
- }
-
- layer_loading('正在处理');
- if (!ajax_check_htmlfilename()) {
- layer.closeAll();
- showErrorMsg('同栏目下,自定义文件名已存在!');
- $('input[name=htmlfilename]').focus();
- return false;
- }
- setTimeout(function () {
- editor_auto_210607();
- $('#post_form').submit();
- }, 1);
- }
-
- function img_call_back(fileurl_tmp) {
- $("#litpic_local").val(fileurl_tmp);
- $("#img_a").attr('href', fileurl_tmp);
- $("#img_i").attr('onmouseover', "layer_tips=layer.tips('<img src="+fileurl_tmp+" class=\\'layer_tips_img\\'>',this,{tips: [1, '#fff']});");
- $("input[name=is_litpic]").attr('checked', true); // 自动勾选属性[图片]
- }
-
- function setNodeIsauto(obj, nodeid) {
- var isauto = $(obj).val();
- if (isauto == 0) {
- $('.dl_'+nodeid+'_isauto_0').show();
- $('.dl_'+nodeid+'_isauto_1').hide();
- } else {
- $('.dl_'+nodeid+'_isauto_0').hide();
- $('.dl_'+nodeid+'_isauto_1').show();
- }
- }
-
- // 点击选择节点文章
- var tbodyTr;
- var nodeTagID;
- var lists_node;
- var lists_html;
- // 节点文章预定义变量
- var nodeAidArr = [];
- var nodeAidStr = '';
- var nodeAidList = [];
- function selectNodeArchives(obj, nodeid) {
- nodeTagID = nodeid;
- tbodyTr = $('#' + nodeTagID + ' .archivesTbody');
- lists_node = $('#' + nodeTagID).find("input[name='specialNode[aidlist][]']");
- lists_html = $('#' + nodeTagID).find("input[name='specialNode[htmllist][]']");
- nodeAidArr = lists_node.val() ? lists_node.val().split(',') : [];
- nodeAidList = lists_html.val() ? $.parseJSON(lists_html.val()) : [];
- var aidlist = '';//lists_node.val();
- var url = eyou_basefile + '?m=admin&c=Special&a=ajax_node_archives_list&aids='+aidlist+'&lang='+__lang__;
- //iframe窗
- var iframes = layer.open({
- type: 2,
- title: '选择节点文档',
- fixed: true, //不固定
- shadeClose: false,
- shade: layer_shade,
- area: ['80%', '80%'],
- content: url
- });
- }
-
- // 选择节点文章时加载
- function nodeAidSelectLoad(aidArr, addList) {
- nodeAidArr = aidArr;
- nodeAidList = addList;
- nodeAidStr = nodeAidArr.join(',');
- }
-
- // 选择关联文章返回
- function selectArticleBack() {
- var html = '';
- for (var i = 0; i < nodeAidList.length; i++) {
- // 文档列表处理
- html +=
- '<tr draggable="false" class="ment-table-row">'+
- '<td class="">'+
- '<div class="ment-table-cell ellipsis">' + nodeAidList[i]['title'] + '</div>'+
- '</td>'+
- '<td class="">'+
- '<div class="ment-table-cell">'+
- '<a class="curpoin" href="javaScript:void(0);" data-aid="' + nodeAidList[i]['aid'] + '" data-id="' + nodeTagID + '" onclick="delNodeArchives(this);">删除</a>'+
- '</div>'+
- '</td>'+
- '</tr>';
- }
- // 加载文档标题显示
- tbodyTr.empty().html(html);
- $('.dl_'+nodeTagID+'_isauto_0 .special-items-row').show();
- // 加载文档aid隐藏域
- lists_node.val(nodeAidStr);
- // 加载文档标题隐藏域
- lists_html.val(JSON.stringify(nodeAidList));
- }
-
- // 删除节点文档列表中指定的文档
- function delNodeArchives(obj) {
- // 获取单个节点文档aid列表
- var singleNodeList = $('#' + $(obj).attr('data-id')).find("input[name='specialNode[aidlist][]']");
- var singleNodeAids = singleNodeList.val().split(',');
- // 处理删除单个节点指定的文档aid
- var aid = $(obj).attr('data-aid');
- for (var i = 0; i < singleNodeAids.length; i++) {
- if (parseInt(aid) === parseInt(singleNodeAids[i])) singleNodeAids.splice(i, 1);
- }
- // 将处理后的节点aid列表回存
- singleNodeList.val(singleNodeAids.join(','));
-
- // 获取单个节点文档html列表
- var singleNodeObj = $('#' + $(obj).attr('data-id')).find("input[name='specialNode[htmllist][]']");
- var singleNodeHtml = $.parseJSON(singleNodeObj.val());
- // 处理删除单个节点指定的文档html
- for (var i = 0; i < singleNodeHtml.length; i++) {
- if (parseInt(aid) === parseInt(singleNodeHtml[i].aid)) singleNodeHtml.splice(i, 1);
- }
- // 将处理后的节点html列表回存
- singleNodeObj.val(JSON.stringify(singleNodeHtml));
-
- // 删除节点文档html
- $(obj).parent().parent().parent().remove();
- }
-
- /**
- * 删除节点
- * @return {[type]} [description]
- */
- function specialNodeDel(obj) {
- var num = $('.specialNodeItems').length;
- if (num <= 1) {
- layer.msg('至少保留一个!', {icon: 2});
- return false;
- }
- $(obj).parent().remove();
- }
-
- /**
- * 新增节点
- * @return {[type]} [description]
- */
- var node_itemid = $('.tab_div_2 .specialNodeItems').length;
- function specialNodeAdd() {
- var len = $('.specialNodeItems').length;
- var itemObj = $($('.specialNodeItems')[len - 1]);
- var nodehtml = itemObj.html();
- var itemid = itemObj.find("input[name='specialNode[itemid][]']").val();
-
- node_itemid++;
- nodehtml = '<div class="special-items specialNodeItems" id="specialNode_'+itemid+'_item">'+nodehtml+'</div>';
- nodehtml = nodehtml.replace(new RegExp('specialNode_'+itemid+'_item', "g"), 'specialNode_'+node_itemid+'_item'); //第一个参数是正则表达式。
- nodehtml = nodehtml.replace(new RegExp('specialNode\\[isauto\\]\\['+itemid+'\\]', "g"), 'specialNode[isauto]['+node_itemid+']'); //第一个参数是正则表达式。
- $($('.specialNodeItems')[0]).before(nodehtml);
-
- // 重置数据
- $('#specialNode_'+node_itemid+'_item').find("input[name='specialNode[title][]']").val('节点'+node_itemid);
- $('#specialNode_'+node_itemid+'_item').find("input[name='specialNode[code][]']").val('default'+node_itemid);
- $('#specialNode_'+node_itemid+'_item').find("input[name='specialNode[isauto]["+node_itemid+"]'][value='0']").prop("checked",true);
- // $('#specialNode_'+node_itemid+'_item').find("textarea[name='specialNode[aidlist][]']").val('');
- $('#specialNode_'+node_itemid+'_item').find("input[name='specialNode[keywords][]']").val('');
- $('#specialNode_'+node_itemid+'_item').find("select[name='specialNode[typeid][]']").val('0');
- $('#specialNode_'+node_itemid+'_item').find("select[name='specialNode[row][]']").val('10');
- $('#specialNode_'+node_itemid+'_item').find("input[name='specialNode[itemid][]']").val(node_itemid);
- $('#specialNode_'+node_itemid+'_item').find("input[name='specialNode[node_id][]']").val(0);
-
- // 清理节点文档列表
- $('#specialNode_'+node_itemid+'_item .archivesTbody').html('');
- $('#specialNode_'+node_itemid+'_item .dl_specialNode_'+node_itemid+'_item_isauto_0').show();
- $('#specialNode_'+node_itemid+'_item .dl_specialNode_'+node_itemid+'_item_isauto_1').hide();
- $('#specialNode_'+node_itemid+'_item .dl_specialNode_'+node_itemid+'_item_isauto_0 .special-items-row').eq(1).hide();
- $('#specialNode_'+node_itemid+'_item').find("input[name='specialNode[aidlist][]']").val('');
- $('#specialNode_'+node_itemid+'_item').find("input[name='specialNode[htmllist][]']").val('');
- }
-
- function checkNode()
- {
- var returnVal = true;
-
- var titleObj = $("input[name='specialNode[title][]']");
- $.each(titleObj, function (index, item) {
- if ($.trim($(item).val()) == '') {
- showErrorMsg('节点名称不能为空!');
- $(item).focus();
- returnVal = false;
- return false;
- }
- });
-
- if (true == returnVal) {
- returnVal = nodeTitleUnique(0);
- }
-
- if (true == returnVal) {
- var codeObj = $("input[name='specialNode[code][]']");
- $.each(codeObj, function (index, item) {
- if ($.trim($(item).val()) == '') {
- showErrorMsg('节点标识不能为空!');
- $(item).focus();
- returnVal = false;
- return false;
- }
- });
- }
-
- if (true == returnVal) {
- returnVal = nodeCodeUnique(0);
- }
-
- return returnVal;
- }
-
- function keyupNodeTitleUnique(obj)
- {
- var returnVal = true;
- $(obj).parent().find('span.err').html('').hide();
- returnVal = nodeTitleUnique(1);
- if (!returnVal) {
- $(obj).parent().find('span.err').html('<font color="red">已存在,请更改!</font>').show();
- }
- }
-
- function keyupNodeCodeUnique(obj)
- {
- var returnVal = true;
- $(obj).parent().find('span.err').html('').hide();
- returnVal = nodeCodeUnique(1);
- if (!returnVal) {
- $(obj).parent().find('span.err').html('<font color="red">已存在,请更改!</font>').show();
- }
- }
-
- /**
- * 检测节点名称的唯一性
- * @return {[type]} [description]
- */
- function nodeTitleUnique(isMsg)
- {
- var returnVal = true;
-
- var titleObj = $("input[name='specialNode[title][]']");
- $.each(titleObj, function (index, item) {
- var bnum = 0;
- $.each(titleObj, function (index2, item2) {
- if ($.trim($(item).val()) == $.trim($(item2).val())) {
- bnum += 1;
- }
- })
- if (bnum > 1) {
- if (0 == isMsg) {
- showErrorMsg('节点名称已存在,请更改!');
- $(item).focus();
- }
- returnVal = false;
- return false;
- }
- });
-
- return returnVal;
- }
-
- /**
- * 检测节点标识的唯一性
- * @return {[type]} [description]
- */
- function nodeCodeUnique(isMsg)
- {
- var returnVal = true;
-
- var codeObj = $("input[name='specialNode[code][]']");
- $.each(codeObj, function (index, item) {
- var bnum = 0;
- $.each(codeObj, function (index2, item2) {
- if ($.trim($(item).val()) == $.trim($(item2).val())) {
- bnum += 1;
- }
- })
- if (bnum > 1) {
- if (0 == isMsg) {
- showErrorMsg('节点标识已存在,请更改!');
- $(item).focus();
- }
- returnVal = false;
- return false;
- }
- });
-
- return returnVal;
- }
-
- /** 以下 专题节点的拖动排序相关 js*/
- // $( ".sort-list-special" ).sortable({
- // start: function( event, ui) {
-
- // }
- // ,stop: function( event, ui ) {
-
- // }
- // });
- //因为他们要拖动,所以尽量设置他们的文字不能选择。
- // $( ".sort-list-special" ).disableSelection();
-
- function newtpl()
- {
- var url = "{:url('Archives/ajax_newtpl', ['type'=>'view', 'nid'=>'special'])}";
- //iframe窗
- layer.open({
- type: 2,
- title: '新建文档模板',
- fixed: true, //不固定
- shadeClose: false,
- shade: layer_shade,
- maxmin: true, //开启最大化最小化按钮
- area: ['90%', '90%'],
- content: url
- });
- }
- </script>
- <script>
- try{
- var mt20_1649209614 = sessionStorage.getItem("mt20_1649209614");
- if (mt20_1649209614 == 1){
- $("#geduan_div").removeClass("h10");
- }else{
- $("#geduan_div").addClass("h10");
- }
- }catch(e){}
- </script>
- {include file="public/footer" /}
|