mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 13:22:51 +00:00
修复后台素材管理 点击按钮无反应
This commit is contained in:
parent
c1f23f3a78
commit
c56a0f47d9
@ -25,9 +25,13 @@ class Images extends AuthController
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$pid = input('pid') != NULL ?input('pid'):session('pid');
|
||||
if($pid != NULL)session('pid',$pid);
|
||||
if(!empty(session('pid')))$pid = session('pid');
|
||||
$pid = 0;
|
||||
if(input('pid') && is_numeric(input('pid'))){
|
||||
$pid = input('pid');
|
||||
session('pid',$pid);
|
||||
}else{
|
||||
$pid = session('pid')?session('pid'):0;
|
||||
}
|
||||
$this->assign('pid',$pid);
|
||||
//分类标题
|
||||
$typearray = Category::getAll();
|
||||
|
||||
@ -98,7 +98,7 @@
|
||||
</body>
|
||||
</html>
|
||||
<script>
|
||||
var pid = {$pid};//当前图片分类ID
|
||||
var pid = {$pid+0};//当前图片分类ID
|
||||
var parentinputname = '{$Request.param.fodder}';//父级input name
|
||||
var uploadurl = "{:Url('upload',array('pid'=>$Request.param.pid))}"; //上传图片地址
|
||||
var deleteurl = "{:Url('delete')}";//删除图片地址
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user