App/Home/Controller/HtfenxiController.class.php

(开头部分) 9KB

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

<?php

/**
 *      合同管理控制器
 *      [X-Mis] (C)2007-2099  
 *      This is NOT a freeware, use is subject to license terms
 *      http://www.xinyou88.com
 *      tel:400-000-9981
 *      qq:16129825
 */

namespace Home\Controller;
use Think\Controller;

class HtfenxiController extends Controller{


	
   function _filter(&$map) {
	   if(!in_array(session('uid'),C('ADMINISTRATOR'))){
	    $map[]=array("uid"=>array('EQ', session("uid")),"juid"=>array('like','%'.session("uid").'%'),"_logic"=>"or");
	   }

	}
	
   public function index(){
	 $this->display();		
	}

	public function lastyear(){
	 $this->display();		
	}
	
	public function yewuyuan(){
	 $this->display();		
	}
	
public function name(){
	$user=I('get.user');
	import("Org.Util.Chart");
    $chart = new \Chart;
	for($i=1;$i<=12;$i++){ 	
			$info=$info.",".$i;
			if($i<10){
			$co =M('hetong')->where(array('name'=>$user))->where(array('addm'=>date("Y",time())."-0".$i))->SUM('jine');
			}else{
			$co =M('hetong')->where(array('name'=>$user))->where(array('addm'=>date("Y",time())."-".$i))->SUM('jine');
			}
			$count=$count.",".$co;
		}
    $title = $user.date("Y",time()).'年合同总金额'; 
    $data = explode(",", substr ($count, 1)); 
    $size = 140; 
    $width = 750; 
    $height = 300; 
    $legend = explode(",", substr ($info, 1));
    ob_end_clean();
    $chart->createcolumnar($title,$data,$size,$height,$width,$legend);
	}

后面还有 248 行代码,购买后查看完整代码

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

AI 解读 AI

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

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