Estou tentando utilizar um botão bootstrap no formulário de um único registro, este botão possui o seguinte código:
?>
<link rel="stylesheet" href="../_lib/libraries/scriptcase/samples/libs/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="../_lib/libraries/scriptcase/samples/libs/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="../_lib/libraries/scriptcase/samples/libs/bootstrap/js/bootstrap.min.js">
<link rel="stylesheet" href="../_lib/libraries/scriptcase/samples/libs/bootstrap/js/bootstrap.js">
<link rel="stylesheet" href="../_lib/libraries/scriptcase/samples/libs/bootstrap/js/npm.js">
<?php
sc_lookup(dataset, "SELECT (sum(credito)-sum(total_Geral)) AS saldo
FROM oslojamestre
WHERE id_cliente = '{id_cliente}' AND status_laboratorio > 0 AND status_loja = 1");
$diferenca = {dataset [0] [0]};
//Converter valor em float
//{saldo} = floatval ($diferenca);
$valor = floatval ($diferenca);
if ({dataset [0] [0]}<0) {
{saldo} = "<a href='#' button type='button' class='btn btn-danger btn-lg'>".$valor."</button>";
}elseif ({dataset [0] [0]}>0){
{saldo} = "<a href='#' button type='button' class='btn btn-primary btn-lg'>".$valor."</button>";
}else{
{saldo} = "<a href='#' button type='button' class='btn btn-success btn-lg'>".$valor."</button>";
}
Quando antes de inserir o registro fica normal…
O problema é após inserir… veja ao lado direito do botão…
Coloquei o código bootstrap, ou seja, somente chamando a biblioteca, nos eventos onScriptInit, onValidate e onAfterInsert.
Alguém tem uma noção do que seja?