Server IP : 192.124.249.33 / Your IP : 66.248.200.33 Web Server : Apache System : Linux 141.134.66.148.host.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els6.x86_64 #1 SMP Fri Sep 13 13:42:20 UTC 2024 x86_64 User : tarangglobal ( 1001) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/tarangglobal/public_html/cyber/ |
Upload File : |
<?php require_once('pdoconfig.php'); $usr_id=$_SESSION['poster_id']; ?> <div class="col-md-12" style="background: #f2f2f2;padding: 10px 10px 6px 0px;margin-bottom: 20px;"> <div class="col-md-2"> <label class="ui-radio-inline" onclick="mybookings()" style="margin-top: 8px;"><input type="radio" checked="" name="radioEg"> <span>My Courses</span> </label> </div> <div class="col-md-2"> <label class="ui-radio-inline" onclick="approved()" style="margin-top: 8px;"><input type="radio" name="radioEg"> <span>Approved</span> </label> </div> <div class="col-md-2"> <label class="ui-radio-inline" onclick="cancel()" style="margin-top: 8px;"><input type="radio" name="radioEg"> <span>Cancle</span> </label> </div> <div class="col-md-2" style="float:right;text-align:right;"> <label><a href="http://tarangglobal.com/wp/join-course/?act=add" class="btn btn-xs" style="margin-bottom: 0px;">Join New Course</a></label> </div> </div> <div class="col-md-12" id="div-1" style="padding:0px;margin-bottom:5px;"> <table class="table table-bordered table-hover"> <thead> <tr style="background:#efcf4f;font-weight: bold;"> <td class="text-left" style="background:#efcf4f;">#</td> <td class="text-left" style="background:#efcf4f;">Book Date</td> <td class="auto-style1" style="background:#efcf4f;">Course Names</td> <td class="auto-style1" style="background:#efcf4f;">Timing</td> <td class="auto-style1" style="background:#efcf4f;">Fee</td> <td style="width:50px;background:#efcf4f;">Action</td></tr> </thead> <tbody> <?php $i=1; $sql="select *,aa_booking_course.date d1 from aa_booking_course,aa_course_master,aa_user_master where 1=1 and aa_booking_course.crs_id=aa_course_master.crs_id and aa_booking_course.user_id=aa_user_master.usr_id and aa_booking_course.active=0 and aa_booking_course.user_id='$usr_id' order by aa_booking_course.booking_id desc "; //echo $sql; $resb=$action->select($sql); foreach($resb as $id=>$row) { $date=$row['d1']; $newDate = date("d-m-Y", strtotime($date)); ?> <tr > <td class="text-left"><?=$i++;?></td> <td class="text-left"><?=$newDate;?></td> <td class="text-left"><?=$row['crs_name'];?></td> <td class="text-left"><?=$row['time'];?></td> <td class="text-left"><?=$row['fees'];?></td> <td style="white-space: nowrap;text-align:center;"><a class="btn btn-xs" href="http://www.tarangglobal.com/wp/join-course/?booking_id=<?=$row['booking_id']?>&act=edit" style="margin:0;padding: 0;width: 50px;min-width: 50px;text-align: center;font-size: 20px;"><i class="fa fa-edit" style="margin:0px;"></i></a></td> </tr> <?php } ?> </tbody> </table> </div> <div class="col-md-12" id="div-2" style="padding:0px;margin-bottom:5px;display:none;"> <table class="table table-bordered table-hover"> <thead> <tr style="background:#efcf4f;font-weight: bold;"> <td class="text-left" style="background:#efcf4f;">#</td> <td class="text-left" style="background:#efcf4f;">Book Date</td> <td class="auto-style1" style="background:#efcf4f;">Course Names</td> <td class="auto-style1" style="background:#efcf4f;">Timing</td> <td class="auto-style1" style="background:#efcf4f;">Fee</td> <td style="width:50px;background:#efcf4f;">Action</td></tr> </thead> <tbody> <?php $s=1; $sql="select *,aa_booking_course.date d1 from aa_booking_course,aa_course_master,aa_user_master where 1=1 and aa_booking_course.crs_id=aa_course_master.crs_id and aa_booking_course.user_id=aa_user_master.usr_id and aa_booking_course.active=1 and aa_booking_course.user_id=$usr_id order by aa_booking_course.booking_id desc "; // echo $sql; $resb=$action->select($sql); foreach($resb as $id=>$row) { $date=$row['d1']; $newDate = date("d-m-Y", strtotime($date)); ?> <tr> <td class="text-left"><?=$s++;?></td> <td class="text-left"><?=$newDate;?></td> <td class="text-left"><?=$row['crs_name'];?></td> <td class="text-left"><?=$row['time'];?></td> <td class="text-left"><?=$row['fees'];?></td> <td style="white-space: nowrap;text-align:center;"><a class="btn btn-xs" href="http://www.tarangglobal.com/wp/join-course/?booking_id=<?=$row['booking_id']?>&act1=<?=$row['active']?>&act=edit" style="margin:0;padding: 0;width: 50px;min-width: 50px;text-align: center;font-size: 20px;"><i class="fa fa-edit" style="margin:0px;"></i></a></td> </tr> <?php } ?> </tbody> </table> </div> <div class="col-md-12" id="div-3" style="padding:0px;margin-bottom:5px;display:none;"> <table class="table table-bordered table-hover"> <thead> <tr style="background:#efcf4f;font-weight: bold;"> <td class="text-left" style="background:#efcf4f;">#</td> <td class="text-left" style="background:#efcf4f;">Book Date</td> <td class="auto-style1" style="background:#efcf4f;">Course Names</td> <td class="auto-style1" style="background:#efcf4f;">Timing</td> <td class="auto-style1" style="background:#efcf4f;">Fee</td> <td style="width:50px;background:#efcf4f;">Action</td></tr> </thead> <tbody> <?php $p=1; $sql="select *,aa_booking_course.date d1 from aa_booking_course,aa_course_master,aa_user_master where 1=1 and aa_booking_course.crs_id=aa_course_master.crs_id and aa_booking_course.user_id=aa_user_master.usr_id and aa_booking_course.active=2 and aa_booking_course.user_id=$usr_id order by aa_booking_course.booking_id desc "; // echo $sql; $resb=$action->select($sql); foreach($resb as $id=>$row) { $date=$row['d1']; $newDate = date("d-m-Y", strtotime($date)); ?> <tr> <td class="text-left"><?=$p++;?></td> <td class="text-left"><?=$newDate;?></td> <td class="text-left"><?=$row['crs_name'];?></td> <td class="text-left"><?=$row['time'];?></td> <td class="text-left"><?=$row['fees'];?></td> <td style="white-space: nowrap;text-align:center"><a class="btn btn-xs" href="http://www.tarangglobal.com/wp/join_academy.php?booking_id=<?=$row['booking_id']?>&act=edit" style="margin:0;padding: 0;width: 50px;min-width: 50px;text-align: center;font-size: 20px;"><i class="fa fa-edit" style="margin:0px;"></i></a></td> </tr> <?php } ?> </tbody> </table> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script> <script> function mybookings() { $('#div-1').show(); $('#div-2').hide(); $('#div-3').hide(); } function approved() { $('#div-2').show(); $('#div-1').hide(); $('#div-3').hide(); } function cancel() { $('#div-3').show(); $('#div-1').hide(); $('#div-2').hide(); } </script>Private