Mini Shell

Direktori : /proc/self/root/proc/self/root/home/rizant5/www/student/
Upload File :
Current File : //proc/self/root/proc/self/root/home/rizant5/www/student/test_papers.php

<?php require_once("function-file.php");
require_once("function-menu.php");
require_once("../config.php");
cookiecheck();
$userid=$_SESSION["userid"];
$ds=$conn->prepare("select * from student_reg where stu_id='$userid'");
$ds->execute();$ress=$ds->fetch();
// if(isset($_POST['save'])){
//     $course_id=$_POST['course_id'];
//     $note=$_POST['note'];
//     $conn->exec("insert into course_change (userid,course_id,note) values ('$userid','$course_id','$note')");
//     echo "<h2 align='center'>We will contact you as soon!</h2>";
//     echo'<meta http-equiv="refresh" content="3; url=change-course.php">';
//     exit;
// }
?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Test Papers</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <?php  cssfile();?>
    <style type="text/css">
      .loading_blog{
        position: fixed;
        /*background-color: rgba(0, 0, 0, 0.5);*/
        background-color: #fff;
        height: 100%;
        width: 100%;
        left: 0;
        top: 0;
      }
      .load_img{
        left: 50%;
        margin-left: -109px;
        position: absolute;
        text-align: center;
        top: 50%;
      }
  </style>
  <link href="css/loader.css" rel="stylesheet">
  </head>
  <body class="hold-transition skin-blue layout-top-nav">
    <!-- Site wrapper -->
    <div class="wrapper" style="background-color: #ECF0F5;">
<?php headermenu();?>
      <!-- =============================================== -->
      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <!-- Main content -->
        <section class="content">
          <!-- Default box -->
          <div class="box box-primary">
            <div class="box-header with-border sub-header">Practice Past Paper Question and Answers (please note that in some cases the wording of the question and diagrams may differ from that of the original)</h3>
            </div>
            <div class="box-body sub-body">
              <form action="" method="post" class="form-horizontal">
                    <div class="form-group">
                      <div class="col-sm-12">
                          <label>Select Your Grade and Medium</label>
                                <select name="course_id" class="form-control" required>
                                <?php
                                    //$data=$conn->prepare("select * from courses");
                                    $data=$conn->prepare("select * from student_reg a left join courses b on a.course_id=b.course_id where a.stu_id='$userid'");
                                    $data->execute();$result=$data->fetchall();
                                    foreach($result as $row){echo"<option value='$row[course_id]' ";if($row['course_id']==$ress['course_id']){echo"selected";}echo">$row[course_name]</option>";}?>
                                </select>
                      </div>
                    </div>
                          <label>Select The Past Exam Paper Year</label>
                                <select name="year" class="form-control" required>
                                  <?php $current_year= date("Y") - 1;
                                        $lower_year = 2016;
                                        for ($current_year; $lower_year<=$current_year ; $current_year--){ 
                                          $selected = ($current_year == $_POST['year']) ? ' selected = "selected"' : '';
                                        echo "<option value='".$current_year."'".$selected.">Year " .$current_year. " - Exam Papers</option>";
                                        }     
                                  ?>
                                </select> </br>
                        <div class="form-group">
                            <div  class="col-sm-12" align="center">
                                <button type="submit" name="save" class="btn btn-primary">Send Request</button>
                            </div>
                        </div>
                        <?php
                          if(isset($_POST['course_id'])){
                            include 'data.php';
                          }
                        ?>
                </form>
             </div>    
         </div>
   </section>
      </div><!-- /.content-wrapper -->
      <div class="loading_blog" id="loading_blog" style="">
        <div class="loader">
          <div class="bar1"></div>
          <div class="bar2"></div>
          <div class="bar3"></div>
          <div class="bar4"></div>
          <div class="bar5"></div>
          <div class="bar6"></div>
        </div>
      </div>
      <?php footer();?>
    </div><!-- ./wrapper -->
   <?php jsfile_test();?>
   <script>
    $(window).load(function(){
      $('.loading_blog').hide();

      $height = $(window).innerHeight() - $('.wrapper > header').innerHeight();
      $height = $height - $('.wrapper > footer').innerHeight() - 1;
      $('.content-wrapper').css('min-height',$height+'px');
    });
   </script>
   <?php //jsfile();?>
  </body>
</html>

Zerion Mini Shell 1.0