Esempio n. 1
0
 function update($table, $campos, $where)
 {
     $lancamento = new lancamento();
     include "config.php";
     $consulta = "UPDATE `imobilizado`.`" . $table . "` SET " . $campos . " WHERE " . $where . ";";
     $update = mysql_query($consulta, $conexao) or die("<div class='uk-alert uk-alert-danger  tm-main uk-width-medium-1-2 uk-container-center'>" . mysql_error() . "<br><br>Consulta<br>" . $consulta . "</div>");
     $processo = "Baixa de ativo imobilizado";
     $registros = mysql_affected_rows();
     $consulta = $consulta;
     $msg_erro = mysql_error();
     $lancamento->resultado_tr('', '', $processo, $registros, $consulta, $msg_erro);
 }
<?php 
if (intval($_GET['id']) > 0) {
    $disabled = " disabled ";
} else {
    $disabled = "  ";
}
?>




<?php 
$lancamento = new lancamento();
$lancamento->listar_cad_documento_item($id);
?>


	<div class="" style="bottom: 0px; position: absolute; width: 100%;">
		<div class=" uk-tab-flip">	
			<form class="uk-form" style="height: 100%;">
				<div class="uk-grid">			
					<span class="uk-form-controls-condensed uk-width-1-5 uk-push-4-5" style="text-align: right;max-width: 230px !important;min-width: 120px !important;">
						Total de Débitos 
						<input id="debito" class=" uk-form-small" style="width: 100px;text-align: right;" value="" type="text" disabled>
					</span>
					<span class="uk-form-controls-condensed uk-width-1-5 uk-push-2-5" style="text-align: right;max-width: 230px !important;min-width: 120px !important;">
						Total de Créditos 
						<input id="credito" class=" uk-form-small" style="width: 100px;text-align: right;" value="" type="text" disabled>
					</span>
				</div>