本文整理汇总了PHP中alumno::insertarAlumno方法的典型用法代码示例。如果您正苦于以下问题:PHP alumno::insertarAlumno方法的具体用法?PHP alumno::insertarAlumno怎么用?PHP alumno::insertarAlumno使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类alumno
的用法示例。
在下文中一共展示了alumno::insertarAlumno方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$MontoGeneral = $cnf['Valor'];
} else {
$cnf = $conf->mostrarConfig("MontoGeneral");
$MontoGeneral = $cnf['Valor'];
}
$valuesDoc = array('CodDocumento' => 'Null', 'CodAlumno' => $CodAlumno, 'CertificadoNac' => $CertificadoNac, 'LibretaEsc' => $LibretaEsc, 'LibretaVac' => $LibretaVac, 'CedulaId' => $CedulaId, 'CedulaIdP' => $CedulaIdP, 'CedulaIdM' => $CedulaIdM, 'Observaciones' => "LOWER('{$ObservacionesDoc}')");
$valuesAl = array('CodAlumno' => "{$CodAlumno}", 'Paterno' => "LOWER('{$Paterno}')", 'Materno' => "LOWER('{$Materno}')", 'Nombres' => "LOWER('{$Nombres}')", 'Sexo' => $Sexo, 'LugarNac' => "LOWER('{$LugarNac}')", 'FechaNac' => "'{$FechaNac}'", 'Ci' => "'{$Ci}'", 'CiExt' => "'{$CiExt}'", 'Zona' => "LOWER('{$Zona}')", 'Calle' => "LOWER('{$Calle}')", 'Numero' => "LOWER('{$Numero}')", 'TelefonoCasa' => "'{$TelefonoCasa}'", 'Celular' => "'{$Celular}'", 'CelularSMS' => "'{$CelularSMS}'", 'ActivarSMS' => "'{$ActivarSMS}'", 'Procedencia' => "LOWER('{$Procedencia}')", 'Repitente' => $Repitente, 'Traspaso' => $Traspaso, 'Becado' => $Becado, 'MontoBeca' => $MontoBeca, 'PorcentajeBeca' => $PorcentajeBeca, 'Retirado' => $Retirado, 'FechaRetiro' => "'{$FechaRetiro}'", 'Rude' => "'{$Rude}'", 'Observaciones' => "LOWER('{$Observaciones}')", 'ApellidosPadre' => "LOWER('{$ApellidosPadre}')", 'NombrePadre' => "LOWER('{$NombrePadre}')", 'CiPadre' => "'{$CiPadre}'", 'CiExtP' => "'{$CiExtP}'", 'OcupPadre' => "LOWER('{$OcupPadre}')", 'CelularP' => "'{$CelularP}'", 'ApellidosMadre' => "LOWER('{$ApellidosMadre}')", 'NombreMadre' => "LOWER('{$NombreMadre}')", 'CiMadre' => "'{$CiMadre}'", 'CiExtM' => "'{$CiExtM}'", 'OcupMadre' => "LOWER('{$OcupMadre}')", 'CelularM' => "'{$CelularM}'", 'Email' => "LOWER('{$Email}')", 'Nit' => "'{$Nit}'", 'FacturaA' => "LOWER('{$FacturaA}')", 'CodCurso' => $CodCurso, 'FechaIns' => "'{$FechaInsc}'", 'HoraIns' => "'{$HoraIns}'", 'UsuarioAlumno' => "'{$CodUsuarioAlumno}'", 'CodBarra' => "'{$CodBarra}'", 'Password' => "'{$Password}'", 'PasswordP' => "'{$PasswordP}'", 'UsuarioPadre' => "'{$UsuarioPadre}'");
$fechaCuota = date("Y-m-d H:i:s");
for ($i = 1; $i <= 10; $i++) {
if ($i == 1) {
$valuesCuota = array('CodCuota' => 'NULL', 'CodAlumno' => $CodAlumno, 'Numero' => $i, 'MontoPagar' => $MontoGeneral, 'Factura' => "''", 'Cancelado' => 0, 'Fecha' => "'{$fechaCuota}'", 'Observaciones' => "''");
} else {
$valuesCuota = array('CodCuota' => 'NULL', 'CodAlumno' => $CodAlumno, 'Numero' => $i, 'MontoPagar' => $MontoPagar, 'Factura' => "''", 'Cancelado' => 0, 'Fecha' => "'{$fechaCuota}'", 'Observaciones' => "''");
}
//echo "<br>";
//print_r($valuesCuota);
$cuota->guardar($valuesCuota);
}
if ($NombreFoto = subirArchivo($_FILES['Foto'], "imagenes/alumnos/")) {
$valuesAl = array_merge(array("Foto" => "'{$NombreFoto}'"), $valuesAl);
}
$alumno->insertarAlumno($valuesAl);
$documento->guardarDocumento($valuesDoc);
$valuesRude = array('CodAlumno' => $CodAlumno, 'PaisN' => "'" . $tmprude['PaisN'] . "'", 'ProvinciaN' => "'" . $tmprude['ProvinciaN'] . "'", 'LocalidadN' => "'" . $tmprude['LocalidadN'] . "'", 'Documento' => $tmprude['Documento'], 'CertOfi' => "'" . $tmprude['CertOfi'] . "'", 'CertLibro' => "'" . $tmprude['CertLibro'] . "'", 'CertPartida' => "'" . $tmprude['CertPartida'] . "'", 'CertFolio' => "'" . $tmprude['CertFolio'] . "'", 'Paralelo' => "'" . $tmprude['Paralelo'] . "'", 'Turno' => "'" . $tmprude['Turno'] . "'", 'CodigoSie' => "''", 'NombreUnidad' => "''", 'ProvinciaE' => "'" . $tmprude['ProvinciaE'] . "'", 'MunicipioE' => "'" . $tmprude['MunicipioE'] . "'", 'ComunidadE' => "'" . $tmprude['ComunidadE'] . "'", 'LenguaMater' => "'" . $tmprude['LenguaMater'] . "'", 'CastellanoI' => $tmprude['CastellanoI'], 'AymaraI' => $tmprude['AymaraI'], 'InglesI' => $tmprude['InglesI'], 'PerteneceA' => "'" . $tmprude['PerteneceA'] . "'", 'CentroSalud' => $tmprude['CentroSalud'], 'VecesCentro' => "'" . $tmprude['VecesCentro'] . "'", 'Discapacidad' => "'" . $tmprude['Discapacidad'] . "'", 'AguaDomicilio' => $tmprude['AguaDomicilio'], 'Electricidad' => $tmprude['Electricidad'], 'Alcantarillado' => $tmprude['Alcantarillado'], 'Trabaja' => "'" . $tmprude['Trabaja'] . "'", 'InternetCasa' => $tmprude['InternetCasa'], 'Transporte' => "'" . $tmprude['Transporte'] . "'", 'TiempoLlegada' => "'" . $tmprude['TiempoLlegada'] . "'", 'InstruccionP' => "'" . $tmprude['InstruccionP'] . "'", 'IdiomaP' => "'" . $tmprude['IdiomaP'] . "'", 'ParentescoP' => "'" . $tmprude['ParentescoP'] . "'", 'InstruccionM' => "'" . $tmprude['InstruccionM'] . "'", 'IdiomaM' => "'" . $tmprude['IdiomaM'] . "'", 'Lugar' => "'" . $tmprude['Lugar'] . "'", 'FechaReg' => "'" . date("Y-m-d H:i:s") . "'");
$classrude->insertarAlumno($valuesRude);
$tmpalumno->actualizarVisor($CodAlu);
include_once "../class/tmpcola.php";
$tmpcola = new tmpcola();
$tmpcola->insertarRegistro(array("CodAlumno" => $CodAlumno, "Estado" => "'Espera'"));
header("Location:../rude/esperarude/?CodAlumno=" . $CodAlumno);
}