Yangi formatda davom etish uchun: https://uzfor.net/view.php?act=post&id=90737
Postga havola
Akbarali [2384] [off]
Birorkim topishiga ko`zim yetmagani uchun yozaman
1 daqiqa 16 soniyadan keyin yozdi:
Keyndi savol talab bo`lganida taklif beriladi. Birortaodam qatnashmasa faqat o`zim yozganimdan foyda yo`q
<?php $group = $data->group; $mavzular = $data->mavzular; $stasis = $data->stasis; $i = '1'; ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Vazifa-1</title> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> </head> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> <body> <div class="container-fluid"> <div class="card-body shadow"> <style> td {text-align: center; vertical-align: middle;} .table-bordered td, .table-bordered th{border: 1px solid #afafaf;} .table thead th{border: 1px solid #afafaf;} </style> <h2><?=$group->group_name?></h2> <hr> <nav> <div class="nav nav-tabs" id="nav-tab" role="tablist"> <a class="nav-item nav-link active" id="nav-home-tab" data-toggle="tab" href="#nav-home" role="tab" aria-controls="nav-home" aria-selected="true">Home</a> <?php foreach($mavzular as $mavzu):?> <a class="nav-item nav-link" data-toggle="tab" role="tab" id="theme<?=$mavzu->theme_id;?>" href="#theme_id<?=$mavzu->theme_id;?>" aria-controls="theme_id<?=$mavzu->theme_id;?>" aria-selected="false"><?=$mavzu->day;?></a> <?php endforeach;?> </div> </nav> <div class="tab-content" id="nav-tabContent"> <div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab"> <hr> <table class="table table-bordered table-striped table-hover"> <tbody> <tr> <td>Guruh nomi</td> <td><?=$group->group_name;?></td> </tr> <tr> <td>O`qituvchining F.I.O</td> <td><?=$group->teachers;?></td> </tr> <tr> <td>Ochilgan sanasi</td> <td><?=$group->opening_time;?></td> </tr> <tr> <td>Yopilish sanasi</td> <td><?=$group->closing_time;?></td> </tr> <tr> <td>Haftada qaysi kunlari dars</td> <td> <?php foreach($group->week as $week): ?> <?=$week;?>, <?php endforeach; ?> </td> </tr> <tr> <td>Dars boshlanish soati</td> <td><?=$group->hours_open;?></td> </tr> <tr> <td>Dars tugash soati</td> <td><?=$group->hours_close;?></td> </tr> </tbody> </table> </div> <?php foreach($stasis as $item): /*d($item); */?> <div class="tab-pane fade" id="theme_id<?=$item->theme_id;?>" role="tabpanel" aria-labelledby="nav-profile-tab"> <hr> <table class="table table-bordered table-striped table-hover"> <tbody> <tr> <td>Dars o`tilgan sana</td> <td><?=$item->day;?></td> </tr> <tr> <td>O`tilgan mavzu</td> <td><?=$item->mavzu;?></td> </tr> <tr> <td>Berilgan uyga vazifa</td> <td><?=$item->vazifa;?></td> </tr> </tbody> </table> <hr> <table class="table table-bordered table-hover"> <thead> <tr> <th scope="col" rowspan="2" style="text-align: center;vertical-align: middle;">ID</th> <th scope="col" rowspan="2" style=" text-align: center; vertical-align: middle;">Familiya Ism Otasining ismi</th> <th scope="col" colspan="6" style=" text-align: center; vertical-align: middle;"><?=$item->day;?></th> </tr> <tr> <td style=" text-align: center; vertical-align: middle;">Keldi</td> <td style=" text-align: center; vertical-align: middle;">Ball</td> <td style=" text-align: center; vertical-align: middle;">T-Ball</td> </tr> </thead> <tbody> <?php foreach($item->student as $student): $num = $i++; ?> <tr> <td><?=$student->student_id?></td> <td><?=$student->fio?></td> <?php if ($student->kelgan == '1') { ?> <td ><i class="fas fa-user-check"></td> <?php } else { ?> <td style=" background: red; "><i class="fas fa-user-alt-slash" style=" color: white; "></td> <?php } ?> <td><?=$student->ball?></td> <td><?=$student->teacher_ball?></td> </tr> <?php endforeach;?> </tbody> </table> </div> <?php endforeach;?> </div> <hr> </div> </div> </body> </html>
1 daqiqa 16 soniyadan keyin yozdi:
Keyndi savol talab bo`lganida taklif beriladi. Birortaodam qatnashmasa faqat o`zim yozganimdan foyda yo`q