download.php
4.68 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?php $this->_extends('layout/admin_layout');?>
<?php $this->_block('main');?>
<?php if($this->view->type == 0):?>
<h4>参展商手册</h4>
<table class="table" type="<?php echo $this->view->type;?>">
<caption style="text-align:left; padding-bottom:5px;">
<button class="btn" id="create_download_info" style="float:left;">
添加参展商手册
</button>
</caption>
<thead>
<td width="10%">编号</td>
<td width="10%">参展商名称</td>
<td width="20%">图片</td>
<td width="20%">日期</td>
<td>操作</td>
</thead>
<?php foreach ($this->view->list as $download):?>
<tr>
<td><?php echo $download['id']?></td>
<td><?php echo $download['title']?></td>
<td><img alt="" src="<?php echo $download['cover']?>" width="200" height="200"></td>
<td><?php echo date('Y-m-d H:i:s', $download['create_time']);?></td>
<td>
<button class="btn btn-success modify" download_id="<?php echo $download['id']?>">修改</button>
<button class="btn btn-danger del" download_id="<?php echo $download['id']?>">删除</button>
</td>
</tr>
<?php endforeach;?>
</table>
<div id="form_pan" admin="" style="display:none;">
<table class="table table-bordered">
<tbody>
<tr>
<td>名称<span class="text-error"> * </span></td>
<td colspan="3">
<input type="text" id="title" name="title"/>
<input type="hidden" name="download_id" id="download_id" value="0"/>
</td>
</tr>
<tr>
<td>封面图(NxN)<span class="text-error"> * </span></td>
<td>
<span id="upload_pic" key="<?php echo $this->view->key?>"></span>
<button class="btn btn-info" type="button">上传</button>
<div id="picdiv"></div>
</td>
</tr>
<tr>
<td>文件上传<span class="text-error"> * </span></td>
<td>
<span id="upload_file" key="<?php echo $this->view->key?>"></span>
<button class="btn btn-info" type="button">上传</button>
<div id="filediv"></div>
</td>
</tr>
</tbody>
</table>
</div>
<?php else:?>
<table class="table" type="<?php echo $this->view->type;?>">
<caption style="text-align:left; padding-bottom:5px;">
<button class="btn" id="create_download_info" style="float:left;">
添加新闻稿
</button>
</caption>
<thead>
<td width="10%">编号</td>
<td width="10%">媒体稿</td>
<td width="20%">腾讯娱乐</td>
<td width="20%">日期</td>
<td>操作</td>
</thead>
<?php foreach ($this->view->list as $download):?>
<tr>
<td><?php echo $download['id']?></td>
<td><?php echo $download['title']?></td>
<td><?php echo $download['source']?></td>
<td><?php echo date('Y-m-d H:i:s', $download['create_time']);?></td>
<td>
<button class="btn btn-success modify" download_id="<?php echo $download['id']?>">修改</button>
<button class="btn btn-danger del" download_id="<?php echo $download['id']?>">删除</button>
</td>
</tr>
<?php endforeach;?>
</table>
<div id="form_pan" admin="" style="display:none;">
<table class="table table-bordered">
<tbody>
<tr>
<td>名称<span class="text-error"> * </span></td>
<td colspan="3">
<input type="text" id="title" name="title"/>
<input type="hidden" id="download_id" name="download_id" value="0"/>
</td>
</tr>
<tr>
<td>来源<span class="text-error"> * </span></td>
<td colspan="3">
<input type="text" id="source" name="source"/>
</td>
</tr>
<tr>
<td>来源链接:<span class="text-error"> * </span></td>
<td colspan="3">
<input type="text" id="source_link" name="source_link"/>
</td>
</tr>
<tr>
<td>文件上传<span class="text-error"> * </span></td>
<td>
<span id="upload_file" key="<?php echo $this->view->key?>"></span>
<button class="btn btn-info" type="button">上传</button>
<div id="filediv"></div>
</td>
</tr>
</tbody>
</table>
</div>
<?php endif;?>
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<?php $this->_js('feedback.js', array(
SITE_JS . '/lib/seajs.js',
));?>
<script type="text/javascript">
seajs.use('admin/onlinereg',function(onlinereg){
onlinereg.download();
});
</script>
<?php $this->_endblock();?>