<?php session_start() ?>
<?php
    function do_alert($msg) 
    {
        echo '<script type="text/javascript">alert("' . $msg . '") 
           parent.location="portal.html";

</script>';
       
    }
?>
<?php
$ghg=248;

$_SESSION['snum']=$ghg;
$tyr=$_SESSION['num'];

//make the database connection
include('config.php');
$sql = "select * from access where userid = '$tyr' ";
$data=(mysql_query($sql)); 

$rows = mysql_num_rows($data);

if($rows <= 0){
   do_alert("user does not exist contact system admin");
}
else{

while($row= mysql_fetch_array($data))
{


$class=  $row['class'];

$claff= $class;

$ffg="subjects";
$calf="$claff$ffg";

$_SESSION['claff']=$claff;
$_SESSION['calf']=$calf;

$boff="t_$tyr";
}


}




?>

<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="ltr" lang="en" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="ltr" lang="en" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="ltr" lang="en">
<!--<![endif]-->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>online</title>

<meta name="description" content="Jasmine" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />

<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />

<link href="catalog/view/theme/default/stylesheet/stylesheet.css" rel="stylesheet">
<link href="catalog/view/javascript/jquery/owl-carousel/owl.carousel.css" type="text/css" rel="stylesheet" media="screen" />


	<!-- bootstrap css -->
	<link rel="stylesheet" type="text/css" href="assests/bootstrap/css/bootstrap.min.css">
	<!-- datatables css -->
	<link rel="stylesheet" type="text/css" href="assests/datatables/datatables.min.css">
<style>

h1 {
  line-height:0.7em;
}
img.alignleft {
	
	float: left;
margin: -40px 0px;

}

img.alignleft1 {
	
	float: right;
margin: -450px 20px;
border:4px solid black;
}

</style>
</head>
<body bgcolor="#eee" class="common-home">

<header>
</br></br></br>
  <div class="container">
    <div class="row">
      <div class="container1">

<div class="row">
 
    

    <div class="col-lg-8 col-md-8 col-sm-6 col-xs-12">
       </br>
 <img src="images/c11.jpg"  class="alignleft" />
      </div>
    

    <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">

  <nav id="menu" class="navbar">
    <div class="navbar-header"><span id="category" class="visible-xs">MENU</span>
      <button type="button" class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"><i class="fa fa-bars"></i></button>
    </div>
    <div class="collapse navbar-collapse navbar-ex1-collapse">

      <ul class="nav navbar-nav">
                        <li class="dropdown"><a href="licvbthstffp.php">HOME</a>
        
                             
         
                      

                      </ul>
    </div>
  </nav>
</div></br></br>
<div class="panel panel-default"></div>
    

<h4><font color=#000033 green>CLASS :<? echo  $claff; ?>:</font></h4>


</br>
<form action=score333s.php method=post>
<table><tr><td>
<h4><font color=#d9534f
>MY SUBJECTS :</font><?php
$query = mysql_query("select * from `$boff`" ) ; // Run your query

echo '<select name="idty" >'; // Open your drop down box

// Loop through the query results, outputing the options one by one
while ($row = mysql_fetch_array($query)) {
   echo '<option value="'.$row['serialno'].'">'.$row['subjects'].' '.$row['class'].' '.$row['type'].'</option>';
}

echo '</select>';// 

?></h4></td><td> <input type=submit border=0 value="Search"></td>

</form>
<div class="container">

<div class="row">

   NOTE: [Select a pupils name and search to enter his or her records]
 <div class="col-lg-12 col-md-8 col-sm-6 col-xs-4">

</head>

<body>

				 <br />

				<table class="table" id="manageMemberTable">					
					<thead>
						<tr>
							<th>S.no</th>
							<th>Name</th>													
							<th>CA1</th>
							
<th>CA2</th>


					<th>EXAM</th>
							
<th>TOTAL</th>


<th>Active</th>
							
							<th>UPDATE</th>
						</tr>
					</thead>
				</table>
			</div>
			</br>	</br>	</br>	</br>	</br>	</br>
		<div class="panel-footer"><center><font color="#fff"> &copy; LionGate Soft. </font></center>
</div>
		</div>
		
	</div>

	      
	
<!-- edit modal -->
	

	<!-- jquery plugin -->
	<script type="text/javascript" src="assests/jquery/jquery.min.js"></script>
	<!-- bootstrap js -->
	<script type="text/javascript" src="assests/bootstrap/js/bootstrap.min.js"></script>
	<!-- datatables js -->
	<script type="text/javascript" src="assests/datatables/datatables.min.js"></script>
	<!-- include custom index.js -->
	
 <script src="assets/cons.js" type="text/javascript"></script>

</body>
</html>