index.html 6.0 KB
Newer Older
G
gongfuxiang 已提交
1 2 3 4 5 6 7 8
{{include file="public/header" /}}

<!-- right content start  -->
<div class="content-right">
	<div class="content">
		<!-- form start -->
		<form class="am-form view-list" action="{{:url('Admin/Article/Index')}}" method="POST">
			<div class="am-g">
D
语言  
devil_gong 已提交
9
				<input type="text" class="am-radius form-keyword" placeholder="标题关键字" name="keyword" <present name="param['keyword']"> value="{{$param.keyword}}"{{/if}} />
D
devil_gong 已提交
10
				<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">查询</button>
G
gongfuxiang 已提交
11
				<label class="fs-12 m-l-5 c-p fw-100 more-submit">
D
devil_gong 已提交
12
					更多筛选
G
gongfuxiang 已提交
13 14 15 16 17 18
					<input type="checkbox" name="is_more" value="1" id="is_more" {{if isset($param['is_more']) and $param['is_more'] eq 1)}}checked{{/if}} />
					<i class="am-icon-angle-down"></i>
				</label>

				<div class="more-where {{if !isset($param['is_more']) or $param['is_more'] neq 1)}}none{{/if}}">
					<select  class="am-radius c-p m-t-10 param-where" name="article_category_id">
D
语言  
devil_gong 已提交
19
						<option value="-1)}}文章分类</option>
G
gongfuxiang 已提交
20 21 22 23 24
						<foreach name="article_category_list" item="v">
							<option value="{{$v.id}}" {{if isset($param['article_category_id']) and $param['article_category_id'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
						{{/foreach}}
					</select>
					<select name="is_enable" class="am-radius c-p m-t-10 m-l-5 param-where">
D
devil_gong 已提交
25
						<option value="-1)}}是否启用</option>
G
gongfuxiang 已提交
26 27 28 29 30
						<foreach name="common_is_enable_list" item="v">
							<option value="{{$v.id}}" {{if isset($param['is_enable']) and $param['is_enable'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
						{{/foreach}}
					</select>
					<select name="is_home_recommended" class="am-radius c-p m-t-10 m-l-5 param-where">
D
语言  
devil_gong 已提交
31
						<option value="-1)}}首页推荐</option>
G
gongfuxiang 已提交
32 33 34 35 36
						<foreach name="common_is_text_list" item="v">
							<option value="{{$v.id}}" {{if isset($param['is_home_recommended']) and $param['is_home_recommended'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
						{{/foreach}}
					</select>
					<div class="param-date param-where m-l-5)}}
D
devil_gong 已提交
37
						<input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="起始时间" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($param['time_start'])}}value="{{$param.time_start}}"{{/if}}/>
G
gongfuxiang 已提交
38
						<span>~</span>
D
devil_gong 已提交
39
						<input type="text" class="Wdate am-radius m-t-10" placeholder="结束时间" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" {{if isset($param['time_end'])}}value="{{$param.time_end}}"{{/if}}/>
G
gongfuxiang 已提交
40 41 42 43 44 45 46 47
					</div>
				</div>
			</div>
        </form>
        <!-- form end -->

        <!-- operation start -->
        <div class="am-g m-t-15)}}
D
devil_gong 已提交
48
            <a href="{{:url('Admin/Article/SaveInfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> 新增</a>
G
gongfuxiang 已提交
49 50 51 52 53 54 55
        </div>
        <!-- operation end -->

		<!-- list start -->
		<table class="am-table am-table-striped am-table-hover am-text-middle m-t-1)}}
			<thead>
				<tr>
D
语言  
devil_gong 已提交
56 57
					<th>标题</th>
					<th class="am-hide-sm-only">文章分类</th>
D
devil_gong 已提交
58 59
					<th class="am-hide-sm-only">访问次数</th>
					<th>状态</th>
D
语言  
devil_gong 已提交
60
					<th>首页推荐</th>
D
devil_gong 已提交
61 62
					<th>更多</th>
					<th>操作</th>
G
gongfuxiang 已提交
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
				</tr>
			</thead>
			<tbody>
				{{if !empty($list)}}
					<foreach name="list" item="v">
						<tr id="data-list-{{$v.id}}" {{if $v['is_enable'] eq 0)}}class="am-active"{{/if}}>
							<td  class="td-title">
								<a href="{{:HomeUrl('Article', 'Index', ['id'=>$v['id']])}}" target="_blank" title="{{$v.title}}" {{if !empty($v['title_color'])}} style="color:{{$v.title_color}};" {{/if}} >{{$v.title}}</a>
							</td>
							<td class="am-hide-sm-only">{{$v.article_category_name}}</td>
							<td class="am-hide-sm-only">{{$v.access_count}}</td>
							<td>
								<a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['is_enable'] eq 1)}}am-success{{else /}}am-default{{/if}}" data-url="{{:url('Admin/Article/StatusUpdate')}}" data-id="{{$v.id}}" data-state="{{$v['is_enable']}}" data-is-update-status="1)}}</a>
							</td>
							<td>
								<a href="javascript:;" class="am-icon-btn am-icon-check submit-state {{if $v['is_home_recommended'] eq 1)}}am-success{{else /}}am-default{{/if}}" data-url="{{:url('Admin/Article/StatusHomeRecommended')}}" data-id="{{$v.id}}" data-state="{{$v['is_home_recommended']}}"></a>
							</td>
							<td>
D
devil_gong 已提交
81
								<span class="am-icon-caret-down c-p" data-am-modal="{target: '#my-popup{{$v.id}}'}"> 查看更多</span>
G
gongfuxiang 已提交
82 83 84
								<div class="am-popup am-radius" id="my-popup{{$v.id}}">
									<div class="am-popup-inner">
										<div class="am-popup-hd">
D
devil_gong 已提交
85
											<h4 class="am-popup-title">详情内容</h4>
G
gongfuxiang 已提交
86 87 88 89 90
											<span data-am-modal-close
											class="am-close">&times;</span>
										</div>
										<div class="am-popup-bd">
											<dl class="dl-content">
D
语言  
devil_gong 已提交
91
												<dt>标题</dt>
G
gongfuxiang 已提交
92 93
												<dd>{{$v.title}}</dd>

D
语言  
devil_gong 已提交
94
												<dt>文章分类</dt>
G
gongfuxiang 已提交
95 96
												<dd>{{$v.article_category_name}}</dd>

D
devil_gong 已提交
97
												<dt>访问次数</dt>
G
gongfuxiang 已提交
98 99
												<dd>{{$v.access_count}}</dd>

D
devil_gong 已提交
100
												<dt>是否启用</dt>
G
gongfuxiang 已提交
101 102
												<dd>{{$v.is_enable_text}}</dd>

D
devil_gong 已提交
103
												<dt>创建时间</dt>
G
gongfuxiang 已提交
104 105
												<dd>{{$v.add_time}}</dd>

D
devil_gong 已提交
106
												<dt>更新时间</dt>
G
gongfuxiang 已提交
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
												<dd>{{$v.upd_time}}</dd>
											</dl>
										</div>
									</div>
								</div>
							</td>
							<td class="view-operation">
								<a href="{{:url('Admin/Article/SaveInfo', array('id'=>$v['id']))}}">
									<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"></button>
								</a>
								<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:url('Admin/Article/Delete')}}" data-id="{{$v.id}}"></button>
							</td>
						</tr>
					{{/foreach}}
				{{else /}}
D
devil_gong 已提交
122
					<tr><td colspan="10" class="table-no">没有相关数据</td></tr>
G
gongfuxiang 已提交
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
				{{/if}}
			</tbody>
		</table>
		<!-- list end -->

		<!-- page start -->
		{{if !empty($list)}}
			{{$page_html}}
		{{/if}}
		<!-- page end -->
	</div>
</div>
<!-- right content end  -->
		
<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->