コード例 #1
0
ファイル: Ajax.php プロジェクト: alejofix/Gape
 public function AsiganarAsesoresExcel($Parametro = false)
 {
     if ($Parametro == true and NeuralEncriptacion::DesencriptarDatos(AyudasConversorHexAscii::HEX_ASCII($Parametro), array(date("Y-m-d"), 'GESTION')) == date("Y-m-d")) {
         $DatosPost = AyudasPost::FormatoEspacio(AyudasPost::LimpiarInyeccionSQL($_POST));
         if (AyudasPost::DatosVacios($DatosPost) == false) {
             $DatosPost['Usuario'] = NeuralEncriptacion::DesencriptarDatos(AyudasConversorHexAscii::HEX_ASCII($DatosPost['Usuario']), array(date("Y-m-d"), 'GESTION'));
             $DatosPost['Listado'] = AyudasCopyPasteExcelArray::ConvertirExcelArrayColumnas($DatosPost['Listado'], array('Asesor'));
             $this->Modelo->AsignarAsesoresDesdeExcel($DatosPost['Listado'], $DatosPost['Usuario']);
             $Plantilla = new NeuralPlantillasTwig();
             echo $Plantilla->MostrarPlantilla('Ajax/AsignacionAsesores/ResultadoExcel.html', 'GESTION');
         } else {
             header("Location: " . NeuralRutasApp::RutaURL('Central'));
             exit;
         }
     } else {
         header("Location: " . NeuralRutasApp::RutaURL('Central'));
         exit;
     }
 }
コード例 #2
0
ファイル: Ajax_AdminUsuarios.php プロジェクト: alejofix/Gape
 public function AgregarAsesoresExcel($Validacion = false)
 {
     if ($Validacion == true and AyudasConversorHexAscii::HEX_ASCII($Validacion) == date("Y-m-d")) {
         if (AyudasPost::DatosVacios($_POST) == false) {
             $DatosPost = AyudasPost::FormatoEspacio(AyudasPost::LimpiarInyeccionSQL($_POST));
             $Excel = AyudasCopyPasteExcelArray::ConvertirExcelArrayColumnas($DatosPost['Excel'], array('Usuario', 'Nombres', 'Apellidos', 'Cedula'));
             $Resultado = $this->Modelo->AgregarAsesoresExcel($Excel);
             $Plantilla = new NeuralPlantillasTwig();
             $Plantilla->ParametrosEtiquetas('No_Guardados', $Resultado);
             echo $Plantilla->MostrarPlantilla('Ajax/AdminUsuarios/AsesoresExcel.html', 'GESTION');
         }
     }
 }