include_once "../controller/cExpediente.php"; include_once "../helper/uploadFileClass.php"; var_dump($_POST); $adjuntos = new uploadFile(); $exped = new cExpediente(); //expediente $m = $exped->regNvoExp($_POST['txtRazonSocial'], '', '', '', $_POST['txtFechaConstitucion'], $_POST['tipoExp'], $_POST['compartir'], $_POST['prestarsinob'], 1, $_POST['ciudadOrigen'], $_POST['edoOrigen'], $_POST['txtTelefono'], $_POST['txtEmail'], 'N/A', $_POST['txtRFC'], $_POST['nacionalidad'], 1, $_POST['giro'], $_POST['txtObservaciones']); $exped->creaPerfilTrans($m, $_POST['ingreso_mensual'], $_POST['origen_recursos'], $_POST['giro'], $_POST['destino_recursos']); //domicilio $dom = $exped->regDomClte($m, $_POST['txtCalle'], $_POST['txtAvenida'], $_POST['numext'], $_POST['numint'], $_POST['txtColonia'], $_POST['txtCP'], $_POST['txtCiudad'], $_POST['txtEstado'], '', 1, $_POST['txtDelegacion'], $_POST['txtPais'], '', '', '', '', '', $_POST['referenciaDom']); for ($i = 1; $i <= $_POST['numReprs']; $i++) { $repre = $exped->regMiembrosPM($m, $_POST['txtApePaterno' . $i], $_POST['txtApeMaterno' . $i], $_POST['txtNombre' . $i], $_POST['txtPuesto' . $i]); //registra adjunto de identificacion oficial del representante if (!empty($_FILES['idenRep' . $i]['name'])) { $adjuntos->guardarArchivo('idenRep' . $i, $m); $exped->regAdjuntosRepPMS($_FILES['idenRep' . $i]['name'], $repre, $_POST['cbmIdenRep' . $i]); } else { $exped->regAdjuntosRepPMS('sin adjunto', $repre, $_POST['cbmIdenRep' . $i]); } //registra el poder notarial del representante if (!empty($_FILES['idenRep' . $i]['name'])) { $adjuntos->guardarArchivo('adjPoderRepr' . $i, $m); $exped->regAdjuntosRepPMS($_FILES['adjPoderRepr' . $i]['name'], $repre, 39); } else { $exped->regAdjuntosRepPMS('sin adjunto', $repre, 39); } } //registra adjunto de domicilio if (!empty($_SESSION['comproDom']['name'])) { $adjuntos->guardarArchivo("comproDom", $m); $exped->regAdjuntoDom($dom, $_SESSION['tipoDocIden']['name'], $_POST['tipoDocIden']);