| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 | 
							- <?php 
 
- /**
 
-  * 垃圾举报管理
 
-  */
 
- require_once( ONU_ROOT . 'application/module/ctrl/Action.class.php');
 
- require_once ( ONU_ROOT . 'application/lib/data/adminAction.php');
 
- class Garbage_adminAction extends Action{
 
- 	
 
- 	public function __construct(){
 
- 		parent::__construct();
 
- 		if(empty($_SESSION['mds_user'])){
 
- 			header("Location:/?a=index&m=admin_login");
 
- 			exit();
 
- 		}
 
- 	}
 
- 	//垃圾举报管理的用户列表
 
- 	public function index(){
 
- 		$admin = new AdvertAdminAction();
 
- 		$api_user = $_SESSION['API_USER'];
 
- 		$api_key  = $_SESSION['API_KEY'];
 
- 		$uid      = $_SESSION['user_infos']['id'];
 
- 		$info     = $_REQUEST['info'];
 
- 		$post_url = 'http://api.sendcloud.net/apiv2/spamreported/list';
 
- 		$e_date = date('Y-m-d',strtotime("+1 day"));
 
- 		$s_date = date("Y-m-d", strtotime("-30 day"));
 
- 		$date_show    = trim($_REQUEST['date_show']);
 
- 		if($date_show){
 
- 			$date_array = explode("-",$_REQUEST['date_show']);
 
- 			$BeginDate2 = $date_array[0];
 
- 			$BeginDate2 = date('Y-m-d',strtotime($BeginDate2));
 
- 			$EndDate = $date_array[1];
 
- 			$EndDate = date('Y-m-d',strtotime($EndDate));
 
- 		}
 
- 		$start_date = $BeginDate2 ? $BeginDate2 : $s_date;
 
- 		$end_date   = $EndDate ? $EndDate : $e_date;
 
- 		$B = date('Y/m/d',strtotime($start_date));
 
- 		$e = date('Y/m/d',strtotime($end_date));
 
- 		$date_show = $B.'-'.$e;
 
- 		$params = array(
 
- 					'apiUser' => $api_user,
 
- 					'apiKey'  => $api_key,
 
- 				    'limit'   => 100,//返回前100条数据
 
- 					'startDate' => $start_date,
 
- 					'endDate'   => $end_date
 
- 		);
 
- 		$result = make_curl($post_url,$params);
 
- 		$list   = $result['info']['dataList'];
 
- 		$this->assign('list',$list);
 
- 		$this->assign('date_show',$date_show);
 
- 		$this->assign('info',$info);
 
- 		$this->display("index.html");
 
- 	}
 
- 	// class   end
 
- }
 
- ?>
 
 
  |