index.php
3.33 KB
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
83
84
85
86
87
88
<?php $this->_extends('layout/admin_layout');?>
<?php $this->_block('main');?>
<h4>视频列表</h4>
<table class="table">
<caption style="text-align:left; padding-bottom:5px;">
<button class="btn" style="float:left;" id="add_video" href="javascript:void(0)">添加视频</button>
</caption>
<thead>
<td>编号</td>
<td>标题</td>
<td>图片</td>
<td>创建时间</td>
<td>操作</td>
</thead>
<?php if (empty($this->view->data)) :?>
<tr><td colspan="10" style="text-align: center">无记录</td></tr>
<?php else :?>
<?php foreach ($this->view->data as $video) :?>
<tr>
<td><?php echo $video['id']?></td>
<td><?php echo $video['title']?></td>
<td relaurl="<?php echo $video['pic'];?>">
<img width="80" height="60" src="<?php echo $video['pic_s']?>"/>
<button class="btn look_v">查看</button>
<span class="video_url" style="display:none">
<embed src="<?php echo $video['url'];?>" allowFullScreen="true" quality="high" width="390" height="294" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>
</span>
</td>
<td><?php echo date('Y-m-d H:i:s', $video['create_time']);?></td>
<td><button id="look_one_<?php echo $video['id'];?>" class="btn look">查看</button><button val="<?php echo $video['id'];?>" class="btn btn-danger del">删除</button></td>
</tr>
<?php endforeach;?>
<?php endif;?>
</table>
<?php $this->_component('Common_Pagination',array(
'pagination' => $this->view->pagination,'show_count' =>true,
));?>
<div id="form_pan" admin="<?php echo $this->view->admin?>" style="display:none">
<table class="table table-bordered">
<tbody>
<tr>
<td>标题<span class="text-error"> * </span></td>
<td colspan="3">
<input type="hidden" id="id" name="id"/>
<input type="text" style="width:605px;" id="title" name="title" value=""/>
</td>
<tr>
<tr>
<td>视频地址<span class="text-error"> * </span></td>
<td colspan="3">
<textarea row=3 style="width:605px;" id="url" name="url" value=""></textarea>
</td>
<tr>
<tr>
<td>创建时间<span class="text-error"> * </span></td>
<td colspan="3">
<input style="width:605px;" readonly="readonly" class='span3 Wdate' id="create_time" name="create_time" value=""/>
</td>
<tr>
<td>图片</td>
<td colspan="3">
<span id="upload_pic"></span>
<button class="btn btn-info" type="button">上传</button>
<input type="hidden" id="pic" name="pic" key="<?php echo $this->view->key;?>"/>
<img src="" width="80" height="60"/>
</td>
</tr>
</tbody>
</table>
</div>
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<?php $this->_js('feedback.js', array(
SITE_JS . '/lib/seajs.js',
));?>
<script type="text/javascript" src="<?php echo SITE_JS?>/lib/ui/date/WdatePicker.js"></script>
<script type="text/javascript">
seajs.use('admin/video');
</script>
<?php $this->_endblock();?>