public static function processListData($bgcheckList) { foreach ($bgcheckList as $k => $bgcheck) { $bgcheckList[$k]["realname"] = ResumeDetail::model()->fetchRealnameByResumeid($bgcheck["resumeid"]); $bgcheckList[$k]["entrytime"] = $bgcheck["entrytime"] == 0 ? "-" : date("Y-m-d", $bgcheck["entrytime"]); $bgcheckList[$k]["quittime"] = $bgcheck["quittime"] == 0 ? "-" : date("Y-m-d", $bgcheck["quittime"]); } return $bgcheckList; }
public function actionCheckRealname() { $fullname = EnvUtil::getRequest("fullname"); $fullnameToUnicode = str_replace("%", "\\", $fullname); $fullnameToUtf8 = StringUtil::unicodeToUtf8($fullnameToUnicode); $realnames = ResumeDetail::model()->fetchAllRealnames(); $isExist["statu"] = in_array($fullnameToUtf8, $realnames) ? true : false; $this->ajaxReturn($isExist); }
public static function processListData($interviewList) { foreach ($interviewList as $k => $interview) { $interviewList[$k]["interviewtime"] = date("Y-m-d", $interview["interviewtime"]); $interviewList[$k]["interviewer"] = User::model()->fetchRealnameByUid($interview["interviewer"]); $interviewList[$k]["process"] = StringUtil::cutStr($interview["process"], 12); $interviewList[$k]["realname"] = ResumeDetail::model()->fetchRealnameByResumeId($interview["resumeid"]); } return $interviewList; }
public function getCount() { static $return = array(); if (empty($return)) { $time = $this->getTimeScope(); $resumeids = Resume::model()->fetchAllByTime($time["start"], $time["end"]); $genders = ResumeDetail::model()->fetchFieldByRerumeids($resumeids, "gender"); $ac = array_count_values($genders); $return["male"] = array("count" => isset($ac["1"]) ? $ac["1"] : 0, "sex" => "男"); $return["female"] = array("count" => isset($ac["2"]) ? $ac["2"] : 0, "sex" => "女"); } return $return; }
public static function processListData($contactList) { foreach ($contactList as $k => $contact) { $contactList[$k]["realname"] = ResumeDetail::model()->fetchRealnameByResumeid($contact["resumeid"]); $contactList[$k]["inputtime"] = date("Y-m-d", $contact["inputtime"]); $contactList[$k]["detail"] = StringUtil::cutStr($contact["detail"], 12); if ($contactList[$k]["input"]) { $contactList[$k]["input"] = User::model()->fetchRealnameByUid($contact["input"]); } else { $contactList[$k]["input"] = ""; } } return $contactList; }
public function getCount() { static $return = array(); if (empty($return)) { $time = $this->getTimeScope(); $resumeids = Resume::model()->fetchAllByTime($time["start"], $time["end"]); $workyears = ResumeDetail::model()->fetchFieldByRerumeids($resumeids, "workyears"); $ac = array_count_values($workyears); $return["0"] = array("count" => isset($ac["0"]) ? $ac["0"] : 0, "name" => "应届生"); $return["1"] = array("count" => isset($ac["1"]) ? $ac["1"] : 0, "name" => "一年以上"); $return["2"] = array("count" => isset($ac["2"]) ? $ac["2"] : 0, "name" => "两年以上"); $return["3"] = array("count" => isset($ac["3"]) ? $ac["3"] : 0, "name" => "三年以上"); $return["5"] = array("count" => isset($ac["5"]) ? $ac["5"] : 0, "name" => "五年以上"); $return["10"] = array("count" => isset($ac["10"]) ? $ac["10"] : 0, "name" => "十年以上"); } return $return; }
public function getCount() { static $return = array(); if (empty($return)) { $time = $this->getTimeScope(); $resumeids = Resume::model()->fetchAllByTime($time["start"], $time["end"]); $educations = ResumeDetail::model()->fetchFieldByRerumeids($resumeids, "education"); $ac = array_count_values($educations); $return["JUNIOR_HIGH"] = array("count" => isset($ac["JUNIOR_HIGH"]) ? $ac["JUNIOR_HIGH"] : 0, "name" => "初中"); $return["SENIOR_HIGH"] = array("count" => isset($ac["SENIOR_HIGH"]) ? $ac["SENIOR_HIGH"] : 0, "name" => "高中"); $return["TECHNICAL_SECONDARY"] = array("count" => isset($ac["TECHNICAL_SECONDARY"]) ? $ac["TECHNICAL_SECONDARY"] : 0, "name" => "中专"); $return["COLLEGE"] = array("count" => isset($ac["COLLEGE"]) ? $ac["COLLEGE"] : 0, "name" => "大专"); $return["BACHELOR_DEGREE"] = array("count" => isset($ac["BACHELOR_DEGREE"]) ? $ac["BACHELOR_DEGREE"] : 0, "name" => "本科"); $return["MASTER"] = array("count" => isset($ac["MASTER"]) ? $ac["MASTER"] : 0, "name" => "硕士"); $return["DOCTOR"] = array("count" => isset($ac["DOCTOR"]) ? $ac["DOCTOR"] : 0, "name" => "博士"); } return $return; }
public function getCount() { static $return = array(); if (empty($return)) { $time = $this->getTimeScope(); $resumeids = Resume::model()->fetchAllByTime($time["start"], $time["end"]); $birthdays = ResumeDetail::model()->fetchFieldByRerumeids($resumeids, "birthday"); $age23 = $age24 = $age27 = $age31 = $age41 = 0; foreach ($birthdays as $birthday) { $age = ICResumeDetail::handleAge($birthday); if ($age <= 23) { $age23++; } else { if (24 <= $age && $age <= 26) { $age24++; } else { if (27 <= $age && $age <= 30) { $age27++; } else { if (31 <= $age && $age <= 40) { $age31++; } elseif (41 <= $age) { $age41++; } } } } } $return["age23"] = array("count" => $age23, "name" => "23岁以下"); $return["age24"] = array("count" => $age24, "name" => "24-26岁"); $return["age27"] = array("count" => $age27, "name" => "27-30岁"); $return["age31"] = array("count" => $age31, "name" => "31-40岁"); $return["age41"] = array("count" => $age41, "name" => "41岁以上"); } return $return; }
public function actionExport() { $checkids = EnvUtil::getRequest("checkids"); $bgcheckArr = ResumeBgchecks::model()->fetchAll("FIND_IN_SET(checkid, '{$checkids}')"); $fieldArr = array(Ibos::lang("Name"), Ibos::lang("Company name"), Ibos::lang("Position"), Ibos::lang("Entry time"), Ibos::lang("Departure time"), Ibos::lang("Details")); $str = implode(",", $fieldArr) . "\n"; foreach ($bgcheckArr as $bgcheck) { $realname = ResumeDetail::model()->fetchRealnameByResumeid($bgcheck["resumeid"]); $company = $bgcheck["company"]; $position = $bgcheck["position"]; $entryTime = empty($bgcheck["entrytime"]) ? "" : date("Y-m-d", $bgcheck["entrytime"]); $quitTime = empty($bgcheck["quittime"]) ? "" : date("Y-m-d", $bgcheck["quittime"]); $detail = $bgcheck["detail"]; $str .= $realname . "," . $company . "," . $position . "," . $entryTime . "," . $quitTime . "," . $detail . "\n"; } $outputStr = iconv("utf-8", "gbk//ignore", $str); $filename = date("Y-m-d") . mt_rand(100, 999) . ".csv"; FileUtil::exportCsv($filename, $outputStr); }
public function actionExport() { $contactids = EnvUtil::getRequest("contactids"); $contactArr = ResumeContact::model()->fetchAll("FIND_IN_SET(contactid, '{$contactids}')"); $fieldArr = array(Ibos::lang("Name"), Ibos::lang("Contact date"), Ibos::lang("Contact staff"), Ibos::lang("Contact method"), Ibos::lang("Contact purpose"), Ibos::lang("Content")); $str = implode(",", $fieldArr) . "\n"; foreach ($contactArr as $contact) { $realname = ResumeDetail::model()->fetchRealnameByResumeid($contact["resumeid"]); $input = User::model()->fetchRealnameByUid($contact["input"]); $inputtime = empty($contact["inputtime"]) ? "" : date("Y-m-d", $contact["inputtime"]); $method = $contact["contact"]; $purpose = $contact["purpose"]; $detail = $contact["detail"]; $str .= $realname . "," . $inputtime . "," . $input . "," . $method . "," . $purpose . "," . $detail . "\n"; } $outputStr = iconv("utf-8", "gbk//ignore", $str); $filename = date("Y-m-d") . mt_rand(100, 999) . ".csv"; FileUtil::exportCsv($filename, $outputStr); }
public function actionSendEmail() { $resumeids = EnvUtil::getRequest("resumeids"); $resumeidsStr = trim($resumeids, ","); if (empty($resumeidsStr)) { $this->error(Ibos::lang("Parameters error", "error")); } $details = ResumeDetail::model()->fetchAll(array("select" => "email", "condition" => "resumeid IN ({$resumeidsStr})")); $emails = ConvertUtil::getSubByKey($details, "email"); $this->redirect(Ibos::app()->urlManager->createUrl("email/content/add", array("webid" => $emails))); }
public function actionExport() { $interviews = EnvUtil::getRequest("interviews"); $interviewArr = ResumeInterview::model()->fetchAll("FIND_IN_SET(interviewid, '{$interviews}')"); $fieldArr = array(Ibos::lang("Name"), Ibos::lang("Interview time"), Ibos::lang("Interview people"), Ibos::lang("Interview types"), Ibos::lang("Interview process")); $str = implode(",", $fieldArr) . "\n"; foreach ($interviewArr as $interview) { $realname = ResumeDetail::model()->fetchRealnameByResumeid($interview["resumeid"]); $time = empty($interview["interviewtime"]) ? "" : date("Y-m-d", $interview["interviewtime"]); $interviewer = User::model()->fetchRealnameByUid($interview["interviewer"]); $type = $interview["type"]; $process = $interview["process"]; $str .= $realname . "," . $time . "," . $interviewer . "," . $type . "," . $process . "\n"; } $outputStr = iconv("utf-8", "gbk//ignore", $str); $filename = date("Y-m-d") . mt_rand(100, 999) . ".csv"; FileUtil::exportCsv($filename, $outputStr); }