surat/frontend/modules/register/views/case/_patient_detail.php

27 lines
430 B
PHP
Raw Normal View History

2025-04-01 08:05:43 +00:00
<?php
use yii\widgets\DetailView;
use yii\helpers\Html;
echo DetailView::widget([
'model' => $model,
'attributes' => [
2025-04-02 07:36:23 +00:00
'hn',
'title',
'first_name',
'last_name',
2025-04-02 08:01:31 +00:00
'sex',
'race',
'nation',
'card_id',
'birthdate',
'age',
2025-04-01 08:05:43 +00:00
],
]);
2025-04-02 07:36:23 +00:00
2025-04-01 08:05:43 +00:00
echo Html::button('เลือกผู้ป่วย', [
'class' => 'btn btn-success',
2025-04-02 07:36:23 +00:00
'onclick' => "selectPatient(" . json_encode($model) . ")"
]);