Example #1
0
<?php

//Consultar la muestra registrada, convertirlos los datos extraidos en informacion entendible al usuario y  ordenarlos en una tabla
$reg = $muestra->consultar_muestra($mysqli, $Cod_muestra);
$objfinca = new finca();
$regf = $objfinca->consultar_finca($mysqli, $Finca);
if ($reg[2] == '1') {
    $tip = 'Vegetal';
}
if ($reg[2] == '2') {
    $tip = 'De suelo';
}
if ($reg[2] == '3') {
    $tip = 'De sustrato';
}
if ($reg[2] == '4') {
    $tip = 'Lixiviado';
}
if ($reg[2] == '5') {
    $tip = 'De agua';
}
if ($reg[2] == '6') {
    $tip = 'De insectos';
}
if ($reg[2] == '7') {
    $tip = 'otros';
}
if ($reg[7] == '1') {
    $topo = 'Plano';
}
if ($reg[7] == '2') {
Example #2
0
        $VarAux = explode("-", $code3);
        $VarAux[3] = $VarAux[3] + 1;
        $CodeAux = '';
        $s = '-';
        foreach ($VarAux as $id) {
            if ($CodeAux == '') {
                $CodeAux = $id;
            } else {
                $CodeAux .= $s . $id;
            }
        }
    }
}
$tipo1 = 1;
$tipo2 = 2;
$objfinca = new finca();
$finca = $objfinca->consultar_finca_all($mysqli, $Ced_cliente);
$objanalisis = new analisis();
$analisis = $objanalisis->consultar_analisis_muestra($mysqli, $tipo2);
$analisis2 = $objanalisis->consultar_analisis_muestra($mysqli, $tipo1);
if (isset($ModificarM)) {
    if (isset($suelo)) {
        $Cod_muestra = $suelo;
        $code2 = $suelo;
        $varsuelo = "";
    }
    if (isset($fito)) {
        $Cod_muestra = $fito;
        $code1 = $fito;
        $varfito = "";
    }
Example #3
0
			<hgroup>
				<h1>Nuevo Cliente</h1>
			</hgroup>
		</div>
		<?php 
if (isset($_GET['var1'])) {
    $var1 = $_GET["var1"];
}
if (isset($_POST['Modificar'])) {
    extract($_POST);
    $Ced_cliente = $Modificar;
    require_once '../../system/class.php';
    $client = new cliente();
    $reg = $client->consultar_cliente($mysqli, $Ced_cliente);
    if ($_SESSION['privilegios'] == 1) {
        $fin = new finca();
        $reg2 = $fin->consultar_finca_all($mysqli, $Ced_cliente);
    }
}
?>

			<form class="contact_form" method="post" action="resultados">

				<br><label for="Ced_cliente">Cédula</label>
                <input required type="num" name="Ced_cliente" id="Ced_cliente" value="<?php 
echo $reg[1] . $var1;
?>
" title="Introduzca la cédula " maxlength="8" placeholder="" pattern="\d{6,}" />
                <span class="form_hint">Debe contener solo caracteres númericos"</span><br />
				<label for="Nom_cliente">Nombres</label>
					<input required type="text" name="Nom_cliente" id="Nom_cliente" value="<?php