290 lines
22 KiB
HTML
290 lines
22 KiB
HTML
|
{include file="cms/archives/common" /}
|
|||
|
<form id="add-form" class="form-horizontal form-archives" role="form" data-toggle="validator" method="POST" action="">
|
|||
|
<input type="hidden" name="row[style]" value=""/>
|
|||
|
<div class="row">
|
|||
|
<div class="col-md-9 col-sm-12">
|
|||
|
<div class="panel panel-default panel-intro">
|
|||
|
<div class="panel-heading">
|
|||
|
<ul class="nav nav-tabs">
|
|||
|
<li class="active"><a href="#basic" data-toggle="tab">基础信息</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<div class="panel-body">
|
|||
|
|
|||
|
<div id="myTabContent" class="tab-content">
|
|||
|
<div class="tab-pane fade active in" id="basic">
|
|||
|
<div class="form-group">
|
|||
|
<label for="c-channel_id" class="control-label col-xs-12 col-sm-2">{:__('Channel_id')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<select id="c-channel_id" data-rule="required" class="form-control selectpicker" data-live-search="true" name="row[channel_id]">
|
|||
|
{$channelOptions}
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="channel_ids">
|
|||
|
<label for="c-channel_ids" class="control-label col-xs-12 col-sm-2">{:__('Channel_ids')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<select id="c-channel_ids" data-rule="" class="form-control selectpicker" multiple data-live-search="true" name="row[channel_ids][]">
|
|||
|
{$secondChannelOptions}
|
|||
|
</select>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="user_id">
|
|||
|
<label for="c-user_id" class="control-label col-xs-12 col-sm-2">{:__('User_id')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<input id="c-user_id" type="text" class="form-control selectpage" data-source="user/user/index" placeholder="发布会员,可为空" data-field="nickname" name="row[user_id]"/>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="special_ids">
|
|||
|
<label for="c-special_ids" class="control-label col-xs-12 col-sm-2">{:__('Special_ids')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<input id="c-special_ids" type="text" class="form-control selectpage" data-source="cms/special/index" data-multiple="true" placeholder="所属专题,可为空" data-field="title" name="row[special_ids]"/>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('Title')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<div class="input-group">
|
|||
|
<input id="c-title" data-rule="required;" class="form-control" name="row[title]" type="text" value="" data-suggestion-url="{:url('cms.archives/suggestion')}">
|
|||
|
<span class="input-group-btn">
|
|||
|
<button class="btn btn-default btn-bold" style="margin:0 1px;" type="button">粗</button>
|
|||
|
<button type="button" class="btn btn-default btn-color colorpicker" style="padding:0;margin-left:1px;" title="选择标题颜色"><img src="__CDN__/assets/addons/cms/img/colorful.png" height="29" alt=""></button>
|
|||
|
<span class="msg-box n-right" for="c-title"></span>
|
|||
|
</span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="image">
|
|||
|
<label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('Image')}(1440*1280)</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<div class="input-group">
|
|||
|
<input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="" placeholder="缩略图可以直接从正文进行提取,可以为空">
|
|||
|
<div class="input-group-addon no-border no-padding">
|
|||
|
<span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
|||
|
<span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
|
|||
|
</div>
|
|||
|
<span class="msg-box n-right" for="c-image"></span>
|
|||
|
</div>
|
|||
|
<ul class="row list-inline plupload-preview" id="p-image"></ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="form-group" data-field="images">
|
|||
|
<label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('Images')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<div class="input-group">
|
|||
|
<input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="" placeholder="组图可以直接从正文进行提取,可以为空">
|
|||
|
<div class="input-group-addon no-border no-padding">
|
|||
|
<span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="true" data-preview-id="p-images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
|
|||
|
<span><button type="button" id="fachoose-images" class="btn btn-primary fachoose" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
|
|||
|
</div>
|
|||
|
<span class="msg-box n-right" for="c-images"></span>
|
|||
|
</div>
|
|||
|
<ul class="row list-inline plupload-preview" id="p-images"></ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="tags">
|
|||
|
<label for="c-tags" class="control-label col-xs-12 col-sm-2">{:__('Tags')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<input id="c-tags" data-rule="" class="form-control" placeholder="输入后空格确认" name="row[tags]" type="text" value="">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
<div class="form-group" data-field="diyname">
|
|||
|
<label for="c-diyname" class="control-label col-xs-12 col-sm-2">{:__('Diyname')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<input type="text" id="c-diyname" data-rule="diyname" name="row[diyname]" class="form-control" placeholder="请输入自定义的名称,用于伪静态规则中[:diyname]替换" data-tip="用于伪静态规则中[:diyname]替换"/>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="content">
|
|||
|
<label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<textarea id="c-content" data-rule="" class="form-control editor" name="row[content]" rows="15"></textarea>
|
|||
|
<div style="margin-top:5px;">
|
|||
|
<a href="javascript:" class="btn btn-xs btn-primary btn-legal"><i class="fa fa-magic"></i> {:__('Check content is legal')}</a>
|
|||
|
<a href="javascript:" class="btn btn-xs btn-danger btn-keywords"><i class="fa fa-file"></i> {:__('Get the keyword and description')}</a>
|
|||
|
<a href="javascript:" class="btn btn-xs btn-info btn-getimage" data-toggle="tooltip" data-title="将提取内容第一张图作为缩略图"><i class="fa fa-camera"></i> {:__('提取缩略图')}</a>
|
|||
|
<a href="javascript:" class="btn btn-xs btn-info btn-getimages" data-toggle="tooltip" data-title="将提取内容前4张图作为组图"><i class="fa fa-camera"></i> {:__('提取组图')}</a>
|
|||
|
<a href="javascript:" class="btn btn-xs btn-success btn-paytag" data-toggle="tooltip" data-title="只针对付费文章有效"><i class="fa fa-cny"></i> {:__('付费可见标签')}</a>
|
|||
|
<button type="button" class="btn btn-xs btn-success btn-pagertag"><i class="fa fa-list"></i> {:__('文章分页标签')}</button>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="price">
|
|||
|
<div class="control-label col-xs-12 col-sm-2">{:__('Price')}</div>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<input type="number" name="row[price]" id="c-price" value="0" class="form-control" data-tip="" data-rule="">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="outlink">
|
|||
|
<div class="control-label col-xs-12 col-sm-2">{:__('Outlink')}</div>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<input type="text" name="row[outlink]" id="c-outlink" value="" class="form-control" data-tip="" data-rule="" placeholder="只有当需要跳转到外部链接时才需填写">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="seotitle">
|
|||
|
<label for="c-seotitle" class="control-label col-xs-12 col-sm-2">{:__('Seotitle')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<input id="c-seotitle" data-rule="" class="form-control" name="row[seotitle]" type="text" value="" placeholder="为空时将使用文档标题">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="keywords">
|
|||
|
<label for="c-keywords" class="control-label col-xs-12 col-sm-2">{:__('Keywords')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<input id="c-keywords" data-rule="" class="form-control" name="row[keywords]" data-role="tagsinput" type="text" value="">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group" data-field="description">
|
|||
|
<label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('Description')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<textarea id="c-description" cols="60" rows="5" data-rule="" class="form-control" name="row[description]"></textarea>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div id="extend"></div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
<div class="col-md-3 col-sm-12">
|
|||
|
<div class="panel panel-default panel-intro">
|
|||
|
<div class="panel-heading">
|
|||
|
<ul class="nav nav-tabs">
|
|||
|
<li class="active"><a href="javascript:" data-toggle="tab">相关信息</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<div class="panel-body">
|
|||
|
<div class="tab-content">
|
|||
|
<div class="tab-pane fade active in" id="extra">
|
|||
|
<div class="form-group">
|
|||
|
<label for="c-views" class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Views')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<div class="input-group margin-bottom-sm">
|
|||
|
|
|||
|
<input id="c-views" data-rule="required" class="form-control" name="row[views]" placeholder="{:__('Views')}" type="number" value="0">
|
|||
|
<span class="input-group-addon"><i class="fa fa-eye text-success"></i></span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label for="c-comments" class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Comments')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<div class="input-group margin-bottom-sm">
|
|||
|
|
|||
|
<input id="c-comments" data-rule="required" class="form-control" name="row[comments]" placeholder="{:__('Comments')}" type="number" value="0">
|
|||
|
<span class="input-group-addon"><i class="fa fa-comment text-info"></i></span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label for="c-likes" class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Likes')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<div class="input-group margin-bottom-sm">
|
|||
|
|
|||
|
<input id="c-likes" data-rule="required" class="form-control" name="row[likes]" placeholder="{:__('Likes')}" type="number" value="0">
|
|||
|
<span class="input-group-addon"><i class="fa fa-thumbs-up text-danger"></i></span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label for="c-dislikes" class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Dislikes')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<div class="input-group margin-bottom-sm">
|
|||
|
<input id="c-dislikes" data-rule="required" class="form-control" name="row[dislikes]" placeholder="{:__('Dislikes')}" type="number" value="0">
|
|||
|
<span class="input-group-addon"><i class="fa fa-thumbs-down text-gray"></i></span>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label for="c-weigh" class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Weigh')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" placeholder="{:__('Weigh')}" type="number" value="0">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="panel panel-default panel-intro">
|
|||
|
<div class="panel-heading">
|
|||
|
<ul class="nav nav-tabs">
|
|||
|
<li class="active"><a href="javascript:" data-toggle="tab">标志状态</a></li>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
<div class="panel-body">
|
|||
|
<div class="tab-content">
|
|||
|
<div class="tab-pane fade active in" id="status">
|
|||
|
<div class="form-group">
|
|||
|
<label for="c-flag" class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Flag')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<!--@formatter:off-->
|
|||
|
<select id="c-flag" class="form-control selectpicker" multiple="" name="row[flag][]">
|
|||
|
{foreach name="flagList" item="vo"}
|
|||
|
<option value="{$key}" data-subtext="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
|
|||
|
{/foreach}
|
|||
|
</select>
|
|||
|
<!--@formatter:on-->
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Status')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<!--@formatter:off-->
|
|||
|
<select id="c-status" class="form-control selectpicker" name="row[status]">
|
|||
|
{foreach name="statusList" item="vo"}
|
|||
|
<option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
|
|||
|
{/foreach}
|
|||
|
</select>
|
|||
|
<!--@formatter:on-->
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Isguest')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<input id="c-isguest" name="row[isguest]" type="hidden" value="10">
|
|||
|
<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isguest" data-yes="1" data-no="0">
|
|||
|
<i class="fa fa-toggle-on text-success fa-2x"></i>
|
|||
|
</a>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Iscomment')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<input id="c-iscomment" name="row[iscomment]" type="hidden" value="10">
|
|||
|
<a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-iscomment" data-yes="1" data-no="0">
|
|||
|
<i class="fa fa-toggle-on text-success fa-2x"></i>
|
|||
|
</a>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label class="control-label col-xs-12 col-sm-2 col-md-4">{:__('Publishtime')}</label>
|
|||
|
<div class="col-xs-12 col-sm-8 col-md-8">
|
|||
|
<input type='text' name="row[publishtime]" data-date-format="YYYY-MM-DD HH:mm:ss" value="{:date('Y-m-d H:i:s')}" class="form-control"/>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="form-group layer-footer">
|
|||
|
<div class="row">
|
|||
|
<div class="col-md-9 col-sm-12">
|
|||
|
<div class="form-group">
|
|||
|
<label class="control-label col-xs-12 col-sm-2"></label>
|
|||
|
<div class="col-xs-12 col-sm-8">
|
|||
|
<button type="submit" class="btn btn-primary btn-embossed disabled"><i class="fa fa-check"></i> {:__('OK')}</button>
|
|||
|
<button type="button" class="btn btn-info btn-embossed btn-continue"><i class="fa fa-pencil"></i> {:__('Publish and continue')}</button>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="col-md-3 col-sm-12">
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</form>
|