當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Patient::Gender方法代碼示例

本文整理匯總了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">
開發者ID:kamatcho,項目名稱:hospital,代碼行數:31,代碼來源:show_dr_order.php

示例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 
開發者ID:kamatcho,項目名稱:hospital,代碼行數:31,代碼來源:AllPatient.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"/>
開發者ID:kamatcho,項目名稱:hospital,代碼行數:31,代碼來源:AddNewPatient.php

示例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;
開發者ID:kamatcho,項目名稱:hospital,代碼行數:31,代碼來源:FindPatient.php


注:本文中的Patient::Gender方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。