<?php
require("includes/check_auth_user.php");
require("includes/dbconnect.php");
include('includes/function.php');

$zdb = $_SESSION["zdbyear_" . $dbname];

$formname = "Subject List";
$action = "sub_lst.php";
mysqli_select_db($conn, $zdb);

include("includes/files.php");
?>
<form method="POST" action='<?= $action ?>' name="country">
    <div class="row" style="margin-left: 300px; margin-right: 300px; margin-top: 100px;">
        <div class="col-lg-6" style='width:100%; '>
            <div class="box dark">
                <header>
                    <div class="icons"><i class="fa fa-edit"></i></div>
                    <h5><?= $formname ?></h5>
                    <div class="toolbar">
                        <ul class="nav">
                            <li>
                                <a class="accordion-toggle minimize-box" data-toggle="collapse" href="#div-1">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                            </li>                            
                        </ul>
                    </div> 
                    <button class="btn btn-danger" Onclick="JavaScript:window.close()" name="exit" value="Exit" style="float: right; height: 40px;">Exit</button>
                    <button class="btn btn-success" type="submit" name="submit" value="View" style="float: right; height: 40px;">View</button>
                    <!-- .toolbar -->

                    <!-- /.toolbar -->
                </header>
                <div id="div-1" class="accordion-body collapse in body" style="height: 150px;">
                    <div class="form-horizontal">
                        <div class="form-group">
                            <label class="control-label col-lg-4" style="width: 150px;"> Code </label>
                            <div class="col-lg-8"> 
                                <input type="number" name="code" autofocus="" placeholder="Subject Code" value="" class="form-control " style="width:130px; height: 30px;" >
                            </div> 
                        </div> 
                        <div class="form-group">
                            <label class="control-label col-lg-4" style="width: 150px;"> Name </label>
                            <div class="col-lg-8"> 
                                <input type="text" name="name" placeholder="Subject Name" value="" style="height: 30px;" class="form-control "  >
                            </div> 
                        </div> 
                    </div>   
                </div> 
            </div> 
        </div> 

    </div>

</form>