403Webshell
Server IP : 172.64.80.1  /  Your IP : 172.69.17.154
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/biodata_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 stddata where formNo='$formNo'");
$sql_count=$sql->rowCount();
$sql_fetch=$sql->fetch(PDO::FETCH_BOTH);
$formTypea=$sql_fetch['level'];

if ($formTypea=='preForm'){
    $formType='Pre National Diploma';
}elseif ($formTypea=='hndForm') {
    $formType = 'Higher National Diploma FT';
}elseif ($formType=='hdptForm') {
    $formType = 'Higher National Diploma DPT';
}elseif ($formTypea=='utmeForm') {
    $formType = 'National Diploma (FT) Screening';
}elseif ($formTypea=='dptForm') {
    $formType = 'National Diploma (Daily Part Time)';
}elseif ($formTypea=='ptForm') {
    $formType = 'National Diploma (Regular Part Time)';
}

$school=$sql_fetch['school'];
$dept=$sql_fetch['dept'];
$surname=$sql_fetch['surname'];
$otherNames=$sql_fetch['otherNames'];
$sex=$sql_fetch['sex'];
$gsm=$sql_fetch['gsm'];
$nation=$sql_fetch['nationality'];
    $state=$sql_fetch['state'];
    $lga=$sql_fetch['lga'];
$hTown=$sql_fetch['homeTown'];
$religion=$sql_fetch['religion'];
$address=$sql_fetch['address'];
$email=$sql_fetch['email'];
$dob=$sql_fetch['dob'];
$mStatus=$sql_fetch['maritalStatus'];
$ndMatNo=$sql_fetch['ndMatNo'];

if ($level=='utmeForm'){
    $jambNo=$sql_fetch['jambNo'];
    $queryJamb="SELECT * FROM jambrelease WHERE jambNo='$jambNo'";
    $rsJamb=$db->query($queryJamb);
    $rsJamb_fetch = $rsJamb->fetch (PDO::FETCH_BOTH);
    $jambScore=$rsJamb_fetch['totalScore'];
   // $jambScore=$sql_fetch['jambScore'];

    $levelid="UTME";
    $mode='FT';
    $ndMatNo='0';
    $ndResult=0;
    $nddept='0';
    $ndinst='0';
    $ndit='0';
    $nditaddr='0';
    $nditF='0';
    $nditT='0';
}elseif($level=='ptForm')  {
    $levelid="PT";
//    $jambNo='0';
    $jambNo=$sql_fetch['jambNo'];
    $jambScore=0;
    $mode='PT';
    $ndMatNo='0';
    $ndResult=0;
    $nddept='0';
    $ndinst='0';
    $ndit='0';
    $nditaddr='0';
    $nditF='0';
    $nditT='0';
}elseif ($level=='dptForm') {
    $levelid="DPT";
//    $jambNo='0';
    $jambNo=$sql_fetch['jambNo'];
    $jambScore=0;
    $mode='PT';
    $ndMatNo='0';
    $ndResult=0;
    $nddept='0';
    $ndinst='0';
    $ndit='0';
    $nditaddr='0';
    $nditF='0';
    $nditT='0';
}elseif($level=='hndForm'){
    $levelid="HND";
    $jambNo=$sql_fetch['jambNo'];
    $jambScore=0;
    $mode='FT';
}elseif($level=='hdptForm'){
    $levelid="HDPT";
    $jambNo=$sql_fetch['jambNo'];
    $jambScore=0;
    $mode='PT';
}elseif($level=='preForm'){
    $levelid="PRE";
    $jambNo='0';
    $jambScore=0;
    $mode='FT';
    $ndMatNo='0';
    $ndResult=0;
    $nddept='0';
    $ndinst='0';
    $ndit='0';
    $nditaddr='0';
    $nditF='0';
    $nditT='0';
}
/**
 * Created by PhpStorm.
 * User: SERVER
 * Date: 08/31/2016
 * Time: 2:12 PM
 */
?>
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-md-offset-3">
                <div class="login-panel panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">Edit Biodata</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="biodata_edit_process.php" method="post" enctype="multipart/form-data" >
<?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>Record Update Successfully</div>';
                                                                        }
    if ($_GET['id']=='2'){
        echo '<div  class="alert alert-danger"  align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>Record Failed to Update</div>';
    }
    if ($_GET['id']=='3'){
        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']=='O_Level1'){
        echo '<div  class="alert alert-danger"  align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>O\'evel Scanned Copy1 is Required</div>';
    }
}
?>
    <div>
        <?php echo '<img src="../passportForm/'. $formNo.'.jpg" alt="" width="105" height="115" class="img-rounded" />';?>
    </div>
    <div>
        <input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
        <input type="hidden" name="username" id="username"  />
        <input name="user_file" type="file" id="user_file"  />
        <br />
        *Passport must be JPEG format and not more than 50KB.
    </div>
    <div><strong>Programme:  <?php   $query1="SELECT * FROM dept where ".$formTypea."=1 order by dOption";?></strong>
               <input name="txtschools" id="schoolNo" class="form-control" value="<?php echo $formType;?>" disabled="disabled">
            </div>

                            <div style="display: none0"><strong>Department/Course of Study:</strong>
                                <select class="form-control" name="dept" id="dept">
                                    <?php
                                    //require('../connect.php');

    $rs1 = $db->query($query1);
    //for($i=0;$i<mysql_num_rows($rs);$i++){
    echo '<option selected>' . $dept . '</option>';
//                                    if ($formTypea<>'utmeForm') {
                                        while ($row = $rs1->fetch(PDO::FETCH_NUM)) {
                                            // $row=mysql_fetch_row($rs);
                                            //

                                            echo '<option>' . $row[3] . '</option>';
                                        }
//                                    }
                                    ?>
                                </select>
                            </div>

            <div>
                <strong>Surname:</strong>
                    <input type="hidden" name="surname" value="<?php echo $_SESSION['surname'];?>" />
                    <input type="text" class="form-control" name="surname" id="surname" required="required" disabled="disabled" value="<?php echo $surname;?>" />
               </div>

            <div><strong>Other Names:</strong>
                <input type="hidden" name="otherName" value="<?php echo $otherNames;?>" />
               <input type="text" class="form-control" name="otherName" disabled="disabled" id="otherName" required="required" value="<?php echo $otherNames;?>" />
           </div>


                    <?php
                    $aOpen=1;
//                    if (($formType =='National Diploma (FT) Screening') or ($formType =='Higher National Diploma (Full Time)')) {
                        if ($aOpen==1){
                    ?>
           <div><strong>Jamb Reg No:</strong>
           <div><strong>Jamb Reg No:</strong>
                    <input type="text" name="jambNo" class="form-control"  id="jambNo" maxlength="14" value="<?php echo $jambNo;?>" /></td>
            </div>
            <div><strong>Jamb Score:</strong>

                    <input type="text" name="jambScore" id="jambScore" class="form-control" maxlength="3" disabled="disabled" value="<?php echo $jambScore;?>"/>
                </div>
            <?php
            }
            ?>


            <?php
            if (($formType=='Higher National Diploma FT')or ($formType=='Higher National Diploma DPT')){
                ?>

               <div>
                   <strong>ND Matric Number:</strong>
                        <input type="text" class="form-control" name="ndMatNo" value="<?php echo $ndMatNo;?>"/></td>
                </div>
                            <?php
                            $ndInfo=$db->query("SELECT * FROM ndresult where formNo='$formNo'");
                            $ndInfo_count=$ndInfo->rowCount();
                            $ndInfo_fetch=$ndInfo->fetch(PDO::FETCH_BOTH);
                            $ndinst=$ndInfo_fetch['inst'];
                            $nddept=$ndInfo_fetch['course'];
                            $ndResult=$ndInfo_fetch['result'];
                            $ndDate=$ndInfo_fetch['rYear'];
                            $ndit=$ndInfo_fetch['itName'];
                            $nditF=$ndInfo_fetch['itFrom'];
                            $nditT=$ndInfo_fetch['itTo'];
                            $nditaddr=$ndInfo_fetch['itAddress'];
                            ?>
               <div><strong>Institution's Name:</strong>
                   <select name="ndinst" id="ndinst" class="form-control">
                       <?php
                       $qtyInst="select * from inst_tb where status=1 order by inst_name";
                       $qtyInst=$db->query($qtyInst);
echo '<option>'.$ndinst.'</option>';
                       while ($row=$qtyInst->fetch(PDO::FETCH_BOTH)){
                           echo '<option>'.$row[2].'</option>';
                       }
                       ?>

                   </select>

<!--                        <input type="text" class="form-control" name="ndinst" value="--><?php //echo $ndinst;?><!--" />-->
               </div>
               <div>
                   <strong>Course Offered:</strong>
                   <input type="text" class="form-control" name="nddept" value="<?php echo $nddept; ?>" />
                </div>
                <div><strong>ND Grade:</strong>
                        <select name="ndResult" id="ndResult" class="form-control" >
                           <option selected> <?php echo $ndResult; ?></option>
                            <option>Distinction</option>
                            <option>Upper Credit</option>
                            <option>Lower Credit</option>
                            <option>Pass</option>
                        </select>
               </div>
<div><strong>Year of Graduate</strong>
                        <input type="date" class="form-control" name="ndDate" value="<?php echo $ndDate;?>"  />
    </div>
               <div><strong>IT Placement Name</td></strong>
                        <input type="text" class="form-control" name="ndit" id="inst" value="<?php echo $ndit;?>"  />
                </div>
               <div><strong>Address:</strong>
                        <input type="text" class="form-control" name="nditaddr" id="inst" value="<?php echo $nditaddr ;?>" />
                </div>
<div><strong>From:</strong>
    <input type="text" class="form-control" name="nditF" id="nditF" value="<?php echo $nditF ;?>" />
</div>
<div><strong>To:</strong>
    <input type="text" class="form-control" name="nditT" id="nditT" value="<?php echo $nditT ;?>" />
</div>
            <?php
            }
            ?>
                    <div> <strong> Sex:</strong>
                    <select name="sex" id="sex" class="form-control">
                        <option selected><?php echo $sex ;?></option>
                        <option>Male</option>
                        <option>Female</option>
                    </select>
            </div>
<div><strong>Nationality:</strong>
               <input type="text" name="nationality" class="form-control" id="nationality" required="required" value="<?php echo $nation ;?>"  /></td>
</div>
<div>
                <div><strong>State of Origin:</strong>
               <select class="form-control" name="txtstate" id="state">
                        <?php
                        //require('../connect.php');
                        $query="SELECT distinct state FROM states";
                        $rs=$db->query($query);
                        //for($i=0;$i<mysql_num_rows($rs);$i++){
                        echo '<option selected>'.$state.'</option>';
                        while ($row = $rs->fetch (PDO::FETCH_NUM)){
                            // $row=mysql_fetch_row($rs);
                            echo '<option>'.$row[0].'</option>';
                        }
                        ?>
                    </select>
                </div>
                <div><strong>Local Govt. Area:</strong> <div id="lga"><select name="lga" class="form-control" id="lga">
                       <?php echo '<option selected>'.$lga.'</option>';?>
                        <option>Select Option...</option>
                    </select></div></div>
           <div><strong>Home Town:</strong>
                <input type="text" name="town" id="town" required="required" class="form-control"  value="<?php echo $hTown;?>" />
           </div>
                <div><strong>Marital Status:</strong>
                    <select name="mStatus" id="mStatus" class="form-control">
                        <?php echo '<option selected>'.$mStatus.'</option>';?>
                        <option>Single</option>
                        <option>Married</option>
                        <option>Divorce</option>
                        <option>Separate</option>
                        <option>Widow</option>
                    </select></div>
            <div><strong>Religion:</strong>
                    <select name="religion" id="religion" class="form-control">
                        <?php echo '<option selected>'.$religion.'</option>';?>
                        <option>Christianity</option>
                        <option>Islam</option>
                        <option>Traditional</option>
                        <option>Others</option>
                    </select>
            </div>
                <div><strong>Contact Address:</strong>
                    <textarea name="address" id="address" cols="25" rows="3" class="form-control"><?php echo $address ;?></textarea>
                    </div>
           <div><strong>E-mail:</strong>
                    <input type="text" name="email" class="form-control" id="email" value="<?php echo $email;?>"   value="<?php echo $email;?>" disabled="disabled" />
               </div>
                    <div><strong>Phone Number</strong></td>
                    <input type="text" class="form-control" name="phoneNo" id="phoneNo" value="<?php echo $gsm;?>" maxlength="11" disabled="disabled"/>
            </div>
                    <div><strong>Date of Birth</strong>
                    <input type="date" class="form-control" name="dob" id="dob"  value="<?php echo $dob;?>"/>
              </div>
                    <div><input type="submit" class="btn-primary form-control" value="Update Biodata"></div>
                    </form>
                    </div>
                    </div>
                </div>
    </div>
                    </div>
                </div>
            </div>
        </div>


Youez - 2016 - github.com/yon3zu
LinuXploit