/** * @生成当前年前后5年 * @Author: 段涛 * @function name: setAppYear */ private function setAppYear() { $year = setDroplistYear(); $this->assign('yearList', $year); }
/** * @通过年生成申请数据 * @Author: 段涛 * @function name: appInfOrderYear * @param $sid学生ID */ private function appInfOrderYear($sid) { $allYear = setDroplistYear(); foreach ($allYear['list'] as $rs) { $isData = $this->getAppInf($sid, $rs); if ($isData != false) { $bigList['year'] = $rs; $bigList['list'] = $isData; $list[] = $bigList; } } return $list; }