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


PHP Client::clientDoctors方法代碼示例

本文整理匯總了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>
開發者ID:ufukpalavar52,項目名稱:laravel-php-projelerim,代碼行數:31,代碼來源:updateAppointmentForm.blade.php

示例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 
開發者ID:ufukpalavar52,項目名稱:laravel-php-projelerim,代碼行數:31,代碼來源:futureClientsPanel.blade.php


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