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

$formname = "Daily Report";
$action = "dailyrep_fr.php";

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


$zyear = right($zdb, 4);
$mfrdate = getzdates($zyear, 'S');
$mtodate = getzdates($zyear, 'E');


$myyear = $_SESSION[$myyear];
mysqli_select_db($conn, $zdb);

include("includes/linkshead.php");
?>
</head>
<body>
    <form method='POST' action="<?= $action; ?>">
        <!-- Default box -->
        <div>
            <div class="col-lg-5 col-md-12 col-sm-12 col-xs-12  pad">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title"><?php Echo $formname; ?></h3>
                    </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">Date</label>
                            </div>
                            <div class="col-lg-5 col-md-3 col-sm-3 col-xs-3 pad">
                                <input type="date" class="form-control" name="date" required value="<? echo date("Y-m-d"); ?>" >
                            </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>

<!--    <form class="form-horizontal" action='dailyrep.php' method='POST'>
        <div class="row">
            <div class="col-lg-12">
                <div class="box">
                    <header>
                        <div class="icons">
                            <i class="fa fa-edit"></i>
                        </div>
                        <h5><?= $formname ?></h5>
                        <div class="toolbar">
                            <ul class="nav pull-right">
                                <li>
                                    <input type='submit' id="expexc" name='export' class='btn btn-primary' value='Export to Excel'>
                                    <input type='submit' id="view" name='submit' class='btn btn-success' value='Proceed'>                                    
                                </li>
                                <li>
                                    <a class="minimize-box" data-toggle="collapse" href="#div-4">
                                        <i class="fa fa-chevron-up"></i>
                                    </a>
                                </li>
                            </ul>
                        </div> /.toolbar 
                    </header>
                    <div id="div-4" class="accordion-body collapse in body">
                        <div class="form-group">
                            <label class="control-label col-lg-3">Date</label>
                            <div class="col-lg-5">
                                <div class="input-group">
                                    <input type="date" size="80" name="vouchdt" value="<?php // echo date('Y-m-d');  ?>" class="form-control"/>                              
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-lg-3">Report Type </label>
                            <div class="col-lg-5">
                                <div class="input-group">
                                    <select  style="height:34px;" id="cmbtype" name="dtype" class="form-control">
                                        <option value="1">Summary</option>   
                                        <option value="2">Detail</option>   
                                    </select>                            
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>-->
