<!DOCTYPE html>
<?php
require_once('connection/db.php');
require_once('convert_marathi.php');
// like i said, we must never forget to start the session
session_start();
// is the one accessing this page logged in or not?
if (!isset($_SESSION['logged_in'])|| $_SESSION['logged_in'] !== true)
	{
		// not logged in, move to login page
		header('Location: index.php');
		exit;
	}
$username = $_SESSION['User_Name'];
date_default_timezone_set('Asia/Kolkata');
         $dtcc   = date("Y-m-d");
         convert_marathi();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Tapal Admin System</title>
<link rel="stylesheet" href="css/style.default.css" type="text/css" />
<link rel="stylesheet" href="css/bootstrap-fileupload.min.css" type="text/css" />
<link rel="stylesheet" href="css/bootstrap-timepicker.min.css" type="text/css" />
<link rel="stylesheet" href="css/responsive-tables.css">
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/jsapi.js"></script>
<script type="text/javascript" src="unicode.js"></script>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-migrate-1.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-fileupload.min.js"></script>
<script type="text/javascript" src="js/bootstrap-timepicker.min.js"></script>
<script type="text/javascript" src="js/jquery.uniform.min.js"></script>
<script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.min.js"></script>
<script type="text/javascript" src="js/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="js/jquery.autogrow-textarea.js"></script>
<script type="text/javascript" src="js/charCount.js"></script>
<script type="text/javascript" src="js/colorpicker.js"></script>
<script type="text/javascript" src="js/ui.spinner.min.js"></script>
<script type="text/javascript" src="js/chosen.jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/modernizr.min.js"></script>
<script type="text/javascript" src="js/responsive-tables.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
<script type="text/javascript" src="js/forms.js"></script>
<!-- Script required of tab functioning -->
<script type="text/javascript" src="prettify/prettify.js"></script>
<script type="text/javascript" src="js/elements.js"></script>
<script type="text/javascript">
    jQuery(document).ready(function(){
        // dynamic table
        jQuery('#dyntable').dataTable({
            "sPaginationType": "full_numbers",
            "aaSortingFixed": [[0,'asc']],
            "fnDrawCallback": function(oSettings) {
                jQuery.uniform.update();
            }
        });

        jQuery('#dyntable2').dataTable( {
            "bScrollInfinite": true,
            "bScrollCollapse": true,
            "sScrollY": "300px"
        });

    });
</script>
<style>
/* Firefox old*/
@-moz-keyframes blink {
    0% {
        opacity:1;
    }
    50% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}

@-webkit-keyframes blink {
    0% {
        opacity:1;
    }
    50% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}
/* IE */
@-ms-keyframes blink {
    0% {
        opacity:1;
    }
    50% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}
/* Opera and prob css3 final iteration */
@keyframes blink {
    0% {
        opacity:1;
    }
    50% {
        opacity:0;
    }
    100% {
        opacity:1;
    }
}
.blink-image {
    -moz-animation: blink normal 2s infinite ease-in-out; /* Firefox */
    -webkit-animation: blink normal 2s infinite ease-in-out; /* Webkit */
    -ms-animation: blink normal 2s infinite ease-in-out; /* IE */
    animation: blink normal 2s infinite ease-in-out; /* Opera and prob css3 final iteration */
}
</style>
<script>
document.addEventListener("contextmenu", function(e){
    e.preventDefault();
}, false);
</script>
</head>

<body >
<div class="mainwrapper">
	<div class="header">
		<div class="logo">
			<!--<div style="float:left;"><img src="images\t-soba.png" style="height:95px;width:95px;" alt="" /></div>-->
			<div style="float:right;margin-top:50px;margin-right:5px;"><font color="white" size="1px;">पोलीस अधिक्षक <br> कार्यालय,<br>जिल्हा रायगड</font></a></div>
</div>
        <div class="headerinner">
<!--headmenu-->
<ul class="headmenu">
 <li class="right">
                    <div class="userloggedinfo">
                        <img src="images/departments.jpg" alt="" />
						<div class="userinfo" style="width:150px;">
                            <ul>
                                <li><h5><?php echo "Welcome </h5><h4 style=font-weight:bold;>".$_SESSION['User_Name']."</h4>";?></li>
                                <li><a href="logout.php">Sign Out</a></li>
                            </ul>
                        </div>
                    </div>
                </li>
            </ul><!--headmenu-->
        </div>
    </div>
    <div class="leftpanel">
        <div class="leftmenu">
            <ul class="nav nav-tabs nav-stacked">
            	<li class="nav-header">Navigation</li>
				 <li class="active"><a href="dept_home.php"><span class="iconfa-laptop"></span>होम </a></li>
				<li class="active"><a href="letterentry1.php"><span class="iconfa-envelope"></span>आवक बारनिशी</a></li>
				<li class="active"><a href="acceptletter.php"><span class="iconfa-laptop"></span>पत्र स्वीकृती</a></li>
                <li class="active"><a href="assign_desk.php"><span class="iconfa-laptop"></span>डेस्क लावा </a></li>
				<li class="active"><a href="sadyasthiti_department.php"><span class="iconfa-laptop"></span>कार्यविवरण नोंदवही / वर्कशिट </a></li>
				<li class="active"><a href="prakaran_nondwahi.php"><span class="iconfa-laptop"></span>प्रकरण नोंदवही </a></li>
				<li class="active"><a href="direct_aavak_report_dpt.php?id=old"><span class="iconfa-envelope"></span>थेट आवक बारनिशी</a></li>
				<li class="active"><a href="direct_javak_dpt.php"><span class="iconfa-envelope"></span>थेट जावक बारनिशी</a></li>
                <li class="dropdown active"><a href=""><span class="iconfa-briefcase"></span>रिपोर्ट्स</a>
					<ul>
						<li><a href="report_dpt_sandharbha.php?no=1&username=<?php echo $username;?>">संदर्भप्रकारानुसार रिपोर्ट्स </a></li>
						<li><a href="report_dpt_jatanprakar.php?no=1">जतन प्रकारानुसार  रिपोर्ट्स</a></li>
					<!--<li><a href="report_dpt_priority.php?no=1">प्राधान्यनुसार  रिपोर्ट्स</a></li> -->
						<li><a href="report_dpt_deskwise.php?no=1">डेस्क नुसार रिपोर्ट्स</a></li>
					<!--<li><a href="report_dpt_refwise.php">संदर्भानुसार रिपोर्ट्स</a></li> -->
						<li><a href="report_dpt_ltr_transfer.php">पत्र फिर्तीनुसार रिपोर्ट्स </a></li>
						<li><a href="goshwara_dpt.php">गोषवारा </a></li>
						<li><a href="freq_dept1.php"> वारंवार येणारे पत्र  </a></li>
						<li><a href="direct_javak_report_dpt.php?id=old"> थेट जावक बारनिशी  रिपोर्ट्स</a></li>
					</ul>
                </li>
				<li class="active"><a href="dept_accepted_rtn_table.php"><span class="iconfa-pencil"></span>स्वीकृत पत्र परत पाठवा </a></li>
				<?php
				$q=mysql_query("Select user_type from login where login_id='$username'") or die("".mysql_error());
				$qs=mysql_fetch_array($q);
				$v=$qs['user_type'];
				?>
				<li class="active"><a href="changeseq.php?no=<?php echo $v; ?>"><span class="iconfa-pencil"></span>सेक्युरिटी प्रश्न बदला </a></li>
                <li class="active"><a href="changepw.php?no=<?php echo $v; ?>"><span class="iconfa-pencil"></span>पासवर्ड बदला </a></li>
            </ul>
        </div><!--leftmenu-->
    </div><!-- leftpanel -->
</script>
</body>
</html>