public_action(); $partM = $this -> MODEL('part'); include PLUS_PATH . 'part.cache.php'; $where = array(); $urlarr = array(); $uid = $this -> uid; $where['uid'] = $uid; $jobM = $this->MODEL('job'); $this->yunset('jobNum', $jobM->getJobNum($where)); $this->yunset('partNum', $partM->getpartJobNum($where)); $ltjobM = $this -> MODEL('lietoujob'); $this->yunset('ltjobNum', $ltjobM->getLtjobNum($where)); $urlarr['c'] = 'partok'; $urlarr['page'] = '{{page}}'; $w = intval($_GET['w']); if ($w >= 0) { $where['state'] = $w; $urlarr['w'] = $w; } else { $where['edate'] = array('<', time()); $urlarr['w'] = 0; } $pageurl = Url('member', $urlarr); $pageM = $this -> MODEL('page'); $pages = $pageM -> pageList('partjob', $where, $pageurl, $_GET['page']); if ($pages['total'] > 0) { $where['orderby'] = 'lastupdate,desc'; $where['limit'] = $pages['limit']; $rows = $partM -> getList($where); } $this->yunset('rows', $rows); $this -> yunset('i_know_part', !empty($_COOKIE['i_know_part_' . $this->uid]) ? 1 : 0); $this->company_satic(); if ($w == 1) { $this->com_tpl('part'); // 招聘中的职位 } else { $this->com_tpl('partok'); } } function opera_action() { $this->part(); } } ?>