<?php
session_start();
if($_SESSION["username"]=="")
{
 	echo "You are not Logged in Please <a href='index.html'>Sign in </a> First ";
}
else
{

include 'dbc.php';
date_default_timezone_set("Asia/Karachi");
$today=date("Y-m-d");
$month = date("m",strtotime($today));
		$year = date("Y",strtotime($today));
		 $month_name = date("F", mktime(0, 0, 0, $month, 10));
		 $my=$month_name . " " . $year;
$userid=$_SESSION["userid"];
$sql = "SELECT MAX( id ) AS max FROM `video`;" ;
$result = $conn->query($sql);
$row = $result ->fetch_assoc();
$largestNumber = $row['max'];
$largestNumber = $largestNumber +1;

//$rows3=$result1 ->fetch_assoc();
?>
<!doctype html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->

<head>
   <?php include("includes/header.php") ?>
</head>

<body>


    <!-- Left Panel -->

    <?php include("includes/menu.php") ?><!-- /#left-panel -->

    <!-- Left Panel -->

    <!-- Right Panel -->

    <div id="right-panel" class="right-panel">

        <!-- Header-->
        <header id="header" class="header">

             <?php include("includes/headermenu.php") ?>

        </header><!-- /header -->
        <!-- Header-->

        <div class="breadcrumbs">
            <div class="col-sm-6">
                <div class="page-header float-left">
                    <div class="page-title">
                        <h1><? echo "" . $_SESSION["userid"]; ?></h1>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="page-header float-right">
                    <div class="page-title">
                        <ol class="breadcrumb text-right">
                            <li class="active"><? echo "" . $_SESSION["username"]; ?></li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>

        <div class="content mt-3">

           


          <div class="col-lg-12">
                                                <div class="card">
                                                    <div class="card-header">
                                                        <strong>Student Videos</strong> Form
                                                    </div>
                                                    <div class="card-body card-block">
                                                        <form action="save_app_video.php" method="post" enctype="multipart/form-data" class="form-horizontal">
                                                            
                                                            <div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"> No</label></div>
                                                                <div class="col-12 col-md-3"><input type="text" id="adm_no" name="adm_no" placeholder="Text" class="form-control" value=" <? echo $largestNumber ?>" readonly><small class="form-text text-muted">This is a Software genrated no</small></div>
                                                            </div>
                                                            
															
															<div class="row form-group">
                                                                    <div class="col col-md-3"><label for="select" class=" form-control-label">Select Class Name</label></div>
                                                                    <div class="col-12 col-md-4">
                                                                        <select name="class_name" id="class_name" class="form-control">
                                                                           <option value="Play Group">Play Group</option>
                                                                            <option value="Nusery">Nusery</option>
																			 <option value="Prep">Prep</option>
                                                                            <option value="Class 1">Class 1</option>
																			 <option value="Class 2">Class 2</option>
                                                                            <option value="Class 3">Class 3</option>
																			 <option value="Class 4">Class 4</option>
                                                                            <option value="Class 5">Class 5</option>
																			 <option value="Class 6">Class 6</option>
                                                                            <option value="Class 7">Class 7</option>
																			 <option value="Class 8">Class 8</option>
                                                                            <option value="Class 9">Class 9</option>
																			 <option value="Class 10">Class 10</option>
                                                                        </select>
                                                                    </div>
                                                                </div>
																<div class="row form-group">
                                                                    <div class="col col-md-3"><label for="select" class=" form-control-label">Select Subjects</label></div>
                                                                    <div class="col-12 col-md-4">
                                                                        <select name="cls_sec" id="cls_sec" class="form-control">
                                                                              <option value="English">English</option>
                                                                            <option value="Urdu">Urdu</option>
																			<option value="Math">Math</option>
																			<option value="G.Science">G.Science</option>
																			<option value="G.Knowledge">G.Knowledge</option>
																			<option value="Pak Studies">Pak Studies</option>
																			<option value="Social Studies">Social Studies</option>
																			<option value="Islamic Studies">Islamic Studies</option>
																			<option value="Physics">Physics</option>
																			<option value="Chemistry">Chemistry</option>
																			<option value="Biology">Biology</option>
																			<option value="Computer">Computer</option>
																			
                                                                        </select>
                                                                    </div>
                                                                </div>
																<div class="row form-group">
                                                                <div class="col col-md-3"><label for="text-input" class=" form-control-label"> Subject Details</label></div>
                                                                <div class="col-12 col-md-6"><input type="text" id="subj" name="subj" placeholder="Subject details" class="form-control" ><small class="form-text text-muted">Subject details</small></div>
                                                            </div>
                                                            <div class="row form-group">
                                                              <div class="col col-md-3"><label for="textarea-input" class=" form-control-label">Paste Video Link from youtube </label>
                                                                                                                             </div>
                                                                <div class="col-12 col-md-9"><textarea name="remarks" id="remarks" rows="9" placeholder="Paste Video Link from youtube" class="form-control"></textarea></div>
                                                            </div>
                                      
																
															
                                                               
                                                       
                                                    </div>
                                                    <div class="card-footer">
                                                        <button type="submit" class="btn btn-primary btn-sm">
                                                            <i class="fa fa-dot-circle-o"></i> Save Worksheet
                                                        </button>
                                                        <button type="reset" class="btn btn-danger btn-sm">
                                                            <i class="fa fa-ban"></i> Reset
                                                        </button>
                                                    </div>
													 </form>
                                                </div>
                                                
                                            </div>

            


        </div> <!-- .content -->
    </div><!-- /#right-panel -->

    <!-- Right Panel -->

   <?php include("includes/footermenu.php") ?>

</body>

</html>
<?php
}
?>