本文整理匯總了PHP中app\Client::clientDoctors方法的典型用法代碼示例。如果您正苦於以下問題:PHP Client::clientDoctors方法的具體用法?PHP Client::clientDoctors怎麽用?PHP Client::clientDoctors使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類app\Client
的用法示例。
在下文中一共展示了Client::clientDoctors方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
?>
</select>
</td>
</tr>
<tr>
<td><label>Doktor</label></td>
<?php
$doctors = Client::doktorList();
?>
<td>
<select name="doktor" class="form-control">
<?php
if ($client->doctor_id != null) {
$secDoctor = Client::clientDoctors($client->doctor_id);
echo '<option value="' . $secDoctor->id . '">' . $secDoctor->name . ' ' . $secDoctor->last_name . '</option>';
}
if ($authorization == 1) {
foreach ($doctors as $doctor) {
echo '<option value="' . $doctor->id . '">' . $doctor->name . ' ' . $doctor->last_name . '</option>';
}
}
?>
</select>
</td>
</tr>
<tr>
<td><label>Mesajı</label></td>
示例2: foreach
foreach ($clientList as $list) {
?>
<tr>
<td><center>{{$list->name}}</center></td>
<td><center>{{$list->last_name}}</center></td>
<td><center>{{$list->email}}</center></td>
<td><center>{{$list->tel}}</center></td>
<td><center>{{$list->app_date}}</center></td>
<td><center>{{ Client::clientHours($list->hour_id)->hours }}</center></td>
<td><center>
<?php
//$doctor = Client::clientDoctors($list->doctor_id);
if ($list->doctor_id == null) {
echo "Atanmadı";
} else {
$doctor = Client::clientDoctors($list->doctor_id);
echo $doctor->name . ' ' . $doctor->last_name;
}
?>
</center>
</td>
<td><center>
{!! Form::open(['url'=>'randevu-bilgileri']) !!}
<input type="number" class="hidden" name="id" value="{{ $list->id }}"/>
<input type="number" class="hidden" name="doctor_id" value="{{ $list->doctor_id }}"/>
<input type="number" class="hidden" name="hour_id" value="{{ $list->hour_id }}"/>
<button type="submit" title="Güncelle/Doktor Ata" class="btn btn-primary glyphicon glyphicon-transfer"></button>
{!! Form::close() !!}
</center>
</td>
<?php