Example #1
0
			</select>	
		</td>
	</tr>
	<tr>
		<td colspan=2>&nbsp;</td>
	</tr>
	<tr>
		<td>Bens</td>
		<td>
			<select name="bens">
				<?php 
        echo "<option value='" . $editar->idBens . "' selected>" . converteM($editar->bens, 1) . "</option>";
        echo "<option>---</option>";
        $listarBens = Produto::listarBens();
        while ($bens = mysql_fetch_array($listarBens)) {
            echo "<option value='" . $bens['idBens'] . "'>" . converteM($bens['bens'], 1) . "</option>";
        }
        ?>
			</select>
		</td>
	</tr>
	<tr>
		<td colspan=2>&nbsp;</td>
	</tr>
	<tr>
		<td>Pre&ccedil;o Unidade</td>
		<td><input type="text" name="precoUnidade" id="precoUnidade" value="<?php 
        echo $editar->precoUnidade;
        ?>
" /></td>
	</tr>
Example #2
0
                    window.print();
                });
	});
</script>
<input type="button" class="bt_imprimir" id="bt_imprimir" value="Imprimir Lista" />
<table cellpadding=0 cellspacing=0 class="tbl_listaProd">
	<thead>
		<tr>
			<td>C&oacute;digo</td>
			<td>Produto</td>
            <td>Pre&ccedil;o</td>
            <!--<td>Pre&Ccedil;o Venda</td>-->
		</tr>
	</thead>
	<tbody>
<?php 
while ($row = mysql_fetch_array($produtos)) {
    $table .= "<tr>";
    $table .= " <td>" . $row['codBarra'] . "</td>";
    $table .= " <td>" . converteM($row['tipo'], 1) . " - " . converteM($row['marca'], 1) . "</td>";
    //$table .= " <td>".converteM($row['unidade'],1)."</td>";
    $table .= " <td>R\$ " . $row['precoUnidade'] . "</td>";
    //$table .= " <td>R$ ".$row['precoVenda']."</td>";
    $table .= "</tr>";
}
print $table;
?>
	</tbody>
</table>
<?php 
include 'rodape.php';