图片上传.php
1.96 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
<input type="hidden" id="orderId" value="<?=isset($id) ? $id : ''?>">
<div class="panel panel-default mb-20">
<div class="panel-header">上传图片</div>
<div class="panel-body">
<div class="row cl">
<div class="form-group col-sm-3 col-md-2">
<label>资料上传</label>
<span class="form-control select-box">
<select class="select uploader" size="1" id="upload">
<?php foreach ($this->session->sourceBaseType as $k=>$v):?>
<option value="<?=$v->code?>" data-name="<?=$v->desc?>"><?=$v->desc?></option>
<?php if($v->children && !empty($v->children)):?>
<?php foreach ($this->session->sourceBaseType as $kk=>$vv):?>
<option value="<?=$vv->code?>" data-name="<?=$v->desc .'-'.$vv->desc?>"> --<?=$vv->desc?></option>
<?php endforeach;?>
<?php endif;?>
<?php endforeach;?>
</select>
</span>
</div>
<div class="form-group col-sm-3 col-md-2">
<label> </label>
<div>
<label class="filePicker">选择图片</label>
</div>
</div>
</div>
<div class="row cl">
<div class="form-group col-sm-12">
<table class="table table-border table-bordered uploader-list-container">
<thead class="text-c">
<tr>
<th>类型</th>
<th>支持相同类型图片上传多张, 格式: png/jpg 单张限制5M</th>
</tr>
</thead>
<tbody class="upload-tbody">
</tbody>
</table>
</div>
</div>
</div>
</div>