Yangi formatda davom etish uchun: https://uzfor.net/90725-php-da-berilgan-masalalarni-yeching.html
PHP-da berilgan masalalarni yeching
Mavzu fayllari (2)
Xabarlar
Adashmasam bunday mavzu bor edi buni bilaman lekin yangi mavzu ochib qo`yaqoldim.
Hullas mavzuni maqsadi men savol tashlayman siz PHP-da berilgan savol masala muammoni yechasiz.
Qanday foyda: Har bir berilgan savolga ozroq pul beriladi. Bu muhim emas muhimi sizning bilim darajangizni aniqlab olamiz.
Hullas mavzuni maqsadi men savol tashlayman siz PHP-da berilgan savol masala muammoni yechasiz.
Qanday foyda: Har bir berilgan savolga ozroq pul beriladi. Bu muhim emas muhimi sizning bilim darajangizni aniqlab olamiz.
UZFOR.UZ forumida yangi mavzu ochildi, iltimos forum qoidalari bilan tanishib chiqing, qoidalar buzilish holatlari aniqlansa, profilingiz bloklanadi!
1 savol.
1 bal 1 rubl hisobida. 10 balga yetganida pulni WMR usulida tashlab beriladi.
Berilgan massivni rasmdagi shakilga keltiring. (Rasm pastda. Massiv json holatida berilgan)
html kodlar tayyor. (Da sizga qulay bo`lsin dedim.) Siz html kodlarga jsondagi malumotlarni yozingiz kerak.
Muhlat 72 soat. Hech kim javob bermasa o`zim qilgan usulni tashlayman.
Mukofot 7 bal.
33 soniyadan keyin yozdi:
Masalalarning barcha ma'lumot va fayllari zipda joylashgan
40 soniyadan keyin yozdi:
Masalalarning barcha ma'lumot va fayllari zipda joylashgan
9 soat 8 daqiqa 11 soniyadan keyin yozdi:
Foreach ichida foreach ishlatasiz. Men qilgan namuna
1 bal 1 rubl hisobida. 10 balga yetganida pulni WMR usulida tashlab beriladi.
Berilgan massivni rasmdagi shakilga keltiring. (Rasm pastda. Massiv json holatida berilgan)
html kodlar tayyor. (Da sizga qulay bo`lsin dedim.) Siz html kodlarga jsondagi malumotlarni yozingiz kerak.
Muhlat 72 soat. Hech kim javob bermasa o`zim qilgan usulni tashlayman.
Mukofot 7 bal.
33 soniyadan keyin yozdi:
Masalalarning barcha ma'lumot va fayllari zipda joylashgan
40 soniyadan keyin yozdi:
Masalalarning barcha ma'lumot va fayllari zipda joylashgan
9 soat 8 daqiqa 11 soniyadan keyin yozdi:
Foreach ichida foreach ishlatasiz. Men qilgan namuna
+ (1): Fokuschi,
Biriktirilgan fayllar [1]:
— vazifa_1.zip (180.51 KB) (162 ↴)
— vazifa_1.zip (180.51 KB) (162 ↴)
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
Shunda 3 ta json bor
1) json da sizga kelayotgan json siz uni 2 jsondan foydalanib 3 json shakliga o`tkazing
P/S: qila olmaganimdan emas sizlarning yechimingizni ko`rmoqchi bo`lganim uchun tashlayapman.
1) json da sizga kelayotgan json siz uni 2 jsondan foydalanib 3 json shakliga o`tkazing
P/S: qila olmaganimdan emas sizlarning yechimingizni ko`rmoqchi bo`lganim uchun tashlayapman.
Biriktirilgan fayllar [1]:
— arrays.txt (12.92 KB) (85 ↴)
— arrays.txt (12.92 KB) (85 ↴)
Tavsiya etamiz:
- Hoziroq maydonlarni to'ldiring va reklamangizni joylashtiring!
Mavzuga oid xabarlar soni: 6 ta
So'ngi faollik vaqti: 08:19:25, 22 Jul 2022
Mavzu moderatori: Akbarali