module/flk/source/shop/flk_video.ctrl.php

(开头部分) 2KB

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

<?php
	class flk_videoControl extends skymvc{
		
		public function __construct(){
			parent::__construct();
		}
		
		public function onDefault(){
			$where=" status in(0,1,2) AND shopid=".SHOPID;
			$url="/shopadmin.php?m=flk_video";
			$keyword=get("keyword","h");
			if($keyword){
				$where.=" AND title like '%".$keyword."%' ";
			}
			$option=array(
				"where"=>$where,
				"order"=>"id DESC"
			);
			$rscount=true;
			$data=M("mod_flk_video")->select($option,$rscount);
			if($data){
				foreach($data as $k=>$v){
					$v["imgurl"]=images_site($v["imgurl"]);
					$data[$k]=$v;
				}
			} 
			$per_page=$start+$limit;
	 		$per_page=$per_page>$rscount?0:$per_page;
			$this->smarty->goAssign(array(
				"list"=>$data,
				 "per_page"=>$per_page
			));
			$this->smarty->display("flk_video/index.html");
		}
		
		
		public function onIframe(){
			$where=" status<11 AND shopid=".SHOPID;
			$url="/shopadmin.php?m=flk_video";
			$option=array(
				"where"=>$where
			);
			$rscount=true;
			$data=M("mod_flk_video")->select($option,$rscount);
			 
			$this->smarty->goAssign(array(
				"data"=>$data,
				 
			));
			$this->smarty->display("flk_video/iframe.html");
		}
		
		public function onAdd(){
			$_SESSION['ssupload']=true;
			$id=get_post('id','i');
			if($id){
				$data=M("mod_flk_video")->selectRow("id=".$id);
				$data["trueimgurl"]=images_site($data["imgurl"]);
			}
			 
后面还有 63 行代码,购买后查看完整代码

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

AI 解读 AI

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

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