<?php


include_once("connect.php");
include_once("session.php");


?>
<html>
    <head>
        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
            <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
		<style>
			.center {
				text-align: center;
			}
			.invoicesTable td{
				text-align: right;
				padding-right: 15px;
			}
			.creditsTable td{
				text-align: right;
				padding-right: 15px;
			}
			.infoBlock {
				margin-left: 10px;
			}
			.moneyBlock {
				margin-left: 60px;
			}
			body {
				font-family: "Trebuchet MS", Helvetica, sans-serif;
			}
			@media print {    
				.no-print, .no-print *
				{
					display: none !important;
				}
			}
		</style>
    </head>
    <body>
		<div style="width: 400px; border-right: solid;">
			<div class="center">
			<img style="width: 300px;" src="img/Logo_250.png" alt=""><br />
				<span><?= $config['PostalAddress1'] ?><span><br>
				<?= $config['PostalCity'] ?>, <?= $config['PostalState'] ?> <?= $config['PostalZip'] ?><br>
				<?= $config['OrderEmail'] ?><br>
				<?= $config['CompanyPhone'] ?>
		
				
				<h2>THIS IS A PRINTER TEST</h2>
				<br />
				<br />
				Por favor asegurese que<br />
				el Margen este en "None"
				<br />
				<br />
				<button class="no-print" onclick="reprintandclose()">Print</button>
				<br />
				<br />
				<hr>
			</div>
		</div>
    </body>
	<script type="text/javascript">
		reprintandclose();
		function reprintandclose(){
			window.print();
			setTimeout(function(){
				window.close();
			},500);
			//alert('Comando enviado');
			
		}
	</script>
    
</html>


