<?php ?>

<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <title>LOMINO</title>
        <meta name="msapplication-TileColor" content="#5bc0de"/>
        <meta name="msapplication-TileImage" content="assets/img/metis-tile.png"/>
        <meta name="author" content="Tariq Idrishi">
        <link rel="stylesheet" href="../../library/assets/lib/bootstrap/css/bootstrap.css">
        <link rel="stylesheet" href="css/year/main.css"/>
        <link rel="stylesheet" href="../../library/assets/lib/Font-Awesome/css/font-awesome.css"/>
        <link rel="stylesheet" href="../../library/assets/css/theme.css">
        <link rel="stylesheet" href="../../library/assets/lib/uniform/themes/default/css/uniform.default.css">
        <link rel="stylesheet" href="../../library/assets/lib/inputlimiter/jquery.inputlimiter.1.0.css">
        <link rel="stylesheet" href="../../library/assets/lib/chosen/chosen.min.css">
        <link rel="stylesheet" href="../../library/assets/lib/colorpicker/css/colorpicker.css">
        <link rel="stylesheet" href="../../library/assets/lib/tagsinput/jquery.tagsinput.css">
        <link rel="stylesheet" href="../../library/assets/lib/daterangepicker/daterangepicker-bs3.css">
        <link rel="stylesheet" href="../../library/assets/lib/datepicker/css/datepicker.css">
        <link rel="stylesheet" href="../../library/assets/lib/timepicker/css/bootstrap-timepicker.min.css">
        <!--<link rel="stylesheet" href="../../library/assets/lib/switch/static/stylesheets/bootstrap-switch.css">-->
        <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/flick/jquery-ui.css">
        <link rel="stylesheet" href="../../library/css/slacker.css">        
        <script type="text/javascript" src="../../library/js/jquery.js"></script>
        <!--<link rel="stylesheet" type="text/css" media="all" href="forms/css/styles.css">-->
        <!--<link rel="stylesheet" type="text/css" media="all" href="forms/css/switchery.min.css">-->
        <!--<script type="text/javascript" src="js/switchery.min.js"></script>-->
        <script>
            $(document).ready(function () {
                $("#search").click(function () {
                    $("searchModal").modal("show");
                });
            });
        </script>

        <script>
            $(document).ready(function () {
<?php
if ($addflag != 1) {
    ?>
                    $('body').find('.form').attr('disabled', 'disabled');
    <?php
}
?>
                $("#edit").click(function () {
                    $('body').find('.form').removeAttr('disabled', 'disabled');
                    $("#<?= $focusfld; ?>").focus();
                    $('body').find('.btn-form').removeAttr('style');
                    $('#submit, #cancel').show();
                    $('#previous, #next, #search, #print, #add, #edit, #delete, #exit').hide();
                });
            });
        </script>
        <script>
            $(function () {
                $("#example1").DataTable();
                $('#example2').DataTable({
                    "paging": true,
                    "lengthChange": false,
                    "searching": false,
                    "ordering": true,
                    "info": true,
                    "autoWidth": false
                });
            });
        </script>

        <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="assets/lib/jquery.min.js"><\/script>')</script> 
        <script src="../../library/assets/lib/bootstrap/js/bootstrap.js"></script>
        <!--<script type="text/javascript" src="assets/js/style-switcher.js"></script>-->
        <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
        <script src="../../library/assets/lib/fullcalendar-1.6.2/fullcalendar/fullcalendar.min.js"></script>
        <script src="../../library/assets/lib/datatables/jquery.dataTables.js"></script>
        <script src="../../library/assets/lib/datatables/DT_bootstrap.js"></script>
<!--        <script src="https://cdn.datatables.net/1.10.10/js/jquery.dataTables.min.js"></script>
        <script src="https://cdn.datatables.net/1.10.10/css/jquery.dataTables.min.css"></script>
        -->

        <script src="../../library/assets/lib/tablesorter/js/jquery.tablesorter.min.js"></script>
        <script src="../../library/assets/lib/sparkline/jquery.sparkline.min.js"></script>
        <script src="../../library/assets/lib/flot/jquery.flot.js"></script>
        <script src="../../library/assets/lib/flot/jquery.flot.selection.js"></script>
        <script src="../../library/assets/lib/flot/jquery.flot.resize.js"></script>
        <script src="../../library/assets/js/main.js"></script>
<!--        <script>
            $(document).ready(function () {
                $("body").on('blur change', '#chkdate', chkfinyr);

                function chkfinyr() {

                    var date = $("#chkdate").val();
                    $.post('chk_date.php', {date: date}, function (date) {
                        if (date != "") {
                            alert(date)
                            return false;
                            $("#chkdate").focus();
                        }

                    });
                }
            });

        </script>-->
        