public function showPatient($request, $response) { /*{{{*/ $showPhoneNumber = $request->showPhoneNumber; $phoneNumber = $request->phoneNumber; if (false == is_numeric($phoneNumber)) { $phoneNumber = Codec::getInstance()->decodeId($phoneNumber); } $mobileNumberArea = ""; $mobileNumberAreaArray = array(); if (XString::isMobile($phoneNumber)) { $mobileNumber = substr($phoneNumber, 0, 7); $mobileArea = DAL::get()->find_by_mobilenumber("MobileNumberArea", $mobileNumber); if (false == $mobileArea->isNull()) { $mobileNumberArea = $mobileArea->mobileArea; $mobileNumberAreaArray = explode(" ", $mobileNumberArea); } } $response->mobileNumberAreaArray = $mobileNumberAreaArray; $response->phoneNumber = $phoneNumber; $response->showPhoneNumber = $showPhoneNumber; $response->relationList = Patient::relationDef(); $response->userId = $request->userId; }
<?php echo $patient->isNull() == false ? "<option value='" . $patient->city . "'>" . $patient->city . "</option>" : ""; ?> <option value="">请选择</option> </select> <script type="text/javascript"> $(function(){ AddArea('AR_Province'); ChangeAreaOption('AR_Province', 'AR_City'); }); </script> <?php } else { echo $patient->province . " " . $patient->city; } ?> </p> <p class="pl25 pt10 pb10"> <span class="fb ml10">患者与本人的关系:</span> <?php $relationList = Patient::relationDef(); if ($canModify) { ?> <select name="patient[relation]"> <?php foreach ($relationList as $key => $value) { ?> <option value="<?php echo $key; ?> " <?php echo $patient->isNull() == false && $key == $patient->relation ? 'checked' : ''; ?> ><?php echo $value;
public function confirmPatient($request, $response) {/*{{{*/ AskSessionInfo::bindUser($this->_newUser->id); $isBeforeLoginConfirmPatient = AskSessionInfo::getBeforeLoginConfirmPatient(); $patients = $this->_newUser->patients; if(false == empty($patients) && is_array($patients) && false == $isBeforeLoginConfirmPatient) { $response->patients = $patients; $response->hasPatient = true; } else { $response->patients = array(); $response->hasPatient = false; } $response->user = $this->_newUser; $response->relationList = Patient::relationDef(); }/*}}}*/
public function confirmPatient($request, $response) {/*{{{*/ $this->initialize($request, $response); AskSessionInfo::bindUser($this->user->id); $bindPatient = AskSessionInfo::getBindPatient(); $response->user = $this->user; if ($bindPatient instanceof Patient) { $response->setRedirect($response->router->urlfor('newcase/attachexperience')); } else { $response->relationList = Patient::relationDef(); } }/*}}}*/
public function patientInfo4Signin($request, $response) { $space = DAL::get()->find('space', $request->spaceId); DBC::requireFalse($space->isNull(), '找不到该医生,请确认医生id'); $patient = DAL::get()->find('patient', $request->patientId); if($patient->isNull() == false) { $response->setRedirect($response->router->urlfor('attach/uploadattach4signin', array('patientId'=>$patient->id, 'spaceId'=>$space->id))); } $response->title = $response->topTitle = "填写患者信息"; $response->space = $space; $response->disease = $request->disease; $response->patientName = isset($_SESSION['newSignin']['patientName']) ? $_SESSION['newSignin']['patientName'] : ''; if(isset($_SESSION['newSignin']['patientName'])) { unset($_SESSION['newSignin']['patientName']); } $response->patient = DAL::get()->find('patient',$request->patientId); $response->user = $this->user; $response->forward = $request->forward; $response->relationList = Patient::relationDef(); }
</div> </div> </div> </div> <script type="text/javascript"> AddArea('AR_Province'); ChangeAreaOption('AR_Province', 'AR_City'); </script> <div class="form_con clearfix"> <div class="form_title fl">与我的关系: <span class="yellow">*</span> </div> <div class="form_text clearfix"> <div class="form_select"> <span>本人</span> <select name="relation"> <?php foreach(Patient::relationDef() as $key => $relation){?> <option value="<?=$key?>"><?=$relation?></option> <?php } ?> </select> </div> </div> </div> <div class="form_con clearfix"> <div class="btn" onclick="checkAndSubmit()"> <a href="javascript:;" class="input_btn1">下一步</a> </div> </div> </form> </div> <script src="http://i1.hdfimg.com/js/jquery-1.4.2.min.js?20140409" type="text/javascript"></script>
public function addNewPatient($request, $response) {/*{{{*/ $response->topTitle = "患者资料"; $response->title = "新增患者资料"; $response->relationList = Patient::relationDef(); $response->mobile= isset($_SESSION['telOrderInfo']['mobile']) ? : ''; }/*}}}*/
?> datemonth")); initday($("#<?php echo $patient->id; ?> dateday")); }); </script> </tr> <tr class="h30"> <td>关系</td> <td> <span class="fl pl10"> <select name="relation" id="relation"> <?php foreach (Patient::relationDef() as $key => $value) { ?> <option value="<?php echo $key; ?> " <?php echo $patient->relation == $key ? 'selected' : ''; ?> ><?php echo $value; ?> </option> <?php } ?>
<?php foreach($patients as $patient) { if (is_array($patient)) { $patientId = $patient['id']; $patientName = $patient['name']; $patientSex = Patient::getPatientSex($patient['sex']); $patientDef = Patient::relationDef(); $patientRelation = $patientDef[$patient['relation']]; } else { $patientId = $patient->id; $patientName = $patient->name; $patientSex = $patient->getSexRef(); $patientRelation = $patient->getRelationString(); } ?> <div class="clearfix mb15"> <div class="ch_checkbox"> <input type="radio" name="checkbox" <?=$sessionPatientId == $patientId ? 'checked' : ''?> id="<?=$patientId?>" onclick="selectpatient('<?=$patientId?>')"> </div> <label for="<?=$patientId?>" hidefocus="true"> <div class="bg_w bd b_ra5 f17 lh160 ml40"> <ul class="yy_ul"> <li> 姓名:<span class="black"><?=$patientName?></span> </li> <li> 性别:<span class="black"><?=$patientSex?></span> </li> <li>