1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* 文章列表
* $Id: article_dat_list.inc,v 1.1 2016-9-22 09:58:31 cuixl Exp $
* @author cuixl
* @access public
* @package manager.templates
*/
?>
<br />
<b>短视频列表</b><br />
<br />
<form name="search_input" method="post" action="?">
<input type="hidden" name="search_flg" value="true" />
<table>
<tr>
<td>短视频分类</td>
<td>
<select name="category_id">
<option value="0" >请选择</option>
<?
foreach ($category_list as $category_mst) {
?>
<option value="<?=$category_mst->category_id ?>"<?=$category_mst->category_id == $category_id ? " selected " : "" ?>><?=$category_mst->title ?></option>
<?
}
?>
</select>
<input type="text" name="title" value="<?=htmlspecialchars($title) ?>" size=20/>
<input type="submit" value="検索" class="button_width_normal" />
</td>
</tr>
</table>
</br>
<input type="button" value="添加短视频" class="button_width_normal" onClick="videoDatEdit()"/>
</form>
<br />
<?
require_once("page_common.inc");
?>
<div id="result_list">
<table>
<tr>
<th class="contents_title" width="5%" nowrap>分类</th>
<th class="contents_title" width="15%">标题</th>
<th class="contents_title" width="10%" nowrap>封面</th>
<th class="contents_title" width="5%">有效</th>
<th class="contents_title" width="15%">标签</th>
<th class="contents_title" width="5%">阅览次数</th>
<th class="contents_title" width="10%">操作</th>
</tr>
<?
if (!empty($article_dat_list)) {
foreach($article_dat_list as $article_dat) {
$category_title = "-";
if($article_dat->category_id > 0) {
$category_title = $category_array[$article_dat->category_id];
}
$selected_tags = $article_dat->tags;
?>
<tr>
<td align="center" nowrap><?=htmlspecialchars($category_title) ?></td>
<td align="center" nowrap><?=htmlspecialchars($article_dat->title) ?></td>
<td align="center" nowrap>
<img src="<?=BeautyHandler::getImageUrl($article_dat->front_image, 'video', "") ?>" style="height:60px;" />
</td>
<td align="center" nowrap><?=htmlspecialchars($article_dat->is_valid) ?></td>
<td align="center" nowrap><?=htmlspecialchars($selected_tags) ?></td>
<td align="center" nowrap><?=htmlspecialchars($article_dat->read_count) ?></td>
<td align="center">
<a class="flatbutton" href="video_data_edit.php?id=<?=$article_dat->id ?>&action_type=edit">编集</a>
</td>
</tr>
<?
}
}
?>
</table>
</div>