<?php

 //starting session if not already started
  if (!session_start()) {
      session_start();
  }

  //initialize application
   $_SESSION['reg_app'] = 0;
  /*echo generate_application_number_for_applicants(4);
  //echo get_total_num_applicants(4);

  exit();
*/

$errors = array();
$info = array();
$info_success = array()






?>

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>.::NIGER STATE COLLEGE OF EDUCATION, MINNA (DUAP) APPLICATION PORTAL::. </title>

    <!-- include all the css files, js files, database configuration and all other included stuffss -->
    <?php include_once 'includes/includes.php';
    //echo get_user_username(2);

    //echo dbEscape("'1' or '1' = '1'");

    ?>




</head>

<body><!-- header goes in here -->
   <!-- /header -->


    <!-- container -->
    <div class="container">


            <div  style="height:1px">

            </div>


            <div class="row alert alert-success">

                <div style="float:left; width:80%">

                <h3 class="text-center"><i class="fa fa-graduation-cap"></i> APPLICATION PORTAL (DUAP)</h3>

              </div>


              <div style="float:left; width:20%">


                </div>


            </div><!-- /alert info -->




            <div class="row">
             <div class="col-md-12">
                <div class="col-md-6">
                     <ul class="list-group">
                          <li class="list-group-item active">
                          <strong><h4>Guidelines and Important Notice</h4></strong>
                          </li>

                          <li class="list-group-item">
                            <ul class="list-group">
                                  <li class="list-group-item list-group-item-info">
                                      <h5>
                                        <i class="glyphicon glyphicon-info-sign"></i>
                                        <span class=""> </span>

                                      </h5>
                                  </li>

                            </ul><br>


                          </li>
                    </ul>
                  <div class="list-group">
                     <ul class="list-group">



                          <li class="list-group-item active">
                           Follow the steps below to APPLY for our <strong>DUAP PROGRAMMES</strong>
                          </li>

                          <li class="list-group-item">
                            <ol>
                              <li>Candidates should Visit the Application Portal </li>
                              <li>Candidates are required to fill in the Biodata,
                                Contact Information, Choice of Programme,
                                Health Information
                              </li>
                              <li>Make Application Fees Payment via Remita ethier Online or Banks </li>
                              <li>After successful payment, candidates should click on 'Final Submission'. This will allow candidates to print Acknowledgement Slip and Receipt </li>
                              <li>Wait for Online Screening later.</li>

                            </ol>

                          </li>


                           <li class="list-group-item active">
                           What is it?</strong>
                          </li>



                          <li class="list-group-item" >
                            <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">     <!--  -->
                                <div class="panel panel-info">
                                    <div class="panel-heading" role="tab" id="dir_app_info_heading">
                                      <h4 class="panel-title">
                                        <a class="collapsed" data-toggle="collapse" data-parent="#accordion" href="#dir_app_info" aria-expanded="false" aria-controls="dir_app_info"  style="color:#06d">DUAP DE ADMISSIONS</a>
                                      </h4>
                                    </div>
                                    <div id="dir_app_info" class="panel-collapse collapse in " role="tabpanel" aria-labelledby="dir_app_info_heading">
                                      <div class="panel-body">
                                       <ol>
                                          <li>Regularized their admission with JAMB</li>
                                            <li>2018 UTME (DE) Registration Number is required.</li>

                                        </ol>


                                      </div>
                                   </div>
                                </div>
                            </div><!-- /.panel group -->
                          </li>


                          <li class="list-group-item" >
                          <b class="text-danger">
                              This section is for NEW APPLICANT
                            </b>

                          </li>

                      </ul>

                      </div> <!-- /.list group -->


                </div><!-- /col-md-6 -->


                <div class="col-md-6">
                <!-- notification -->

                <?php

          //call tha notifiaction page
          include_once 'includes/notifications.php';
          ?>




                  <form class="form-horizontal well" action="check_tid.php" method="post">

                    <input type="hidden" name="token" value="<?php echo md5(rand(1,10000)); ?>">

                     <span class="pull-right"><span class="ast">*</span> Required Fields</span><br/>
                    <fieldset>
                      <legend><span style="font-size:14px;" class="label label-success" >STEP 1 </span> &nbsp;&nbsp;  </legend>


                      <?php
                        //displaying error msg
                        echo isset($_GET['error']) ? '<div class="alert alert-danger"> '.$_GET['error'].'</div>' : '';
                      ?>


                      <div class="control-group">

                           <div class="input-group">

                              <input id="fname" class="form-control  name" type="text" placeholder="First Name" name="fname" required
                                value="<?php if(isset($_SESSION['fname'])) echo $_SESSION['fname']; ?>" >

                                 <div class="input-group-addon"><span class="ast">*</span></div>
                          </div>
                              <span class="label label-danger">NB: This first name cannot be changed after registration</span>

                    </div>
                     <br/>

                    <div class="control-group">

                           <div class="input-group">

                              <input id="mid_name" class="form-control  name" type="text" placeholder="Middle Name" name="mid_name"
                                value="<?php if(isset($_SESSION['mid_name'])) echo $_SESSION['mid_name']; ?>" >

                                 <div class="input-group-addon"><span class="ast"></span></div>
                          </div>
                              <span class="label label-danger">NB: This Middle name cannot be changed after registration</span>

                    </div>
                     <br/>

                     <div class="control-group">

                           <div class="input-group">

                                <input id="lname" class="form-control  name" type="text" placeholder="Last Name" name="lname" required
                                value="<?php if(isset($_SESSION['lname'])) echo $_SESSION['lname']; ?>" >

                                 <div class="input-group-addon"><span class="ast">*</span></div>
                           </div>
                           <span class="label label-danger">NB: This Last name cannot be changed after registration</span>


                          </div>
                     <br/>




                     <!--div class="control-group">
                        <label for="email" class="control-label">

                           <span class="label label-success">Email</span>

                        </label>
                             <div class="input-group">
                                  <input id="email" class="form-control input-xlarge email" type="text" placeholder="Email" name="email" required
                                  value="<?php //if(isset($_SESSION['e'])) echo $_SESSION['e']; ?>"
                                  ></input>
                              <div class="input-group-addon"><span class="ast">*</span></div>
                              </div>

                             <!-- <p class="label label-success" >eMail address to send Transaction ID to </p>


                     </div-->


                          <!-- <div class="control-group">
                               <div class="input-group">
                                    <select   name="sub_programme"  id="sub_course_id" class="form-control input-xlarge ">

                                    <option value="">--Choose Course --</option>

                                     <?php //if(isset($_SESSION['prog'])){ echo select_courses($_SESSION['prog']);}else{ echo select_courses($_SESSION['prog']);} ?>

                                    </select>
                                     <span class="label label-success"> Choose a Course</span>
                                </div>
                            </div>
                         -->
                          <!--
                            commented on the 3rd of Jule 2019 for the reason that courses are to be moved in


                          <div class="control-group">

                          <div class="input-group">
                                      <select id="" name="programme" class="form-control input-xlarge " required >
                                          <option value="">--Choose Course --</option>
                                          <?php //if(isset($_SESSION['prog'])){ echo select_programme($_SESSION['prog']);}else{ echo select_programme($_SESSION['prog']);} ?>
                                       </select>
                                        <div class="input-group-addon"> <span class="ast">*</span></div>
                           </div>

                            <span class="label label-success"> Choose Course</span>


                           </div>-->
                           <br>
                        <div class="control-group">

                          <div class="input-group">
                                      <select id="entry_mode" name="programme_type" class="form-control input-xlarge " required="required">
                                          <?php if(isset($_SESSION['pt'])){ echo select_programme_type($_SESSION['pt']);}else{ echo select_programme_type($_SESSION['pt']);} ?>
                                       </select>
                                        <div class="input-group-addon"> <span class="ast">*</span></div>
                           </div>

                            <span class="label label-success"> Choose University of Choice</span>


                           </div>

                            <br>

                            <!-- <div id="trans_info" class="hidden">


                               <div class="control-group">

                                   <div class="input-group">

                                      <input id="pre_no" class="form-control  name" type="text" placeholder="PRE-NCE Reg. Number" name="pre_no"
                                        value="<?php //if(isset($_SESSION['pre_no'])) echo $_SESSION['pre_no']; ?>" >

                                         <div class="input-group-addon"><span class="ast">*</span></div>
                                  </div>
                                      <span class="label label-danger">NB: PRE-NCE Registration Number</span>

                               </div>

                               <br>


                            </div> -->


                            <div id="jamb_info" class="hidden">


                               <div class="control-group">

                                   <div class="input-group">

                                      <input id="jamb_no" class="form-control  name" type="text" placeholder="UTME-DE Reg. Number" name="jamb_no"
                                        value="<?php if(isset($_SESSION['jamb_no'])) echo $_SESSION['jamb_no']; ?>" >

                                         <div class="input-group-addon"><span class="ast">*</span></div>
                                  </div>
                                      <span class="label label-danger">NB:UTME-DE Registration Number</span>

                               </div>

                               <br>
                               <!-- <div class="control-group">

                                   <div class="input-group">

                                      <input id="jamb_score" class="form-control  name" type="text" placeholder="UTME Score" name="jamb_score"
                                        value="<?php //if(isset($_SESSION['jamb_score'])) echo $_SESSION['jamb_score']; ?>" >

                                         <div class="input-group-addon"><span class="ast">*</span></div>
                                  </div>
                                      <span class="label label-danger">NB:UTME Score</span>

                               </div> -->

                            </div>

                            <!-- <div class="clearfix"></div>
                            <div class="form-group" id="show_course">

                              <div  class="col-md-12" id="show_sub_course" >

                              <img src="images/loader.gif"  id="loader1" alt="please wait..." />
                                  <label  for="sub_programme_id"> Choose Course</label>
                                 <div class="input-group">
                                      <select   name="sub_programme"  id="sub_course_id" class="form-control">

                                      <option value="">--Choose Course --</option>

                                       <?php //if(isset($_SESSION['prog'])){ echo select_courses($_SESSION['prog']);}else{ echo select_courses($_SESSION['prog']);} ?>

                                      </select>

                                    <div class="input-group-addon"><span class="ast">*</span></div>

                                    </div>
                              </div>


                                   <div  class="col-md-12" id="show_sub_programme" >

                                    <?php  //echo select_programme($_SESSION['programme']); ?>


                                  </div>



                            </div>   -->








                     <br/>


                     <hr>
                      <div class="form-actions">


                        <div><input type="submit" class="btn btn-success btn-block submit" value="APPLY" name="submit" id="submit" ></div> <br/>

                      </div>

                     <br />

                     <div class="control-group">


                           <h3><a href="../b_" class="label label-info"><span >Continue with application</span></a></h3>

                           <h4><a href="#" class="label label-info" target="new"><span >How to Apply?</span></a></h4>




                     </div>
                    </fieldset>
                  </form>

                </div>


              </div>  <!-- /col-md-6 -->

            </div><!-- /col-md-8 -->



                <br/>
                <br/>





         <br/>
                <br/>



  <div style="display:block;height:50px;"></div>


  <!-- footer starts -->
  <?php include_once 'includes/footer.php';?>


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

    <!-- JavaScript -->
     <!-- call the jquery files, so as not to slow the web page -->
    <?php include_once 'includes/js_plugins.php'; ?>



</body>

</html>
