You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
704 B
PHTML
24 lines
704 B
PHTML
2 years ago
|
<?php
|
||
|
|
||
|
namespace Open\Widget;
|
||
|
use Think\Controller;
|
||
|
|
||
|
/**
|
||
|
* 图片批量上传小组件
|
||
|
* @author 鹿文学
|
||
|
*/
|
||
|
|
||
|
class UploadImagesWidget extends Controller{
|
||
|
|
||
|
public function upload($param=array()){
|
||
|
$name = $param['name'] ?: 'pics';
|
||
|
$valArr = $param['value'] ? explode(',', $param['value']) : array();
|
||
|
$this->assign('name',$name);
|
||
|
$this->assign('flag',$param['flag']);
|
||
|
$this->assign('valStr',$param['value']);
|
||
|
$this->assign('valArr',$valArr);
|
||
|
$this->assign("class",$param['class']);
|
||
|
$this->assign("multi",$param['multi']);
|
||
|
$this->display('Department/upload');
|
||
|
}
|
||
|
}
|