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

$formname = 'Area';
$maindb = 'area';
$printfile = "area_print.php";
$file = 'area.php';
$trandbexist = 0;
$grid = '';
$keyfld = "code";
$focusfield = "name";

$admin = $_SESSION["admin_" . $dbname];
$zdb = $_SESSION["zdbyear_" . $dbname];
mysqli_select_db($conn, $zdb);

include("includes/linkshead.php");
?>
<script type="text/javascript">
    $(document).ready(function () {
        $("input").keyup(function () {
            var press = jQuery.Event("keypress");
            press.ctrlKey = false;
            press.which = 40;
            $(window).trigger(press);
            var e = $.Event("keypress", {keyCode: 80});
        });
    });
</script>
</head>
<body>
    <form action='' method='POST'>
        <!-- Default box -->
        <div class="row">
            <div class="col-lg-6">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><?php Echo $formname; ?></h3>
                        <div class="actions pull-right">
<!--                            <i class="fa fa-chevron-down"></i>
                            <i class="fa fa-times"></i>-->
                        </div>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3 text-right pad">
                                <label class="label-control marg">Area</label>
                            </div>
                            <div class="col-lg-6 col-md-8 col-sm-8 col-xs-8 pad">
                                <input type="text" class="form-control focusfield" name="area" value="<?php Echo ($addflag != 1) ? $get["area"] : ""; ?>" autofocus required>
                            </div>
                        </div>
                    </div>
                    <div class="panel-footer">
                        <?php include("includes/but_rep.php"); ?>
                    </div>
                </div>
            </div>
        </div>
    </form>
    <?php include("includes/linksfoot.php"); ?>
</body>
</html>
