'1', 'data' => json_encode(array("term" => $term))); $handle = curl_init($url); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($handle, CURLOPT_TIMEOUT, 30 ); $output = curl_exec($handle); curl_close($handle); $data = json_decode($output, true); echo json_encode($data["data"]); exit; } // ToDo: captcha? $apellido = trim($_POST["apellido"]); $id_empresa = trim($_POST["id_empresa"]); if ($apellido){ $data = array('jfhdgkfjerigjdfkjghjkdfsghkjfdhg' => '1', 'data' => json_encode(array("apellido" => $apellido, "id_empresa" => $id_empresa))); $handle = curl_init($url); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($handle, CURLOPT_TIMEOUT, 30 ); $output = curl_exec($handle); curl_close($handle); $data = json_decode($output, true); echo json_encode($data["data"]); exit; } /* // Borrar - se agrega en ActividadConsultar $xCampoProducto = trim($_GET["actividad"]); if ($xCampoProducto){ $data = array('xCampoProducto' => '1', 'data' => json_encode(array("xCampoProducto" => $xCampoProducto))); $handle = curl_init($url); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($handle, CURLOPT_TIMEOUT, 30 ); $output = curl_exec($handle); curl_close($handle); $data = json_decode($output, true); //echo json_encode($data["data"]); //exit; if (is_array($data)){ $producto_xCampoProducto =$data["data"][0]["Descripcion_ProductoX"] ; } } */ //$dic[$language]["error1"] // $_SESSION["inscripcion_lan"] $dic[0]["error1"] = "Error en la solicitud."; $dic[0]["comenzar"] = "Comenzar solicitud de inscripción a"; $dic[0]["obligatorios"] = "Los datos marcados en naranja son obligatorios."; $dic[0]["anterior"] = "Si usted ya se inscribió a alguna actividad anteriormente complete los siguientes campos para agilizar el proceso de inscripción."; $dic[0]["txtnuevo"] = "Caso contrario, haga click en el Botón \"Nuevo Usuario\"."; $dic[0]["apellido"] = "Apellido"; $dic[0]["empresa"] = "Empresa"; $dic[0]["nuevo"] = "Nuevo Usuario"; $dic[0]["buscar"] = "Buscar"; $dic[0]["tabla apellido y nombre"] = "Apellido y Nombre"; $dic[0]["tabla empresa"] = "Empresa"; $dic[0]["tabla nombre fantasia"] = "Nombre de Fantasía"; $dic[0]["msg sin resultados"] = "No hay resultados"; $dic[0]["msg 100 resultados"] = "Hay más de 10 resultados. Ingrese más información en la búsqueda."; $dic[0]["msg error 1"] = "Se produjo un error, modifique los datos e intente nuevamente"; $dic[0]["inscribir"] = "Inscribir"; $dic[0]["precio socios"] = "Precio socios:"; if ( $_GET["actividad"]=="0305180001" || $_GET["actividad"]=="0301180002" || $_GET["actividad"]=="0401180033" || $_GET["actividad"]=="0401180034" || $_GET["actividad"]=="0401180035" ) $dic[0]["precio socios"] = "Precio:"; $dic[0]["precio no socios"] = "Precio no socios:"; $dic[1]["error1"] = "Error in the request."; $dic[1]["comenzar"] = "Start registration request to"; $dic[1]["obligatorios"] = "The data marked in orange are required."; $dic[1]["anterior"] = "If you have already signed up for an activity before, complete the following fields to expedite the registration process."; $dic[1]["txtnuevo"] = "Otherwise, click on the button \"New user\"."; $dic[1]["apellido"] = "Last name"; $dic[1]["empresa"] = "Company"; $dic[1]["nuevo"] = "New user"; $dic[1]["buscar"] = "Search"; $dic[1]["tabla apellido y nombre"] = "Last name and Name"; $dic[1]["tabla empresa"] = "Company"; $dic[1]["tabla nombre fantasia"] = "Company Name"; $dic[1]["msg sin resultados"] = "No results"; $dic[1]["msg 100 resultados"] = "There are more than 10 results. Enter more information in the search."; $dic[1]["msg error 1"] = "An error occurred, modify the data and try again"; $dic[1]["inscribir"] = "Enroll"; $dic[1]["precio socios"] = "Members' price:"; if ( $_GET["actividad"]=="0305180001" || $_GET["actividad"]=="0301180002" || $_GET["actividad"]=="0401180033" || $_GET["actividad"]=="0401180034" || $_GET["actividad"]=="0401180035" ) $dic[1]["precio socios"] = "Price:"; $dic[1]["precio no socios"] = "Non-members' price:"; // ================================== // Modificado 07/11/19 // ================================== // 0505 -> 0520 // 0503 -> 0522 // Benchmarking -> 0521 // Estudios Sociales Empresariales -> 0523 if (substr($_GET["actividad"], 0, 4)=="0520"){ $dic[0]["comenzar"] = "Comenzar participación en Relevamiento"; $dic[1]["comenzar"] = "Start participation in the Survey"; } if (substr($_GET["actividad"], 0, 4)=="0522"){ $dic[0]["comenzar"] = "Comenzar participación en Pulso"; $dic[1]["comenzar"] = "Start participation in Pulse"; } if (substr($_GET["actividad"], 0, 4)=="0521"){ $dic[0]["comenzar"] = "Comenzar participación en Benchmarking"; $dic[1]["comenzar"] = "Start participation in Benchmarking"; } if (substr($_GET["actividad"], 0, 4)=="0523"){ $dic[0]["comenzar"] = "Comenzar participación en Estudios Sociales Empresariales"; $dic[1]["comenzar"] = "Start participation in Business Social Studies"; } // datos del evento if ($_GET["actividad"]){ $data = array('ActividadConsultar' => '1', 'data' => json_encode(array("evento" => trim($_GET["actividad"])))); $handle = curl_init($url); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($handle, CURLOPT_TIMEOUT, 30 ); $output = curl_exec($handle); curl_close($handle); $evento = json_decode($output, true); $evento = $evento["data"][0]; //print_r($evento); //print_r($evento); exit; //$evento["producto_inscripcion_sin_dni"] $producto_precio_socio =$evento["Precio_Socio"]; $producto_precio_nosocio =$evento["Precio_No_Socio"]; $producto_anticipada_precio_socio=$evento["Precio_Socio_Anticipada"]; $producto_anticipada_precio_nosocio=$evento["Precio_No_Socio_Anticipada"]; $producto_EtiquetaPrecioSocio = $evento["producto_EtiquetaPrecioSocio"]; $Opcion_Mostrar_Precio=$evento["Opcion_Mostrar_Precio"]; // verifica token producto_link_uso_unico if ($evento["producto_link_uso_unico"]){ $data = array('TokenConsultar' => '1', 'data' => json_encode(array( "evento" => trim($_GET["actividad"]), "token" => trim($_GET["token"]), ))); $handle = curl_init($url); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($handle, CURLOPT_CONNECTTIMEOUT, 30); curl_setopt($handle, CURLOPT_TIMEOUT, 30 ); $output = curl_exec($handle); curl_close($handle); $token_info = json_decode($output, true); $token_info = $token_info["data"]; if (!$token_info["producto_link_uso_unico_valido"]){ if (trim($token_info["Nota_Rechazo"]) != ""){ $msg = trim($token_info["Nota_Rechazo"]); }else{ $msg = "¡Atención! Has completado el cupo de lugares disponibles de tu empresa para el evento.
Comunicate con tu contacto interno en la empresa para más información.
Si querés adquirir matrículas por fuera de esta categoría, escribinos a info@idea.org.ar
"; } } if ($_GET["debug"]==999){ print_r($token_info); } } } include "header.php"; ?> " . $token_info["Nombre_Fantasia_Empresa"] . ""; } if ($token_info["Flag_Visualizar_Cupo"]){ echo "

Matrículas disponibles " . ($token_info["Cant_Usos_Permitidos"]-$token_info["Cant_Usos_Realizados"]) . " de " . $token_info["Cant_Usos_Permitidos"] . "

"; } ?>

0) { // verifico algo tiene precio ?>

0,00

$ 0,00

$ 0,00 | $ 0,00

0,00

$ 0,00

$ 0,00 | $ 0,00