本文整理汇总了PHP中Patient::relationDef方法的典型用法代码示例。如果您正苦于以下问题:PHP Patient::relationDef方法的具体用法?PHP Patient::relationDef怎么用?PHP Patient::relationDef使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Patient
的用法示例。
在下文中一共展示了Patient::relationDef方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showPatient
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;
}
示例2: AddArea
<?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;
示例3: confirmPatient
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();
}/*}}}*/
示例4: confirmPatient
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();
}
}/*}}}*/
示例5: patientInfo4Signin
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();
}
示例6: AddArea
</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>
示例7: addNewPatient
public function addNewPatient($request, $response)
{/*{{{*/
$response->topTitle = "患者资料";
$response->title = "新增患者资料";
$response->relationList = Patient::relationDef();
$response->mobile= isset($_SESSION['telOrderInfo']['mobile']) ? : '';
}/*}}}*/
示例8: initday
?>
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
}
?>
示例9: foreach
<?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>