<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">  
</head>
<body>
<link rel="stylesheet" href="../css/stylemenu.css">
<div style = "background-color: #007bff; font-size:24px; width:100%; height : 60px; margin-top : px;" class='menujohanes'>
    <div style = "background-color: #007bff; font-size:24px; width:100%; height : 60px; margin-top : px;" class="navbar">
    <ul class='dark_menu'>
        <li>
            <a class='selected' href='index.html' title='Home'>Home</a>
        </li>
        <li data-role='dropdown'>
            <a href='#'>MASTER</a>
            <ul>
                <li><a href="../customer/index">Customer Master [Dr.]</a></li>
                <li><a href="../supplier/index">Supplier Master [Cr.]</a></li>
                <li><a href="../account/index">Account Master [Dr. and Cr]</a></li>
                <li><a href="../segment/index">Segment Master</a></li>
                <li><a href="../product/index">Product Master</a></li>
                <li><a href="../custdiscount/index">Customer Discount Master</a></li>
                <li><a href="../suppdiscount/index">Supplier Discount Master</a></li>
                <li><a href="../noofrows/index">Edit Number of Rows to Show</a></li>
                <li><a href="../timeout/index">Edit Time Out</a></li>
            </ul>
        </li>
        <li data-role='dropdown'>
            <a href='#'>TRANSACTION</a>
            <ul>
                <li id='sub'>
                    <a href='#'>Purchase</a>
                     <ul>
                         <li><a href="../pruchase/index">Purchase</a></li>
                        <li><a href="../pruchase/index">Purchase Debit Note GST</a></li>
                        <li><a href="../pruchase/index">Purchase Debit Note W/O GST</a></li>
                        <li><a href="../pruchase/index">Purchase Credit Note GST</a></li>
                        <li><a href="../pruchase/index">Purchase Credit Note W/O GST</a></li>
                        <li><a href="../paymentsb/index">Pyements ( Bank )</a></li>
                        <li><a href="../paymentsc/index">Pyements ( Cash )</a></li>
                    </ul>                         
                </li>
                <li id='sub'>
                    <a href='#'>Sales</a>
                        <ul>
                            <li><a href="../invoice/index">Sales</a></li>
                            <li><a href="../invoice/index">Customer Debit Note GST</a></li>
                            <li><a href="../invoice/index">Customer Debit Note W/O GST</a></li>
                            <li><a href="../invoice/index">Customer Credit Note GST</a></li>
                            <li><a href="../invoice/index">Customer Credit Note W/O GST</a></li>
                            <li><a href="../receiptsb/index">Receipts ( Bank )</a></li>
                            <li><a href="../receiptsc/index">Receipts ( Cash )</a></li>
                        </ul>                         
                </li>
                    <li><a href="../order/index">Order</a></li>
                    <li><a href="../invoice/phpinfo">PHP Information</a></li>
            </ul>
        </li>
        <li data-role='dropdown'>
            <a href='#'>REPORT</a>
            <ul>
                <li><a href="../gstr-1/index">GSTR-1</a></li>
                <li><a href="../gstr-3b/index">GSTR-3B</a></li>
                <li><a href="../reports/index">Sales Reports</a></li>
                <li><a href="../stock/index">Stock Reports</a></li>
                <li><a href="../ledgerc/index">Customer Ledger</a></li>
                <li><a href="../ledgerp/index">Supplier Ledger</a></li>
                <li><a href="../utility/index">Utility</a></li>
                <li><a href="../import/index">Import Masters</a></li>
            </ul>
        </li>
        <li>
            <a id="demo2" align="right" href='#'>REPORT</a>
            <a align="center" href='#'>Venkat Sales Corporation, Surat. 9377811610</a>
            <a style="font-size:20px; font-size:30px; color: white; margin-left : 0px; width: 1000px;" align="center"></i>Venkat Sales Corporation, Surat. 9377811610</a>
            <h1 style="color:white; font-size:24px;margin-left : 0px; width: 500px" class="text-primary" id="demo2" align="right"></h1>
            <a align="right" href='index.html' title='Logout'>LOGOUT</a>
        </li>
    </ul>
    
</div>
</div>
</body>
</html>
<?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>