<?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° <input type="text" name="venda" id="venda" value="<?php echo $codVenda; ?> " readonly /></td> </tr> <tr align="right"> <td> </td> </tr> <tr align="right"> <td>Quantidade: <input type="text" name="qtd" id="qtd" value="1" /></td> </tr> <tr align="right"> <td> </td> </tr> <tr align="right">