public function alterar(Banco $obj) { $strSQL = "UPDATE FIN_BAN_BANCOS SET "; $strSQL .= "BAN_Descricao = '" . $obj->getDescricao() . "', "; $strSQL .= "BAN_Codigo = '" . $obj->getCodigo() . "', "; $strSQL .= "BAN_Status = '" . $obj->getStatus() . "', "; $strSQL .= "BAN_DataHoraAlteracao = '" . date("Y-m-d H:i:s") . "', "; $strSQL .= "USU_Alteracao_ID = " . $_SESSION["USUARIO_ID"] . " "; $strSQL .= "WHERE BAN_ID = " . $obj->getId(); return Db::getInstance()->executar($strSQL); }
?> " /> <div id="lblCodigo" class="form-group"> <label for="codigo" class="col-sm-2 control-label no-padding-right" style="font-weight: bold;">Código:</label> <div class="col-sm-9"> <input type="text" id="codigo" class="col-xs-10 col-sm-5" name="codigo" value="<?php echo $banco->getCodigo(); ?> " maxlength="10" title="Código"/> </div> </div> <div id="lblDescricao" class="form-group"> <label for="descricao" class="col-sm-2 control-label no-padding-right" style="font-weight: bold;">Nome do Banco:</label> <div class="col-sm-9"> <input type="text" id="descricao" class="col-xs-10 col-sm-5 obrigatorio" name="descricao" value="<?php echo $banco->getDescricao(); ?> " maxlength="200" title="Nome do banco"/> </div> </div> <hr /> <div id="divButoes"><br /> <?php if (Sessao::temPermissao('bancoslista', false)) { ?> <button class="btn btn-info" type="button" id="btnLista" name="btnLista"> <i class="ace-icon fa fa-arrow-left icon-on-right bigger-125"></i> <strong>Bancos cadastrados</strong> </button> <?php