本文整理汇总了PHP中Patient::Gender方法的典型用法代码示例。如果您正苦于以下问题:PHP Patient::Gender方法的具体用法?PHP Patient::Gender怎么用?PHP Patient::Gender使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Patient
的用法示例。
在下文中一共展示了Patient::Gender方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<table class="table table-bordered table-responsive table-hover">
<tr>
<td colspan="2">PT's Name: <?php
echo @$patient->name;
?>
</td><td>MRN: <?php
echo @$patient->id;
?>
</td>
</tr>
<tr>
<td>Age: <?php
echo @Patient::ageCalculator(@$patient->age);
?>
</td><td>Gender: <?php
echo @Patient::Gender()[$patient->gender];
?>
</td><td>PT's ID: <?php
echo @$patient->pt_id;
?>
</td>
</tr>
<tr>
<td colspan="3">Diagnosis: <?php
echo @$diagnosis->diagnosis;
?>
</td>
</tr>
</table>
<form class="form" action="" rel="form">
<div class="form-group">
示例2:
?>
</td>
<td><?php
echo $row->name;
?>
</td>
<td><?php
echo $row->pt_id;
?>
</td>
<td><?php
echo $row->age;
?>
</td>
<td><?php
echo Patient::Gender()[$row->gender];
?>
</td>
<td><?php
echo $row->phone;
?>
</td>
<td><?php
echo $row->mobile;
?>
</td>
<td><?php
echo $row->date_time;
?>
</td>
<td style="text-align: center"><?php
示例3: foreach
</div>
</div>
<div class="form-group">
<label class="mws-form-label">PT's Name</label>
<input type='text' placeholder='Name' name='name' class="form-control"/>
</div>
<div class="form-group">
<label class="mws-form-label">age</label>
<input type='text' placeholder='Age' name='age' class="form-control" />
</div>
<div class="form-group">
<label class="mws-form-label">Gender</label>
<div class="mws-form-item clearfix">
<ul class="mws-form-list inline">
<?php
foreach (Patient::Gender() as $key => $value) {
echo ' <li><input type="radio" name="gender" value="' . $key . '" id="' . $value . '"> <label for="' . $value . '">' . $value . '</label></li>';
}
?>
</ul>
</div>
</div>
<div class="form-group" id="PatientId">
<label class="mws-form-label">PT's ID</label>
<input type='text' placeholder='Patient Id' maxlength="14" name='pt_id' class="form-control PatientId"/>
<span class="glyphicon glyphicon-ok form-control-feedback c_done" aria-hidden="true"></span>
<span class="glyphicon glyphicon-remove form-control-feedback error" aria-hidden="true"></span>
</div>
<div class="form-group">
<label class="mws-form-label">Occupation</label>
<input type='text' placeholder='Occupation' name='occupation' class="form-control"/>
示例4:
?>
" readonly/>
</div>
<div class="form-group">
<label class="mws-form-label">age</label>
<input type='text' placeholder='Age' name='age' class="form-control" value="<?php
echo $patient->age;
?>
" readonly />
</div>
<div class="form-group">
<label class="mws-form-label">Gender</label>
<div class="mws-form-item clearfix">
<ul class="mws-form-list inline">
<?php
echo '<li><input type="radio" name="gender" checked> <label>' . Patient::Gender()[$patient->gender] . '</label></li>';
?>
</ul>
</div>
</div>
<div class="form-group" id="PatientId">
<label class="mws-form-label">PT's ID</label>
<input type='text' placeholder='Patient Id' maxlength="14" name='pt_id' class="form-control PatientId" value="<?php
echo $patient->pt_id;
?>
" readonly/>
</div>
<div class="form-group">
<label class="mws-form-label">Occupation</label>
<input type='text' placeholder='Occupation' name='occupation' class="form-control" value="<?php
echo $patient->occupation;