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.
 
 
 
 
 
 

222 lines
12 KiB

{template nheader.html}
<script type="text/javascript">
$(function() {
{if $error}
dr_tips('<font color=red>{$error.msg}</font>', 3);
d_tips('{$error.error}', 0);
{/if}
{if $result}
dr_tips('{$result}', 3, 1);
{/if}
});
function dr_select_all() {
$("#dr_synid").find("option").attr("selected", "selected");
}
</script>
<form class="form-horizontal" action="" method="post" id="myform" name="myform">
<input name="action" id="dr_action" type="hidden" value="back" />
<div class="page-bar">
<ul class="page-breadcrumb mylink">
{$menu.link}
</ul>
<ul class="page-breadcrumb myname">
{$menu.name}
</ul>
<div class="page-toolbar">
<div class="btn-group pull-right">
<button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
<i class="fa fa-angle-down"></i>
</button>
<ul class="dropdown-menu pull-right" role="menu">
{loop $menu.quick $t}
<li>
<a href="{$t.url}">{$t.icon} {$t.name}</a>
</li>
{/loop}
<li class="divider"> </li>
<li>
<a href="javascript:window.location.reload();">
<i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
</li>
</ul>
</div>
</div>
</div>
<h3 class="page-title">
<small>{fc_lang('自定义页面方便快捷创建单一的网页')}</small>
</h3>
<div class="portlet light bordered myfbody">
<div class="portlet-title tabbable-line">
<ul class="nav nav-tabs" style="float:left;">
<li class="active">
<a href="#tab_0" data-toggle="tab"> <i class="fa fa-cog"></i> {fc_lang('基本设置')} </a>
</li>
<li class="">
<a href="#tab_1" data-toggle="tab"> <i class="fa fa-road"></i> {fc_lang('高级功能')} </a>
</li>
{if $id}
<li class="">
<a href="#tab_2" data-toggle="tab"> <i class="fa fa-refresh"></i> {fc_lang('同步到其他')} </a>
</li>
{/if}
</ul>
</div>
<div class="portlet-body">
<div class="tab-content">
<div class="tab-pane active" id="tab_0">
<div class="form-body">
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('上级')}:</label>
<div class="col-md-9">
<label>{$select}</label>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('名称')}:</label>
<div class="col-md-9">
<label>{dr_field_input('name', 'Text', $field['name']['setting'], $data['name'])}</label>
<span class="help-block">{fc_lang('给它一个描述名称')}</span>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('目录')}:</label>
<div class="col-md-9">
<label>{dr_field_input('dirname', 'Text', $field['dirname']['setting'], $data['dirname'])}</label>
<span class="help-block">{fc_lang('唯一标识码,用于URL结构显示和URL规则设定')}</span>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('SEO标题')}:</label>
<div class="col-md-9">
{dr_field_input('title', 'Text', $field['title']['setting'], $data['title'])}
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('SEO关键字')}:</label>
<div class="col-md-9">
{dr_field_input('keywords', 'Text', $field['keywords']['setting'], $data['keywords'])}
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('SEO描述信息')}:</label>
<div class="col-md-9">
{dr_field_input('description', 'Textarea', $field['description']['setting'], $data['description'])}
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('缩略图')}:</label>
<div class="col-md-9">
{dr_field_input('thumb', 'File', $field['thumb']['setting'], $data['thumb'])}
<span class="help-block">{fc_lang('标志图片、封面图片等等')}</span>
</div>
</div>
{$myfield}
{if $myfile}{template $myfile}{/if}
</div>
</div>
<div class="tab-pane" id="tab_1">
<div class="form-body">
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('是否显示')}:</label>
<div class="col-md-9">
<input type="checkbox" name="data[show]" value="1" {if $data['show']}checked{/if} data-on-text="{fc_lang('是')}" data-off-text="{fc_lang('否')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
<span class="help-block">{fc_lang('选择“否”时,list循环标签<b>默认</b>将不会调用出当前页面')}</span>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('继承下级')}:</label>
<div class="col-md-9">
<input type="checkbox" name="data[getchild]" value="1" {if $data['getchild']}checked{/if} data-on-text="{fc_lang('是')}" data-off-text="{fc_lang('否')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
<span class="help-block">{fc_lang('选择“是”时,将下级第一个页面数据作为当前的页面,只对父级页面有效')}</span>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('关闭静态缓存')}:</label>
<div class="col-md-9">
<input type="checkbox" name="setting[nocache]" value="1" {if $data['setting']['nocache']}checked{/if} data-on-text="{fc_lang('是')}" data-off-text="{fc_lang('否')}" data-on-color="success" data-off-color="danger" class="make-switch" data-size="small">
<span class="help-block">{fc_lang('选择“是”时,此页面将不会被缓存,如果含有数据分页查询等标签是,建议选择“是”')}</span>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('URL规则')}:</label>
<div class="col-md-9">
<label> <select class="form-control" name="urlrule">
<option value="0"> -- </option>
{list action=cache name=urlrule return=u}
{if $u.type==0}<option value="{$u.id}" {if $u.id==$data.urlrule}selected{/if}> {$u.name} </option>{/if}
{/list}
</select></label>
<label><a href="{dr_url('urlrule/index')}" style="color:blue !important">{fc_lang('[URL规则管理]')}</a></label>
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('模板文件')}:</label>
<div class="col-md-9">
{dr_field_input('template', 'Text', $field['template']['setting'], $data['template'])}
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('转向链接')}:</label>
<div class="col-md-9">
{dr_field_input('urllink', 'Text', $field['urllink']['setting'], $data['urllink'])}
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label">{fc_lang('不使用的字段')}:</label>
<div class="col-md-9">
<div class="checkbox-list">
{loop $myfield2 $t}
<label class="checkbox-inline"> <input type="checkbox" name="setting[nofield][]" {if @in_array($t.fieldname, $data['setting']['nofield'])}checked{/if} value="{$t.fieldname}" /> {$t.name}</label>
{/loop}
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane" id="tab_2">
<div class="form-body">
<div class="form-group">
<label class="col-md-2 control-label"></label>
<div class="col-md-9">
<label>{$select_syn}</label>
<label><button type="button" onclick="dr_select_all()" name="button" class="btn blue btn-sm"> <i class="fa fa-arrow-left"></i> {fc_lang('全选')} </button> </label>
<span class="help-block"> {fc_lang('可以将当前页面的伪静态规则同步到其他页面中,按"CTRL"实现多选')} </span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="myfooter">
<div class="row">
<div class="portlet-body form">
<div class="form-body">
<div class="form-actions">
<div class="row">
<div class="col-md-12 text-center">
<button type="submit" class="btn green" onclick="$('#dr_action').val('back')" > <i class="fa fa-save"></i> {fc_lang('保存并返回')}</button>
{if !$id}
<button type="submit" class="btn blue" onclick="$('#dr_action').val('continue')" > <i class="fa fa-plus"></i> {fc_lang('保存并继续')}</button>
{/if}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
{template nfooter.html}