|
|
<div class="pageheader">
|
|
|
<div class="media">
|
|
|
<div class="pageicon pull-left">
|
|
|
<i class="fa fa-th-list"></i>
|
|
|
</div>
|
|
|
<div class="media-body">
|
|
|
<ul class="breadcrumb">
|
|
|
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
|
|
|
<li><a href="/guang/article/index">文章管理</a></li>
|
|
|
<li>添加文章</li>
|
|
|
</ul>
|
|
|
|
|
|
<div>
|
|
|
<div style="width: 30%;float: left;">
|
|
|
<h4>添加文章</h4>
|
|
|
</div>
|
|
|
<div style="width: 70%;float: right;">
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div><!-- media -->
|
|
|
</div>
|
|
|
|
|
|
<div class="contentpanel">
|
|
|
<div class="rows">
|
|
|
<div class="col-md-12">
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<h4 class="panel-title">添加文章</h4>
|
|
|
</div>
|
|
|
<div class="panel-body">
|
|
|
|
|
|
</div>
|
|
|
<div class="panel-footer">
|
|
|
<div class="row">
|
|
|
<div class="col-sm-9 col-sm-offset-3">
|
|
|
<input type="hidden" name="id" value="41968">
|
|
|
<button type="submit" data-loading-text="保存中..." class="btn btn-primary mr5">保存</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<script type="text/tempalte" id="tempalte1">
|
|
|
<div class="rows">
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章标题</label>
|
|
|
<div class="col-sm-9">
|
|
|
<input type="text" id="articleTitle" class="form-control" placeholder="文章标题" required="" value="[[articleTitle]]">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章分类</label>
|
|
|
<!--文章分类-->
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">性别</label>
|
|
|
<div class="col-sm-9">
|
|
|
<input type="radio" value="1" name="articleGender">
|
|
|
<label>男</label>
|
|
|
<input type="radio" value="2" name="articleGender">
|
|
|
<label>女</label>
|
|
|
<input type="radio" value="3" name="articleGender">
|
|
|
<label>通用</label>
|
|
|
<input type="hidden" value="[[articleGender]]" id="articleGender" for="radio" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">选择作者</label>
|
|
|
<div class="col-sm-9">
|
|
|
<select class="form-control" id="authorId">
|
|
|
<option value="[[authorId||'']]">[[authorName||'请选择']]</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章摘要</label>
|
|
|
<div class="col-sm-9">
|
|
|
<textarea rows="2" id="articleSummary" class="form-control" placeholder="文章摘要" >
|
|
|
[[articleSummary]]
|
|
|
</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">封面图</label>
|
|
|
<div class="col-sm-9">
|
|
|
<input type="file" name="coverImage" id="coverImage" value="[[coverImage]]" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">图片类型</label>
|
|
|
<div class="col-sm-9">
|
|
|
<input type="radio" value="1" name="coverImageType">
|
|
|
<label>方形</label>
|
|
|
<input type="radio" value="2" name="coverImageType" checked="">
|
|
|
<label>长形</label>
|
|
|
<input type="hidden" id="coverImageType" value="[[coverImageType]]" for="radio" />
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章类型</label>
|
|
|
<div class="col-sm-9">
|
|
|
<select class="form-control" value="[[articleType]]" id="articleType">
|
|
|
<option value="1">普通文章</option>
|
|
|
<option value="2">广告</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">广告尺寸</label>
|
|
|
<div class="col-sm-9">
|
|
|
<select class="form-control" value="[[adsImgSize]]" id="adsImgSize">
|
|
|
<option value="">请选择广告图片尺寸</option>
|
|
|
<option value="10881088">1088X1088</option>
|
|
|
<option value="1088680">1088X680</option>
|
|
|
<option value="1088340">1088X340</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">链接</label>
|
|
|
<div class="col-sm-9">
|
|
|
<input type="text" name="url" id="url" value="" class="form-control" placeholder="请输入内容链接" readonly="true" required=""> <button type="button" class="btn btn-info" id="addUrl">添加链接</button>
|
|
|
<p style="color:#999">注:链接中不能有英文单引号</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">文章内容</label>
|
|
|
<div class="col-sm-9">
|
|
|
<select class="form-control"></select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">添加品牌</label>
|
|
|
<div class="col-sm-9">
|
|
|
<select class="form-control"></select>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-1 control-label">选择标签</label>
|
|
|
<div class="col-sm-9">
|
|
|
<select class="form-control"></select>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|