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.
28 lines
618 B
PHTML
28 lines
618 B
PHTML
2 years ago
|
<?php
|
||
|
namespace Admin\Event;
|
||
|
use Think\Controller;
|
||
|
/**
|
||
|
* 后台事件控制器
|
||
|
* @author 王贺
|
||
|
*/
|
||
|
class AdvPosEvent extends BaseEvent {
|
||
|
|
||
|
/**
|
||
|
*广告位显示
|
||
|
*/
|
||
|
public function BaseAdv($module="",$extend=array()){
|
||
|
$map=$extend['map'];
|
||
|
if(is_array($module)) {
|
||
|
$map['module'] = ['in',$module];
|
||
|
} else {
|
||
|
$map['module'] = $module;
|
||
|
}
|
||
|
$adv = D("AdvPos");
|
||
|
$list = $adv->where($map)->select();
|
||
|
$this->assign("list_data",$list);
|
||
|
$this->assign("model",$extend);
|
||
|
$this->display($extend["tem_lists"]);
|
||
|
}
|
||
|
|
||
|
}
|