本文整理匯總了PHP中Area::provInfoAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP Area::provInfoAll方法的具體用法?PHP Area::provInfoAll怎麽用?PHP Area::provInfoAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Area
的用法示例。
在下文中一共展示了Area::provInfoAll方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: followupCustomerManage
public function followupCustomerManage($request, $response)
{
/*{{{*/
$followupAuditor = DAL::get()->find_by_auditorid('FollowupAuditor', $this->auditor->id);
if ($followupAuditor->role->name != FollowupAuditorRole::NAME_SALESEXECUTIVE) {
echo "您沒有權限!僅銷售主管可進入!";
return parent::DIRECT_OUTPUT;
}
$searchType = $request->searchtype;
$response->searchType = $searchType;
$response->saleAuditorList = DAL::get()->find_all_by_roleName('followupauditor', FollowupAuditorRole::NAME_SALES);
$response->followupHospitalList = FollowupClient::getInstance()->getFollowupHospital();
$response->provinceList = Area::provInfoAll();
$page = $request->getRequest('page', 1);
$pageSize = 15;
$params = array();
if ('allocate' == $searchType) {
$params['customerName'] = $request->customername;
$params['saleAuditorId'] = $request->saleauditorid;
$params['deleted'] = $request->deleted;
$params['forbidSale'] = $request->forbidsale;
$params['hospitalid'] = $request->hospitalid;
$params['province'] = $request->province;
$params['surgerydatefrom'] = $request->surgerydatefrom;
$params['surgerydateto'] = $request->surgerydateto;
$response->params = $params;
if ($params['saleAuditorId'] == 0 && false == isset($params['deleted'])) {
$params['deleted'] = 0;
}
$res = FollowupClient::getInstance()->getCustomerList($page, $pageSize, $params);
$response->customerList = $res['followupCustomerList'];
}
if ('lock' == $searchType) {
$params['lockStatus'] = $request->lockstatus;
$params['customerRealName'] = $request->customerrealname;
$params['saleAuditorId'] = $request->saleauditorid;
$params['startTime'] = $request->starttime;
$params['endTime'] = $request->endtime;
$response->params = $params;
$res = FollowupCustomerClient::getInstance()->getCustomerByLockStatus($page, $pageSize, $params);
$response->customerList = $res['customerList'];
}
if ('amiss' == $searchType) {
$recordList = FollowupCustomerClient::getInstance()->getAmissInfoRecord();
$response->recordList = $recordList;
}
if ('customerwithrecord' == $searchType) {
$saleAuditorId = $request->saleauditorid;
$response->saleAuditorId = $saleAuditorId;
$startTime = $request->starttime;
$response->startTime = $startTime;
$endTime = $request->endtime;
$response->endTime = $endTime;
$customer_DotimeList = FollowupCustomerClient::getInstance()->getCustomerListAndRecordDoTime($saleAuditorId, $startTime, $endTime);
$response->customerList = $customer_DotimeList['customerList'];
$response->dotimeList = $customer_DotimeList['dotimeList'];
}
$pageParams = "";
foreach ($params as $key => $value) {
$pageParams .= strtolower($key) . "=" . $value . "&";
}
$pageParams .= "searchtype=" . $searchType;
if (false == empty($res['pageInfo'])) {
$response->pageLink = PageNav::getNavLink(PageNav::getPageNavTemplate("/followup/followupcustomermanage?{$pageParams}&page="), $res['pageInfo']['nowpage'], $res['pageInfo']['pagesize'], $res['pageInfo']['total']);
}
}
示例2: isset
<div class="pr25">
<!--好評醫生列表開始-->
<!--好評醫生列表開始-->
<p class="pt20 fs pb10 gray3">好評票是該醫生所治療的<?=$disease->name?>患者對其進行的投票,看病經驗是<?=$disease->name?>患者經該醫生治療後的經驗分享</p>
<ul class="fs hp_doc clearfix">
<?php
if (true == empty($doctorList))
{
$emptyInfo = '相關醫生';
$provinceName = '';
$provinceList = Area::provInfoAll();
if (isset($provinceList[$province])){
$provinceName = $provinceList[$province]['Province'];
}
$services = DiseasePage::$services;
$serviceForShow = isset($services[$service])?$services[$service]:'全部';
$grades = DiseasePage::getHospitalGrades();
$gradeDes = isset($grades[$hospitalGrade]) ? ' '.$grades[$hospitalGrade] : '';
$emptyInfo = '"'.$provinceName.' '.$serviceForShow.' '.$gradeDes.' ' .$doctorGrade.'" 的推薦醫生';
?>
<? include_once dirname(__file__).'/../common/_noresult_inner.php'; ?>
<?php } ?>
<?php
$spaceIds = array();
示例3: include
<!-- start zx-doctor -->
<?php include("_askspace.php");?>
<!-- end zx-doctor -->
<DIV class="zxPost-noticeShell">
<DIV class="zxPost-notice_1 f16 fb zoom clearfix">
<P class=mt5>
<SPAN class="fl f24 blue">好大夫在線網站醫學助理親切提示 <label class="red">(必讀!)</label></SPAN>
</P>
</DIV>
</DIV>
<!-- start zxPost-content -->
<?php
$province = Area::getIpProvince();
$provInfo = Area::provInfoAll();
$provinceKey = '';
foreach($provInfo as $key => $prov)
{
foreach($prov as $name => $value)
{
if($name == 'Province')
{
if($value == $province)
{
$provinceKey = $key;
break;
}
}
}
}
示例4: search
public function search($request, $response)
{
/*{{{*/
$diseasename = $request->diseasename;
$encode = mb_detect_encoding($request->diseasename, array('UTF-8', 'GBK'));
if ($encode == 'UTF-8' && preg_match("/^[\\x{4e00}-\\x{9fa5}A-Za-z0-9_]+\$/u", $diseasename)) {
$diseasename = mb_convert_encoding($request->diseasename, "gbk", "utf-8");
}
$response->fivehospitals = $this->get5hospitals4content();
$diseasename = rawurldecode($diseasename);
$area = Area::provInfoAll();
if (isset($area[$request->province]) && $area[$request->province] != '') {
$province = $area[$request->province]['Province'];
} else {
$province = rawurldecode($request->province);
}
$facultyname = DoctorClient::getInstance()->redirectFacultyname(rawurldecode($request->facultyname));
$hospitalname = $request->hospitalname;
if ($hospitalname == '-輸入醫院名稱-') {
$hospitalname = '';
}
$hospitalname = rawurldecode($hospitalname);
if ($hospitalname) {
$hospitalFacultyList = DAL::get()->queryHospitalFacultyName('doctoroutline', $hospitalname);
}
if ($province == '全部' || $province == '-請選擇醫院省份-' || $province == 'all') {
$province = '';
}
if ($facultyname == '全部') {
$facultyname = '';
}
//當有疾病條件的時候,左側科室內容清空,反過來還是
if (!empty($facultyname)) {
$diseasename = '';
}
if ('請輸入疾病關鍵詞' == $diseasename) {
$diseasename = '';
}
$nowpage = strlen($request->nowpage) > 0 ? $request->nowpage : 1;
// $response->diseasename = rawurlencode($diseasename);//保留原始疾病轉碼,如果線上無問題,可以刪除
// $response->province = rawurlencode($province);
// $response->facultyname = rawurlencode($facultyname);
// $response->hospitalname = rawurldecode($hospitalname);
$response->diseasename = $diseasename;
$response->province = $province;
$response->facultyname = $facultyname;
$response->hospitalname = $hospitalname;
$response->nowpage = $nowpage;
$response->directProvinces = $this->getDirectProvince();
$response->indirectProvinces = $this->getIndirectProvince();
$response->diseases_str = $this->getdisease4new($facultyname);
$pagesize = 10;
//新加的右邊搜索條件
$hosfaculty = DoctorClient::getInstance()->redirectFacultyname(rawurldecode($request->hosfaculty));
$response->facultyListForLeft = DAL::get()->queryFacultyListForLeft('DoctorOutLine');
$response->hosfaculty = $hosfaculty;
$hospitalFacultyList = array();
if ($hospitalname) {
$hospitalFacultyList = DAL::get()->queryHospitalFacultyName('doctoroutline', $hospitalname);
}
$response->hospitalFacultyList = $hospitalFacultyList;
$finalFacultyName = '';
//在搜索時兩種科室隻可能有一種存在值
if (!empty($hosfaculty) || !empty($facultyname)) {
$finalFacultyName = false == empty($hosfaculty) ? $hosfaculty : $facultyname;
}
$response->finalFacultyName = $finalFacultyName;
$response->facultyList = DAL::get()->queryFacultyList('DoctorOutLine', $finalFacultyName, $hospitalname);
$infos = DoctorClient::getInstance()->getDoctorListFor400Search($diseasename, $province, $finalFacultyName, $hospitalname, $nowpage, $pagesize = 10);
if ($diseasename && $nowpage <= 1) {
$topResults = DoctorClient::getInstance()->get3Doctors($diseasename, $province, $finalFacultyName, $hospitalname);
} else {
if ($finalFacultyName && $nowpage <= 1) {
$topResults = DoctorClient::getInstance()->get3FacultyDoctors($province, $finalFacultyName, $hospitalname);
if (false == empty($topResults) && false == empty($topResults['info'])) {
foreach ($topResults['info'] as $tmpTopResults) {
$unDoctorIds[$tmpTopResults['doctorid']] = $tmpTopResults['doctorid'];
}
$response->topDoctorIds = isset($unDoctorIds) ? $unDoctorIds : array();
}
}
}
//計算顯示醫生數
$totalDoctorCount = 0;
$infosDoctors = $topInfosDoctors = array();
if (isset($infos['info'])) {
$infosDoctors = $infos['info'];
}
if (isset($topResults['info'])) {
$topInfosDoctors = $topResults['info'];
}
if (isset($infos['pageInfo']['total']) && $infos['pageInfo']['total'] > 10) {
$totalDoctorCount = $infos['pageInfo']['total'];
} else {
$totalDoctorCount = count(array_keys($infosDoctors + $topInfosDoctors));
}
$response->totalDoctorCount = $totalDoctorCount;
$hospitalNameAndCnt = array();
if ($facultyname) {
$hospitalNameAndCnt = $this->getHospitalNameAndCnt($infos['hospitaldoctorcounts']);
//.........這裏部分代碼省略.........
示例5: diseasePageDoctor
private function diseasePageDoctor($request, $response, $diseasePage)
{/*{{{*/
$this->provinceList = Area::provInfoAll();
if (isset($this->provinceList[$this->province])){
$this->provinceName = $this->provinceList[$this->province]['Province'];
}
unset($this->provinceList['xizang']);
$response->provinceList = $this->provinceList;
$options = array();
if(false == empty($this->provinceName))
{
$options['prov'] = $this->provinceName;
}
$service = $request->service;
$response->service = $service;
if (false == empty($service))
{
$options['service'] = $service;
}
$hospitalGrade = $request->hospitalGrade;
$response->hospitalGrade = $hospitalGrade;
if (false == empty($hospitalGrade))
{
$options['hospitalGrade'] = $hospitalGrade;
}
$doctorGrade = $request->doctorGrade;
$response->doctorGrade = $doctorGrade;
if (false == empty($doctorGrade))
{
$options['doctorGrade'] = $doctorGrade;
}
$page = $request->getRequest('p', 1);
$pageSize = $request->getRequest('pageSize', 15);
$res = $diseasePage->getDoctorList4DoctorPage($page, $pageSize, $options);
$response->doctorList = array();
$response->pageLink = null;
if (false == empty($res['ids']))
{
$response->doctorList = DAL::get()->find('doctor', $res['ids']);
$fullUrl = DiseasePage::getDoctorUrl($this->disease->key, $this->province, $service, $hospitalGrade, $doctorGrade);
$fullUrl = str_replace('/daifu_1', '/daifu_@', $fullUrl);
list($preUrl, $appendUrl) = explode('@', $fullUrl);
$pageUrl = PageNav::getPageNavTemplate4DiseasePage($preUrl, 2, 3, 1, true, $appendUrl);
$response->pageLink = PageNav::getNavLink($pageUrl, $page, $pageSize, $res['total']);
}
$doctorCnt = isset($res['total'])?$res['total']:0;
$title = "{$this->provinceName}{$this->disease->name}專家_好大夫在線";
$keywords = "{$this->provinceName}{$this->disease->name}病專家,{$this->provinceName}{$this->disease->name}專家排名,{$this->provinceName}最好的{$this->disease->name}專家";
$description = "{$this->provinceName}{$this->disease->name}專家,根據患者投票評選的{$this->provinceName}{$this->disease->name}專家排名,含{$this->provinceName}{$this->disease->name}專家{$doctorCnt}位。查詢門診時間、谘詢專家、預約專家門診,幫您找到{$this->provinceName}最好的{$this->disease->name}專家。";
if ($page != 1 && $this->provinceName)
{
$title = $this->provinceName.$this->disease->name."專家_".$this->disease->name."好評專家推薦第".$this->nowPage."頁_好大夫在線";
$keywords = "";
$description = "";
}
$response->title = $title;
$response->keywords = $keywords;
$response->description = $description;
}/*}}}*/
示例6: loadMoreHospital
public function loadMoreHospital($request, $response)
{/*{{{*/
$this->initialize($request, $response);
$provinceName = '';
$provinceList = Area::provInfoAll();
if (isset($provinceList[$this->province]))
{
$provinceName = $provinceList[$this->province]['Province'];
}
$response->provinceName = $provinceName;
$binds = array();
$binds['needPage'] = true;
if($provinceName)
{
$binds['province'] = $provinceName;
}
$diseaseId = $this->disease->voteDisease->id;
$nowPage = $request->getRequest('p', 1);
$res = DiseaseClient::getInstance()->getDiseaseHospitalByDisease($diseaseId, $binds, $nowPage, self::PAGESIZE_LIST);
$response->diseaseHospitalList = $res['diseaseHospitalList'];
$response->nowPage = $res['pageInfo']['nowpage'];
$response->pages = $res['pageInfo']['pages'];
$response->total = $res['pageInfo']['total'];
$response->loadUrl = $response->touchUrl.'/disease/loadmorehospital?id='.$request->id.'&selected='.$response->selected.'&p=';
}/*}}}*/