BLACKSITE
:
216.73.217.60
:
89.163.214.37 / samaistanbool.com
:
Linux da1 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
:
/
home
/
samaist1
/
public_html
/
Upload File:
files >> /home/samaist1/public_html/std_info.php
<?php session_start(); include('server/connection.php'); $sql2="SELECT *FROM info "; $result2 = mysqli_query($conn,$sql2); $row2=mysqli_fetch_array($result2); $sql3=" SELECT *from degree2 where std_id=".$_SESSION['std_id']; $result3 = mysqli_query($con,$sql3); $sql4=" SELECT sum(pay_amount) as amount from payment2 where std_id=".$_SESSION['std_id']; $result4 = mysqli_query($con,$sql4); $row4=mysqli_fetch_array($result4); ?> <?php include('layouts/header.php') ?> <style> td{ border: 0.5px solid #cdcbcb; padding: 3px; padding-left: 8px; } p{ margin-bottom: 0 !important; } </style> <!--clothes --> <section id="featured " class="my-3 py-3"> <div class="text-center mt-5 py-3"> <h3 style="text-align: center;">بيانات الطالب <i class="fa-solid fa-circle-user"></i></h3> <hr class="mx-auto"> </div> <div class="row mx-auto container-fluid " style="direction:rtl;box-shadow: 0 1px 6px -1px #4f4949;"> <div class="product text-center col-lg-6 col-md-6 col-sm-12 productn"style="box-shadow: none;margin: 0;" > <p style="text-align: right;">اسم الطالب : <?php echo $_SESSION['std_name']; ?></p> <p style="text-align: right;">الرقم الاكاديمى : <?php echo $_SESSION['std_number']; ?></p> <p style="text-align: right;">اسم الكورس : <?php echo $_SESSION['std_dept']; ?></p> <p style="text-align: right;">رقم الهاتف : <?php echo $_SESSION['std_phone']; ?></p> <p style="text-align: right;">الرسوم الدراسية :</p> <table id="example" class=" table-hover" style="width: 100%;"> <thead style="background-color: #232c35;color: white;"> <tr> <th>المبلغ</th> <th>الدفوع</th> <th>المتبقى</th> </tr> </thead> <tbody> <tr> <td><span><?php echo $_SESSION['std_price'] ?></span></td> <td><span><?php echo $row4['amount'] ?></span></td> <td><span><?php echo $_SESSION['std_price'] - $row4['amount'];$x=$_SESSION['std_price'] - $row4['amount']; ?></span></td> </tr> </tbody> </table> </div> <div class="product text-center col-lg-6 col-md-6 col-sm-12 productn"style="box-shadow: none;margin: 0;" > <p style="text-align: right;">نتيجة الكورس :</p> <?php if($x!=0){ ?> <h4 style="color:red;text-align: center;">الرجاء سداد الرسوم الدراسية لعرض النتيجة</h4> <?php } else{ ?> <table id="example" class=" table-hover" style="width: 100%;"> <thead style="background-color: #232c35;color: white;"> <tr> <th style="width: 28px;border-left: 0.5px white;">#</th> <th style="border-left: 0.5px white;">المادة</th> <th>التقدير</th> </tr> </thead> <tbody> <?php $i=1;$sum=0; while ($row3=mysqli_fetch_array($result3)) { ?> <tr> <td><span><?php echo $i; ?></span></td> <td><span><?php echo $row3['course'] ?></span></td> <td style="<?php if($row3['deg']<50) { ?>background-color: #e99b9b;<?php } ?>"><span><?php if($row3['deg']>=80){$c='ممتاز';} if($row3['deg']<80 && $row3['deg']>=70){$c='جيد جداً';} if($row3['deg']<70 && $row3['deg']>=60){$c='جيد';} if($row3['deg']<60 && $row3['deg']>=50){$c='مقبول';} if($row3['deg']<50){$c='رسوب';} $sum=$sum+$row3['deg'];echo $c; ?></span></td> </tr> <?php $i++; } ?> <tr> <td></td> <td>المعدل</td> <td> <?php echo number_format(($sum/(($i-1)*100))*100,2); ?> % </td> </tr> <tr> <td style="background-color: #cdc8c8;"></td> <td style="background-color: #cdc8c8;">التقدير العام</td> <?php if(($sum/($i-1))%100>=80){$c='ممتاز';} if(($sum/($i-1))%100<80 && ($sum/($i-1))%100>=70){$c='جيد جدا';} if(($sum/($i-1))%100<70 && ($sum/($i-1))%100>=60){$c='جيد';} if(($sum/($i-1))%100<60 && ($sum/($i-1))%100>=50){$c='مقبول';} if(($sum/($i-1))%100<50){$c='ل';} $sum=$sum+($sum/($i-1))%100; ?> </td> <td style="background-color: #cdc8c8;"><?php echo $c;?> </td> </tr> </tbody> </table> <?php } ?> </div> </div> </section> <?php include('layouts/footer.php') ?>