module/flk/source/admin/flk_shop.ctrl.php
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
*Author 雷日锦 362606856@qq.com
*控制器自动生成
*/
if(!defined("ROOT_PATH")) exit("die Access ");
class flk_shopControl extends skymvc{
public function __construct(){
parent::__construct();
}
public function onDefault(){
$where=" status in(0,1,2)";
$url="/moduleadmin.php?m=flk_shop&a=default";
$limit=20;
$start=get("per_page","i");
$shopid=get("shopid","i");
if($shopid){
$where.=" AND shopid=".$shopid;
}
$shopname=get("shopname","h");
if($shopname){
$where.=" AND shopname like '%".$shopname."%' ";
$url.="&shopname=".urlencode($shopname);
}
$flk_new=get("flk_new","i");
if($flk_new){
$where.=" AND flk_new=".$flk_new;
$url.="&flk_new=".$flk_new;
}
$isrecommend=get("isrecommend","i");
if($isrecommend){
$where.=" AND isrecommend=".$isrecommend;
$url.="&isrecommend=".$isrecommend;
}
$option=array(
"start"=>$start,
"limit"=>$limit,
"order"=>" shopid DESC",
"where"=>$where
);
$rscount=true;
$data=M("mod_flk_shop")->select($option,$rscount);
$per_page=$start+$limit;
$per_page=$per_page>$rscount?0:$per_page;
$pagelist=$this->pagelist($rscount,$limit,$url);
$this->smarty->goassign(
array(
"list"=>$data,
"per_page"=>$per_page,
"pagelist"=>$pagelist,
"rscount"=>$rscount,
"url"=>$url
)
);
$this->smarty->display("flk_shop/index.html");
}
后面还有 88 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。