{php} $controller=strtolower(request()->controller()); $action=strtolower(request()->action()); $adminCtegory=db('category')->where(['controller'=>$controller,'function'=>$action])->cache(_cache('db'))->find(); if($adminCtegory){ $adminCtegoryTid=db('category')->where(['tid'=>$adminCtegory['id'],'hideright'=>1])->order('des asc,id asc')->cache(_cache('db'))->select(); }else{ $adminCtegoryTid=[]; } {/php}
{volist name='adminCtegoryTid' id='v'} {php} //print_r($adminCtegoryTid); $get=$v['get']; $geturl=[]; if($get){ if(strstr($get,"|")){ $tidexplode=explode("|",$get); foreach($tidexplode as $va){ $geturl[$va]=input($va); } }else{ $geturl[$get]=input($get); } } $geturl['url']='-1'; $url=url($v['controller'].'/'.$v['function'],$geturl); {/php} {$v.title} {/volist}