$dia = " "; $mes = " "; $año = " "; while ($tok !== false) { $año =strtok("/"); $mes =strtok("/"); $dia =strtok("/"); } */ $fechaNaci = "1994-09-01"; $tiposuper = $_POST['tipoSuper']; $s = new supervisor($_POST['nombSuper'], $_POST['apelSuper'], $_POST['idenSuper'], $fechaNaci, $_POST['geneSuper'], $_POST['ciudSuper'], $_POST['correoSuper'], $_POST['tipoSuper']); // echo $s->getIdentificacion(); $bool = $m->Insert("persona", "" . $s->getIdentificacion() . ",'" . $s->getNombres() . "','" . $s->getApellidos() . "','" . $s->getGenero() . "','" . $s->getFechaNaci() . "','" . $s->getCiudad() . "','" . $s->getCorreo() . "'"); $bool1 = $m->Insert("supervisor", $s->getIdentificacion() . ",'" . $s->getTipoSupervisor() . "'"); $t = " "; if ($tiposuper == "Practicas") { $t = "12"; } else { $t = "13"; } $bool2 = $m->Insert("cuenta", $s->getIdentificacion() . ",'" . $s->getCorreo() . "','" . $t . "'"); if ($bool == true && $bool1 == true && $bool2 == true) { ?> <script type="text/javascript"> alert("Supervisor registrado con exito"); window.location = "../CapaPresentacion/z-Supervisor/registroSupervisor.php";
$objconductor->setVar('id', $o['id_conductor']); $objconductor->getDB(); echo $objconductor->getNombres() . " " . $objconductor->getApellidos(); ?> </td><td><?php echo $o['vueltas_por_comision']; ?> </td><td><?php echo $o['monto']; ?> </td><td><?php echo $o['motivo']; ?> </td><td> <?php $objsupervisor = new supervisor(); $objsupervisor->setVar('id', $o['id_supervisor']); $objsupervisor->getDB(); echo $objsupervisor->getNombres() . " " . $objsupervisor->getApellidos(); ?> </td> </tr> <?php } } ?> <?php $nombre_tabla = 'comisiones'; require_once 'recursos/componentes/footer.php'; ?>