<?php

require 'conectar.php';

$chave = trim($_GET['chave']);

?>

<head>

	<!-- Meta -->
	<meta charset="utf-8">
	<meta name="description" content="entrega">
	<meta name="varios" content="">

	<title>Cancela Nota</title>

	<!-- Mobile Meta -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	<!-- Favicons -->
	<link rel="shortcut icon" href="images/favicon.ico">

	<!-- Google Webfonts -->
	<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,700,600italic,700italic,800,800italic,300italic,300" rel="stylesheet">
	<link href="http://fonts.googleapis.com/css?family=Sanchez:400,400italic" rel="stylesheet">

	<!--[if lt IE 9]>
	<script src="/js/libs/respond.min.js"></script>
	<![endif]-->

	<!-- Bootstrap core CSS -->
	<link href="css/bootstrap.css" rel="stylesheet">

	<!-- Theme Styles CSS-->
	<link href="css/style.css" rel="stylesheet">
    <link href="css/theme-shop.css" rel="stylesheet">
	<link href="css/elements.css" rel="stylesheet">
	<link href="fonts/icomoon/iconmoon.css" rel="stylesheet">
    <link href="fonts/font-awesome/css/font-awesome.css" rel="stylesheet">

	<!--[if lt IE 9]>
	<script src="/js/libs/html5.js"></script>
	<![endif]-->
	
	<!-- JavaScript -->
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.js"></script>
	<script src="js/fancybox/jquery.fancybox.pack.js"></script>
	<script src="js/main.js"></script>
	

</head>

<div class="body">
	<!-- Main content -->
	<div class="shop-form-wrap">
		
		<!-- Shop Content -->

		<div role="main" class="shop">
	
				<br>
				<br>	
				<div class="container">
					<div class="well well-lg">
					
						<div style="text-align: center">
							<div>
								<h6> NOTA: <h6>
								<h4> <?php echo $chave; ?> </h4>
							</div>							
						</div>					

						<div style="margin-top: 1em; padding-top:1em; border-top: 1px dashed #ccc" class="form-group no-print">
						
							<form method="POST" action="cancela_nfe.php">
								<h6> JUSTIFICATIVA: <h6>
								<textarea minlength="2" maxlength="250" rows="4" id="texto" name="texto" class="form-control input-lg"></textarea>
								<input id="chave" name="chave" type="hidden" value="<?php echo $chave; ?>" />

								<br>
								<div style="text-align: center">
									<button type="submit" class="btn btn-success">CANCELAR</button>
									<a class="btn btn-default" href="../Notas_Finalizadas.php">VOLTAR</a>
								</div>	
							</form>
							
						</div>
						
					</div>	


		</div>

		
	</div>
	<!-- Main content -->
</div>

</body>
</html>

