// 根据部门查看人员的单子 require_once "api.php"; $boardid = r('boardid'); $user = r('user'); $timeType = r('time_type'); $st = r('st'); $et = r('et'); $boards = getboards(); if($user){ if($timeType=='bj'){ $cards = getUserCards($user,$st,$et); }elseif ($timeType =='wc'){ $cards = getUserCards4Finish($user,$st,$et); }elseif ($timeType =='xz'){ $cards = getUserCards4New($user,$st,$et); } }else{ // echo "no data"; $cards = array(); } //we($mycards); //$lists = getlists($boardid); //$cards = getcards($boardid,array_keys($lists)); $users = getusers(); $risklabels = getRiskLabels(); $allrisklabels = getAllRiskLabels(); $list = array(); foreach($cards as $cid=>$card){ $borderid = $card['boardId']; if($list[$borderid])continue; if(!$boards[ $borderid ]['title'])continue; $list[ $borderid ] = array( "archived"=>false, "title"=> $boards[ $borderid ]['title'], "_id"=> $borderid ); } /* $DATA = array( 'boardid' => $boardid, 'boards' => $boards, 'lists' => array("mime"=>array( "archived"=>false, "title"=>"与我相关", "_id"=>'mime' )), 'cards' => $cards, 'users'=>$users ); */ $DATA = array( 'boardid' => $boardid, 'boards' => $boards, 'lists' => $list, 'cards' => $cards, 'users'=>$users, 'risklabels'=>$risklabels, 'allrisklabels'=>$allrisklabels ); ?>
require_once "header.html"; ?> require_once "leftbar.html"; ?> require_once "projectheader.html"; ?>