当前位置: 首页>>代码示例>>PHP>>正文


PHP XDateTime::isDate方法代码示例

本文整理汇总了PHP中XDateTime::isDate方法的典型用法代码示例。如果您正苦于以下问题:PHP XDateTime::isDate方法的具体用法?PHP XDateTime::isDate怎么用?PHP XDateTime::isDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XDateTime的用法示例。


在下文中一共展示了XDateTime::isDate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: if

<?php }?>
</p>
</DIV>
</DIV>

<?php if(false == empty($userItem->patients)) {?>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;姓名
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  出生日期
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  性别
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 城市
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;与本人关系
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 手机号


<?php foreach($userItem->patients as $userPatient) {?>
<LABEL for=u86>
<DIV id=u87 class="u87" >
<DIV id=u87_rtf><p style="text-align:left;"><span style="font-family:微软雅黑;font-size:14px;font-weight:normal;font-style:normal;text-decoration:none;color:#333333;">
<input type="radio" name="patientid" value="<?=$userPatient->id?>" />&nbsp;&nbsp;
<input type="hidden" id="<?=$userPatient->id?>" value="<?=$userPatient->mobile?>" />&nbsp;&nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; <font color="red"><?= $userPatient->name?$userPatient->name:'无'?></font>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 
<?= XDateTime::isDate($userPatient->birthday)?$userPatient->birthday:"无&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"?>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; <?= $sexDef[$userPatient->sex]?>&nbsp; &nbsp; &nbsp;&nbsp;&nbsp; <?= $userPatient->province ?><?= $userPatient->city ?>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?= $relationDef[(int)$userPatient->relation]?>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <?=$userPatient->mobile?></span></p>
</DIV>
</DIV>
</LABEL>

<?php }}?>
<a href="addorder?isCreatePatient=true&createuserid=<?=$userItem->id?>&type=<?=$type?>&phone=<?=$phone?>&taskid=<?=$taskid?>" class="dil gray-btn1 fb ml10" >新增患者信息</a>
</br>
<?php }}?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:30,代码来源:selectuser.php

示例2: getDetailOfProposal

    private function getDetailOfProposal($proposal, $openid)
    {/*{{{*/
        $str = '';
        $patient = $proposal->patient;
        $bingliSet = $proposal->getBingLiSet();
        $titleAndDisease = NodeClient::getInstance()->getTitleAndDiseaseByRelatedObjIds(array($proposal->id), "Proposal");  
        $title = isset($titleAndDisease[$proposal->id]->title) ? $titleAndDisease[$proposal->id]->title : "";
        $diseaseName = isset($titleAndDisease[$proposal->id]->disease) ? $titleAndDisease[$proposal->id]->disease : "";
        $age = "";
        if(XDateTime::isDate($patient->birthday))
        {
            $age = $patient->getPatientAge(); 
        }
        else if ($patient->age)
        {
            $age = $patient->age;
        }
        $xiangyingTitle = $patient->userName . ":" . $title;
        $str = "---疾病信息---\n";
        $str .= "疾病:" . $diseaseName . "\n";
        $str .= "\n---患者基本资料---\n";

        $str .= "姓名:" . $patient->name . "\n";
        $str .= "性别:" . patient::getpatientSex($patient->sex) . "\n";
        $str .= "所在省市:" . $patient->province . " " . $patient->city . "\n";
        $str .= "提交时间:" . $proposal->ctime;
        $str .= "\n";
        $conditionDesc = "\n---病情描述---\n";
        foreach($bingliSet->conditiondesc as $dto)
        {
            $conditionDesc .= (''==$dto->conditionDesc)?'未填写': ($dto->conditionDesc)." ";
            $conditionDesc = str_replace("<br/>", "\n", $conditionDesc);
        }
        if(mb_strlen($conditionDesc) > 300)
        {
            $conditionDesc = mb_substr($conditionDesc, 0, 300) . "\n...";
        }
        $str .= $conditionDesc;
        $str .= "\n";
        $dto = array_pop($bingliSet->hopeHelp);
        if(!empty($dto))
        {
            $hopeHelp = empty($dto) ? '' : $dto->hopeHelp;
            $str .= "\n---希望提供的帮助---\n";
            $str .= $hopeHelp;
            $str .= "\n";
        }
        $hospitalName = '';
        $diagnozeStr = '';
        foreach($bingliSet->hospital as $dto) 
        { 
            $hospitalName .= $dto->hospitalName . " " . $dto->facultyName . "\n";
        } 
        if($hospitalName != '')
        {
            $diagnozeStr .= "所就诊医院科室:" . $hospitalName;
        }
        $medicine = "";
        foreach($bingliSet->medicine as $dto)
        {
            $medicine .= "药物名称:" . $dto->medicineName . " \n服用说明:" . $dto->medicineDesc . "\n"; 
        }
        if(mb_strlen($medicine) > 300)
        {
            $medicine = mb_substr($medicine, 0, 300) . "\n...";
        }
        if($medicine != '')
        {
            $diagnozeStr .= "-用药情况-\n";
            $diagnozeStr .= $medicine;
        }
        if($diagnozeStr != '')
        {
            $str .= "\n---诊断与治疗---\n";
            $str .= $diagnozeStr;
        }

        if (false == empty($bingliSet->patientAttachment))
        {
            $desc = "病历:点击【查看全文】查看患者上传病历";
            $str .= $desc;
        }
        $str .= "\n";
        $str .= "------------------------";
        $str .= "\n";
        $str .= "■ 病情不适合由您处理请回复数字 2
■ 需离开处理其它紧急事项请回复数字 3 ";

        $weixintype = WeixUser::WEIXINTYPE_SPACE;
        $config = WeixApi::getWeixConfigs($weixintype);
        $AppId = $config['AppId'];
        $domain = $config['domain'];
        $Url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' . $AppId . '&redirect_uri=' . $domain. '/wx/auth4space?proposalId=' .$proposal->id . '&response_type=code&scope=snsapi_base&state=#wechat_redirect';   


        $arr = array
            (
                array(
                    'Title' => $xiangyingTitle,
                    'Description' => $str,
//.........这里部分代码省略.........
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:101,代码来源:wxcontroller.php

示例3: date

}
?>
>女</option>
	   </select>
	</p>
	<?php 
if (XDateTime::isDate($patientSignin->patient->birthday)) {
    $bornYear = date("Y", strtotime($patientSignin->patient->birthday));
    $bornMonth = date("m", strtotime($patientSignin->patient->birthday));
    $bornDay = date("d", strtotime($patientSignin->patient->birthday));
}
?>
	<script type="text/javascript">
    
<?php 
if ('' != $patientSignin->patient->birthday && XDateTime::isDate($patientSignin->patient->birthday)) {
    ?>
            $(function(){
                inityear($("#dateyear"),<?php 
    echo $bornYear;
    ?>
);
                initmonth($("#datemonth"),<?php 
    echo $bornMonth;
    ?>
);
                initday($("#dateday"),31,<?php 
    echo $bornDay;
    ?>
);
            });
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:followupinitialinfo.php

示例4: savePatient

 public function savePatient($request, $response)
 {/*{{{*/
     $name = mb_convert_encoding($request->patientname, 'gbk', 'auto');
     $mobile = $request->mobile;
     $sex = $request->sex == null ? Patient::SEX_UNDEFINE : $request->sex;
     $province = $request->province == null ? '' : $request->province;
     $city = $request->city == null ? '' : $request->city;
     $idcard = $request->idcard == null ? '' : $request->idcard;
     $paperstype = $request->paperstype == null ? 0 : $request->paperstype;
     $birthday = $request->dateyear && $request->datemonth && $request->dateday ? $request->dateyear . "-" . $request->datemonth . "-" . $request->dateday : '';
     $birthday = XDateTime::isDate($birthday) ? $birthday : '';
     $relation = $request->relation ? $request->relation : '';
     $age = $request->age ? $request->age : 0;
     $newPatient = PatientClient::getInstance()->addOrMergePatient($this->user, $name, $mobile, $sex, $age, $province, $city, $idcard, $paperstype, $birthday, $relation);
     $forward = $request->forward;
     $results = array();
     if($forward)
     {
         if(strpos($forward, 'selectpatientofreport'))
         {
             $response->setRedirect($response->router->urlfor('attach/uploadattach4signin', array('spaceId' => $request->spaceid, 'patientId' => $newPatient->id)));
         }
         echo json_encode($newPatient->id);
         return self::DIRECT_OUTPUT;
     }
     else
     {
         $response->setRedirect($response->router->urlfor('user/patientlist'));
     }
 }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:30,代码来源:usercontroller.php

示例5: getPatientAge

 private function getPatientAge($patient)
 {/*{{{*/
     if(XDateTime::isDate($patient->birthday))
     {
         $age = $patient->getPatientAge();
     }
     else if($patient->age)
     {
         $age = $patient->age;
     }
     else
     {
         $age = '';
     }
     return $age;
 }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:16,代码来源:casedatabucket.php

示例6: if

                             <?php } ?>
                         </select>
                         </td>
                         <td width="75" align="center" style="width:75px;" class="br_e bb_e select_style2">
                         <select check_function="check_datemonth" onchange="changedate('dateyear','datemonth','dateday');" defmsg="succ" class="display_tip select_box_n1" style="font-size:14px; width:90%;" id="datemonth" name="datemonth" <?=(false==$patient->isNull() && XDateTime::isDate($patient->birthday) && XDateTime::valueOf($patient->birthday)->getMonth())? "disabled":''?> >
                             <?php if(false == $patient->isNull() && !empty($patient->birthday)){ ?>
                             <option selected="selected" value='<?=XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : ""?>'><?=XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : ""?></option>
                             <?php } else { ?>
                             <option selected="selected" value=''>请选择</option>
                             <?php } ?>
                         </select>
                         </td>
                         <td width="75" align="center" style="width:75px;" class="bb_e b_ra5_2 select_style2">
                         <select check_function="check_dateday" defmsg="succ" style="font-size:14px; width:90%;" class="display_tip select_box_n1" id="dateday" name="dateday" <?=(false==$patient->isNull() && XDateTime::isDate($patient->birthday) && XDateTime::valueOf($patient->birthday)->getDay())? "disabled":''?>>
                             <?php if(false == $patient->isNull() && !empty($patient->birthday)){ ?>
                             <option selected="selected" value='<?=XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : ""?>'><?=XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : ""?></option>
                             <?php } else { ?>
                             <option selected="selected" value=''>请选择</option>
                             <?php } ?>
                         </select>
                         </td>
                     </tr>
                 </tbody></table>
             </div>
 </div>
 <div class="item clearfix">
     <div class="tit">性别:</div>
     <div class="input_box f17">
         <div class="clearfix">
             <p class="f19 pt5 fl pr10">
                 <input type="radio" name="sex" id="radio1" <?=(false == $patient->isNull()) ? (((int)($patient->sex) ==Patient::SEX_MALE )?"checked=true":''):''?> value="<?=Patient::SEX_MALE?>" <?=(false==$patient->isNull() && $patient->sex!='' && (int)($patient->sex)!=Patient::SEX_UNDEFINE)?"disabled":''?>>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:addition4patientreport.php

示例7:

        <img class="vm ml5" src="http://i1.hdfimg.com/doctorzone/images/doc_at.png"/>
<?php 
    }
    ?>
    </p>
    <ul class="pa_friend flow_patient">
        <li>姓名:<?php 
    echo $ref->patient->name;
    ?>
</li>
        <li>性别:<?php 
    echo patient::getPatientSex($ref->patient->sex);
    ?>
</li>
<?php 
    if (XDateTime::isDate($ref->patient->birthday) && $ref->patient->getPatientAge()) {
        echo "<li>年龄:" . $ref->patient->getPatientAge() . "</li>";
    } else {
        if ($ref->patient->age) {
            echo "<li>年龄:" . $ref->patient->age . "</li>";
        } else {
            echo "";
        }
    }
    ?>
        <li>所在省市: <?php 
    echo $ref->patient->province;
    ?>
 <?php 
    echo $ref->patient->city;
    ?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:_space_content_right.php

示例8: getSearchEndTime

 private function getSearchEndTime($request)
 {/*{{{*/
     $searchEndTime = $request->searchEndTime;
     if(XDateTime::isDate($searchEndTime))
     {
         $tmpTime2 = substr($searchEndTime, 0, 10);
         $searchEndTime = $tmpTime2." 23:59:59";
     }
     return $searchEndTime;
 }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:10,代码来源:telordercontroller.php

示例9:

if (false == $proposal->patient->isNull()) {
    ?>
<div class="mr_line mb30">
    <p class="mr_title1 pa_info f18">患者信息</p>
    <ul class="pa_friend gray2 flow_patient">
        <li>姓名:<?php 
    echo $proposal->patient->name;
    ?>
</li>
        <li>性别:<?php 
    echo patient::getpatientSex($proposal->patient->sex);
    ?>
</li>
        <li>年龄:
        <?php 
    if (XDateTime::isDate($proposal->patient->birthday)) {
        echo $proposal->patient->getPatientAge();
    } else {
        if ($proposal->patient->age) {
            echo $proposal->patient->age;
        }
    }
    ?>
        </li>
        <li>所在省市:<?php 
    echo $proposal->patient->province;
    ?>
&nbsp; <?php 
    echo $proposal->patient->city;
    ?>
</li>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:right_patient.php

示例10: submitForm

    }   

    return true;
}/*}}}*/

function submitForm(patientId)
{
    if (checkPatientForm(patientId))
    {
        $('#patientForm'+patientId).submit();
    }
}
</script>

<?php 
if (isset($patient->birthday) && $patient->birthday && XDateTime::isDate($patient->birthday)) {
    list($year, $month, $day) = explode('-', $patient->birthday);
}
?>
    <p id="modifyUser" class="clearfix h30 fb f14 pl10 pt10">
        修改患者资料<span id="s_<?php 
echo $patient->id;
?>
">&nbsp;</span>
        <?php 
if (isset($msg)) {
    ?>
        <span class="green" style="margin-left:350px" ><?php 
    echo $msg;
    ?>
</span>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:showpatientdetail.php

示例11: if

		<a target="_blank" href="http://www.haodf.com/faculty/<?=Codec::getInstance()->encodeId($space->host->hospitalfaculty->id)?>.htm"><?=$space->host->hospitalfaculty->name?></a>|
        <a target="_blank" href="/spacebusinessrequirement/showdoctordetaillist?id=<?=$spaceBusinessRequirement->id?>" >查看详情</a></td>
  </tr>
  <tr>
    <td valign="middle" width="100px">性别:</td>
    <td valign="middle"><?=$order->patient->getSexTitle()?></td>
    <td valign="middle" width="100px">电话:</td>
    <td valign="middle">
    <a target="_blank" href="/?a=showsmsstat&c=message&type=1&tel=<?=$doctorMobileEncoded?>&orderid=<?=$order->id?>"><?=$doctorMobileFaked?></a> | 
    <?php if($isCallPanelLinkShown){ ?>
    <a target="_blank" href="http://<?=URL_PREFIX?>callcenter.haodf.com/operator/index?username=<?=$space->user->name?>">点击进入呼叫医生界面</a>
    <?php }?>
    </td>
  </tr>
  <tr>
  <?php if(XDateTime::isDate($order->patient->birthday)){?>
  	<td valign="middle" width="100px">出生日期:</td>
    <td valign="middle"><?=$order->patient->birthday ?></td>
  <?php }else{?>
    <td valign="middle" width="100px">年龄:</td>
    <td valign="middle"><?=$order->patient->age ?></td>
  <?php }?>  
    <td valign="middle" width="100px">加号要求:</td>
    <td valign="middle"><?=$spaceBusinessRequirement->getConfirmedValueOf('disease')?></td>
  </tr>
  <tr>
    <td valign="middle" width="100px">证件类型:</td>
    <td valign="middle"><?=Patient::$paperstypes[$order->patient->paperstype]?></td>
    <td valign="middle" width="100px">患者要求:</td>
    <td valign="middle"><?=($spaceBusinessRequirement->getConfirmedValueOfPatientFreshnessDef() == false)?SpaceBusinessRequirement::$patientFreshnessDef[SpaceBusinessRequirement::PATIENT_FRESH_ALL]:$spaceBusinessRequirement->getConfirmedValueOfPatientFreshnessDef()?></td>
  </tr>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:showorderdetail.php

示例12: getBookingOrderByDoctorId

 public function getBookingOrderByDoctorId($doctorId, $bookingOrderId)
 {/*{{{*/
     $paperstypes = array(0 => "身份证", 1=>"护照", 2=>"军人证", 3=>"台胞证", 4=>"港澳居民内地通行证");
     $sexs = array(0=>"女", 1=>"男");
     $goals = array(1=>"检查/诊断", 2=>"治疗/手术", 3=>"检查/诊断 治疗/手术", 4=>"复诊", 5=>"检查/诊断 复诊", 6=>"治疗/手术 复诊", 7=>"检查/诊断 治疗/手术 复诊");
     $doctor = DAL::get()->find('doctor', $doctorId);
     $res = $this->checkDoctorAndSpace($doctor);
     if($res)
     {
         $this->setErrorCode($res);
         return 0;
     }
     $bookingOrder = DAL::get()->find('bookingorder', $bookingOrderId);
     if ($bookingOrder->isNull())
     {
         $this->setErrorCode(158);
         return 0;
     }
     if($bookingOrder->space->host->id != $doctorId)
     {
         $this->setErrorCode(159);
         return 0;
     }
     $result = array();
     $result['id'] = $bookingOrder->id;
     $result['schedule'] = strtotime($bookingOrder->schedule);
     $result['address'] = $bookingOrder->address;
     $patient = $bookingOrder->patient;
     $result['patientName'] = $patient->name;
     $result['age'] = $patient->age == '' ? 0 : $patient->age;
     $result['birthday'] = XDateTime::isDate($patient->birthday) == false ? 0 : $patient->birthday;
     $result['sex'] = $sexs[$patient->sex];
     $result['idType'] = $paperstypes[$patient->paperstype];
     $result['idNumber'] = $patient->idcard;
     $result['province'] = $patient->province.$patient->city;
     if($patient->province == $patient->city)
     {
         $result['province'] = $patient->province;
     }
     $helper = BingLiDtoHelper::create($bookingOrder->getBingLiSource());
     $result['disease'] = $helper->getDiseasesStr();
     $result['treatmentStatus'] = $helper->getLastUserCategory();//是否得到过该医生的诊治1是,0否
     $result['purpose'] = $goals[$helper->getLastGoal()];//本次预约的目的 1诊察/诊断  2治疗/手术  3复诊
     $result['lastTreatmentTitle'] = $helper->getLastUserCategoryDescription();//上次在大夫处就诊时间,最后一次就诊医院 两种情况
     $result['lastTreatmentInfo'] = $helper->getLastHospitalOrLastTreatedTime();
     $result['recentTreatment'] = XString::getContentWithOutHtml($helper->getLastConditionDesc());
     $result['status'] = $this->getBookingOrderStatus4Doctor($bookingOrder);
     $result['canConfirm'] = 0;
     if (BookingOrder::STATUS_AUDIT == $bookingOrder->status && !$bookingOrder->isOverdue()) 
     {
         $result['canConfirm'] = 1;
     }
     $result['canDeny'] = 0;
     if (BookingOrder::STATUS_AUDIT == $bookingOrder->status)
     {
         $result['canDeny'] = 1;
     }
     $result['canFinish'] = 0;
     if (BookingOrder::STATUS_FINISHED == $bookingOrder->status) 
     {
         $result['canFinish'] = 1;
     }
     $this->content = $result;
 }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:64,代码来源:databucket.php

示例13: checkPatientNameIsExists

 public function checkPatientNameIsExists($request, $response)
 {/*{{{*/
     $user = DAL::get()->find('user', $request->userid);
     $results = array();
     if ($user instanceof User)
     {
         $patient = $user->getPatientByName($request->patientName);
         if(false == $patient->isNull())
         {
             $results = array(
                 'id' => $patient->id, 
                 'patientIdCard' => $patient->idcard, 
                 'paperstype' => $patient->paperstype, 
                 'sex' => $patient->sex, 
                 'birthday' => ('--' != $patient->birthday) ? $patient->birthday : '',
                 'year' => XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getYear() : '', 
                 'month' => XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getMonth() : '', 
                 'day' => XDateTime::isDate($patient->birthday) ? XDateTime::valueOf($patient->birthday)->getDay() : '', 
                 'province' => $patient->province,
                 'city' => $patient->city,
                 'relation' => $patient->relation, 
                 'patientMobile' => $patient->mobile, 
                 'phone' => $patient->phone, 
                 'backupPhone' => $patient->backupPhone
             ); 
         }
     }
     header("Content-Type: text/html; charset=UTF-8");
     echo $request->callback.'(';
     echo Json::encode($results);
     echo ');';
     return parent::DIRECT_OUTPUT;
 }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:33,代码来源:usercontroller.php

示例14: getBookingOrderPatientMessage

    private function getBookingOrderPatientMessage($patient)
    {/*{{{*/
        $sexs = array(0=>"女", 1=>"男");
        $paperstypes = array(0 => "身份证", 1=>"护照", 2=>"军人证", 3=>"台胞证", 4=>"港澳居民内地通行证");

        $result['patientName'] = $patient->name;
        $result['age'] = $patient->age ? $patient->age.'岁' : $patient->getPatientAge();
        $result['birthday'] = XDateTime::isDate($patient->birthday) == false ? 0 : $patient->birthday;
        $result['sex'] = $sexs[$patient->sex];
        $result['idType'] = $paperstypes[$patient->paperstype];
        $result['idNumber'] = MainDataBucket::getPrivateIdCard4Mobile($patient);
        $result['province'] = $patient->province.$patient->city;
        $result['mobile'] = $patient->mobile;
        if($patient->province == $patient->city)
        {
            $result['province'] = $patient->province;
        }
        return $result;
    }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:19,代码来源:bookingorderdatabucket.php

示例15:

 <div class="borderDiv detail-module" style="width:70%;margin-bottom:0px;margin-top:-20px;">
     <div class="detail-module_splitter">
         <div class="detail-module_title" >
             <h3>患者信息</h3>
         </div>
         <div class="detail-patientinfo">
                 <div class="detail-patientinfo_basic" id="standarDisease">
                    <span class="tb">姓名:</span> <?php 
echo $patient->name;
?>
                    <?php 
if (XDateTime::isDate($patient->birthday)) {
    ?>
                    <span class="tb">出生年月:</span> <?php 
    echo $patient->birthday;
    ?>
                    <?php 
}
?>
                    <span class="tb">性别:</span> <?php 
echo Patient::getPatientSex($patient->sex);
?>
                    <span class="tb">地区:</span><?php 
echo $patient->province;
?>
 <?php 
echo $patient->city;
?>
                    <span class="tb">&nbsp;&nbsp;&nbsp;<a href="/?c=patientfile&a=applylist&Status=&PatientId=<?php 
echo $patient->id;
?>
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:31,代码来源:_patient.php


注:本文中的XDateTime::isDate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。