module/flk/source/admin/flk_one.ctrl.php

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
class flk_oneControl extends skymvc{
	
	public function __construct(){
		parent::__construct();
	}
	public function onDefault(){
		
		$url="/moduleadmin.php?m=flk_one";
		$limit=20;
		$start=get("per_page","i");
		$sarr=array("id");
		$day=date("Y-m-d H:i:s");
		switch(get("type")){
			case "all":
				$where=" status=1 AND one_on=1";
				break;
			case "forbid":
				$where="  one_on=2 ";
				break;
			case "will":
				$where=" one_status=1 AND one_on=1 AND one_stime>'".$day."' " ;
				break;
			case "doing":
				$where=" one_status=1 AND one_on=1 AND one_stime<='".$day."' AND one_etime>='".$day."' " ;
				break;
			case "finish":
				$where=" one_status=1 AND one_on=1 AND one_etime<'".$day."' " ;
				break;
			default:
				$where=" status=1 AND one_on=1 AND one_status=0 ";
				break;
		}
		$option=array(
			"start"=>$start,
			"limit"=>$limit,
			"order"=>" id DESC",
			"where"=>$where
		);
		$rscount=true;
		$data=M("mod_flk_product")->select($option,$rscount);
		if($data){
			foreach($data as $k=>$v){
				$cids[]=$v["catid"];
			}
			$cats=MM("flk","flk_category")->getListByIds($cids);
			foreach($data as $k=>$v){
				$v['imgurl']=images_site($v["imgurl"]);
				$v["catid_name"]=$cats[$v["catid"]]["title"];
				$data[$k]=$v;
			}
		}
		$per_page=$start+$limit;
		$per_page=$per_page>$rscount?0:$per_page;
		$pagelist=$this->pagelist($rscount,$limit,$url);
		$groupList=M("mod_flk_group")->select(array(
			"where"=>" status=1"
		));	
		$this->smarty->goassign(
			array(
后面还有 69 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。