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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/federalpolyede.edu.ng/httpdocs/eace_entranceForm/applybb.php
<?php
session_start();
require('../connect.php');
$db=db_connect();
if(isset($_GET['user'])){
    $formNo=$_GET['formNo'];
    $usern=$_GET['user'];
$sql="select * from entrancetable where transID='$usern' and formNo='$formNo'";
$result=$db->query($sql);
$result_fetch=$result->fetch();
$num =$result->rowCount();
if ($num==1 ) {
    $_SESSION['transID'] =$transID= $result_fetch['transID'];
    $_SESSION['surname']=$surname = strtoupper($result_fetch['surname']);
    $_SESSION['otherNames'] =$otherNames= $result_fetch['othernames'];
    $_SESSION['dept'] =$dept= strtoupper($result_fetch['dept']);
    $_SESSION['formType']=$formType = $result_fetch['formType'];
    $_SESSION['email']=$email = $result_fetch['email'];
    $_SESSION['gsm'] = $gsm=$result_fetch['gsm'];
    $_SESSION['formNo'] =$formNo= $result_fetch['formNo'];
}
}else {
    $transID = $_SESSION['transID'];
    $surname = $_SESSION['surname'];
    $otherNames = $_SESSION['otherNames'];
    $dept = $_SESSION['dept'];
    $gsm = $_SESSION['gsm'];
    $email = $_SESSION['email'];
    $formType = $_SESSION['formType'];
    $formNo = $_SESSION['formNo'];
}

//echo $transID.'_'.$formType;

$s="select * from remitaorderform where (regNo='$transID' or regNo='$formNo') and paymenttype='$formType' and transApproved='True'";
$r=$db->query($s);
$n=$r->rowCount();
/*echo $n;
echo $transID;
echo $formType;
echo $formNo;
*/
//die();

if ($n<1){
    //if ($formType=='ND Screening'){
     //   die("Sorry, the UTME Screening Form Has Closed");
  //  }
   header('location:'.'remitaFormPayment.php');
}
if ($n>0) {
    $sql_form = $db->query("select * from entrancetable where transID='$transID' and formNo=''");
    $sql_form_count = $sql_form->rowCount();
    if ($sql_form_count == 1) {
       header('location:'.'paymentHistoryForm.php');// echo '<div style="font-size: "25""><a href="paymentHistoryForm.php"> Click to Generate Your Form Number, <br>Kindly click on Re-Query for Approved Transaction</a></div>';
    }
}

if ($formType=='preForm'){
    $formType='PRE ND';
}elseif ($formType=='hndForm') {
    $formType = 'Higher Diploma FT';
}elseif ($formType=='utmeForm') {
    $formType = 'ND Screening';
}elseif ($formType=='dptForm') {
    $formType = 'Daily Part Time';
}elseif ($formType=='ptForm') {
    $formType = 'ND PART TIME';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="../Templates/mainTemp.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
    <!-- 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">

    <!-- 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]-->
    <script src="../../chat/js/libs/jquery-1.7.2.min.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Federal Poly Ede | Admission Form</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<script src="../SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />

<!-- InstanceEndEditable -->
<style type="text/css">
body {
	background-color: #CFD1DE;
	background-image: url(../images/logo2fade.png);
}
</style>
</head>
<body>
<table width="90%" align="center" cellpadding="3" cellspacing="5" background="../images/ba.png" style="background-repeat: no-repeat">
  <tr>
    <td>
      <table width="100%" cellspacing="5" cellpadding="3">

      <tr>
        <td><table width="100%" cellspacing="5" cellpadding="3">
          <tr align="center">
            <td><!-- InstanceBeginEditable name="EditRegion3" -->
                <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>
                <!-- <script type="text/javascript" language="javascript" src="../js/scriptPicture.js"></script>-->
                <div class="container">
                    <div class="row">
                        <div class="col-md-10 col-md-offset-1">
                            <div class="login-panel panel panel-default">
                                <div class="panel-heading">
                                    <h3 class="panel-title">Registration Form</h3> <div align="right"><?php echo $surname .' ' .$otherNames.'('.$formNo.')' ;?><a href="logout.php"> Logout</a></div>
                                </div>
                                <div class="panel-body">
                                    <form role="form" action="apply_process.php" method="post" enctype="multipart/form-data" name="form1">
                                        <fieldset>
                                            <div class="form-group"></div>
                                            <div id="TabbedPanels1" class="TabbedPanels">
                                                <ul class="TabbedPanelsTabGroup">
                                                    <li class="TabbedPanelsTab" tabindex="0">Personal Data</li>
                                                    <li class="TabbedPanelsTab" tabindex="1">Next of Kin/Sponsor's Data</li>
                                                    <li class="TabbedPanelsTab" tabindex="2">Secondary School Data</li>
                                                    <li class="TabbedPanelsTab" tabindex="3">O'Level Result</li>
                                                </ul>
                                                <div class="TabbedPanelsContentGroup">
                                                    <div class="TabbedPanelsContent">

                                                        <table width="90%" align="center" cellpadding="3" cellspacing="5">
                                                            <tr>
                                                                    <?php

                                                                    if (isset($_GET['id'])){
                                                                        if ($_GET['id']=='o_level'){
                                                                            echo '<td colspan="6"  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';
                                                                        }
                                                                        if ($_GET['id']=='mainData'){
                                                                            echo '<td colspan="6"  class="alert alert-danger"  align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>Fill AllRequired Fields';
                                                                        }
                                                                        if ($_GET['id']=='passport'){
                                                                            echo '<td colspan="6"  class="alert alert-danger"  align="center" ><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>Passport Required';
                                                                        }
                                                                        if ($_GET['id']=='O_Level'){
                                                                            echo '<td colspan="6"  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';
                                                                        }
                                                                        if ($_GET['id']=='O_Level1'){
                                                                            echo '<td colspan="6"  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';
                                                                        }

                                                                    }
                                                                    ?>



                                                                </td></tr>
                                                            <tr><td>
                                                                    <table width="100%" cellspacing="5" cellpadding="3">
                                                                        <tr><td>Programme</td>
                                                                            <td>&nbsp;</td><td><b><?php echo $formType;?>
                                                                                    <input type="hidden" name="level" id="level" value="<?php echo $formType;?>" /></b></td>
                                                                            <td rowspan="3" id="load"><p>&nbsp;</p><p><label for="fileField"></label> </p>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>School</td>
                                                                            <td>&nbsp;</td>
                                                                            <td><label for="mStatus"></label>
                                                                                <select name="txtschools" id="schoolNo" class="form-control">
                                                                                    <?php

                                                                                    $query="SELECT * FROM dept where sn='$dept'";
                                                                                    $rs=$db->query($query);
                                                                                    $record_fetch=$rs->fetch(PDO::FETCH_BOTH);

                                                                                    for($i=0;$i<$rs->rowCount();$i++){
                                                                                       // $row=mysql_fetch_row($rs);
                                                                                        echo '<option>'.$record_fetch['dSchool'].'</option>';
                                                                                    }
                                                                                    ?>
                                                                                </select>
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>Department</td>
                                                                            <td>&nbsp;</td>
                                                                            <td id="dept">
                                                                                <select name="dept" id="dept"
                                                                                        class="form-control">
                                                                                    <option><?php echo $record_fetch['dOption'] ;?></option>
                                                                                </select></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>Surname</td>
                                                                            <td>&nbsp;</td>
                                                                            <td><label for="surname"></label>
                                                                                <input type="hidden" name="surname" value="<?php echo $surname;?>" />
                                                                                <input type="text" class="form-control" name="surname" id="surname" required="required" disabled="disabled" value="<?php echo $surname;?>" /></td>
                                                                            <td id="load"><label for="fileField">
                                                                                    <input type="hidden" name="MAX_FILE_SIZE" value="1000000" />
                                                                                    <input type="hidden" name="username1" id="username1"  />
                                                                                    <input name="user_file1" type="file" id="user_file1"  />
                                                                                    <br />
                                  *Passport must be JPEG format and not more than 50KB. </label></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>Other Names</td>
                                                                            <td>&nbsp;</td>
                                                                            <input type="hidden" name="otherName" value="<?php echo $otherNames;?>" />
                                                                            <td colspan="2"><input type="text" class="form-control" name="otherName" disabled="disabled" id="otherName" required="required" value="<?php echo $otherNames;?>" /></td>
                                                                        </tr>
                                                                        <tr><td colspan="4">

                                                                                    <?php
                                                                            if ($formType =='ND Screening'){
                                                                                ?>
                                                                        <tr><td width="20%" >Jamb Reg No</td>
                                                                            <td width="2%">&nbsp;</td>
                                                                            <td width="78%" >
                                                                                <input type="text" name="jambNo" class="form-control" id="jambNo" maxlength="10" /></td>
                                                                        </tr>
                                                                        <tr>
                                    <td>Jamb Score</td>
                                    <td>&nbsp;</td>
                                    <td >

                                 <input type="text" name="jambScore" id="jambScore" class="form-control" maxlength="3" disabled="disabled"/>
                                    </td>                              </tr>
                                <?php
								}
								?>


                                <?php
								if ($formType=='Higher Diploma FT'){
									?>
                                    <tr><td width="20%" >Jamb Reg No</td>
                                        <td width="2%">&nbsp;</td>
                                        <td width="78%" >
                                            <input type="text" name="jambNo" class="form-control" id="jambNoHND" maxlength="10" /></td>
                                    </tr>
                                    <tr>
                                    <td >ND Matric Number</td>
                                    <td >&nbsp;</td>
                                    <td colspan="2">
                                      <input type="text" class="form-control" name="ndMatNo" /></td>
                                    </tr>
                                    <tr>
                                        <td>Institution's Name</td>
                                        <td>&nbsp;</td>
                                        <td colspan="2">
                                            <input type="text" class="form-control" name="ndinst" /></td>
                                    </tr>
                                    <tr>
                                        <td>Course Offered</td>
                                        <td>&nbsp;</td>
                                        <td colspan="2">
                                            <input type="text" class="form-control" name="nddept"  /></td>
                                    </tr>
                                    <tr>
                                        <td>ND Grade</td>
                                        <td>&nbsp;</td>
                                        <td colspan="2">
                                            <select name="ndResult" id="ndResult" class="form-control">
                                                <option>Distinction</option>
                                                <option>Upper Credit</option>
                                                <option>Lower Credit</option>
                                                <option>Pass</option>
                                            </select></td>
                                    </tr>
                                    <tr>
                                        <td>Year of Graduated</td>
                                        <td>&nbsp;</td>
                                        <td colspan="2">
                                            <input type="date" class="form-control" name="ndDate"  /></td>
                                    </tr>
                                    <tr>
                                        <td>IT Placement Name</td>
                                        <td>&nbsp;</td>
                                        <td colspan="2">
                                        <input type="text" class="form-control" name="ndit" id="inst" /></td>
                                    </tr>
                                    <tr>
                                        <td>Address</td>
                                        <td>&nbsp;</td>
                                        <td colspan="2">
                                        <input type="text" class="form-control" name="nditaddr" id="inst" /></td>
                                    </tr>
                                    <tr>
                                        <td>From</td>
                                        <td>&nbsp;</td>
                                        <td colspan="2">
                                        <input type="date" class="form-control" name="nditF" id="inst" /></td>
                                    </tr>
                                    <tr>
                                        <td>To</td>
                                        <td>&nbsp;</td>
                                        <td colspan="2">
                                        <input type="date" class="form-control" name="nditT" id="inst" /></td>
                                    </tr>

                                <?php
								}
								?>
                                                                        </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>Sex</td>
                                                                            <td>&nbsp;</td>
                                                                            <td colspan="2"><label for="sex"></label>
                                                                                <select name="sex" id="sex" class="form-control">
                                                                                    <option>Male</option>
                                                                                    <option>Female</option>
                                                                                </select></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td>Nationality</td>
                                                                            <td>&nbsp;</td>
                                                                            <td colspan="2"><input type="text" name="nationality" class="form-control" id="nationality" required="required" /></td>
                                                                        </tr>
                                                                        <tr>
                                <td>State of Origin</td>
                                <td>&nbsp;</td>
                                <td colspan="2"><select class="form-control" name="txtstate" id="state">
                                  <?php
			  //require('../connect.php');
			  $query="SELECT distinct state FROM states";
				$rs=$db->query($query);
				echo '<option>'.'Select Option...'.'</option>';
				//for($i=0;$i<mysql_num_rows($rs);$i++){
                    while ($row = $rs->fetch (PDO::FETCH_NUM)){
                       // $row=mysql_fetch_row($rs);

					echo '<option>'.$row[0].'</option>';
				}
			  ?>
                                </select></td>
                              </tr>
                              <tr>
                                <td>Local Govt. Area</td>
                                <td>&nbsp;</td>
                                <td colspan="2" id="lga"><select name="lga" class="form-control" id="lga">
                                  <option>Select Option...</option>
                                </select></td>
                              </tr>
                              <tr>
                                <td>Home Town</td>
                                <td>&nbsp;</td>
                                <td colspan="2"><input type="text" name="town" id="town" required="required" class="form-control" /></td>
                              </tr>
                              <tr>
                                <td>Marital Status</td>
                                <td>&nbsp;</td>
                                <td colspan="2"><label for="mStatus"></label>
                                  <select name="mStatus" id="mStatus" class="form-control">
                                    <option>Single</option>
                                    <option>Married</option>
                                    <option>Divorce</option>
                                    <option>Separate</option>
                                    <option>Widow</option>
                                  </select></td>
                              </tr>
                              <tr>
                                <td>Religion</td>
                                <td>&nbsp;</td>
                                <td colspan="2"><label for="religion"></label>
                                  <select name="religion" id="religion" class="form-control">
                                    <option>Christianity</option>
                                    <option>Islam</option>
                                    <option>Traditional</option>
                                    <option>Others</option>
                                  </select></td>
                              </tr>
                              <tr>
                                <td>Contact Address</td>
                                <td>&nbsp;</td>
                                <td colspan="2"><label for="address"></label>
                                  <textarea name="address" id="address" cols="25" rows="3" class="form-control"></textarea></td>
                              </tr>
                              <tr>
                                <td>E-mail</td>
                                <td>&nbsp;</td>
                                <td colspan="2">
                                <label for="email"></label>
                                    <input type="hidden" name="email" value="<?php echo $email;?>" />
                                <input type="text" name="email" class="form-control" id="email" value="<?php echo $email;?>" disabled="disabled" />

                              </tr>
                              <tr>
                                <td>Phone Number</td>
                                <td>&nbsp;</td>
                                <td colspan="2">
                                <label for="phoneNo"></label>
                                    <input type="hidden" name="phoneNo" value="<?php echo $gsm;?>" />
                                <input type="text" class="form-control" name="phoneNo" id="phoneNo" value="<?php echo $gsm;?>" maxlength="11"/>
</td>
                              </tr>
                              <tr>
                                <td>Date of Birth</td>
                                <td>&nbsp;</td>
                                <td colspan="2">
                                <input type="date" class="form-control" name="dob" id="dob" />
                               </td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                                <td>&nbsp;</td>
                                <!--<td colspan="2" align="right"><input type="button" name="button3" id="button3" value="Next>>>" class="btn-primary btn-lg" /></td>-->
                              </tr>

                            </table>



                    </table>
                  </div>
                  <div class="TabbedPanelsContent">
                    <table width="90%" align="center" cellpadding="3" cellspacing="5">
                      <tr>
                        <td>
                          <table width="100%" cellspacing="5" cellpadding="3">
                            <tr>
                              <td>Parent/Guardian's Name</td>
                              <td>&nbsp;</td>
                              <td><input type="text" class="form-control" name="gName" id="name1" required="required" /></td>
                            </tr>
                            <tr>
                              <td>Parent/Guardian's Address</td>
                              <td>&nbsp;</td>
                              <td><label for="address1"></label>
                                <textarea name="gAddress" class="form-control" id="gAddress" cols="25" rows="3"></textarea></td>
                            </tr>
                            <tr>
                              <td>Parent/Guardians' Phone Number</td>
                              <td>&nbsp;</td>
                              <td>
                                  <label for="gsm1"></label>
                                  <input type="tel" name="gGsm" id="gsm1" class="form-control "  maxlength="11"/>
                              </td>
                            </tr>
                              <tr>
                                  <td>Relationship</td>
                                  <td>&nbsp;</td>
                                  <td>
                                      <select name="gRel" id="ndResult" class="form-control">
                                          <option>Parent</option>
                                          <option>Aunty</option>
                                          <option>Spouse</option>
                                          <option>Brother</option>
                                          <option>Sister</option>
                                      </select>
                                  </td>
                              </tr>
                            <tr>
                              <td>Next of Kin's Name</td>
                              <td>&nbsp;</td>
                              <td><input type="text" class="form-control" name="nName" id="name2" required="required" /></td>
                            </tr>
                            <tr>
                              <td>Next of Kin's Address</td>
                              <td>&nbsp;</td>
                              <td><textarea name="nAddress" class="form-control" id="address2" cols="25" rows="3"></textarea></td>
                            </tr>
                            <tr>
                              <td>Next of Kin's Phone Number</td>
                              <td>&nbsp;</td>
                              <td>
                                  <input type="text" class="form-control" name="nGsm" id="gsm2" maxlength="11" />
                              </td>
                            </tr>
                              <tr>
                                  <td>Relationship</td>
                                  <td>&nbsp;</td>
                                  <td>
                                      <select name="nRel" id="ndResult" class="form-control">
                                          <option>Parent</option>
                                          <option>Aunty</option>
                                          <option>Spouse</option>
                                          <option>Brother</option>
                                          <option>Sister</option>
                                      </select>
                                  </td>
                              </tr>
                            <tr>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                             <!-- <td colspan="2" align="right"><input type="submit" class="btn-lg btn-primary" name="button" id="button" value="Next>>>" /></td>-->
                            </tr>

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

                    </table>

                  </div>
                  <div class="TabbedPanelsContent">

                      <table width="90%" align="center" cellpadding="3" cellspacing="5">
                        <tr>
                          <td><table width="100%" cellspacing="5" cellpadding="3">
                            <tr>
                              <td>Secondary School Name</td>
                              <td>&nbsp;</td>
                              <td><input class="form-control" type="text" name="sname" id="sname" required="required" /></td>
                            </tr>
                            <tr>
                              <td>Year Started</td>
                              <td>&nbsp;</td>
                              <td><label for="select41"></label>
                                <select class="form-control" name="sfrom" id="sfrom">
                                  <?php
							  for ($i=2000;$i<=2016;++$i){ echo '<option>'.$i.'</option>';}?>
                                </select></td>
                            </tr>
                            <tr>
                              <td>Year of Graduation</td>
                              <td>&nbsp;</td>
                              <td><label for="select42"></label>
                                <select name="sto" id="sto" class="form-control">
                                  <?php
							  for ($i=2000;$i<=2016;++$i){ echo '<option>'.$i.'</option>';}?>
                                </select></td>
                            </tr>
                            <tr>
                              <td>&nbsp;</td>
                             <!-- <td colspan="2" align="right"><input type="submit" class="btn-lg btn-primary" name="button" id="button" value="Next>>>" /></td>-->
                              </tr>
                          </table></td>

                        </tr>

                      </table>

                  </div>
                  <div class="TabbedPanelsContent" id="tab3">

                      <table width="100%" cellspacing="5" cellpadding="3">
                        <tr><td style="color: #FF0000" colspan="6"><strong>Note: You are required to enter ONLY required five 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 =='ND Screening'){
                                      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 =='ND Screening'){
                                                  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>';
                                              }
                                              ?>


                                              <tr>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                              <td><input type="submit" name="button2" id="button2"  class="btn-primary btn-lg" value="Submit" /></td>
                                                  </tr>
                                              </table>
                                      </td>
                                      </tr>
                                  </table>
                            </td>
                            </tr>
                          </table>
                      </div>
          </div></div>
                                        </fieldset>
                                    </form>
                                </div>
                            </div>
                            </div>
                        </div>
                    </div>
                </td>
              </tr>
                </table>
            </td>
          </tr>
          </table>
        </td>
      </tr>
    </table>

              <script type="text/javascript">
var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
              </script>
            <!-- InstanceEndEditable -->
</body>

<!-- jQuery -->
<script src="../bower_components/jquery/dist/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

<!-- Metis Menu Plugin JavaScript -->
<script src="../bower_components/metisMenu/dist/metisMenu.min.js"></script>

<!-- Custom Theme JavaScript -->
<script src="../dist/js/sb-admin-2.js"></script>

<!-- InstanceEnd --></html>

Youez - 2016 - github.com/yon3zu
LinuXploit