<!DOCTYPE html>
<html>
<head>
<title>IMS-Main Menu</title>
<script type="text/javascript">
	function preventBack() {
		window.history.forward();
	}
	setTimeout("preventBack()", 0);
	window.onunload = function() {
		null
	};
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https://unpkg.com/boxicons@2.0.7/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="../css/font-awesome.min.css">
<link rel="stylesheet" href="../css/jquery-ui.css">
<link rel="stylesheet" href="../css/bootstrap-theme.min.css">
<script src="../js/jquery.min.js"></script>
<!--link rel="stylesheet" href="../css/bootstrap.min.css"-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css">
<style>
	body {
		font-family: Arial, Helvetica, sans-serif;
	}

	.navbar {
		overflow: hidden;
		background-color: #007bff;
	}

	.navbar a {
		float: left;
		font-size: 16px;
		color: white;
		text-align: center;
		padding: 14px 16px;
		text-decoration: none;
	}

	.dropdown {
		float: left;
		overflow: hidden;
	}

	.dropdown .dropbtn {
		font-size: 16px;
		border: none;
		outline: none;
		color: white;
		padding: 14px 16px;
		background-color: inherit;
		font-family: inherit;
		margin: 0;
	}

	.navbar a:hover,
	.dropdown:hover .dropbtn {
		background-color: #4c97f6;
	}

	.dropdown-content {
		display: none;
		position: absolute;
		background-color: #249ee4;
		min-width: 160px;
		box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
		z-index: 1;
	}

	.dropdown-content a {
		float: none;
		color: black;
		padding: 12px 16px;
		text-decoration: none;
		display: block;
		text-align: left;
	}

	.dropdown-content a:hover {
		background-color: #4c97f6;
	}

	.dropdown:hover .dropdown-content {
		display: block;
	}

	table,
	th,
	td {
		border: 1px solid lightgray;
		padding: 5px !important;
	}

	#fa fa-fw fa-search {
		width: 20em;
		height: 1em;
	}

	body {
		font-family: Arial, Helvetica, sans-serif;
	}

	table,
	th,
	td {
		border: 1px solid lightgray;
		padding: 5px !important;
	}

	#fa fa-fw fa-search {
		width: 20em;
		height: 1em;
	}

	body {
		font-family: Arial, Helvetica, sans-serif;
	}
</style>
</head>
<body>
<div style="height:60px; width:screen.width;" class="navbar">
	<a style="font-size:20px;" href="index">Home</a>
	<div class="dropdown">
		<button style="font-size:20px;" class="dropbtn">Masters
			<i class="fa fa-caret"></i>
		</button>
		<div class="dropdown-content">				
			<a style="font-size:20px;" href="../customer/index">Customer Master</a>
			<a style="font-size:20px;" href="../supplier/index">Supplier Master</a>
			<a style="font-size:20px;" href="../segment/index">Segment Master</a>
			<a style="font-size:20px;" href="../product/index">Product Master</a>
			<a style="font-size:20px;" href="../custdiscount/index">Customer Discount Master</a>
			<a style="font-size:20px;" href="../suppdiscount/index">Supplier Discount Master</a>
			<a style="font-size:20px;" href="../noofrows/index">Edit Number of Rows to Show</a>
		</div>
	</div>
	<div class="dropdown">
		<button style="font-size:20px;" class="dropbtn">Transaction
			<i class="fa fa-caret"></i>
		</button>
		<div class="dropdown-content">
			<a style="font-size:20px;" href="../pruchase/index">Purchase</a>
			<a style="font-size:20px;" href="../pruchase/index">Purchase Debit Note GST</a>
			<a style="font-size:20px;" href="../pruchase/index">Purchase Debit Note W/O GST</a>
			<a style="font-size:20px;" href="../pruchase/index">Purchase Credit Note GST</a>
			<a style="font-size:20px;" href="../pruchase/index">Purchase Credit Note W/O GST</a>
			<a style="font-size:20px;" href="../invoice/index">Sales</a>
			<a style="font-size:20px;" href="../invoice/index">Customer Debit Note GST</a>
			<a style="font-size:20px;" href="../invoice/index">Customer Debit Note W/O GST</a>
			<a style="font-size:20px;" href="../invoice/index">Customer Credit Note GST</a>
			<a style="font-size:20px;" href="../invoice/index">Customer Credit Note W/O GST</a>
			<a style="font-size:20px;" href="../order/index">Order</a>
			<a style="font-size:20px;" href="../paymentsb/index">Pyements ( Bank )</a>
			<a style="font-size:20px;" href="../paymentsc/index">Pyements ( Cash )</a>
			<a style="font-size:20px;" href="../receiptsb/index">Receipts ( Bank )</a>
			<a style="font-size:20px;" href="../receiptsc/index">Receipts ( Cash )</a>
		</div>
	</div>
	<div class="dropdown">
		<button style="font-size:20px;" class="dropbtn">Report
			<i class="fa fa-caret"></i>
		</button>
		<div class="dropdown-content">				
			<a style="font-size:20px;" href="../gstr-1/index">GSTR-1</a>
			<a style="font-size:20px;" href="../gstr-3b/index">GSTR-3B</a>
			<a style="font-size:20px;" href="../reports/index">Sales Reports</a>
			<a style="font-size:20px;" href="../stock/index">Stock Reports</a>
			<a style="font-size:20px;" href="../ledgerc/index">Customer Ledger</a>
			<a style="font-size:20px;" href="../ledgerp/index">Supplier Ledger</a>
			<a style="font-size:20px;" href="../utility/index">Utility</a>
			<a style="font-size:20px;" href="../import/index">Import Masters</a>
			<a style="font-size:20px;" href="../invoice/phpinfo">PHP Information</a>
		</div>
	</div>
	<a style="font-size:20px; width: 50%;"></i>Venkat Sales Corporation, Surat. 9377811610</a>
	<p style="font-size:20px; color: white; margin-left : 250px; margin-top : 15px;" id="demo2"></p>
</div>
<?php
	$date = new DateTime();
	$current_timestamp = $date->getTimestamp();
?>
<script>
	flag_time = true;
	timer = '';
	setInterval(function(){phpJavascriptClock();},1000);
	
	function phpJavascriptClock()
	{
		if ( flag_time ) {
		timer = <?php echo $current_timestamp;?>*1000;
		}
		var d = new Date(timer);
		months = new Array('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sept', 'Oct', 'Nov', 'Dec');		
		month_array = new Array('January', 'Febuary', 'March', 'April', 'May', 'June', 'July', 'Augest', 'September', 'October', 'November', 'December');		
		day_array = new Array( 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday');		
		currentYear = d.getFullYear();
		month = d.getMonth();
		var currentMonth = months[month];
		var currentMonth1 = month_array[month];
		var currentDate = d.getDate();
		currentDate = currentDate < 10 ? '0'+currentDate : currentDate;
		
		var day = d.getDay();
		current_day = day_array[day];
		var hours = d.getHours();
		var minutes = d.getMinutes();
		var seconds = d.getSeconds();
		
		var ampm = hours >= 12 ? 'PM' : 'AM';
		hours = hours % 12;
		hours = hours ? hours : 12; // the hour ’0′ should be ’12′
		minutes = minutes < 10 ? '0'+minutes : minutes;
		seconds = seconds < 10 ? '0'+seconds : seconds;
		var strTime = hours + ':' + minutes+ ':' + seconds + ' ' + ampm;
		timer = timer + 1000;
		document.getElementById("demo2").innerHTML='Date : ' + currentDate+'-' +(month+1)+'-' +currentYear + ' Time : ' + strTime ;
		flag_time = false;
	}
</script>
</body>
</html>