Esempio n. 1
0
<?php

include '../class/Call.class.php';
include '../function/Uppercase.func.php';
include 'topo.php';
session_start();
if (empty($_SESSION['codVenda'])) {
    $cod = Venda::gerarCodVenda();
    $_SESSION['codVenda'] = $cod + 1;
    $codVenda = $_SESSION['codVenda'];
} else {
    $codVenda = $_SESSION['codVenda'];
}
?>
<table class="tbl_venda">
	<tr align="right">
		<td>Venda N&#176; <input type="text" name="venda" id="venda" value="<?php 
echo $codVenda;
?>
" readonly /></td>
	</tr>
	<tr align="right">
		<td>&nbsp;</td>
	</tr>
	<tr align="right">
		<td>Quantidade: <input type="text" name="qtd" id="qtd" value="1" /></td>
	</tr>
	<tr align="right">
		<td>&nbsp;</td>
	</tr>
	<tr align="right">