Esempio n. 1
0
                break;
            case 'Modificar':
                $ok = $obj_tmp->SetModDatos(array('txtCodId' => $_POST['txtCodId'], 'txtModelo' => $_POST['txtModelo'], 'slcEstado' => $_POST['slcEstado'], 'txtSigla' => $_POST['txtSigla']));
                $ok ? $error = 4 : ($error = 2);
                break;
            case 'Eliminar':
                $ok = $obj_tmp->SetDelDatos($_POST['slc_cmb2']);
                $ok == 0 ? $error = 5 : ($ok ? $error = null : ($error = 2));
                break;
            default:
                break;
        }
        unset($record);
    }
    $atributos = "Onchange=Actual();";
    $slc_tmp = $obj_tmp->Get_ComboOpc(true, true, false, $atributos);
    $vec_tmp = $obj_tmp->Get_ArrayDatos();
} else {
    $error = 1;
}
/*
*	Funcion que convierte un valor de PHP a un valor Javascript.
*/
function valueToJsValue($value, $encoding = false)
{
    if (!is_numeric($value)) {
        $value = str_replace('\\', '\\\\', $value);
        $value = str_replace('"', '\\"', $value);
        $value = '"' . $value . '"';
    }
    if ($encoding) {
Esempio n. 2
0
$fecha_hoy = Date("Y-m-d");
$sqlFechaHoy = $db->conn->DBDate($fecha_hoy);
$check = 1;
$fechaf = date("dmy") . "_" . time("hms");
$num_car = 4;
$nomb_varc = "sgd_srd_codigo";
$nomb_varde = "sgd_srd_descrip";
include "{$ruta_raiz}/include/query/trd/queryCodiDetalle.php";
$querySerie = "select distinct ({$sqlConcat}) as detalle, sgd_srd_codigo \n\t         from sgd_srd_seriesrd order by detalle";
$rsD = $db->conn->query($querySerie);
$comentarioDev = "Muestra las Series Documentales";
include "{$ruta_raiz}/include/class/medioSoporteArchivo.class.php";
include "{$ruta_raiz}/include/tx/ComentarioTx.php";
print $rsD->GetMenu2("codserie", $codserie, "0:-- Seleccione --", false, "", "onChange='submit()' class='select' id='codserie'");
$obj_tmp = new medioSoporte($db->conn);
$slc_tmp = $obj_tmp->Get_ComboOpc(true, true, $slc_cmb2);
//$db->conn->debug=true;
?>
    </td>
<tr>
<?php 
if ($_POST['actua_subserie']) {
    ?>
 <td width="35" height="21"><input type=submit name=modi_subserie Value='Grabar Modificacion' class=botones_largo onclick="return val_datos();" ></td>
<?php 
}
?>
    <tr>
	<td width="125" height="21"  class='titulos2'>C&oacute;digo Subserie</td>
	<td width="125" valign="top" align="left" class='listado2'>
            <input name="tsub" id="tsub" type="text" size="5" value="<?php