diff --git a/.htaccess_qwerty b/.htaccess_qwerty
deleted file mode 100755
index ddc889b..0000000
--- a/.htaccess_qwerty
+++ /dev/null
@@ -1,10 +0,0 @@
-Options +FollowSymLinks
-Options +Indexes
-RewriteEngine On
-
-## using www for url shortener domain is bad idea :D
-RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
-RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
-RewriteCond %{SCRIPT_FILENAME} !-f
-RewriteCond %{SCRIPT_FILENAME} !-d
-RewriteRule (.*) index.php?v=$1 [QSA,L]
diff --git a/index.php~ b/chamitrip.php
similarity index 88%
rename from index.php~
rename to chamitrip.php
index e444933..46f1261 100755
--- a/index.php~
+++ b/chamitrip.php
@@ -6,11 +6,11 @@ if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
$xajax = new xajax("");
//$xajax = new xajax("https://tupale.co/index.php");
require ("milfs/funciones/conex.php");
- require ('milfs/funciones/funciones.php');
- include ('milfs/addon/funciones.php');
- require ("milfs/includes/markdown.php");
- require ("milfs/includes/parametrizacion.php");
- require ("milfs/includes/simple_html_dom.php");
+ require ('milfs/funciones/funciones.php');
+ include ('milfs/addon/funciones.php');
+ require ("milfs/includes/markdown.php");
+ require ("milfs/includes/parametrizacion.php");
+ require ("milfs/includes/simple_html_dom.php");
$xajax->processRequests(); ?>
@@ -31,6 +31,7 @@ if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
$embebido =0;
$acceso = 0;
$onload="";
+$menu_lateral="";
$id_empresa="";
$link_empresa="";
$razon_social="";
@@ -465,7 +466,7 @@ legend.legend-area {
}
else {
- $tema= "magazine";
+ $tema= "chamitrip";
$css ='
';
@@ -760,50 +761,101 @@ document.oncopy = addLink;
}
else{ /* SI NO SE SOLICITA UN EMBEBIDO SE CONTINUA CON EL FLUJO DEL HTML */
+
+ $enable_menu = false;
+
?>
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
0 ? $slogan[0] : '...Descubre - Vive - Comparte...'; ?>
+
+
+
+
+
+
+
+
+
+
+
";
- }
-
-
- } else{$listado_atenciones.="
No hay resultados "; $cuadro_area ="$listado_atenciones ";}
-
-// }///fin de las atenciones mostradas por timestamp
-
-/// }/// fin de las atenciones en ese turno
-
-/// else{$listado_atenciones.="";}
-/// fin de la clasificacion de atenciones por timestamp
-
-//$nombre_paciente = usuario_datos_consultar($id_usuario,'usuario','nombre_completo');
-$nuevo_select = "
Resumen de atenciones
-
-
-
-$area
-
-
-
-";
-
-return $cuadro_area;
-
-}
-
-
-
-
-function borrar_linea($tabla,$id,$div){
- if($usuario =="") {
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$id);
- mysqli_real_escape_string($link,$tabla);
- $consulta ="DELETE FROM $tabla WHERE `id` = '$id' AND id_empresa = '$_SESSION[id_empresa]' LIMIT 1";
- $sql=mysqli_query($link,$consulta);
- if($sql){ $resultado ="
El registro fue eliminado
"; }
- else { $resultado ="
No se pudo eliminar el registro
"; }
- }
- if($div =="") {
- return ;
- }else{
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
- }
-
-
-}
-$xajax->registerFunction("borrar_linea");
-
-
-
-function autorizar_usuarios($usuario,$grupo,$accion){
- if($usuario =="") {
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$usuario);
- $consulta ="
- SELECT *, form_parametrizacion.id as id, usuarios.id as usuario FROM `form_parametrizacion`, usuarios WHERE form_parametrizacion.campo = usuarios.id
- AND form_parametrizacion.id_empresa ='$_SESSION[id_empresa]' AND descripcion ='autorizacion' ORDER BY p_nombre ASC";
- $sql=mysqli_query($link,$consulta);
- if($sql){
- if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- $opciones ="
Nombres Email Rol Acción ";
- while( $row = mysqli_fetch_array( $sql ) ) {
- $rol ="
-
-
- ".ucfirst ($row['opcion'])."
- Editor
- Administrador
-
- ";
- $revocar= "
-
- Revocar
-
";
- $opciones .="
$row[p_nombre] $row[p_apellido] $row[email] $row[opcion] $revocar ";
- }
-
- $resultado="
-
-
-
- ";
- }
- }
- $resultado = "
-
-
Gestión de usuarios
- $resultado
-
-
-
-
- ";
- }else {
- $respuesta = new xajaxResponse('utf-8');
- $verifica = remplacetas('usuarios','email',"$usuario",'id',"") ;
- if($verifica[0] =="") {
- $resultado ="
El usuario $usuario no está registrado $verifica[0] ";
- $respuesta->addAssign("div_autorizacion_confimar","innerHTML","$resultado");
- }
- else {
- //xajax_parametrizacion_linea('id_empresa','campo','opcion','descripcion','DIV');
- //parametrizacion_linea($tabla,$campo,$opcion,$descripcion,$div)
- $respuesta->addScript("xajax_parametrizacion_linea('id_empresa','$verifica[0]','editor','autorizacion','autorizacion_confimar')");
- $resultado ="
Se agregó el usuario $usuario
";
- $respuesta->addAssign("div_autorizacion_confimar","innerHTML","$resultado");
-
-
-
- }
- return $respuesta;
- }
-
-
-return $resultado;
-}
-$xajax->registerFunction("autorizar_usuarios");
-
-function cambiar_empresa($id_usuario,$id_empresa) {
- $principal = remplacetas('usuarios','id',$id_usuario,'id_empresa',"") ;
- $principal_nombre = remplacetas('empresa','id',$principal[0],'razon_social',"") ;
-if($id_empresa !="") {
- $respuesta = new xajaxResponse('utf-8');
- if($id_empresa=="principal") {
-
-
- $_SESSION[id_empresa] = "$principal[0]";
- $_SESSION[grupo] = "1";
- $respuesta->addRedirect("e$principal[0]");
- $respuesta->addAssign("div_cambiar_empresa","innerHTML","$resultado");
- return $respuesta;
- }
-
- $revisar_usuario = remplacetas('form_parametrizacion','campo',"$id_usuario",'opcion'," tabla='id_empresa' and descripcion = 'autorizacion'") ;
- if($revisar_usuario[0]=="") {
- $resultado ="
No tiene autorizacion ";
- }else{
- $_SESSION[id_empresa] = "$id_empresa";
- $_SESSION[grupo] = "$revisar_usuario[0]";
- }
- $respuesta->addAssign("div_cambiar_empresa","innerHTML","$resultado");
- $respuesta->addRedirect("e$id_empresa");
- return $respuesta;
-}
-
-
-$link=Conectarse();
- mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$id_usuario);
- $consulta ="SELECT empresa.id, razon_social, opcion FROM form_parametrizacion , empresa
- WHERE form_parametrizacion.id_empresa = empresa.id AND `campo` = '$id_usuario' AND descripcion ='autorizacion' ORDER BY razon_social";
-
- $sql=mysqli_query($link,$consulta);
- if($sql){
- if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- $opciones ="
$principal_nombre[0] ";
- while( $row = mysqli_fetch_array( $sql ) ) {
- if($_SESSION[id_empresa] == $row[id]) { $selected='selected';}else{ $selected='';}
- $opciones .="
$row[razon_social] ";
- }
-
- $select="
-
$opciones ";
- }
-
- }
- return $select;
-
-
-}
-$xajax->registerFunction("cambiar_empresa");
-
-
-function clonar_identificador($control){
- $nuevo_control = md5(rand(1,99999999).microtime());
- $ip = obtener_ip();
- $graba_ip = "INET_ATON('".$ip."') ";
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$control);
- $consulta="SELECT * FROM form_datos WHERE control ='$control'";
- $sql=mysqli_query($link,$consulta);
- if($sql){
- if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
- $values .= "('$row[id_campo]','$row[form_id]','$row[proceso]', '$row[orden]', '$_SESSION[id]', '$row[id_empresa]','".mysqli_real_escape_string($link,$row['contenido'])."',UNIX_TIMESTAMP(),$graba_ip, '$nuevo_control'),";
- }
- $values = substr($values, 0, -1);
- $values = "(`id_campo`, `form_id`, `proceso`, `orden`, `id_usuario`,`id_empresa`,`contenido`,`timestamp`,`ip`,`control`) VALUES $values ";
- }
- $consulta_insertar_campos = "INSERT INTO form_datos $values ";
- $sql_insert_campos=mysqli_query($link,$consulta_insertar_campos);
- }
- $respuesta = new xajaxResponse('utf-8');
- $resultado ="
-
-
El registro fue clonado a $nuevo_control Por favor actualice esta vista
-
- ";
- //$respuesta->addAlert("EL REGISTRO SE CLONO $nuevo_control");//
Consultar
- //$resultado=" $consulta // $consulta_insertar_campos ";
- $respuesta->addAssign("clonar_$control","innerHTML","$resultado");
- return $respuesta;
-
- }
-$xajax->registerFunction("clonar_identificador");
-
-
-
-function cerrar_sesion(){
-
- session_destroy();
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addRedirect("");
- return $respuesta;
-
- }
-$xajax->registerFunction("cerrar_sesion");
-
-
-function listado_entradas($formulario,$registros){
- $campo_titulo = remplacetas('form_parametrizacion','campo',$formulario,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
- if($campo_titulo[0] !="") { $w_campo ="AND id_campo='$campo_titulo[0]' "; $w_nombre_campo =" id_campo='$campo_titulo[0]' "; }
-$consulta = "SELECT * FROM form_datos WHERE form_id='$formulario' $w_campo GROUP BY control ORDER BY id DESC LIMIT $registros ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$consulta);
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado = mysqli_num_rows($sql);
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- $contenido =strip_tags($row['contenido']);
- if($campo_titulo[0] !="") {
- $nombre = remplacetas_orden('form_datos','control',$row['control'],'contenido'," $w_nombre_campo " ,"ORDER BY timestamp DESC") ;
- }else {$nombre[0] = $contenido; }
-
- $maximo ="80";
- $size= strlen($contenido);
- if($size > $maximo) {
- $contenido =substr($contenido,0,$maximo)."... ";
- }
- else{
- $contenido = $contenido;
- }
- ///href='../d$row[control]'
- $listado .= "
-
$nombre[0]
-
- ";
-
-}
-
-$resultado= "
-
";
-}
-
-
-return $resultado;
-
-}
-$xajax->registerFunction("listado_entradas");
-
-
-function panel_aplicaciones($tipo,$empresa,$div){
- $registros='10';
- if($empresa=="" AND $_SESSION['id'] !="") { $w_empresa ="AND propietario = '$_SESSION[id]' ";}
- elseif($empresa=="" ) { $w_empresa ="AND id_empresa = '$_SESSION[id_empresa]' ";}
- else{ $w_empresa ="AND id_empresa = '$empresa' ";}
-
-$consulta = "SELECT * FROM form_id WHERE activo='$tipo' $w_empresa ORDER BY id DESC ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$consulta);
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado = mysqli_num_rows($sql);
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-
- $entradas = listado_entradas($row['id'],"$registros");
- //href='../g$row[id]'
- $listado .= "
-
-
-
- ";
-
-}
-
-$resultado= "
-
Cerrar (X)
-
Aplicaciones disponibles
-
- $listado
-
-
-
-
";
-}
-if($div =="") {
- $cambiar_empresa = cambiar_empresa($_SESSION['id'],'');
-$boton="
-
-
";
-$resultado="$boton";
-return $resultado;
-}else {
-
-$respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
-
- }
-}
-$xajax->registerFunction("panel_aplicaciones");
-
-
-function asistente_aplicaciones($accion,$id,$nombre,$descripcion){
-$div = "asistente_aplicacion";
-$respuesta = new xajaxResponse('utf-8');
- $nombre_original = remplacetas('form_id',"id","$id",'nombre',"") ;
- $nombre_original = $nombre_original[0] ;
-
- $descripcion_original = remplacetas('form_id',"id","$id",'descripcion',"") ;
- $descripcion_original = strip_tags($descripcion_original[0]);
-
- $encabezado ="
-
$nombre
-
$descripcion
-
$nombre_original $descripcion_original
- ";
-
- if($accion =="" ) {
- $resultado= "
-
-
-
CREA TU APLICACIÓN EN 3 PASOS
-
";
- return $resultado;
- }
- elseif($accion=='listado') {
- if(!isset($_SESSION['id']) AND !isset($_SESSION['control_usuario_milfs']) ) {
-
- $habilitado="";
- $disable ="disabled";
- $aviso ="
Por favor ingresa o regístrate para empezar a crear tu aplicación.";
-
- }
- else{
- $validar_email = verificacion_email("$_SESSION[nombre_usuario_milfs]",'','verificar');
- if($validar_email =="" and !isset($_SESSION[id])) {
- $aviso ="
Por verifica tu email para empezar a crear tu aplicación.";;
- $habilitado="";
- $disable ="disabled";}
- else {
- $aviso="
Elige un tipo de aplicación ";
- $habilitado="1";
- }
- }
- $consulta = "
- SELECT form_id.id, nombre,descripcion FROM form_id, form_grupo
- WHERE form_id.id = form_grupo.id AND form_id.id_empresa = '1' AND form_grupo.grupo = 'Publico'
- ORDER BY nombre ASC ";
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$consulta);
- $sql=mysqli_query($link,$consulta);
- if (mysqli_num_rows($sql)!='0'){
- while( $row = mysqli_fetch_array( $sql ) ) {
- if($habilitado=="1") {$onclick="onclick=\"xajax_asistente_aplicaciones('nombre','$row[id]','','');\";";}
- else{$onclick="onclick=\"alert('Por favor ingresa o regístrate para empezar a crear tu aplicación.')\";";}
- $listado .= "
-
-
- ".strip_tags($row['nombre'])."
- ".strip_tags($row['descripcion'])."
-
-
- ";
-
- }
- $resultado ="
- $aviso
-
- $listado";
- }
- }
- elseif($accion=='nombre') {
- $resultado ="
- $encabezado
-
- Pon un nombre a tu aplicación
-
-
-
-
-
-
ANTERIOR
-
SIGUIENTE
-
-
-
-
- ";
-
- }
- elseif($accion=='descripcion') {
- if($nombre=="") {
- $aviso="
Por favor pon un nombre a tu aplicación ";
- $respuesta->addAssign("nombre_aplicacion_input","className"," input-group has-error text-center ");
- $respuesta->addAssign("asistente_aviso","innerHTML","$aviso");
- return $respuesta;
-
- }
- $resultado ="
- $encabezado
-
-
-
-
-
ANTERIOR
-
SIGUIENTE
-
-
-
-
- ";
-
- }
- elseif($accion=='grabar') {
- if($descripcion=="") {
- $aviso="
Por favor describe tu aplicación ";
- $respuesta->addAssign("descripcion_aplicacion_input","className"," input-group has-error text-center ");
- $respuesta->addAssign("asistente_aviso","innerHTML","$aviso");
- return $respuesta;
-
- }
- $resultado=" $encabezado
-
-
-
-
ANTERIOR
-
GRABAR
-
-
- ";
- }
- else {}
-
-
-
-
-
-$respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
-
-}
-$xajax->registerFunction("asistente_aplicaciones");
-
-
-function mostrar_interacciones($identificador,$tipo,$usuario,$div){
- if($tipo=="todo") {
- $w_tipo ="";
- }else {
- $w_tipo ="AND tipo= '$tipo'";
- }
-$consulta = "SELECT * FROM form_interacciones WHERE identificador = '$identificador' $w_tipo ORDER BY timestamp DESC ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$consulta);
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado = mysqli_num_rows($sql);
-
-require ("milfs/includes/parametrizacion.php");
-
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- $usuario = remplacetas('form_datos','control',"$row[usuario]","contenido","id_campo = '$login_campo_nombres'") ;
- $nombre_usuario = remplacetas('form_datos','control',"$control_servicio[0]","contenido"," id_campo = '$login_campo_nombres'") ;
- $avatar_usuario = remplacetas('form_datos','control',"$control_servicio[0]","contenido","id_campo = '$login_campo_avatar'") ;
- if($tipo =="todo") {
- if($row[tipo] =="Mensaje"){ $alerta='default'; }
- elseif($row[tipo] =="Si"){ $alerta='success'; }
- elseif($row[tipo] =="No"){ $alerta='warning'; }
- elseif($row[tipo] =="Comentar"){ $alerta='info'; }
- else{ $alerta=''; }
-
- }
-
- $listado .= "
-
-
- ".strip_tags($row['mensaje'])."
- $usuario[0] $row[timestamp]
-
-
- ";
-
- }
-$resultado= "
-
-
-
- Interacciones
-
-
-
-
-
";
-}
-$respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
-
-}
-$xajax->registerFunction("mostrar_interacciones");
-
-
-function contar_interacciones($identificador,$tipo,$usuario){
- $resultado ="";
-$consulta = "SELECT distinct(id) as cantidad FROM form_interacciones WHERE identificador = '$identificador' AND tipo= '$tipo' ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$consulta);
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado = mysqli_num_rows($sql);
-//$resultado = mysqli_result($sql,0,"cantidad");
-}
-//$resultado .= " $consulta";
-return $resultado;
-}
-
-function interaccion_identificador($identificador,$accion) {
-$revisar_interacciones="";
-$respuesta = new xajaxResponse('utf-8');
- $empresa = remplacetas("form_datos","control","$identificador","id_empresa","");
- $id_formulario = remplacetas("form_datos","control","$identificador","form_id","");
- $id_form = $id_formulario[0];
- $id_empresa = $empresa[0];
-
- if(is_array($identificador)) {
- $identificador_array= $identificador;
- $tipo=$identificador['tipo'];
- $mensaje=$identificador['texto_interaccion'];
- $nuevo_identificador=$identificador['identificador'];
- $ip = obtener_ip();
- $graba_ip = "INET_ATON('".$ip."') ";
-
- $link=Conectarse();
-
- mysqli_set_charset($link, "utf8");
- $mensaje=strip_tags($mensaje) ;
- mysqli_real_escape_string($link,$mensaje);
- $consulta="INSERT INTO form_interacciones SET mensaje='".mysqli_real_escape_string($link,$mensaje)."' ,estado='0' ,identificador='$nuevo_identificador', tipo='$tipo',ip=$graba_ip,usuario='$_SESSION[control_usuario_milfs]' ";
- mysqli_real_escape_string($link,$consulta);
- $sql=mysqli_query($link,$consulta);
-
- if($sql) {
- require ("milfs/includes/parametrizacion.php");
- $empresa = remplacetas("form_datos","control","$nuevo_identificador","id_empresa","");
- $id_formulario = remplacetas("form_datos","control","$nuevo_identificador","form_id","");
- $id_form = $id_formulario[0];
- $id_empresa = $empresa[0];
- ///OBLIGA AL EMAIL DE LA EMPRESA PRINCIPAL
- $email = remplacetas("empresa","id","$id_empresa","email","");
- $administrador = remplacetas("empresa","id","1","email","");
- $reply = remplacetas("empresa","id","$id_empresa","email","");
- $imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
- $razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
- $web = remplacetas("empresa","id",$id_empresa,"web","");
- $slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
- $nombre_formulario = remplacetas("form_id","id","$id_form","nombre","");
- $titulo_email ="Alguien ha decidido
$tipo tu publicación ";
- $campo_imagen = buscar_campo_tipo("$id_form","15");
- $imagen_email = remplacetas('form_datos','id_campo',$campo_imagen[0],'contenido'," control = '$nuevo_identificador' ") ;
- $imagen_email = "https://$web[0]/milfs/images/secure/?file=600/$imagen_email[0]";
- $nombre_email = $razon_social[0];
- $cuerpo_email=" Tu aplicación
$nombre_formulario[0] ha recibido una interacción, por favor revísala cuando te sea posible. ";
-
-if($tipo =="Reportar") { $copia = " Cc: $administrador[0] \r\n";}
-
- $headers = "MIME-Version: 1.0\r\n";
- $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
- $headers .= "From: $razon_social[0] ".$administrador[0]."\r\n";
- $headers .= "Reply-To: $razon_social[0] ".$email[0]."\r\n";
- $headers .= "Return-path: $email[0]\r\n";
- $headers .= "$copia";
-
-$plantilla = remplacetas('form_parametrizacion','opcion',"plantilla:email_general",'descripcion',"id_empresa = '1'") ;
-$consulta_plantilla ="$plantilla[2]";
- $plantilla = html_entity_decode ( $plantilla[0] );
-eval("\$plantilla = \"$plantilla \";");
-$plantilla .="";
-$asunto= "Recibiste un mensaje en [$portal_sigla] ";
-
- if(mail("$email[0]","$asunto","$plantilla","$headers")){ $exito .="Tienes un email ! $headers $email[0] "; }else {$exito .=" Error enviando correo ";}
-
-
- $div = "".$tipo."_cantidad_$nuevo_identificador";
- $cantidad = contar_interacciones("$nuevo_identificador","$tipo","$_SESSION[control_usuario_milfs]");
- $resultado="
El mensaje se ha enviado, si es necesario nos comunicaremos contigo $exito";
- $respuesta->addAssign("$div","innerHTML","$cantidad");
-
- }else{
- $resultado="
Algo salió mal Por favor inténtalo de nuevo $consulta ";
- }
-
- $respuesta->addAssign("muestra_form","innerHTML","$resultado");
- $respuesta->addAssign("myModalLabel_info","innerHTML","$accion ");
- return $respuesta;
-
-
- }
- if($accion =="") {
- $cantidad_Si = contar_interacciones("$identificador","Si","");
- $cantidad_No = contar_interacciones("$identificador","No","");
- $cantidad_Comentar = contar_interacciones("$identificador","Comentar","");
- $cantidad_Reportar = contar_interacciones("$identificador","Reportar","");
- $cantidad_Mensaje = contar_interacciones("$identificador","Mensaje","");
- if(isset($_SESSION['id_empresa'])){
- if($_SESSION['id_empresa'] == "$id_empresa") {
- $revisar_interacciones=" Mostrar Todo
";
- }
- else {$revisar_interacciones="";}
- }
- $menu ="
-
-
Mensaje $cantidad_Mensaje
-
Si $cantidad_Si
-
No $cantidad_No
-
Reportar $cantidad_Reportar
-
Comentar $cantidad_Comentar
-
Mostrar
- $revisar_interacciones
-
-
-
- ";
- return $menu;
- }
- /*
- elseif($accion=="Si") { }
- elseif($accion=="No") { }
- elseif($accion=="Compartir") { }
- */
- else {
-if(isset($_SESSION['usuario_milfs']) ) {
-$formato="
-
-
-";
-
-}
-
-else{
- require ("milfs/includes/parametrizacion.php");
-/// SI EL USUARIO NO ESTA LOGUEADO
-$login = milfs_session("$login_formulario","$login_campo_usuario","$login_campo_password","","");
-$formato ="
-
Por favor ingresa para $accion
-$login
-";
-}
-
-}
-
-
- //$div_contenido = "$div
";
- $respuesta->addAssign("muestra_form","innerHTML","$formato");
- $respuesta->addAssign("myModalLabel_info","innerHTML","$accion $_SESSION[nombre_usuario_milfs] ");
- //$respuesta->addAssign("pie_modal","innerHTML","$pie");
- //$respuesta->addAssign("$div","innerHTML","$resultado");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
-
- return $respuesta;
-}
-$xajax->registerFunction("interaccion_identificador");
-
-function eliminar_identificador($identificador,$accion) {
- $respuesta = new xajaxResponse('utf-8');
- $div="eliminar_$identificador";
-if($accion =="") {
- $resultado="
-
-
Se eliminará definitivamente este registro
-
-
-";
-}
-if($accion =="eliminar") {
- $consulta_eliminar="DELETE FROM `form_datos` WHERE `form_datos`.`control` = '$identificador' ";
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$consulta_eliminar);
- $sql_borrar=mysqli_query($link,$consulta_eliminar);
- if($sql_borrar) {
-$resultado ="
-
-
Se eliminó definitivamente este registro.Por favor actualice esta vista
-
- ";
- }
- else {
-$resultado ="
-
-
Algo salió mal, quizá el registro ya había sido eliminado Por favor actualice esta vista
-
- ";
- }
-}
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
-}
-$xajax->registerFunction("eliminar_identificador");
-
-function mover_formulario($formulario,$id_empresa,$tipo){
-$div ="div_mover";
-$error ="";
-if($tipo =="formato") {
- if($_SESSION['id'] == '1') {
-
-//// solo el desadministrador puedemover formualarios
-
- $w_empresa = "";
- $empresas = select('empresa','id','razon_social','',"",'Proyecto_mover');
- $empresa ="
-
- Seleccione proyecto
- $empresas
-
- ";
- $cols ="6";
-
- $formularios = select('form_id','id','nombre','',"$w_empresa",'Formulario_mover');
-///
- $resultado="
-
-
-
-
- Mover
-
-
El formulario y su contenido se moverán al proyecto seleccionado
-
-
-
- Seleccione formulario
- $formularios
-
- $empresa
-
-
-
-
-
-
-";
-return $resultado;
-
-
- }else {
-return $resultado;
- }
-
-}
-
- $respuesta = new xajaxResponse('utf-8');
-
-/* $revisar_nombre = remplacetas('form_id','nombre',"$nuevo_nombre",'nombre'," id_empresa = '$id_empresa'") ;
- if($revisar_nombre[0] !="") { $error ="Existe un formulario con el nombre
$nuevo_nombre en ese proyecto.";}
-*/
- if( $formulario =="" or $id_empresa =="" ) { $error ="Asegúrese de que ningún campo esté vacío. $formulario // $id_empresa";}
-
-
- if($error !="") {
- $resultado ="
$error ";
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
- }
-
-$link=Conectarse();
- mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$nuevo_nombre);
-
-
-// $descripcion = remplacetas('form_id','id',$formulario,'descripcion','') ;
- $consulta_update_form = "UPDATE form_id SET id_empresa= '$id_empresa' WHERE id = '$formulario' LIMIT 1";
-
- $sql_update=mysqli_query($link,$consulta_update_form);
-
- $consulta_update_campos = "UPDATE form_datos SET id_empresa= '$id_empresa' WHERE form_id = '$formulario' ";
- $sql_update_campos=mysqli_query($link,$consulta_update_campos);
-
- if($sql_update_campos){
- if (mysql_affected_rows($sql_update_campos)!='0'){
- $cantidad = mysql_affected_rows();
- $nombre = remplacetas('form_id','id',"$formulario",'nombre'," id_empresa = '$id_empresa'") ;
- }
-
- }
-
-
-
-
-
- $resultado ="
-
-
Se movió el formulario $nombre[0] y sus $cantidad registros. Actualizar
-
";
- $respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
-
- }
-$xajax->registerFunction("mover_formulario");
-
-
-
-
-function clonar_formulario($formulario,$id_empresa,$nuevo_nombre,$descripcion,$tipo){
-$div ="div_clonar";
-$error ="";
- $grupo = remplacetas('form_id',"id","$formulario",'nombre',"") ;
- $grupo = strip_tags($grupo[0]);
-if($tipo =="formato") {
- if($_SESSION['id'] == '1') {
- $w_empresa = "";
- $empresas = select('empresa','id','razon_social','',"",'Proyecto');
-$empresa ="
-
- Seleccione proyecto
- $empresas
-
- ";
- $cols ="4";
- }else {
- $empresa ="
";
- $w_empresa = "id_empresa = '$_SESSION[id_empresa]'";
- $cols="6";
- }
- $formularios = select('form_id','id','nombre','',"$w_empresa",'Formulario');
- $resultado="
-
-
-
-
-
- Clonar Se copiará la estructura del formulario pero no su contenido.
-
-
-
- Seleccione formulario
- $formularios
-
- $empresa
-
- Nombre
-
-
-
-
-
-
-
-";
-return $resultado;
-}
-if($id_empresa =="") {
- if(isset($_SESSION['id_empresa'])){$id_empresa= $_SESSION['id_empresa'];}
- else {$id_empresa = "1";}
-}
- $respuesta = new xajaxResponse('utf-8');
-
- //$revisar_nombre = remplacetas('form_id','nombre',"$nuevo_nombre",'nombre'," id_empresa = '$id_empresa'") ;
- //if($revisar_nombre[0] !="") { $error ="Existe un formulario con el nombre
$nuevo_nombre en ese proyecto.";}
- if( $formulario =="" or $nuevo_nombre =="" ) { $error ="Asegúrese de que ningún campo esté vacío.";}
-
- if($error !="") {
- $resultado ="
$error ";
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
- }
-
-$link=Conectarse();
- mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$nuevo_nombre);
-
- if($descripcion =="") {
- $descripcion = remplacetas('form_id','id',$formulario,'descripcion','') ;
- $descripcion =$descripcion[0];
- }
- $modificable = remplacetas('form_id','id',$formulario,'modificable','') ;
- $publico = remplacetas('form_id','id',$formulario,'publico','') ;
- /// establecer propietario para el nuevo form
- if(!isset($_SESSION['id_empresa'])){
- $validar_email = verificacion_email("$_SESSION[nombre_usuario_milfs]",'','verificar');
- }
- if(isset($_SESSION[nombre_usuario_milfs]) AND $validar_email !="") {
- $id_usuario = "$validar_email"; }
- else {
- $id_usuario = "$_SESSION[id]";
- }
- $consulta_insert = "INSERT INTO `form_id` ( `nombre`, `descripcion`, `activo`, `modificable`, `publico`, `propietario`, `formulario_respuesta`, `id_empresa`)
- VALUES ('$nuevo_nombre', '$descripcion', '1', '$modificable[0]', '$publico[0]', '$id_usuario','','$id_empresa')";
-
-$sql_insert=mysqli_query($link,$consulta_insert);
-$ultimo_id = mysql_insert_id();
-
-
- $consulta_grupo = "INSERT INTO form_grupo set id = '$ultimo_id',grupo = '$grupo' ,id_empresa= '$id_empresa'";
- $sql_grupo=mysqli_query($link,$consulta_grupo);
-
-
-//// CLONAR CAMPOS
-$consulta="SELECT * FROM form_contenido_campos WHERE id_form ='$formulario'";
- $sql=mysqli_query($link,$consulta);
- if($sql){
- if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
- $control = md5(rand(1,99999999).microtime());
- $values .= "('$row[id_campo]','$id_empresa','$ultimo_id', '$row[obligatorio]', '$row[multiple]', '$row[orden]', '$control'),";
- }
- $values = substr($values, 0, -1);
- $values = "(`id_campo`, `id_empresa`, `id_form`, `obligatorio`, `multiple`,`orden`,`control`) VALUES $values ";
- }
- $consulta_insertar_campos = "INSERT INTO form_contenido_campos $values ";
- $sql_insert_campos=mysqli_query($link,$consulta_insertar_campos);
- }
-/// FIN DE CLONAR CAMPOS
-/// CONAR PLANTILLAS
-$consulta_plantillas="SELECT * FROM form_parametrizacion WHERE tabla= 'form_id' AND campo ='$formulario'";
- $sql=mysqli_query($link,$consulta_plantillas);
- if($sql){
- if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
- $control = md5(rand(1,99999999).microtime());
- $values_plantilla .= "('$row[tabla]','$ultimo_id','$row[opcion]','".mysqli_real_escape_string($link,$row[descripcion])."','$row[visible]','$id_empresa'),";
- }
- $values_plantilla = substr($values_plantilla, 0, -1);
- $values_plantilla = "(`tabla`, `campo`, `opcion`, `descripcion`, `visible`,`id_empresa`) VALUES $values_plantilla ";
- }
-
- $consulta_insertar_plantilla = "INSERT INTO form_parametrizacion $values_plantilla ";
- $sql_insert_plantillas=mysqli_query($link,$consulta_insertar_plantilla);
- }
-//// FIN DE CLONAR PLANTILLAS
-if($tipo=="aplicacion") {
- $div="asistente_aplicacion";
- $resultado ="
-
-
- Felicidades tu aplicación
-
- '$nuevo_nombre'
- fue creada y ahora está disponible en
-
- $_SESSION[site]a$ultimo_id
-
-
-
";
-
- $respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
-}
-
- $resultado ="
";
- $respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
-
- }
-$xajax->registerFunction("clonar_formulario");
-
-
-
-
-function parametrizacion_css($tipo,$url,$accion) {
-if($accion =="") {
-$css = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'bootstrap' and id_empresa = '$_SESSION[id_empresa]'") ;
-$css_adicional = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'adicional' and id_empresa = '$_SESSION[id_empresa]'") ;
-$resultado="
-
-
Estilos
-
-
-
-
- CSS adicional
- $css_adicional[0]
-
-
-
-
/* HOJA DE ESTILOS CSS ACTUAL */
- $css_adicional[0]
-
-
-";
-}
-return $resultado;
-
-}
-
-function mas_visto($tipo,$limite,$divider) {
-$resultado= "";
-$contenido= "";
-
-if($divider =="" ) { $divider =4;}
-$cols = (12/$divider);
-$titulo[]="";
- if($tipo =="ultimos") {
- $titulo="LO ÚLTIMO";
- $consulta ="SELECT * FROM `form_datos`, form_id WHERE `form_datos`.form_id = form_id.id AND form_id.publico = '1' GROUP BY form_datos.control ORDER BY form_datos.timestamp DESC LIMIT $limite";
- }
- elseif($tipo =="aleatorios" ){
- $tipo = "ultimos";
- $titulo="TE INTERESA";
- $consulta ="SELECT * FROM `form_datos`, form_id WHERE `form_datos`.form_id = form_id.id AND form_id.publico = '1' GROUP BY form_datos.control ORDER BY RAND() LIMIT $limite";
- }
- else{
- $consulta ="SELECT * FROM `form_parametrizacion` WHERE `opcion` LIKE '$tipo' ORDER BY CAST(descripcion AS SIGNED ) DESC LIMIT $limite";
- }
-$link=Conectarse();
- //mysqli_set_charset($link, "utf8");
- mysqli_set_charset($link, "utf8");
- $sql=mysqli_query($link,$consulta);
- if($sql){
- // if (mysqli_num_rows($sql)!='0'){
- if (mysqli_num_rows($sql)!='0'){
- if($tipo =='identificador') {
- while( $row = mysqli_fetch_array( $sql ) ) {
-
- $formulario = remplacetas('form_datos','control',"$row[campo]",'form_id',"") ;
- $formulario_titulo = remplacetas('form_id','id',"$formulario[0]",'nombre',"") ;
- $campo_imagen = buscar_campo_tipo("$formulario[0]","15");
- $campo_titulo = remplacetas('form_parametrizacion','campo',$formulario[0],'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
- $imagen = remplacetas('form_datos','id_campo',$campo_imagen[0],'contenido'," control = '$row[campo]' ") ;
- $titulo = remplacetas('form_datos','id_campo',$campo_titulo[0],'contenido'," control = '$row[campo]' ") ;
- if($titulo[0] =="") {
- $titulo = remplacetas('form_datos','control',$row['campo'],'contenido'," id_campo != '$campo_imagen[0]' ") ;
- }
- //$impresion = mostrar_identificador("$row[campo]","","landingpage","","");
- $contenido .= "
-
-
-
-
-
-
- $formulario_titulo[0]
- $row[descripcion]
-
-
-
-
- ";
- }
- $resultado = "
-
LO MAS VISTO
- $contenido
- ";
- }
- elseif($tipo =='formulario') {
- while( $row = mysqli_fetch_array( $sql ) ) {
- $formulario_titulo = remplacetas('form_id','id',"$row[campo]",'nombre',"") ;
- $formulario_empresa = remplacetas('form_id','id',"$row[campo]",'id_empresa',"") ;
- $empresa_logo = remplacetas('empresa','id',"$formulario_empresa[0]",'imagen',"") ;
-
- $contenido .= "
-
-
-
-
-
-
- $formulario_titulo[0]
- $row[descripcion]
-
-
-
-
- ";
-
- }
- $resultado = "
-
PROYECTOS MAS ACTIVOS
- $contenido
- ";
-
- }
- elseif($tipo =='ultimos') {
- //while( $row = mysqli_fetch_array( $sql ) ) {
- while( $row = mysqli_fetch_array( $sql ) ) {
-
- //$formulario = remplacetas('form_datos','control',"$row[control]",'form_id',"") ;
- //$formulario_titulo = remplacetas('form_id','id',"$formulario[0]",'nombre',"") ;
- $campo_imagen = buscar_campo_tipo("$row[form_id]","15");
- $campo_titulo = remplacetas('form_parametrizacion','campo',$row['form_id'],'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
- $titulo_post = remplacetas('form_datos','id_campo',$campo_titulo[0],'contenido'," control = '$row[control]' ") ;
- if($campo_imagen[0] =="") {
- $imagen = remplacetas('empresa','id',"$row[id_empresa]",'imagen',"") ;
- }else{
- $imagen = remplacetas('form_datos','id_campo',$campo_imagen[0],'contenido'," control = '$row[control]' ") ;
- if($imagen[0]=="") {
- $imagen = remplacetas('empresa','id',"$row[id_empresa]",'imagen',"") ;
- }
- //$impresion = mostrar_identificador("$row[campo]","","landingpage","","");
- }
- $contenido_campo =strip_tags($row['contenido']);
- $maximo ="50";
- $size= strlen($contenido_campo);
- if($size > $maximo) {
- $contenido_campo =substr($contenido_campo,0,$maximo)."... ";
- }
- $contenido .= "
-
-
-
-
-
-
- $titulo_post[0]
-
-
- ";
- }
- $resultado = "
-
$titulo
- $contenido";
- }
- else{}
-
- }
- }
-
-
-return $resultado;
-}
-
-function social_login($accion,$servicio,$uid) {
- $resultado="";
- require ("milfs/includes/parametrizacion.php");
- $control_uid = remplacetas('form_datos','form_id',"$login_formulario",'control'," BINARY contenido = '$uid' AND id_campo = '$social_login_uid'") ;
- $control_servicio = remplacetas('form_datos','form_id',"$login_formulario",'control'," BINARY contenido = '$servicio' AND control = '$control_uid[0]'") ;
- $usuario = remplacetas('form_datos','control',"$control_servicio[0]","contenido","id_campo = '$login_campo_usuario'") ;
- $nombre_usuario = remplacetas('form_datos','control',"$control_servicio[0]","contenido"," id_campo = '$login_campo_nombres'") ;
- $avatar_usuario = remplacetas('form_datos','control',"$control_servicio[0]","contenido","id_campo = '$login_campo_avatar'") ;
-
- if($accion == "consultar") {
-
- if($control_servicio[0] != "") {
- $resultado ="Existe $control_servicio[0] ";
- }
- else {
- $resultado ="";
- }
- }
- elseif($accion =="login") {
- if($control_servicio[0] != "") {
- $_SESSION['usuario_milfs'] = "$usuario[0]";
- $_SESSION['id'] = "$usuario[0]";
- $_SESSION['nombre_usuario_milfs'] = "$nombre_usuario[0]";
- $_SESSION['control_usuario_milfs'] = "$control_servicio[0]";
- $_SESSION['avatar_usuario_milfs'] = "$avatar_usuario[0]";
-
- header("Location: ./");
- die();
- }
- else{
- session_destroy();
- header("Location: ./");
- die();
- }
-
-
-
- }
- else{}
-
-return $resultado;
-
-}
-
-
-function campo_privacidad($opcion,$id_campo,$form,$accion) {
- //return $array;
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
-$respuesta = new xajaxResponse('utf-8');
- if($accion =='grabar'){
- $limpiar ="DELETE FROM `form_parametrizacion` WHERE tabla = 'form_id' AND campo ='$form' AND descripcion='$id_campo' AND opcion like 'privacidad:%' AND id_empresa = '$_SESSION[id_empresa]' LIMIT 1 ";
- $sql=mysqli_query($link,$limpiar);
-
- $consulta= "INSERT INTO form_parametrizacion set tabla='form_id', campo = '$form', opcion ='privacidad:$opcion' , descripcion ='$id_campo' ,visible='0', id_empresa = '$_SESSION[id_empresa]'";
- }
- // return $consulta;
- $sql=mysqli_query($link,$consulta);
- if($sql){
- if($opcion == '1') { $mensaje = "El campo ahora es privado y NO se mostrará su contenido";}
- else { $mensaje = "El campo ahora ES PÚBLICO y SE MOSTRARÁ su contenido";}
- //$respuesta->addAssign("mostrar_resultado","innerHTML","$resultado");
- $respuesta->addAlert("ATENCION: $mensaje");
- return $respuesta;
- }else {
- //$respuesta->addAlert("$consulta");
- //$respuesta->addAssign("debug","innerHTML","$consulta");
- //return $respuesta;
- }
-
-}
-$xajax->registerFunction("campo_privacidad");
-
-
-
-function respuestas_formulario($id,$identificador,$plantilla) {
- if($id=='') {return;}
- $id = mysql_seguridad($id);
- $formulario_respuesta = formulario_respuesta("$id","$identificador");
- $consulta = "SELECT form_id , timestamp FROM form_datos
- WHERE control = '$identificador' AND form_id != '$id' GROUP BY form_id , timestamp
- ";
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-
-if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
-
- $resultado ="";
- while( $row = mysqli_fetch_array( $sql ) ) {
- $respuesta = mostrar_identificador("$identificador","$row[form_id]","respuesta","simple","$row[timestamp]");
- $fecha = date($format, $row['timestamp']);
- $resultado .= " $respuesta ";
-
-}
- $resultado .="";
-}else{$resultado ="";}
-$resultado = "$resultado $formulario_respuesta";
-return $resultado;
-}
-
-
-function formulario_respuesta($id,$identificador) {
- if($id=='') {return;}
- $id = mysql_seguridad($id);
- $consulta = "SELECT * FROM form_id
- WHERE formulario_respuesta = '$id'
- ";
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-
-if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- $resultado ="
-
";
- while( $row = mysqli_fetch_array( $sql ) ) {
- $resultado .= "$row[nombre] $row[descripcion] ";
-
-}
- $resultado .="
";
-}else{$resultado ="";}
-return $resultado;
-}
-
-
-function consultar_contenido_formulario($form,$registros,$pagina,$tipo,$orden,$plantilla){
- if($plantilla=="") { $plantilla="landingpage";}
- $imagen ="";
- $acciones ="";
- $filtro ="";
- $filtro_generico ="";
- $origen ="";
- $busca ="";
- $agregar ="";
- $busqueda ="";
- $fechas ="";
- $campo ="";
- $campo_filtro ="";
- $lineas ="";
- $linea ="";
- $formato ="";
- $href_4="";
- $href_5="";
- $listado_nombres ="";
- if(isset($_REQUEST['orden'])) { $orden= "$_REQUEST[orden]";}
- if(isset($_REQUEST['registros'])) { $registros= "$_REQUEST[registros]";}
- if(isset($_REQUEST['pagina'])) { $pagina= "$_REQUEST[pagina]";}
- if(isset($_REQUEST['v'])) { $origen= "$_REQUEST[v]";}
- $campo_orden = remplacetas('form_parametrizacion','campo',"$form",'descripcion'," tabla='form_id' and opcion = 'orden'") ;
- $campo_orden = $campo_orden[0];
-
-
-
-if($orden == "" ) { $ordenar= "ORDER BY form_datos.id DESC ";}
-elseif($orden == "ASC" ) { $ordenar= "ORDER BY form_datos.id ASC "; }
-else{}
-
-$respuesta = new xajaxResponse('utf-8');
-
-$id_form = $form;
- if($campo_orden !="") {
- $consulta_principal = "
- SELECT control,id,form_id,contenido FROM form_datos
- WHERE form_id = '$form' AND id_campo ='$campo_orden'
- GROUP BY form_datos.control
- ORDER BY CAST(contenido AS SIGNED ) $orden ";
- }else {
-$consulta_principal = "SELECT control,id,form_id FROM form_datos WHERE form_id = '$id_form' GROUP BY form_datos.control $ordenar";
- }
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-mysqli_real_escape_string($link,$consulta_principal);
-$sql_total=mysqli_query($link,$consulta_principal);
-$total_registros = mysqli_num_rows($sql_total);//formulario_contar($id_form);
-if($registros=="") { $registros="$total_registros"; $origen="url";}
-/// PAGINACION
- if ($pagina =='') {$inicio = 0; $pagina = 1; }
- else { $inicio = ($pagina - 1) * $registros;}
- if($total_registros < $registros) { $limite ="";}
- else{$limite =" LIMIT $inicio, $registros ";}
- $consulta_limite = $consulta_principal.$limite;
- mysqli_real_escape_string($link,$consulta_limite);
- $sql=mysqli_query($link,$consulta_limite);
-@mysqli_data_seek($sql_total, 0);
-//$sql=mysqli_query($link,$consulta_principal);
-if (mysqli_num_rows($sql)!='0'){
-
-/////// FILTRO
-
-//$fecha = time ();
-// $ahora = date ( "Y-m-d" , $fecha );
-// $campos = listar_campos_formulario($id_form,"select");
-
-
- $link = "";
- // $page = $_GET['page'];
- $page= $pagina;
- @$pages= ceil($total_registros / $registros); //13; // Hardcoded for testing purpose
- $limit=10 ;
- if ($pages >=1 && $page <= $pages)
- {
- $counter = 1;
- $link = "";
- if (($page -1) > 0) {
-
- if(isset($_REQUEST[registros])) {
- $href_1 = "$origen®istros=$registros&pagina=1&orden=$orden";
- $href_2 = "$origen®istros=$registros&pagina=".($pagina-1)."&orden=$orden";
- }
- else {
- $href_1= "#cabecera#";
- $href_2= "#cabecera#";
- }
-
- $link .= "
-
";
- }
-
- for ($x=$page; $x<=$pages;$x++)
- {
-
-
- if($counter < $limit){
-
- if(isset($_REQUEST['registros'])) {
- $href_3 = "$origen®istros=$registros&pagina=$x&orden=$orden";
- }
- else {
- $href_3= "#cabecera#";
- }
- if ($page == $x){
- $link .= "
$x ";
- }else{
- $link .= "
$x ";
- }
- }
- $counter++;
- }
- if ($page < ($pages - ($limit/2)))
-
- {
- if(isset($_REQUEST['registros'])) {
- $href_4 = "$origen®istros=$registros&pagina=".($pagina+1)."&orden=$orden";
- $href_5 = "$origen®istros=$registros&pagina=$pages&orden=$orden";
- }
- else {
- $href_4= "$href_4";
- $href_5= "$href_5";
- }
- $link .= "
-
"; }
- }
- $paginacion = "";
- $encabezado = "
-
";
-
-// $total_registros = mysqli_num_rows($sql);
-/* $nombres_campos = listar_campos_formulario("$id_form","nombres");
- foreach($nombres_campos as $campo_nombre=>$nombre){
- $listado_nombres .= "
$nombre ";
- }
- */
-// $listado_nombres = "
Identificador $listado_nombres ";
-///$listado_campos = listar_campos_formulario("$id_form",'');
-mysqli_data_seek($sql_total, 0);
-while( $row = mysqli_fetch_array( $sql ) ) {
-
-// if (!is_array($listado_campos)){$listado_campos="
$listado_campos ";}else {$listado_campos=$listado_campos;}
-$linea .= landingpage_contenido_identificador("$row[control]","$id_form","$plantilla",'paginado');
-//$linea .= mostrar_identificador("$row[control]","$id_form","landingpage",'simple');;
-//$linea .= "
$row[control]";
- }
-$buscador = buscar_datos("*formato*","$form","grid","mostrar_resultado");
-//$filtro = portal_filtro_campos_select($form,"$campo_filtro","mostrar_resultado","landingpage");
-$filtro_drop = portal_filtro_campos_drop($form,"$campo_filtro","mostrar_resultado","landingpage");
-////////$filtro_generico = filtro_generico($form,$tipo);
-$formulario_tabla_temporal = formulario_tabla_temporal($form);
-if( $tipo !== "" AND $tipo !=="embebido" ) {
- $publico = remplacetas('form_id','id',"$form",'modificable',"") ;
- if($publico[0] !="0" OR @$_SESSION[id] !="") {
-
- $agregar = "
Agregar
";
- }
-$acciones="
-
-
-
-
-
-
- $agregar
-
-
- $filtro
- $filtro_drop
-
-
-
- $buscador
-
-
-
-
- $filtro_generico
- $formulario_tabla_temporal
-
-
-
-
-
-
";
-}
- $descripcion = remplacetas('form_id','id',$id_form,'descripcion','') ;
- //$descripcion_limpia = strip_tags($descripcion[0]);
- $nombre = remplacetas('form_id','id',$id_form,'nombre','') ;
-$resultado = "
-
-
-
$descripcion[0]
-$acciones
-
-
- $linea
-
-$encabezado
-
-";
- }
-else {
-$resultado ="
Aún no hay resultados $consulta_limite ";
- if($tipo =="contenido" OR $tipo =="embebido" ) {
- return $resultado;
- }
-$respuesta->addAlert("No hay resultados");
-return $respuesta;
-}
-
- /*$datos = $resultado;
- $div ="contenido_de_modal";
- $resultado = "
$datos
";
- $div_contenido = "
$div
";
- */
- if($tipo =="") {
- // $respuesta->addAssign("contenido_interior","innerHTML","$div_contenido");
- $respuesta->addAssign("mostrar_resultado","innerHTML","$resultado");
- return $respuesta;
- }
- if($tipo =="contenido" OR $tipo =="embebido" ) {
- return $resultado;
- }
-}
-$xajax->registerFunction("consultar_contenido_formulario");
-
-
-function multiempresa_listado($tabla,$div){
-
-
-$resultado = "";
-$encontrados = "";
-$link=Conectarse();
-
-mysqli_set_charset($link, "utf8");
-$consulta = "SELECT * FROM empresa, form_id WHERE empresa.id = form_id.id_empresa AND form_id.activo = '1' AND form_id.publico ='1' group by empresa.id ORDER BY empresa.id DESC ";
-$sql=mysqli_query($link,$consulta);
-
-if (mysqli_num_rows($sql)!='0'){
-
-
-mysqli_data_seek($sql, 0);
-$fila=1;
-$divider=4;
-$cols = (12/$divider);
-$i =0;
-while( $row = mysqli_fetch_array( $sql ) ) {
- if($i % $divider==0) {
- $encontrados .= "
";
- }
- $i++;
- if($row['imagen'] !="") {
- $logo="
";
- }
- else {
- $logo_empresa = remplacetas('empresa','id',"1",'imagen','');
- $logo="
";
- }
- // $slogan= substr($row[slogan],0, $length = 100)."";
- $slogan = $row['slogan'];
- $contenido ="
-
-
-
- ";
- $encontrados .="$contenido";
- $fila++;
- if( $i % $divider==0) {
- $encontrados .= "
";
- }
- }
- $resultado ="
-
PROYECTOS
- $encontrados
-
- ";
- }else{
- $resultado = "
No hay resultados
";
- }
-if($div =="") { return $resultado; }else {
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
- }
-}
-$xajax->registerFunction("multiempresa_listado");
-
-
-
-function decodifica_parametro ($string)
-{
- $inicial = substr($string,0,1);
- $string = mb_substr($string,1);
- $cadena = $string;
- //$length = strlen($base);
-
- $size = strlen($string) - 1;
- $string = str_split($string);
-
- //$out = strpos($base, array_pop($string));
-//return $out;
- /*foreach($string as $i => $char)
- {
-
- $out += (strpos($base, $char)* pow($length, $size - $i));
-//$out .= "$i => $char";
- }*/
-$resultado[0]=$inicial;
-//$resultado[1]=$out;
-$resultado[1]=$cadena;
-
- return $resultado;
-}
-
-function grabar_imagen($imagen,$control) {
-
- $imgData = str_replace(' ','+',$imagen);
- $imgData = substr($imgData,strpos($imgData,",")+1);
- $imgData = base64_decode($imgData);
-
- $nombre= $control.".png";
- $filePath = "$_SESSION[path]/tmp/".$nombre;
-
- $file = fopen($filePath, 'w');
- fwrite($file, $imgData);
- fclose($file);
- $full= "$_SESSION[path_images_secure]/full/".$nombre;
- if (!rename($filePath,$full)){}
- else {
- echo generar_miniatura($nombre,"150");
- echo generar_miniatura($nombre,"300");
- echo generar_miniatura($nombre,"600");
- }
-
- //return "$nombre";
- return "$nombre";
-}
-
-
-function generar_miniatura($file,$width) {
//$archivo = $file;
-$archivo = "$_SESSION[path_images_secure]/full/".$file;
// Ponemos el . antes del nombre del archivo porque estamos considerando que la ruta está a partir del archivo thumb.php
$file_info = getimagesize($archivo);
// Obtenemos la relación de aspecto
$ratio = $file_info[0] / $file_info[1];
// Calculamos las nuevas dimensiones
$newwidth = $width;
$newheight = round($newwidth / $ratio);
// Sacamos la extensión del archivo
$ext = explode(".", $file);
$ext = strtolower($ext[count($ext) - 1]);
if ($ext == "jpeg") $ext = "jpg";
// Dependiendo de la extensión llamamos a distintas funciones
switch ($ext) {
case "jpg":
$img = imagecreatefromjpeg($archivo);
break;
case "png":
$img = imagecreatefrompng($archivo);
break;
case "gif":
$img = imagecreatefromgif($archivo);
break;
}
// Creamos la miniatura
$thumb = imagecreatetruecolor($newwidth, $newheight);
-imagealphablending( $thumb, false );
-imagesavealpha( $thumb, true );
// La redimensionamos
imagecopyresampled($thumb, $img, 0, 0, 0, 0, $newwidth, $newheight, $file_info[0], $file_info[1]);
// La mostramos como jpg
//header("Content-type: image/jpeg");
imagejpeg($thumb,"$_SESSION[path_images_secure]/".$width."/$file", 80);
-imagepng($thumb,"$_SESSION[path_images_secure]/".$width."/$file", 9);
-//imagegif($thumb,"$_SESSION[path_images_secure]/".$width."/$file");
-//imagejpeg($thumb,null, 80);
-}
-
-function generar_vcard($identificador){
-$impresion = mostrar_identificador("$identificador","","vcard",'simple');
-$impresion = formulario_imprimir("$id_form","$identificador","$plantilla");
-$nombre ="vcard_".$identificador.".vcf";
-$vcard ="BEGIN:VCARD
-VERSION:3.0
-N:Gump;Forrest
-FN:Forrest Gump
-ORG:Bubba Gump Shrimp Co.
-TITLE:Shrimp Man
-PHOTO;VALUE=URL;TYPE=GIF:http://www.example.com/dir_photos/my_photo.gif
-TEL;TYPE=WORK,VOICE:(111) 555-1212
-TEL;TYPE=HOME,VOICE:(404) 555-1212
-ADR;TYPE=WORK:;;100 Waters Edge;Baytown;LA;30314;United States of America
-LABEL;TYPE=WORK:100 Waters Edge\nBaytown, LA 30314\nUnited States of America
-ADR;TYPE=HOME:;;42 Plantation St.;Baytown;LA;30314;United States of America
-LABEL;TYPE=HOME:42 Plantation St.\nBaytown, LA 30314\nUnited States of America
-EMAIL;TYPE=PREF,INTERNET:forrestgump@example.com
-REV:20080424T195243Z
-END:VCARD";
-$archivo = "milfs/tmp/$nombre";
-$file=fopen($archivo,"w") or die("Problemas en la creacion");//En esta linea lo que hace PHP es crear el archivo, si ya existe lo sobreescribe
-fputs($file,$impresion);//En esta linea abre el archivo creado anteriormente e ingresa el resultado de tu script PHP
-fclose($file);//Finalmente lo cierra
-/*
-$ruta="/tmp/vcard_".$identificador.".vcf";
-header ("Content-Disposition: attachment; filename=".$ruta);
-header ("Content-Type: application/octet-stream");
-header ("Content-Length: ".filesize($ruta));
-readfile($ruta);
-*/
-return $archivo;
-
-
-}
-
-function autoriza_formulario_mostrar($password,$form,$control) {
- $respuesta = new xajaxResponse('utf-8');
- if($password =="") { unset($_SESSION['permiso_identificador']); $respuesta->addScript("javascript:location.reload(true);"); return $respuesta;}
- $campo = buscar_campo_tipo($form,"18");
- $campo_password = $campo[0];
- $comprobar_clave = remplacetas('form_datos','form_id',"$form",'contenido'," BINARY contenido = MD5('$password') AND id_campo = '$campo_password'") ;
- $password = md5($password);
- $aviso = "";
-
-if($comprobar_clave[0] !== $password ) {
- unset($_SESSION['permiso_identificador']);
- $respuesta->addAlert("La clave no es válida ");
- $aviso = "$comprobar_clave[2] !== $control";
- $respuesta->addAssign("pie_modal","innerHTML",$aviso);
- return $respuesta;
- }
- else{
- $_SESSION['permiso_identificador']="$control";
- //$respuesta->addAssign("pie_modal","innerHTML",$aviso);
- $respuesta->addScript("javascript:location.reload(true);");
- }
- return $respuesta;
-}
-$xajax->registerFunction("autoriza_formulario_mostrar");
-
-
-//($control,$form,$plantilla,$tipo)
-function landingpage_contenido_identificador($identificador,$form,$plantilla,$tipo){
- if(strlen($identificador) > 32) {
- $identificador_original= $identificador;
- $key = substr($identificador, 32, $length = 40);
- $identificador = substr($identificador, 0, $length = 31);
- }else {$identificador_original = $identificador;}
-
-
- $linea="";
- $id_empresa = remplacetas('form_datos','control',$identificador,'id_empresa',"") ;
- $datos = remplacetas('form_datos','control',$identificador,'contenido',"") ;
- $formulario_identificador = remplacetas('form_datos','control',$identificador,'form_id',"") ;
-
- $campo_orden = remplacetas('form_parametrizacion','campo',$datos[5],'descripcion'," tabla='form_id' and opcion = 'orden'") ;
-
- if($campo_orden[0] =="" ) {
- $siguiente = remplacetas_orden('form_datos','form_id',$datos[5],'control'," id > '$datos[1]' AND control !='$identificador'"," ORDER BY id ASC") ;
- $anterior = remplacetas('form_datos','form_id',$datos[5],'control'," id < '$datos[1]' AND control !='$identificador' ") ;
- }
- else{
- $siguiente = remplacetas_orden('form_datos','form_id',$datos[5],'control'," id_campo = '$campo_orden[0]' AND contenido > '$datos[0]' AND control !='$identificador'"," ORDER BY id ASC") ;
- $anterior = remplacetas('form_datos','form_id',$datos[5],'control'," id_campo = '$campo_orden[0]' AND contenido < '$datos[0]' AND control !='$identificador' ") ;
- }
- $campo_titulo = remplacetas('form_parametrizacion','campo',$datos[5],'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
- $titulo_siguiente = remplacetas('form_datos','form_id',$datos[5],'contenido'," id_campo = '$campo_titulo[0]' AND control = '$siguiente[0]' ") ;
- $titulo_anterior = remplacetas('form_datos','form_id',$datos[5],'contenido'," id_campo = '$campo_titulo[0]' AND control = '$anterior[0]' ") ;
-
- if($anterior[0] !='') {
- $post_anterior ="
$campo_orden[0] Anterior
- ";
- }
- if($siguiente[0] !='') {
- $post_siguiente ="
Siguiente
- ";
- }
- if($tipo =="simple") { $manejadores="$post_anterior $post_siguiente";}else { $manejadores="";}
- $respuestas = respuestas_formulario($form,$identificador,$plantilla);
- $imagen = buscar_imagen($form[0],$identificador,"","$id_empresa[0]");
- $plantilla_original = $plantilla;
- $plantilla = remplacetas('form_parametrizacion','opcion',"plantilla:$plantilla",'id',"campo = '$formulario_identificador[0]'") ;
-
- $uri = "$_SESSION[site]I$identificador";
- $qr = "https://qwerty.co/qr/?d=$uri";
- if($imagen !="") {
-
- $mostrar_imagen ="
";
- $miniatura = "
-
-
-
-
- $uri";
-
- }else {
- $miniatura ="
-
- I$identificador
-
- ";
- $mostrar_imagen = "
-
-
- ";
-
-
-
- }
-
- //
- //$impresion = contenido_mostrar("","$row[control]",'',"landingpage");
- if($plantilla[0] !="" ) {
- $impresion = mostrar_identificador($identificador_original,"","$plantilla_original","","");
- } else{
- $contenido = mostrar_areas("$identificador_original","","");
- //$contenido = mostrar_identificador($identificador_original,"","","","");
- $impresion = "
-
-
-
$identificador_original
-
-
-
-
-
- ";
-
- }
- if(!isset($_SESSION['id_empresa'])){
- $edicion ="
Editar";
-// $edicion ="
Editar";
- }else {$edicion="";}
-$documento="
Generar documento ";
-
- $linea = "
-$manejadores
-
-
-
- $documento
- $impresion
- $edicion
-
-
-
-
-
-
-
-
- ";
-
- return $linea;
- }
-
-
-function landingpage_contenido_formulario($form,$registros,$pagina,$div_original){
- $cantidad = formulario_contar($form);
- $div="contenido_interior";
- //if($registros =="") {$registros ="10";}
- $consulta= "SELECT control FROM form_datos WHERE form_id = '$form' GROUP BY control ORDER BY id DESC ";
- $id_empresa = remplacetas('form_id','id',$form,'id_empresa',"") ;
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- //$sql=mysqli_query($link,$consulta);
- if ($pagina =='') {$inicio = 0; $pagina = 1; }
- else { $inicio = ($pagina - 1) * $registros;}
- if($cantidad < $registros) { $limite ="";}
- else{$limite =" LIMIT $inicio, $registros ";}
-
- $consulta_limite = $consulta.$limite;
- $sql=mysqli_query($link,$consulta_limite);
-
- $paginacion ="";
- $paginacion .= $indice;
-/*
- /// PAGINACION
- if ($pagina =='') {$inicio = 0; $pagina = 1; }
- else { $inicio = ($pagina - 1) * $registros;}
- if($cantidad < $registros) { $limite ="";}
- else{$limite =" LIMIT $inicio, $registros ";}
-
- $consulta_limite = $consulta.$limite;
- $sql=mysqli_query($link,$consulta_limite);
- $page= $pagina;
- @$pages= ceil($cantidad / $registros); //13; // Hardcoded for testing purpose
- $limit= 20 ;
- if ($pages >=1 && $page <= $pages)
- {
- $counter = 1;
- $link = "";
- if (($page -1) > 0) {
- $link .= "
-
";
- }
-
- for ($x=$page; $x<=$pages;$x++)
- {
-
-
- if($counter < $limit){
- if ($page == $x){
- $link .= "
$x ";
- }else{
- $link .= "
$x ";
- }
- }
- $counter++;
- }
- if ($page < ($pages - ($limit/2)))
-
- { $link .= "
-
"; }
- }
-
- $paginacion = "";
-
- */
-
- //// PAGINACION
-if (mysqli_num_rows($sql)!='0'){
- $linea=" ( $cantidad ) $paginacion";
- $fila = 1;
- mysqli_data_seek($sql, 0);
-while( $row = mysqli_fetch_array( $sql ) ) {
- $impresion = mostrar_identificador($row['control'],"","landingpage","","");
- $imagen = buscar_imagen($form,$row['control'],"","$id_empresa[0]");
- if($imagen !="") { $clase = "col-lg-5 col-sm-6";}else {$clase = "col-lg-12 col-sm-12";}
- $uri = "
Ver mas ... ";
- $linea .= landingpage_contenido_identificador($row['control']);
- }
- $resultado_linea="
$linea
";
- }
- if($div_original=="") {
-
- return $resultado_linea;
- }else {
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$linea");
-
- return $respuesta;
-
- }
- }
-$xajax->registerFunction("landingpage_contenido_formulario");
-/*
-$respuesta = new xajaxResponse('utf-8');
-$resultado ="
$mensaje Procesando ...";
-$respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
-
-}
-
-*/
-function landingpage_contenido($id_empresa){
-$consulta= "SELECT * FROM form_id WHERE publico ='1' AND id_empresa= '$id_empresa' ORDER BY orden ASC";
-$miniatura ="";
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- $sql=mysqli_query($link,$consulta);
- $linea="";
-if (mysqli_num_rows($sql)!='0'){
-
- $fila = 1;
- //include("includes/datos.php");
- $error_token = "";
- $contenido = "";
- if(!isset($mapbox_token)) { include("milfs/includes/datos.php"); if(!isset($mapbox_token)) {$error_token = 1; } else {$error_token = "";}}
- while( $row = mysqli_fetch_array( $sql ) ) {
- //$link = "
Consultar ";
- $imagen = buscar_imagen($row['id'],'','','');
- $geo = buscar_campo_tipo($row['id'],"14");
- $ultimo_mapa = remplacetas('form_datos','form_id',$row['id'],'contenido'," id_campo = '$geo[0]'") ;
- if($ultimo_mapa[0] !="") {
- $campos = explode(" ",$ultimo_mapa[0]);
- $lat = $campos['0'];
- @$lon = $campos['1'];
- @$zoom = $campos['2'];
-
- if($error_token != 1) {
- $url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
- $miniatura = "
-
-
-
";
- /* $miniatura = "
-
-
- ";*/
-
- }else{ $miniatura ="
No se ha definido un token de mapbox
";}
- }
- if($geo[0] !='') { $mapa= "
$miniatura Ver mapa ";}else {$mapa='';}
- $descripcion_limpia = strip_tags($row['descripcion']);
- if($imagen !="") {
- $imagen ="
-
-
-
-
-
-
-
- ";
-}
- $contenido ="
-
- $imagen
-
$descripcion_limpia
";
-
-// if ( $fila%2==0){
- $linea .= "
-
-
-
- ";
-/*
- }else{
- $linea .= "
-
-
-
- ";
- }
- */
-
- //$linea .= "$fila $plantilla
$row[nombre] ";
- $fila++;
- }
- }
- $linea ="
-
-
- $linea
-
- ";
-return $linea;
-}
-
-function buscar_imagen($form,$control,$tipo,$empresa) {
- $imagen="";
- if($control !="") { $w_control = "AND form_datos.control ='$control'";}else{$w_control ="";}
- if ($form ==""){
- $consulta = "SELECT form_datos.id_empresa, contenido , campo_nombre , id_campo FROM form_id, form_datos, form_campos
- WHERE form_datos.id_campo = form_campos.id AND form_id.id = form_datos.form_id
- AND form_datos.id_empresa = '$empresa'
- AND publico ='1' AND form_campos.campo_tipo='15' ORDER BY rand() limit 1 ";
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- $sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
- $imagen = mysqli_result($sql,0,"contenido");
- }
-if($tipo == "consulta") { return $consulta; }
- return $imagen;
-
- }
-$publico = remplacetas('form_id','id',"$form",'publico',"") ;
-if($publico[0] !="0" ){
-$campo_imagen = buscar_campo_tipo("$form","15");
-$imagen = remplacetas('form_datos','form_id',$form,'contenido'," id_campo = '$campo_imagen[0]' $w_control") ;
-//$imagen = "$imagen[0]";
-return $imagen[0];
-}
-return;
-}
-
-function wait($div,$mensaje){
-$respuesta = new xajaxResponse('utf-8');
-$resultado ="
$mensaje Procesando ...";
-$respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
-
-}
-$xajax->registerFunction("wait");
-
-
-function campos_tabla($filtro,$div,$limite,$inicio) {
- if($limite =="") {$limite= 100;}
- if($inicio =="") {$inicio= 0;}
-
- $fin=($inicio+$limite);
- $anterior=($inicio-$limite);
- $w_limite=" LIMIT $inicio ,$limite";
-
-$mio ="";
-$lineas ="";
-$w_empresa ="";
-$w_especialista ="";
-if($filtro == 'id_empresa') { $w_empresa = " AND id_empresa = '$_SESSION[id_empresa]' ";}
-if($filtro == 'id_especialista') { $w_especialista = " AND id_especialista = '$_SESSION[id]' ";}
-if($filtro == 'llenos') {
-$consulta= " SELECT * , form_campos.id as id FROM form_campos, form_datos WHERE form_campos.id = form_datos.id_campo $w_empresa $w_especialista GROUP BY id_campo ORDER BY campo_area, campo_nombre ";
-}elseif($filtro == 'vacios') {
-//$consulta= " SELECT DISTINCT(form_campos.id) as id , `id_especialista` , `id_empresa`, `campo_nombre`, `campo_descripcion`, `campo_tipo`,`campo_area`, `orden`, `activo`, `identificador`, `bloqueo` FROM form_campos WHERE id NOT IN ( SELECT distinct(id_campo) FROM form_datos GROUP BY id_campo) GROUP BY id ORDER BY campo_area, campo_nombre";
-$consulta= " SELECT DISTINCT(form_campos.id) as id , `id_especialista` , `id_empresa`, `campo_nombre`, `campo_descripcion`, `campo_tipo`,`campo_area`, `orden`, `activo`, `identificador`, `bloqueo` FROM form_campos WHERE id NOT IN ( SELECT distinct(id_campo) FROM form_contenido_campos GROUP BY id_campo) GROUP BY id ORDER BY campo_area, campo_nombre";
-}else{
-$consulta= " SELECT * FROM form_campos WHERE id = id $w_empresa $w_especialista ORDER BY campo_area, campo_nombre ";
-}
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- $sql=mysqli_query($link,$consulta.$w_limite);
- $sql_total=mysqli_query($link,$consulta);
- //$div = "div_tabla_campos";
- $filtros = "
-
-
-
- Seleccione
- Todos
- Mis campos
- Mi empresa
- No usados
- Llenos
-
-
-
- ";
- $cantidad_mostrada =mysqli_num_rows($sql);
- $cantidad_total =mysqli_num_rows($sql_total);
- if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- mysqli_data_seek($sql_total, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
- $tipo_nombre = remplacetas_noid('form_tipo_campo','id_tipo_campo',"$row[campo_tipo]",'tipo_campo_nombre',"") ;
- $campo_tipo ="
$tipo_nombre[0] ";
- if($_SESSION['id_empresa'] == $row['id_empresa']) {
- $row['campo_nombre']= editar_campo("form_campos","$row[id]","campo_nombre","","","","");
- $row['campo_descripcion']= editar_campo("form_campos","$row[id]","campo_descripcion","","","","");
- $row['campo_area']= editar_campo("form_campos","$row[id]","campo_area","","","","");
- $row['activo']= editar_campo("form_campos","$row[id]","activo","","","","","");
- $accion = "
";
- $class='success';
- }else {
- $class='';
- $accion ="";
- }
- if($_SESSION['id'] == $row['id_especialista']) {
- $row['id_especialista'] = "
$row[id_especialista]";
- }
-
- $lineas .= "
$row[id] $row[campo_nombre] $row[campo_descripcion] $campo_tipo $row[campo_area] $row[activo] $row[id_empresa] $row[id_especialista] $mio $accion ";
- }
- $tabla = "
-
- ";
- }
- if($div !=""){
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$tabla");
- return $respuesta;
- }
- else{
- $resultado = "$filtros $tabla";
- return $resultado;
-}
-}
-$xajax->registerFunction("campos_tabla");
-
-function remplacetas_noid($tabla,$campo,$valor,$por,$and){
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-if(@$and !=''){$AND = "AND $and";}else{$AND ="";}
-$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND order by $campo DESC limit 1";
-//$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND order by id DESC limit 1";
-$sql=mysqli_query($link,$consulta);
-if (@mysqli_num_rows($sql)!=0){
-$resultado[] = mysqli_result($sql,0,$por);
-$resultado[] = mysqli_result($sql,0,"$campo");
-$resultado[] = $consulta;
-$resultado[] = mysqli_result($sql,0,"md5_$por");
- }else{
- $resultado[0] = '';
- $resultado[1] ="";
- $resultado[2] = $consulta;
- $resultado[3] = NULL;
- }
-return $resultado;
-}
-
-
-
-function contar_visitas($id,$tipo) {
-$id_visitas = remplacetas('form_parametrizacion','campo',$id,'id'," tabla='form_id' AND opcion='$tipo'") ;
-$visitas = remplacetas('form_parametrizacion','id',$id_visitas[0],'descripcion',"") ;
-$cantidad = $visitas[0]+1;
-if($visitas[0] =="") {
- $consulta = "INSERT INTO form_parametrizacion set tabla='form_id', campo ='$id',opcion ='$tipo',descripcion= '$cantidad',visible ='1'";
- }
-else {
- $consulta = "UPDATE form_parametrizacion set tabla='form_id', campo ='$id',opcion ='$tipo',descripcion= '$cantidad',visible ='1'
- WHERE id ='$id_visitas[0]' LIMIT 1";
-}
-$link=Conectarse();
- mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$consulta);
- $sql=mysqli_query($link,$consulta);
-$cantidad = "$cantidad $_SESSION[analizador]";
-return $cantidad;
-}
-
-
-function geocoder($valor,$campo){
-$respuesta = new xajaxResponse('utf-8');
-if(strlen($valor) > 3) {
-$valor = urlencode($valor);
-$json = "https://nominatim.openstreetmap.org/search.php?format=json&limit=5&addressdetails=1&q=$valor";
-$data = file_get_contents("$json");
-$geocoder = json_decode($data, true);
-if($data ==="[]") {$vacio="
-
-
No se encontraron resultados
-";}
-
-foreach ($geocoder as $clave => $valor) {
- $ciudad = $valor['address']['city'];
- $municipio = $valor['address']['town'];
- $pais = $valor['address']['country'];
- $departamento = $valor['address']['state'];
- $licencia= $valor['licence'];
- $link = "milfs/mapero.php?lat=$valor[lon]&lon=$valor[lat]&zoom=16&id=$campo";
- $linea .= "
-
-
- $valor[display_name]
-
- $ciudad $municipio $pais $departamento
-
-
-
- ";
-//foreach ($valor as $clave => $valor) { $linea .= "CLAVE : $clave > VALOR: $valor"; }
-}
-$resultado = "
-
- $vacio $licencia
-
";
-}
- //$div_contenido = "
$div
";
- //$respuesta->addAssign("muestra_form","innerHTML","$aviso");
- //$respuesta->addAssign("titulo_modal","innerHTML","Hola mundo");
- //$respuesta->addAssign("pie_modal","innerHTML","$pie");
- $respuesta->addAssign("muestra_geocoder","innerHTML","$resultado");
- //$respuesta->addscript("$('#muestraInfo').modal('toggle')");
-
- return $respuesta;
-
-}
-$xajax->registerFunction("geocoder");
-
-
-function mostrar_psi(){
-$respuesta = new xajaxResponse('utf-8');
-include("psi.php");
- //$div_contenido = "
$div
";
- $respuesta->addAssign("muestra_form","innerHTML","$aviso");
- //$respuesta->addAssign("titulo_modal","innerHTML","Hola mundo");
- //$respuesta->addAssign("pie_modal","innerHTML","$pie");
- //$respuesta->addAssign("$div","innerHTML","$resultado");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
-
- return $respuesta;
-
-}
-$xajax->registerFunction("mostrar_psi");
-
-function multiempresa_crear($tabla,$formulario,$div) {
-$formulario = limpiar_caracteres($formulario);
-$link=Conectarse();
- mysqli_set_charset($link, "utf8");
- foreach($formulario as $c=>$v){
-
- $valores .= " $c = '".mysqli_real_escape_string($link,$v)."',";
- }
- $valores = "$valores id_responsable = '$_SESSION[id]'";
-
-$respuesta = new xajaxResponse('utf-8');
-
- $insertar = "INSERT INTO $tabla set $valores";
- $sql=mysqli_query($link,$insertar);
- if(mysql_affected_rows($link) != 0){
-
- }
-if($div !='') {
-
-
- }
- $respuesta->addScript("javascript:xajax_multiempresa('empresa','$div')");
- return $respuesta;
-}
-$xajax->registerFunction("multiempresa_crear");
-
-function nombre_dominio($url){
- $protocolos = array('http://', 'https://', 'ftp://', 'www.');
- $nombre = explode('/', str_replace($protocolos, '', $url));
- // $nombre = substr($url[0],0,-strlen(strstr($url[0],"." )));
- return $nombre[0];
-}
-
-function configurar_dominio ($id,$tipo) {
-$directorio = "/opt/tupalescripts/";
-$dominio = remplacetas('empresa','id',"$id",'web','') ;
-$nombre = nombre_dominio($dominio[0]);
-$nombre = str_replace(".", "_", $nombre);
-if($tipo =="crear" ) {
- $ar=fopen("$directorio".$id."","w"); //or die("Problemas en la creacion");
- $variables=fopen("$directorio"."variables","w"); //or die("Problemas en la creacion");
- $contenido = "dominio=$dominio[0] \nnombre=$nombre \nidem=$id \n";
-
- fputs($ar,"$contenido");
- fputs($variables,"$contenido");
-
- fclose($ar);
- fclose($variables);
-
- $resultado ="Se configuró el dominio para $nombre ";
- }else {
- $borrar=fopen("$directorio"."borrar","w");
- fputs($borrar,"nombre=$nombre");
- fclose($borrar);
- unlink("$directorio".$id."");
- $resultado ="Se ELIMINÓ el dominio $nombre ";
- }
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("dominio_$id","innerHTML","$resultado");
- return $respuesta;
-
-}
-$xajax->registerFunction("configurar_dominio");
-
-
-function multiempresa($tabla,$div){
- require ("includes/parametrizacion.php");
- if($_SESSION['id'] == 1 AND $soporte_multiempresa !== 0) {
- if($div =="") {
- $div="contenido";
- $resultado ="
Configuración multiempresa";
- return $resultado;
- }
-$link=Conectarse();
-
-mysqli_set_charset($link, "utf8");
-if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];}$consulta = "SELECT * FROM empresa ";
-$sql=mysqli_query($link,$consulta);
-
-$resultado="
-$name
-Id Nombre Sigla Email Web Dirección Teléfono
- " ;
-if (mysqli_num_rows($sql)!='0'){
- if($onchange !=''){$vacio ="";}else{$vacio =" >> Nuevo $descripcion << ";}
-
-$linea = 1;
-while( $row = mysqli_fetch_array( $sql ) ) {
-$razon_social= editar_campo("empresa",$row['id'],"razon_social","","","");
-$sigla= editar_campo("empresa",$row['id'],"sigla","","","");
-$email= editar_campo("empresa",$row['id'],"email","","","");
-$web= editar_campo("empresa",$row['id'],"web","","","");
-$direccion= editar_campo("empresa",$row['id'],"direccion","","","");
-$telefono= editar_campo("empresa",$row['id'],"telefono","","","");
-$estado= editar_campo("empresa",$row['id'],"estado","","","");
-
-if($row[id] !=1) {
- $dominio ="";
- $archivo= "/opt/tupalescripts/$row[id]";
- //$archivo= "tmp/$row[id]";
- if(file_exists("$archivo")) {
- $configuracion_dominio="ok";
- $configuracion_dominio=" ";
- }
- else{
- $configuracion_dominio=" ";
- }
- $acciones = " Estado: $estado
-
- $configuracion_dominio";
-
- }
-$resultado .= "$row[id] $razon_social $sigla $email $web $direccion $telefono $acciones ";
-$linea++;
- }
-
-
- }else{
- $resultado = " No hay resultados
";
- }
-
-$resultado .= "
-
-
Agregar empresa
-
-
-
-";
-//return $resultado;
- //$respuesta = new xajaxResponse('utf-8');
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
- }
-}
-$xajax->registerFunction("multiempresa");
-
-
-
-
-
-
-function contar_valores_formulario($campo,$key,$valor){
-$consulta = "SELECT distinct($campo) as cantidad FROM form_datos WHERE $key LIKE '$valor' ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado = mysqli_num_rows($sql);
-//$resultado = mysqli_result($sql,0,"cantidad");
-}
-//$resultado .= " $consulta";
-return $resultado;
-}
-
-
-function listar_campos_formulario($id_form,$tipo){
- $tipo="$tipo";
-$consulta = "SELECT distinct(id_campo),campo_nombre FROM form_datos,form_campos WHERE form_id = '$id_form' AND form_datos.id_campo = form_campos.id ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-while( $row = mysqli_fetch_array( $sql ) ) {
- if($tipo=="nombres"){
-$resultado[] = "$row[campo_nombre]";}
- elseif($tipo=="select"){
- $option .= "
$row[campo_nombre] ";
- }
- else{
-//$resultado .= " $row[id_campo] ";
-$resultado[] = $row['id_campo'];
-}
-}
-if($tipo=="select"){
-$resultado = "
-
- Campo
- $option
- ";
-
-}
-//$resultado = mysqli_result($sql,0,"cantidad");
-}
-//$resultado .= " $consulta";
-return $resultado;
-}
-
-
-//($formulario,$div,$registros,$pagina,$formato)
-function consultar_formulario($form,$registros,$pagina,$tipo){
- $imagen ="";
- $busca ="";
- $busqueda ="";
- $fechas ="";
- $campo ="";
- $lineas ="";
- $linea ="";
- $formato ="";
- $listado_nombres ="";
-
-$respuesta = new xajaxResponse('utf-8');
-//if(is_array($form)) {$id_form = $form['id_form'];}else { $id_form = $form;}
-//$id_empresa = $_SESSION['id_empresa'];
-$id_empresa = remplacetas('form_id','id',"$form[id_form]",'id_empresa',"") ;
- if($id_emprea[0] !="") {
- $id_empresa = $id_empresa[0];
- }else{$id_empresa = $_SESSION['id_empresa'];}
-$resaltado = remplacetas('form_parametrizacion','opcion','resaltado','descripcion',"id_empresa = '$id_empresa' ") ;
-//$resaltado = remplacetas('form_parametrizacion','opcion','resaltado','descripcion',"id_empresa = '$id_empresa' ") ;
-if(is_array($form)) {
- $fecha_inicio = $form["inicio"];
- if($fecha_inicio =="" ) { $fecha_inicio ="2000-01-01";}
- $fin = $form["fin"];
- if( $fin !="") { $fechas = " AND timestamp BETWEEN UNIX_TIMESTAMP('$fecha_inicio') AND UNIX_TIMESTAMP('$fin 23:59:59')";}
- $id_form = $form['id_form'];
- @$id_campo = $form['id_campo'];
- $busqueda = $form['busqueda'];
-if($busqueda !=''){$busca ="AND contenido LIKE '%%$form[busqueda]%%'";}else{$busca ='';}
-if($id_campo !=''){$campo ="AND id_campo = '$id_campo'";}else{$campo ='';}
-}else{
-$id_form = $form;
-}
-// AND form_datos.id_empresa = '$id_empresa'
-$consulta_principal = "SELECT control,id,form_id FROM form_datos WHERE form_id = '$id_form' $busca $campo $fechas GROUP BY form_datos.control ORDER BY form_datos.id DESC ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql_total=mysqli_query($link,$consulta_principal);
-$total_registros = mysqli_num_rows($sql_total);//formulario_contar($id_form);
-/// PAGINACION
- if ($pagina =='') {$inicio = 0; $pagina = 1; }
- else { $inicio = ($pagina - 1) * $registros;}
- if($total_registros < $registros) { $limite ="";}
- else{$limite =" LIMIT $inicio, $registros ";}
- if($tipo == "csv" ) {$consulta_limite = "$consulta_principal";}
- else{$consulta_limite = $consulta_principal.$limite;}
- $sql=mysqli_query($link,$consulta_limite);
-
-//$sql=mysqli_query($link,$consulta_principal);
-if (mysqli_num_rows($sql)!='0'){
-
-/////// FILTRO
-
-$fecha = time ();
- $ahora = date ( "Y-m-d" , $fecha );
- $campos = listar_campos_formulario($id_form,"select");
- $peticion = "
-
-
-
-
-
-
-
-
- ";
-/////// FILTRO
-
-$boton_borrar = "
-
-
-
- ";
-
- if($formato!='csv'){
- $boton_exportar = "
Exportar ";}
-
- $link = "";
- // $page = $_GET['page'];
- $page= $pagina;
- @$pages= ceil($total_registros / $registros); //13; // Hardcoded for testing purpose
- $limit=10 ;
- if ($pages >=1 && $page <= $pages)
- {
- $counter = 1;
- $link = "";
- if (($page -1) > 0) {
- $link .= "
-
";
- }
-
- for ($x=$page; $x<=$pages;$x++)
- {
-
-
- if($counter < $limit){
- if ($page == $x){
- $link .= "
$x ";
- }else{
- $link .= "
$x ";
- }
- }
- $counter++;
- }
- if ($page < ($pages - ($limit/2)))
-
- { $link .= "
-
"; }
- }
-
- $paginacion = "";
-
-
-
-
- $encabezado = "
-
";
-
- $total_registros = mysqli_num_rows($sql);
- $nombres_campos = listar_campos_formulario("$id_form","nombres");
- foreach($nombres_campos as $campo_nombre=>$nombre){
- $listado_nombres .= "
$nombre ";
- }
- $listado_nombres = "
Identificador $listado_nombres ";
-$listado_campos = listar_campos_formulario("$id_form",'');
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-//$cantidad_campos = contar_valores_formulario("id_campo","control","$row[control]");
-
-$listado_campos = listar_campos_formulario("$id_form",'');
-
-foreach($listado_campos as $campo=>$valor){
- //$imagen = buscar_imagen($if_form,$row['control'],"","");
- $contenido = remplacetas('form_datos','control',$row['control'],'contenido',"id_campo ='$valor' ") ;
- $id_dato = remplacetas('form_datos','control',$row['control'],'id',"id_campo ='$valor' ") ;
- //$id_empresa = remplacetas('form_datos','control',$row['control'],'id_empresa',"id_campo ='$valor' ") ;
- $tipo_campo = remplacetas('form_campos','id',$valor,'campo_tipo',"") ;
- $web = remplacetas("empresa","id",$id_empresa,"web","");
- if($tipo_campo[0] ==15 AND $contenido[0] != "") {
- @$listado_campos .= "
-
-
-
-
-
-
- ";
- }
- elseif(($tipo_campo[0] ==1 or $tipo_campo[0] ==2 or $tipo_campo[0] ==3 or $tipo_campo[0] ==4 or $tipo_campo[0] ==12 or $tipo_campo[0] ==13 )AND $contenido[0] != "") {
- $editar_contenido = editar_campo("form_datos","$id_dato[0]","contenido","");
- @$listado_campos .= "
$editar_contenido ";
- }
- elseif($tipo_campo[0]=='10'){
- $valor_actual = relacion_render("$id_form","$row[id_campo]",$contenido[0],'5','relacion_drop');
- @$listado_campos .= "
$valor_actual "; }
- else {
-@$listado_campos .= "
$contenido[0] ";
-}
-
- }
- if (!is_array($listado_campos)){$listado_campos="
$listado_campos ";}else {$listado_campos=$listado_campos;}
-
- $areas = resumen_identificador("$row[control]",'','','boton');
- $acceso = generar_acceso($row[control],"","");
- if($resaltado[0] =="$row[control]") {$iresaltar ="
Resaltado "; $alert="info";}
- else {
- $iresaltar = "
Resaltar
-
";
- $alert="";
-
- }
-
- $menu ="
-
-
-
-
-
- ";
-$lineas .= "
$menu$row[control] $listado_campos ";
-
- }
-
-$tabla ="
-
- $listado_nombres
-
- $lineas
-
-
";
-$resultado = "
-$encabezado
-
-
-
-$tabla
-
-
-";
- }
-else {
-$resultado ="
No hay resultados ";
-$respuesta->addAlert("No hay resultados ");
-return $respuesta;
-}
-if($tipo =="csv") {
-$html = str_get_html($tabla);
- // header('Content-type: application/ms-excel');
- // header('Content-Disposition: attachment; filename=sample.csv');
- $nombre_archivo ="tmp/Prueba_Formulario_".mktime()."_".$_SESSION['id'].".csv";
- //$fp = fopen("php://output", "w");
- $fp=fopen($nombre_archivo , "w");
- foreach($html->find('tr') as $element)
- {
- $td = array();
- foreach( $element->find('th') as $row)
- {
- if (strpos(trim($row->class), 'actions') === false && strpos(trim($row->class), 'checker') === false) {
- $td [] = $row->plaintext;
- }
- }
- if (!empty($td)) {
- fputcsv($fp, $td);
- }
-
- $td = array();
- foreach( $element->find('td') as $row)
- {
- if (strpos(trim($row->class), 'actions') === false && strpos(trim($row->class), 'checker') === false) {
- $td [] = $row->plaintext;
- }
- }
- fputcsv($fp, $td);
- }
-
- fclose($fp);
-$boton_descarga ="
Descargar ";
-
-$datos ="$boton_descarga";
-}else {
-
-$datos = $resultado;
-}
-$div ="contenido_de_modal";
-$resultado = "
$datos
";
- $div_contenido = "
$div
";
- $respuesta->addAssign("muestra_form","innerHTML","$div_contenido");
- //$respuesta->addAssign("titulo_modal","innerHTML","Hola mundo");
- //$respuesta->addAssign("pie_modal","innerHTML","$pie");
-
-
- $respuesta->addAssign("$div","innerHTML","$resultado");
- if($tipo =="modal") {
- $respuesta->addscript("$('#muestraInfo').removeClass('fade').modal('hide')");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
-}
- return $respuesta;
-
-}
-$xajax->registerFunction("consultar_formulario");
-
-
-function datos_array($identificador) {
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$consulta ="SELECT * FROM form_datos WHERE control = '$identificador'
-GROUP BY id_campo ORDER BY timestamp DESC ";
-$sql = mysqli_query($link,$consulta,$link) or die("error al ejecutar consulta ");
-$array = array();
-$array[identificador] = "$identificador";
-while($row = mysqli_fetch_array( $sql ))
- {
-
-
- //$contenido = remplacetas('form_datos','id',$row[id],'contenido',"") ;
-
- $id_campo = remplacetas('form_datos','id',$row[id],'id_campo',"") ;
-
- $campo_tipo = remplacetas("form_campos","id",$row[id_campo],"campo_tipo","");
- $contenido = remplacetas_orden('form_datos','id_campo',$row[id_campo],'contenido'," control = '$identificador'"," ORDER BY timestamp DESC ") ;
- if($campo_tipo[0]=='10'){
- $valor_actual = relacion_render($row[form_id],$row[id_campo],$contenido[0],'5','relacion_drop');
- $contenido[0] = "$valor_actual";}
- else{
-
- }
- $nombre_campo = remplacetas('form_campos','id',$id_campo[0],'campo_nombre',"") ;
- //$array[id_campo] = $row[id_campo];
-
-//// PRIVACIDAD
- $privado = remplacetas('form_parametrizacion','campo',"$row[form_id]",'opcion'," tabla='form_id' AND descripcion ='$id_campo[0]' AND opcion REGEXP '^privacidad:' ") ;
- $privado = explode(":",$privado[0]);
- $privado = $privado[1];
-/// PRIVACIDAD
-if($privado !='1') {
- $array[$nombre_campo[0]] = "$contenido[0]";
- //$array['consulta'] = "$contenido[2]";
- $array['timestamp'] = "$row[timestamp]";
- $array['proceso'] = "$row[proceso]";
- $array['id'] = "$row[id]";
- $array['orden'] = "$row[orden]";
- //$array[] = $row;
-
-}
- }
- return $array;
-}
-
-
-function parametrizacion_linea($tabla,$campo,$opcion,$descripcion,$div,$script,$item){
- if(isset($_SESSION['id_empresa']) ){$id_empresa= $_SESSION['id_empresa']; }else{$id_empresa="";}
- $respuesta = new xajaxResponse('utf-8');
-if($tabla =="") {
-$resultado = "
-
-
-
- Hiperparametrizador Experimental
-
-
-
-
- Tabla
-
- *Campo obligatorio
-
-
-
-
-
-
- Descripción
-
-
-
-
-
-";
-return $resultado;
-}
- $link=Conectarse();
-mysqli_query($link,"SET NAMES 'utf8mb4'");
-$limpiar ="DELETE FROM `form_parametrizacion` WHERE tabla = '".mysqli_real_escape_string($link,$tabla)."' AND campo ='".mysqli_real_escape_string($link,$campo)."' AND opcion ='".mysqli_real_escape_string($link,$opcion)."' AND id_empresa = '$id_empresa' AND item = '".mysqli_real_escape_string($link,$item)."' LIMIT 1 ";
-$sql=mysqli_query($link,$limpiar);
-$consulta="INSERT INTO form_parametrizacion set tabla = '".mysqli_real_escape_string($link,$tabla)."' , campo ='".mysqli_real_escape_string($link,$campo)."', opcion ='".mysqli_real_escape_string($link,$opcion)."', descripcion ='".mysqli_real_escape_string($link,$descripcion)."', item ='".mysqli_real_escape_string($link,$item)."', visible='1' , id_empresa = '$id_empresa'";
-$sql=mysqli_query($link,$consulta);
-if($sql) {
- if($descripcion =="") {
- $respuesta->addAlert("ATENCION: Se grabó un campo vacío, esto no es necesariamente un error pero indica que el valor de parametrización se sobreescribió como vacío. ");
- }
- $id = mysql_insert_id();
- if($script != "") {
- $respuesta->addScript("$script");
- return $respuesta;
-
- }
- if($div != "") {
- $resultado = " $descripcion ";
- $respuesta->addAssign("$div","innerHTML",$resultado);
- return $respuesta;
- }else {
- return $id;
- }
- }else {
-//$respuesta->addAlert("$consulta");
-}
-///$respuesta->addAssign("$div","innerHTML",$exito);
-return $respuesta;
- }
-$xajax->registerFunction("parametrizacion_linea");
-
-
-/*
-function parametrizacion_linea($tabla,$campo,$opcion,$descripcion,$div){
- $respuesta = new xajaxResponse('utf-8');
-if($tabla =="") {
-$resultado = "
-
-
-
- Hiperparametrizador Experimental
-
-
-
-
- Tabla
-
- *Campo obligatorio
-
-
-
-
-
-
- Descripción
-
-
-
-
-
-";
-return $resultado;
-}
- $link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$limpiar ="DELETE FROM `form_parametrizacion` WHERE tabla = '".mysqli_real_escape_string($link,$tabla)."' AND campo ='".mysqli_real_escape_string($link,$campo)."' AND opcion ='".mysqli_real_escape_string($link,$opcion)."' AND id_empresa = '$_SESSION[id_empresa]' LIMIT 1 ";
-$sql=mysqli_query($link,$limpiar);
-$consulta="INSERT INTO form_parametrizacion set tabla = '".mysqli_real_escape_string($link,$tabla)."' , campo ='".mysqli_real_escape_string($link,$campo)."', opcion ='".mysqli_real_escape_string($link,$opcion)."', descripcion ='".mysqli_real_escape_string($link,$descripcion)."', visible='1' , id_empresa = '$_SESSION[id_empresa]'";
-$sql=mysqli_query($link,$consulta);
-if($sql) {
- if($descripcion =="") {
- $respuesta->addAlert("ATENCION: Se grabó un campo vacío, esto no es necesariamente un error pero indica que el valor de parametrización se sobreescribió como vacío. ");
- }
- $id = mysql_insert_id();
- if($div != "") {
- $resultado = " $opcion : $descripcion ".time()." $id";
- $respuesta->addAssign("$div","innerHTML",$resultado);
- return $respuesta;
- }else {
- return $id;
- }
- }else {
-//$respuesta->addAlert("$consulta");
-}
-///$respuesta->addAssign("$div","innerHTML",$exito);
-return $respuesta;
- }
-$xajax->registerFunction("parametrizacion_linea");
-
-*/
-
-
-function email_contenido($id,$control,$id_campo,$email_envio){
-
-if($email_envio =="") {
- $email = remplacetas('form_datos','control',"$control",'contenido',"form_id = '$id' AND id_campo ='$id_campo' ") ;
- $formulario =
-
- "
-
";
-return $formulario;
- }
- $respuesta = new xajaxResponse('utf-8');
-
- $validar = validar_email($email_envio);
- if($validar == '0') {
- $respuesta->addAssign("input_email_envio","className"," input-group has-error ");
- $respuesta->addScript("document.getElementById('email_envio').focus(); ");
- $respuesta->addAlert("Se necesita un email válido");
- return $respuesta;
- }
- $propietario = remplacetas('form_id','id',$id,'propietario',"") ;
- $propietario = remplacetas('usuarios','id',$propietario[0],'email',"") ;
- $id_empresa = remplacetas('form_id','id',$id,'id_empresa',"") ;
- $id_empresa = $id_empresa[0];
- $encabezado = empresa_datos("$id_empresa",'encabezado');
- $direccion = remplacetas("empresa","id",$id_empresa,"direccion","");
- $telefono = remplacetas("empresa","id",$id_empresa,"telefono","");
- $web = remplacetas("empresa","id",$id_empresa,"web","");
- //// siempre se enviara el email desde el mail parametrizado en la empresa 1
- //$email = remplacetas("empresa","id","1","email","");
- $email = remplacetas("empresa","id","$id_empresa","email","");
- $reply = remplacetas("empresa","id","$id_empresa","email","");
- $imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
- $razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
- $slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
- $nombre_formulario = remplacetas("form_id","id",$id,"nombre","");
-
-
-$headers = "MIME-Version: 1.0\r\n";
-$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
-$headers .= "From: $razon_social[0] <$email[0]>\r\n";
-$headers .= "Reply-To: $razon_social[0] <$reply[0]>\r\n";
-$headers .= "Return-path: $email[0]\r\n";
-$headers .= "Cc: $propietario[0]" . "\r\n";
-$impresion = formulario_imprimir("$id","$control","email");
-
-$impresion ="
-$encabezado
-
$impresion
";
-$asunto= "[MILFS] $nombre_formulario[0]";
-$cuerpo ="
-
-$impresion
-
-Se ha completado el formulario
$nombre_formulario[0]
-
Puede revisar los datos en $_SESSION[site]I$control
-
Saludos de MILFS
-";
- if(mail("$email_envio","$asunto","$cuerpo","$headers")){ $exito .="
Se envió un email a $email_envio "; }else {$exito .="error enviando correo";}
-
-$respuesta->addAssign("confirmar_envio_email","innerHTML",$exito);
-return $respuesta;
- }
-$xajax->registerFunction("email_contenido");
-
-
-function mapa_ficha($id) {
-
- $descripcion = remplacetas('form_id','id',$id,'descripcion','') ;
- $descripcion_limpia = strip_tags($descripcion[0]);
- $nombre = remplacetas('form_id','id',$id,'nombre','') ;
- $id_empresa = remplacetas('form_id','id',$id,'id_empresa','') ;
- $id_empresa = $id_empresa[0];
- $direccion = remplacetas("empresa","id",$id_empresa,"direccion","");
- $telefono = remplacetas("empresa","id",$id_empresa,"telefono","");
- $web = remplacetas("empresa","id",$id_empresa,"web","");
- $email = remplacetas("empresa","id",$id_empresa,"email","");
- $imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
- $razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
- $slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
- $imagen = "
";
- $datos ="
$nombre[0] $descripcion[0] ";
- $empresa = "
$razon_social[0] |
$web[0] | $direccion[0] | $email[0]
";
-
- //$prueba = json_decode($prueba);
-
- $resultado ="
-
-
-
-
- $imagen
-
-
-
$nombre[0]
- $descripcion_limpia[0]
-
-
-
-
$razon_social[0]
-
MILFS
-
-
-
- ";
- return $resultado;
-}
-
-function formulario_parametrizacion($perfil,$accion,$div,$form){
- $respuesta = new xajaxResponse('utf-8');
-$nombre = remplacetas('form_id','id',$perfil,'nombre') ;
-if($accion =='categorias') {
-
- }
- elseif($accion =='grabar'){
-
- }
- else {
- $listado ="
-
-
-
-
-
-
Parametrización
-
Parametrización del formulario $nombre[0]. Por favor seleccione una opción
-
-
-
-
- ";
- $respuesta->addAssign($div,"innerHTML",$listado);
- return $respuesta;
- }
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$consulta = "
- SELECT md5(binary contenido) as md5_contenido, contenido FROM form_datos
- WHERE form_id = '$perfil'
- AND id_campo = '$campo'
- GROUP BY contenido
- ORDER BY contenido asc";
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado = "
Filtro
-
- Todos ";
-while( $row = mysqli_fetch_array( $sql ) ) {
-$resultado .= " $row[contenido] ";
- }
-$resultado .= " ";
- }
-else{$resultado = 'nada';}
-
-if($div !="") {
-$respuesta->addAssign($div,"innerHTML",$resultado);
-return $respuesta;
- }else{return $resultado;}
-
- }
-$xajax->registerFunction("formulario_parametrizacion");
-
-
-
-function lista_categorias($perfil,$categoria,$tipo) {
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
- $categoria_campo = remplacetas('form_parametrizacion','campo',$perfil,'descripcion'," tabla='form_id' and opcion = 'categoria:campo'") ;
- $categoria_campo = $categoria_campo[0];
- if($categoria_campo >0 ) {
-$consulta = "
- SELECT md5(binary contenido) as md5_contenido, contenido FROM form_datos
- WHERE form_id = '$perfil'
- AND id_campo = '$categoria_campo'
- GROUP BY contenido
- ORDER BY contenido asc";
-
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado = "
";
-while( $row = mysqli_fetch_array( $sql ) ) {
-
- $icono = remplacetas('form_parametrizacion','campo',$perfil,'descripcion'," tabla='form_id' and opcion = 'categoria:icon:$row[md5_contenido]'") ;
- if($icono[0] =='') {
- $icon = "$_SESSION[site]milfs/images/iconos/pin.png";
- }else{
-
- $icon = $icono[0];
- }
- $icono = "$icon";
- $contenido= substr($row[contenido],0, $length = 15);
-$resultado .= "
$contenido ";
- }
-$resultado .= "
";
- }
-else{$resultado = '';}
-}
-return $resultado;
-}
-
-function parametrizacion_categoria($perfil,$accion,$div,$form){
- $respuesta = new xajaxResponse('utf-8');
-$nombre = remplacetas('form_id','id',$perfil,'nombre') ;
-$categorias = lista_categorias($perfil,$categoria,$tipo);
-if($accion =='categorias') {
- $resultado = "
-
-
La categorización se usa para filtrar los datos de un formulario en categorias que pueden ser usadas por ejemplo para diferenciar los datos en un mapa.
- Es necesario que el formulario que se va a categorizar tenga multiples datos grabados en el campo que se categoriza
- $categorias
-
-
-
-
- Icono para la categoría
-
-
- URL
-
-
-
-
- Grabar
-
- ";
- $respuesta->addAssign($div,"innerHTML",$resultado);
- $respuesta -> addScript("xajax_formulario_campos_select('$perfil','parametrizacion')");
- return $respuesta;
- }
- elseif($accion =='grabar'){
- if($form[tipo] =='categoria') {
- $url_icon = "$form[icon]";
- $es_imagen = es_imagen("$url_icon");
- $altura = GetImageSize($url_icon);
- $altura= $altura[1];
- if($form[id_campo] =='') { $error = "Seleccione un campo";}
- elseif($form[campo_filtro] =='') { $error = "Seleccione Filtro";}
- elseif(!$es_imagen ) { $error = " [ $url_icon ] no es una imagen válida para el ícono";}
- elseif($altura > 500 ) { $error = " El ícono no debe tener mas de 300 pixeles de alto.";}
- elseif($form[icon] =='') {
- $error = "Escriba la dirección del ícono";
- }
- else {$error='';}
- if( $error !='') {
- $respuesta -> addAlert("$error $revisar_url ");
- return $respuesta;
- }else{
- $categoria_icono[tabla] = "form_id";
- $categoria_icono[campo] = "$form[perfil]";
- $categoria_icono[opcion] = "$form[tipo]:icon:$form[campo_filtro]";
- $categoria_icono[descripcion] = "$url_icon";
- $categoria_icono[visible] = "1";
- $categoria_icono[accion] = "grabar";
- $grabar_icono = parametrizacion($categoria_icono);
-
- $categoria_campo[tabla] = "form_id";
- $categoria_campo[campo] = "$form[perfil]";
- $categoria_campo[opcion] = "$form[tipo]:campo";
- $categoria_campo[descripcion] = "$form[id_campo]";
- $categoria_campo[visible] = "1";
- $categoria_campo[accion] = "grabar";
- $grabar_campo = parametrizacion($categoria_campo);
-
- $categoria_filtro[tabla] = "form_id";
- $categoria_filtro[campo] = "$form[perfil]";
- $categoria_filtro[opcion] = "$form[tipo]:filtro:$form[id_campo]";
- $categoria_filtro[descripcion] = "$form[campo_filtro]";
- $categoria_filtro[visible] = "1";
- $categoria_filtro[accion] = "grabar";
- $grabar_filtro = parametrizacion($categoria_filtro);
-
-
- $resultado ="
$form[campo_filtro] $form[id_campo] ($altura ) [$grabar_icono]";
- $respuesta->addAssign($div,"innerHTML",$resultado);
- return $respuesta;
- }
-
- }/// fin de parametrizacion categorias
- }
-}
-$xajax->registerFunction("parametrizacion_categoria");
-
-
-function parametrizacion_plantilla_campos($formulario){
-$consulta ="SELECT * FROM form_campos ,form_contenido_campos WHERE form_campos.id = form_contenido_campos.id_campo AND form_contenido_campos.id_form = '$formulario' ORDER BY form_campos.campo_nombre";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!=0){
-$campo_imagen = buscar_campo_tipo($formulario,"15");
-$campo_imagen_nombre = $campo_imagen[1];
-$campo_imagen = $campo_imagen[0];
-while( $row = mysqli_fetch_array( $sql ) ) {
- if($row[id_campo] == $campo_imagen ) {$imagen ="
"; $identificador="
";}
- else {$imagen=''; $identificador =" \$campo_limpio[$row[id_campo]] ";}
-$listado .= "
$imagen $row[campo_nombre] [$row[id_campo]] ";
-
-}
-/*
-$campo_400[$row[id_campo]]
- $campo_80[$row[id_campo]]
- $campo_55[$row[id_campo]]
-*/
-$resultado = "
-
-
-
-
-
-
-
-
- $listado
- Fecha
-
-
-";
-}
-return $resultado;
-}
-
-
-function parametrizacion_plantilla_campos_inteligentes($formulario){
-$consulta ="SELECT distinct(`id_campo`) , campo_nombre FROM `form_datos`, form_campos WHERE form_datos.id_campo = form_campos.id AND `form_id` ='$formulario' ORDER BY campo_nombre ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!=0){
-$campo_imagen = buscar_campo_tipo($formulario,"15");
-$campo_imagen_nombre = $campo_imagen[1];
-$campo_imagen = $campo_imagen[0];
-while( $row = mysqli_fetch_array( $sql ) ) {
- if($row[id_campo] == $campo_imagen ) {$imagen ="
"; $identificador="
";}
- else {$imagen=''; $identificador =" \$campo_limpio[$row[id_campo]] ";}
-$listado .= "
$imagen $row[campo_nombre] [$row[id_campo]] ";
-
-}
-/*
-$campo_400[$row[id_campo]]
- $campo_80[$row[id_campo]]
- $campo_55[$row[id_campo]]
-*/
-$resultado = "
-
-
-
-
-
-
-
-
- $listado
- Fecha
-
-
-";
-}
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("div_campos","innerHTML","$resultado");
- return $respuesta;
-
-}
-$xajax->registerFunction("parametrizacion_plantilla_campos_inteligentes");
-
-
-function parametrizacion_plantilla($formulario,$div,$valores) {
- $respuesta = new xajaxResponse('utf-8');
-$campo_titulo = remplacetas('form_parametrizacion','campo',$formulario,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
-$campo_titulo_nombre = remplacetas('form_campos','id',$campo_titulo[0],'campo_nombre',"") ;
-$link=Conectarse();
-$ultimo = formulario_uso("$formulario",'','ultimo') ;
-mysqli_set_charset($link, "utf8");
-if($valores =="boton") {
-$consulta ="SELECT * FROM form_parametrizacion WHERE campo = '$formulario' AND `opcion` REGEXP '^plantilla:' ORDER BY opcion";
-
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!=0){
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- $campos_opcion = explode(":",$row[opcion]);
- $plantilla_nombre = $campos_opcion[1];
-$listado .= "
$row[opcion] ";
-$li .= "
- $plantilla_nombre
- Editar
- Editar
-
- ";
-//mostrar_modal($form,$control,$plantilla)
-}
-$resultado = "
-
-
-
-";
-$lista ="
-
-
Las plantillas se usan para dar formato a los datos en el momento de presentarlos, se puede usar etiquetas HTML5 , CSS3 y clases de Bootstrap
-
-
- Nombre
- Editar
- Ver
-
-$li
-
-
Nueva plantilla
-";
- $respuesta->addAssign("$div","innerHTML","$lista");
- return $respuesta;
-
-}
-else {
-
-$resultado ="
-
-
-
Aún no se han definido plantillas para este formulario
- Crear una plantilla
-
-
-";
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
-}
-}
-
-elseif($valores =="formulario" OR is_numeric($valores)) {
- $campos = parametrizacion_plantilla_campos("$formulario");
- $descripcion = remplacetas('form_parametrizacion','id',$valores,'descripcion',"") ;
- $opcion = remplacetas('form_parametrizacion','id',$valores,'opcion',"") ;
- $campos_opcion = explode(":",$opcion[0]);
- $plantilla_nombre = $campos_opcion[1];
- include("includes/bootsrap_class_list.php");
-$resultado ="
-
-
-
-
-
-
-
- A
A
')); \">
-
-
A
-
A
-
div
-
H1
-
H2
-
H3
-
-
<li>
-
-
MB
-
-
-
-
-
-
Editor HTML
-
$descripcion[0]
-
-
-
-
Campos inteligentes
- $campos
-
-
-
-
-
-";
-
-}
-
-elseif(is_array($valores)) {
- $texto=str_replace('"',"'",$valores[text_contenedor]);
-$plantilla = htmlentities($texto);
-if($valores[nombre_plantilla] == "") {
- $respuesta->addAlert("No ha especificado un nombre para la plantilla");
- $respuesta->addAssign("input_nombre_plantilla","className","input-group has-error");
- return $respuesta;
- }
-$limpiar ="DELETE FROM `form_parametrizacion` WHERE tabla = 'form_id' AND campo ='$formulario' AND opcion ='plantilla:$valores[nombre_plantilla]' LIMIT 1 ";
-$sql=mysqli_query($link,$limpiar);
-$consulta="INSERT INTO form_parametrizacion set tabla = 'form_id' , campo ='$formulario', opcion ='plantilla:$valores[nombre_plantilla]', descripcion =\"$plantilla\", visible='1' ";
-$sql=mysqli_query($link,$consulta);
-$ultimo = formulario_uso("$formulario",'','ultimo') ;
-$datos = contenido_mostrar("$formulario","$ultimo[1]",'',"$valores[nombre_plantilla]");
-$preview = "
$valores[nombre_plantilla] $datos ";
- $div_contenido = "
$preview
";
- $respuesta->addAssign("muestra_form","innerHTML","$div_contenido");
- $respuesta->addAssign("titulo_modal","innerHTML","$resultado");
- $respuesta->addAssign("pie_modal","innerHTML","$pie");
- //$respuesta->addAssign("$div","innerHTML","$resultado");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
-
-
- return $respuesta;
-
-}
-else{
-$resultado ="";
-}
-$resultado .= "";
-
-
- $respuesta->addAssign("$div","innerHTML","$resultado");
-
-
- return $respuesta;
-
-}
-$xajax->registerFunction("parametrizacion_plantilla");
-
-
-function parametrizacion_titulo($formulario,$div,$valores) {
-$campo_titulo = remplacetas('form_parametrizacion','campo',$formulario,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
-$campo_orden = remplacetas('form_parametrizacion','campo',$formulario,'descripcion'," tabla='form_id' and opcion = 'orden'") ;
-$campo_titulo_nombre = remplacetas('form_campos','id',$campo_titulo[0],'campo_nombre',"") ;
-$campo_orden_nombre = remplacetas('form_campos','id',$campo_orden[0],'campo_nombre',"") ;
-$respuesta = new xajaxResponse('utf-8');
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-if($valores =="") {
-$consulta ="SELECT * FROM form_campos ,form_contenido_campos WHERE form_campos.id = form_contenido_campos.id_campo AND form_contenido_campos.id_form = '$formulario' ORDER BY form_campos.campo_nombre";
-
-$sql=mysqli_query($link,$consulta);
-
-
-
-if (mysqli_num_rows($sql)!=0){
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-$listado .= "
$row[campo_nombre] [$row[id_campo]] ";
-}
-
-//($tabla,$campo,$opcion,$descripcion,$div)
-
-$resultado = "
-
Campos especiales
-
- Campo de Título actual $campo_titulo_nombre[0] [$campo_titulo[0]]
- Campo de Orden actual $campo_orden_nombre[0] [$campo_orden[0]] (Este campo debe ser del tipo numérico)
-
-
-
- Seleccione campo
-
-
- Borrar el valor actual
- $listado
-
-
-
-
-
- Usar como Título
-
-
-
- Usar como Orden
-
-
-
-
-
-
-
-";
-}
-}else {
-$limpiar ="DELETE FROM `form_parametrizacion` WHERE tabla = 'form_id' AND campo ='$formulario' AND opcion ='titulo' LIMIT 1 ";
-$sql=mysqli_query($link,$limpiar);
-$consulta="INSERT INTO form_parametrizacion set tabla = 'form_id' , campo ='$formulario', opcion ='titulo', descripcion ='$valores', visible='1' ";
-$sql=mysqli_query($link,$consulta);
-if($sql){
- $campo_titulo = remplacetas('form_parametrizacion','campo',$formulario,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
- $campo_titulo_nombre = remplacetas('form_campos','id',$campo_titulo[0],'campo_nombre',"") ;
-$resultado ="
addAssign("$div","innerHTML","$resultado");
-
-
- return $respuesta;
-
-}
-$xajax->registerFunction("parametrizacion_titulo");
-
-
-function mostrar_modal($form,$control,$plantilla){
-$respuesta = new xajaxResponse('utf-8');
-if( $control == "") {
- $datos = formulario_areas($form,"");
-}else {
-$datos = contenido_mostrar("$form","$control",'',"$plantilla");
-}
-$div ="contenido_de_modal";
-
-$resultado = "
-
- $datos
-
-
";
- $div_contenido = "
$div
";
- $respuesta->addAssign("muestra_form","innerHTML","$div_contenido");
- //$respuesta->addAssign("titulo_modal","innerHTML","Hola mundo");
- //$respuesta->addAssign("pie_modal","innerHTML","$pie");
- $respuesta->addAssign("$div","innerHTML","$resultado");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
-
- return $respuesta;
-
-}
-$xajax->registerFunction("mostrar_modal");
-
-function portal_filtro_cadena($formulario,$id_campo,$control,$div,$plantilla){
-$cadena = remplacetas('form_datos','control',"$control",'contenido',"form_id = '$formulario' AND id_campo ='$id_campo' ") ;
-$consulta ="SELECT * FROM form_campos ,form_datos
- WHERE form_datos.form_id = '$formulario' AND form_campos.id = form_datos.id_campo AND form_datos.id_campo = '$id_campo' AND contenido = '$cadena[0]'
- GROUP BY control ORDER BY contenido";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!=0){
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-
-
- $datos = contenido_mostrar("$formulario","$row[control]",'',"$plantilla");
- if($plantilla == "") {
-$listado .= "
-";
-}else{$listado .= $datos; }
-}
-$resultado = "
-
- $listado
-
-";
-}else{
-$resultado ="";
-}
-
-if ($div ==""){$div="mostrar_contenido";}
-else {$div = "$div";}
-$respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign("$div","innerHTML","$resultado ");
- return $respuesta;
-}
-$xajax->registerFunction("portal_filtro_cadena");
-
-
-
-function portal_filtro_campos($formulario,$id_campo,$div,$plantilla){
-$formulario_descripcion = remplacetas('form_id','id',"$formulario",'descripcion',"") ;
-$formulario_nombre = remplacetas('form_id','id',"$formulario",'nombre',"") ;
-$campo_nombre = remplacetas('form_campos','id',"$id_campo",'campo_nombre',"") ;
-$campo_descripcion = remplacetas('form_campos','id',"$id_campo",'campo_descripcion',"") ;
-
-$consulta ="SELECT * FROM form_campos ,form_datos WHERE form_datos.form_id = '$formulario' AND form_campos.id = form_datos.id_campo AND form_datos.id_campo = '$id_campo' GROUP BY contenido ORDER BY contenido";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!=0){
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-$listado .= "
$row[contenido] ";
-}
-
-$resultado = "
-
- $formulario_nombre[0] / $campo_nombre[0]
- {json}
- $listado
-
-";
-}
-return $resultado;
-}
-
-
-
-function portal_filtro_campos_select($formulario,$id_campo,$div,$plantilla){
-$listado="";
-if($id_campo =="") {
- $campo_titulo = remplacetas('form_parametrizacion','campo',$formulario,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
- $id_campo = $campo_titulo[0];
- if($id_campo =="") { $resultado = ""; return $resultado;}
- }
-$formulario_descripcion = remplacetas('form_id','id',"$formulario",'descripcion',"") ;
-$formulario_nombre = remplacetas('form_id','id',"$formulario",'nombre',"") ;
-$campo_nombre = remplacetas('form_campos','id',"$id_campo",'campo_nombre',"") ;
-$campo_descripcion = remplacetas('form_campos','id',"$id_campo",'campo_descripcion',"") ;
-
-$consulta ="SELECT *
- FROM form_campos ,form_datos
- WHERE form_datos.form_id = '$formulario'
- AND form_campos.id = form_datos.id_campo
- AND form_datos.id_campo = '$id_campo'
- GROUP BY contenido
- ORDER BY contenido";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!=0){
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-$listado .= "
$row[contenido] ";
-}
-$resultado = "
-
- $campo_nombre[0]
- $listado
-
-";
-}
-$resultado ="
-
- Filtro
- $resultado
-
";
-return $resultado;
-}
-
-
-
-function portal_listado_campos($formulario){
-$formulario_descripcion = remplacetas('form_id','id',"$formulario",'descripcion',"") ;
-$formulario_nombre = remplacetas('form_id','id',"$formulario",'nombre',"") ;
-$consulta ="SELECT * FROM form_campos ,form_contenido_campos WHERE form_campos.id = form_contenido_campos.id_campo AND form_contenido_campos.id_form = '$formulario' ORDER BY form_contenido_campos.orden";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!=0){
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- //href='?formulario=$formulario&campo=$row[id_campo]'
- //
{json}
- $estadisticas = formulario_estadistica("$formulario","$row[id_campo]","contenido","barras");
-$listado .= "
$row[id_campo] $row[campo_nombre] $row[campo_descripcion] $estadisticas ";
-}
-$resultado = "
-
-
-
-
-
- Id Nombre campo Descripcion
- $listado
-
-
-
-";
-}
-return $resultado;
-}
-
-
-function portal_listado_formularios($id_proyecto){
- if($id_proyecto=="") {
- return;
- }
-$listado="";
-$consulta ="SELECT * FROM form_id WHERE publico = '1' AND id_empresa='$id_proyecto'";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!=0){
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- $nombre= strip_tags($row['nombre']);
- $descripcion= strip_tags($row['descripcion']);
-$listado .= "
$nombre ";
-}
-$resultado = "
-
-
-
-";
-}
-return $resultado;
-}
-
-
-
-function insertar_linea($tabla,$key,$campo,$valor,$control,$orden,$div){
- $respuesta = new xajaxResponse('utf-8');
- //$key = limpiar_caracteres($key);
- //$valor = limpiar_caracteres($valor);
-if($_SESSION[id_empresa] =="") {
- $empresa = remplacetas('form_id','id',"$key",'id_empresa','') ;
- $empresa = $empresa[0];
- }else {$empresa=$_SESSION[id_empresa];}
- $ip = obtener_ip();
- $ip = " INET_ATON('".$ip."') ";
-if($tabla =="form_datos") {
-
-$consulta = "INSERT INTO form_datos ( orden, timestamp,id_usuario,id_empresa,form_id,ip,control,id_campo,contenido) VALUES
- ( '$orden',UNIX_TIMESTAMP(),'$_SESSION[id]','$empresa','$key',$ip ,'$control', '$campo' , '$valor')
- ";
-
-}
-mysqli_real_escape_string($link,$consulta);
-
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- if($valor !="") {
- $sql=mysqli_query($link,$consulta);
-}
-if($sql) {
-if($div !='') {
- //$respuesta->addAssign($div,"innerHTML","");
- $respuesta->addAssign("$div","innerHTML","
El registro se insertó con éxito
");
- return $respuesta;
- }
-else {
-return " ";
-}
-}else {
-return "No se inserto ";;
-}
-}
-$xajax->registerFunction("insertar_linea");
-
-
-function select_combo($id,$tabla,$campo_valor,$campo_descripcion,$tipo){
-
-if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];}$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$Campo_descripcion = ucwords($campo_descripcion);
-$Campo_valor = ucwords($campo_valor);
-$nombre=$tabla."_".$campo_valor;
-$div=$nombre."_hijo";
-$combo = $id."_".$tabla;
-if($tipo!=''){
-$respuesta = new xajaxResponse('utf-8');
-$consulta ="SELECT $id , $campo_valor , $campo_descripcion FROM $tabla WHERE $campo_valor = '$tipo' AND id_empresa = '$id_empresa'";
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado .= "
$Campo_descripcion
-
";
-$resultado .= " Seleccione $Campo_descripcion ";
-while( $row = mysqli_fetch_array( $sql ) ) {
-$resultado .= " $row[$campo_valor] $row[$campo_descripcion] ";
- }
-$resultado .= " ";
- }
-
-
-
-$respuesta->addAssign($div,"innerHTML",$resultado);
-return $respuesta;}
-ELSE{ /// si no especifica $tipo
-$consulta ="SELECT $id , $campo_valor , $campo_descripcion FROM $tabla WHERE id_empresa = '$id_empresa' GROUP BY $campo_valor ";
-$sql=mysqli_query($link,$consulta);
-///$Documento=mysqli_result($grupo,0,"documento_numero");
-$resultado = "
$Campo_valor
-
";
- $resultado .= " Seleccione $Campo_valor ";
-if (mysqli_num_rows($sql)!='0'){
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- $explicacion= remplacetas('eapb','codigo',"$row[$campo_valor]",'nombre',"") ;
-$explicacion = $explicacion[0];
-$resultado .= "$row[$campo_valor] ";
- }
- }
-$resultado .= "
";
- }/// FIN de $tipo no especifico
-
-return $resultado;
-}
-$xajax->registerFunction("select_combo");
-
-
-
-function crear_session ($form,$control) {
-
-$consulta = " SELECT distinct(id_campo),contenido FROM form_datos WHERE control = '$control' AND form_id = '$form' order by timestamp DESC ";
-$link=Conectarse();
- mysqli_set_charset($link, "utf8");
- $sql = mysqli_query($link,$consulta);
- if (mysqli_num_rows($sql)!=0){
- $resultado ="
";
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
- $id_form = $row[form_id];
- $campo_nombre = remplacetas('form_campos','id',$row[id_campo],'campo_nombre');
- $nombre = strtolower( str_replace(' ','_',$campo_nombre[0]));
- $_SESSION[$nombre] = $row[contenido];
- $resultado .= "$_SESSION[$nombre] ";
- }
- $resultado .= " ";
- }
-return $resultado ;
-}
-
-function mostrar_identificador($control,$form,$plantilla,$tipo,$timestamp){
- //$respuesta = mostrar_identificador("$identificador","$row[form_id]","respuesta","$plantilla","$row[timestamp]");
- $datos_form="";
- $edicion="";
- $resultado="";
- $tipo="$tipo";
- if($form != "") {$id_form = "$form";
-
- $datos_form ="
-
$nombre[0]
-
$descripcion[0]
- ";
-
- }else {$id_form ="";}
-
- $impresion = formulario_imprimir("$id_form","$control","$plantilla",$timestamp);
- if($impresion !="") {
- $visitas= contar_visitas($control,'identificador') ;
- $visitas= "
$visitas";
- //$descripcion = remplacetas('form_id','id',$id_form,'descripcion',"") ;
- //$nombre = remplacetas('form_id','id',$id_form,'nombre',"") ;
- $interaccion = interaccion_identificador("$control",'');
- if($tipo=="") {
- $resultado = "
-
-
-
-
- $visitas
- $datos_form
-
-
- $impresion
-
-
-
-
-
-
-
- $interaccion
- $edicion
-
- "; }else {
-$resultado = "$impresion";
- }
- }else{
-$resultado ="
No hay resultados ";
- }
-
-return $resultado ;
-}
-
-function buscar_campo_nombre($form_id,$nombre) {
-
-$consulta ="SELECT form_campos.id FROM `form_campos` , form_contenido_campos WHERE `campo_nombre` = '$nombre' AND form_campos.id = form_contenido_campos.id_campo AND form_contenido_campos.id_form ='$form_id' LIMIT 1";
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- $sql = mysqli_query($link,$consulta);
- $id_campo=mysqli_result($sql,0,"id");
-return $id_campo;
-}
-
-function conversorSegundosHoras($tiempo_en_segundos) {
- $horas = floor($tiempo_en_segundos / 3600);
- $minutos = floor(($tiempo_en_segundos - ($horas * 3600)) / 60);
- $segundos = $tiempo_en_segundos - ($horas * 3600) - ($minutos * 60);
-
- return $horas . ':' . $minutos . ":" . $segundos;
-}
-
-function mensajes($tipo,$campos_form,$datos,$control) {
- $campo_remitente = $campos_form['remitente'];
- $campo_destinatario = $campos_form['destinatario'];
- $campo_asunto = $campos_form['asunto'];
- $campo_mensaje = $campos_form['mensaje'];
- $form_id = $campos_form['formulario_id'];
- $form_usuarios = $campos_form['formulario_usuarios'];
- $campo_usuarios = $campos_form['campo_usuario'];
-$respuesta = new xajaxResponse('utf-8');
-if($tipo =='formulario') {
- if($form_id =='' AND $control !='') {
-$form_id = remplacetas('form_datos','control',"$control",'form_id',"") ;
-$form_id = $form_id[0];
-
- }
-
-//$campos = formulario_areas($form_id,'campos');
-$control_original = $control;
-if($control =="") {
- $control = md5(rand(1,99999999).microtime());
-}
- $campos = formulario_areas($form_id,'campos');
-$formulario ="
-
-
-
-
-
-
-$campos";
-
-$formulario ="
-
-
-
-
- $formulario
-
-
-
-
-
-
";
- $respuesta->addAssign("div_mensaje_$control_original","innerHTML",$formulario);
- //$respuesta->addAlert("div_mensaje_$control_original","innerHTML",$formulario);
-return $respuesta;
-
-}
-elseif($tipo =='responder') {
- if($form_id =='' AND $control !='') {
-$form_id = remplacetas('form_datos','control',"$control",'form_id',"") ;
-$form_id = $form_id[0];
-
- }
- $remitente = buscar_campo_nombre("$form_id","Para");
- $destinatario = buscar_campo_nombre("$form_id","De");
- $mensaje = buscar_campo_nombre("$form_id","Mensaje");
- $asunto = buscar_campo_nombre("$form_id","Asunto");
-
- $asunto_value = remplacetas('form_datos','form_id',"$form_id",'contenido'," id_campo = '$asunto' AND control='$control'") ;
- $mensaje_value = remplacetas('form_datos','form_id',"$form_id",'contenido'," id_campo = '$mensaje' AND control='$control'") ;
- $remitente_value = remplacetas('form_datos','form_id',"$form_id",'contenido'," id_campo = '$remitente' AND control='$control'") ;
- $destinatario_value = remplacetas('form_datos','form_id',"$form_id",'contenido'," id_campo = '$destinatario' AND control='$control'") ;
-
-$formulario ="
-
-
-
-
-
-
-
-
- Asunto
-
-
-
- Mensaje
- $mensaje_value[0]
-
- ";
-
-$formulario ="
-
-
-
-
- $formulario
-
-
-
-
-
-
-";
- $respuesta->addAssign("div_mensaje_$control","innerHTML",$formulario);
- //$respuesta->addAlert("div_mensaje_$control_original","innerHTML",$formulario);
-return $respuesta;
-
-}
-elseif($tipo=="recuperar") {
-
-if($control =="") {
- $control = md5(rand(1,99999999).microtime());
-}
-
- $consulta ="SELECT *, FROM_UNIXTIME(timestamp) as fecha , DATE_FORMAT(FROM_UNIXTIME(timestamp),'%Y-%m-%d') as dia, DATE_FORMAT(FROM_UNIXTIME(timestamp),'%H:%i') as hora FROM form_datos WHERE form_id ='$form_id' AND id_campo = '$campo_destinatario' AND contenido ='$_SESSION[usuario_milfs]' GROUP BY control, timestamp order by timestamp DESC ";
-
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
-
- $mensajes = mysqli_query($link,$consulta);
-// $destinatario ="$campo_destinatario"."[0]";
-// $para = buscador_campo("$campo_destinatario","$form_id","","$destinatario","","");
- $campos = formulario_areas($form_id,'campos');
-$formulario ="
-
-
-
-
-
-
-$campos";
-
-$formulario ="
-
-
-
-
- $formulario
-
-
-
-
-
-
";
-
-
-
-$lista ="
-
-
-
-";
-while( $row = mysqli_fetch_array( $mensajes ) ) {
- $asunto = remplacetas('form_datos','form_id',"$form_id",'contenido'," id_campo = '$campo_asunto' AND control='$row[control]'") ;
- $mensaje = remplacetas('form_datos','form_id',"$form_id",'contenido'," id_campo = '$campo_mensaje' AND control='$row[control]'") ;
- $remitente = remplacetas('form_datos','form_id',"$form_id",'contenido'," id_campo = '$campo_remitente' AND control='$row[control]'") ;
- $remitente = remplacetas('form_datos','form_id',"$form_usuarios",'contenido'," id_campo = '$campo_usuarios' AND control='$remitente[0]'") ;
- if($remitente[0] =='') {$remitente[0]="
Sistema";}
- $hoy=date('Y-m-d');
- $control = $row[control];
- if($hoy == $row[dia]){$momento = $row[hora];}else {$momento=$row[dia];}
-//function contenido_mostrar($id,$control,$div,$plantilla)
-//$contenido = contenido_mostrar("$form_id","$control","",'');
- $lista .="
-
- ";
-}
- // $respuesta->addAssign("div_mensaje","innerHTML",$lista);
- $lista .=" ";
- return $lista;
-
-}
-
-$resultado ="hola";
-
- $respuesta->addAssign("div_mensaje","innerHTML",$resultado);
-
- return $respuesta;
-
-
-}
-$xajax->registerFunction("mensajes");
-
-function revisar_campo_unico($id,$campo,$id_form,$valor) {
- $respuesta = new xajaxResponse('utf-8');
- $div= "div_$id";
- $existe = remplacetas('form_datos','form_id',"$id_form",'control'," BINARY contenido = '$valor' AND id_campo = '$campo'") ;
- if($existe[0] != "") {
- $texto ="El valor ya existe";
-$respuesta->addAssign("$div","className","text-danger");
-$respuesta->addAssign("input_$id","className","form-group has-error");
- }else{
- $texto ="";
-$respuesta->addAssign("$div","className","text-success");
-$respuesta->addAssign("input_$id","className","form-group has-success");
- }
-
- $respuesta->addAssign("$div","innerHTML",$texto);
- return $respuesta;
-}
-$xajax->registerFunction("revisar_campo_unico");
-
-
-function verificacion_email($control_usuario,$dato,$accion){
-require ("milfs/includes/parametrizacion.php");
-$div="div_aviso_validacion";
-$respuesta = new xajaxResponse('utf-8');
- $form_id =$login_formulario;
- $campo_usuario= $login_campo_usuario;
- $campo_email = buscar_campo_tipo("$form_id","13");
- $usuario = remplacetas('form_datos','form_id',"$form_id",'control'," BINARY contenido = '$control_usuario' AND id_campo = '$campo_usuario'") ;
- $email = remplacetas('form_datos','control',"$usuario[0]",'contenido'," id_campo = '$campo_email[0]' ") ;
-
- $validado = remplacetas('form_datos','control',"$usuario[0]",'contenido'," id_campo = '$login_campo_validado' ") ;
- $rrn = rand(123,999);
- $rrncode = MD5("$rrn");
-
-if($accion=="enviar") {
-
- $id_empresa="1";
- $email_empresa = remplacetas("empresa","id","$id_empresa","email","");
- $administrador = remplacetas("empresa","id","1","email","");
- $reply = remplacetas("empresa","id","$id_empresa","email","");
- $imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
- $razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
- $web = remplacetas("empresa","id",$id_empresa,"web","");
-
-$headers = "MIME-Version: 1.0\r\n";
-$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
-$headers .= "From: $razon_social[0] < $email_empresa[0] >\r\n";
-$headers .= "Reply-To: $email_empresa[0]\r\n";
-$headers .= "Return-path: $email_empresa[0]\r\n";
-
-
-$cuerpo_email ="
-
-
-
Código de validación
-$rrn
-Por favor escribe este código en el campo correspondiente
-
-
- ";
- $asunto= "Recibiste un mensaje en [$portal_sigla] ";
- $titulo_email ="Necesitamos validar tu email $email[0]";
- $campo_imagen = buscar_campo_tipo("$id_form","15");
- $imagen_email = remplacetas('form_datos','id_campo',$campo_imagen[0],'contenido'," control = '$nuevo_identificador' ") ;
- $imagen_email = "https://$web[0]/milfs/images/secure/?file=600/$imagen_email[0]";
- $nombre_email = $razon_social[0];
-
-
-
- $plantilla = remplacetas('form_parametrizacion','opcion',"plantilla:email_general",'descripcion',"id_empresa = '1'") ;
- $consulta_plantilla ="$plantilla[2]";
- $plantilla = html_entity_decode ( $plantilla[0] );
- eval("\$plantilla = \"$plantilla \";");
- $plantilla .="";
- $asunto= "Recibiste un mensaje en [$portal_sigla] ";
-
- if(mail("$dato","$titulo_email","$plantilla","$headers")){
- $exito .="
Tienes un email ! $headers $dato ";
-$resultado="
-
-";
- }
- else {$resultado .="
Error enviando correo";}
-
-$respuesta->addAssign("$div","innerHTML",$resultado);
-return $respuesta;
-
-
-
-}
-elseif($accion=="confirmar") {
-
- $rnncode = $dato['rrn'];
- $email = $dato['enviar_email'];
- $codigo_confirmacion= md5($dato['codigo_confirmacion']);
- $validado= md5($email);
- //$resultado ="$rnncode // $codigo_confirmacion";
- if($rnncode == $codigo_confirmacion) {
- $insertar_email = insertar_linea("form_datos","$login_formulario","$login_campo_email","$email",$usuario[0],"","");
- $insertar_email = insertar_linea("form_datos","$login_formulario","$login_campo_validado","$validado",$usuario[0],"","");
-
- $resultado="Validado $email";
- }
- else{
- $resultado="
El codigo no es valido, inténtalo de nuevo
";
- }
-
-$respuesta->addAssign("$div","innerHTML",$resultado);
-return $respuesta;
-
-}
-else {}
-
- if($validado[0] != md5("$email[0]")) {
- $verificar_email = "
-
-
Vamos a validar tu email
-
Enviaremos un código de verificación a para validarlo.
-
-
-
-
-
-
-
- ";
- if($accion=="verificar") {
- $verificar_email = "";
- }
- }
- else{
- if($accion=="verificar") {
- $verificar_email = "$usuario[0]";
- }
- else {
- $verificar_email="";
- }
-
- //$verificar_email= "Ok";
- }
-
-return $verificar_email;
-}
-
-$xajax->registerFunction("verificacion_email");
-
-
-function milfs_session($form_id,$campo_usuario,$campo_password,$tipo,$datos){
- $accion="";
- $datos = mysql_seguridad($datos);
- $respuesta = new xajaxResponse('utf-8');
- require ("milfs/includes/parametrizacion.php");
-
-if($tipo =="") {
- if(isset($_SESSION['usuario_milfs'])) {
- //$control = remplacetas('form_datos','control',"$_SESSION[control_usuario_milfs]",'contenido'," id_campo = '$campo_password' ") ;
- $campo_email = buscar_campo_tipo("$form_id","13");
- $usuario = remplacetas('form_datos','form_id',"$form_id",'control'," BINARY contenido = '$_SESSION[nombre_usuario_milfs]' AND id_campo = '$campo_usuario'") ;
- $email = remplacetas('form_datos','control',"$usuario[0]",'contenido'," id_campo = '$campo_email[0]' ") ;
- $validado = remplacetas('form_datos','control',"$usuario[0]",'contenido'," id_campo = '$login_campo_validado' ") ;
- /*if($validado[0] != md5("$email[0]")) { $validar_email= "El email no ha sido validado $validado[0] //". md5("$email[0]")." // $email[0] ";}
- else{ $validar_email= "validado"; }
- */
- $validar_email = verificacion_email($_SESSION['nombre_usuario_milfs'],'','');
-
- //$email = "someone@somewhere.com";
- if(isset($_SESSION['avatar_usuario_milfs']) ) {
- $avatar = $_SESSION['avatar_usuario_milfs'];
- }else {
- $size="";
- $default = "https://tupale.co/milfs/images/avatar.png";
- $avatar = "https://www.gravatar.com/avatar/" . md5( strtolower( trim( $email[0] ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size;
- }
-
- $formulario = "
-
- Hola $_SESSION[nombre_usuario_milfs]
- $validar_email
-
SALIR
-
- ";
- return $formulario;
- }else {
-
- if($_SERVER['HTTP_HOST'] !="tupale.co" ) {
- $social_login="";
- $cols="12";
- }
- else {
- $cols="10";
- $social_login="
-
-
- ";
- //return $formulario;
- }
- $formulario ="
- $accion
-
-
-
- ";
- $respuesta->addAssign("formulario_login","innerHTML",$formulario);
-
- return $respuesta;
-
- }
-
-}
-elseif($tipo =='salir') {
- session_destroy();
- $respuesta->addScript("javascript:location.reload(true);");
-
-}
-elseif($tipo=='registrarse') {
- $modificable = remplacetas('form_id','id',$form_id,'modificable','') ;
- if($modificable[0] != "1" and (!isset ( $_SESSION[id]) )) {
- $formulario = "
Función no disponible, por favor comuníquese con el administrador código
";
- $respuesta->addAssign("formulario_session","innerHTML",$formulario);
- return $respuesta;
-
- }
- $campos = formulario_areas($form_id,'campos');
-
- $boton ="
-
- Registrarse
- ";
- $control = md5(rand(1,99999999).microtime());
- $formulario ="
-
-
- $campos
- $boton
-
-
- ";
-
- $respuesta->addAssign("formulario_session","innerHTML",$formulario);
-
-
-}
-elseif($tipo=='recuperar') {
-
- if($datos =="") {
- //$campos = formulario_areas($form_id,'campos');
- $campos ="
-
-
Usuario
-
-
-
Código de recuperación Deja este campo vacío si aun no tienes el código de recuperación
-
-
- ";
- $boton ="
-
Solicitar clave
- ";
- $control = md5(rand(1,99999999).microtime());
- $formulario ="
-
-
- $campos
-
- $boton
-
-
-
- ";
- }else{
-
- $usuario = remplacetas('form_datos','form_id',"$form_id",'control'," BINARY contenido = '$datos[usuario]' AND id_campo = '$campo_usuario'") ;
- if($usuario[0] !="") {
- $password = remplacetas('form_datos','control',"$usuario[0]",'contenido'," id_campo = '$campo_password' ") ;
- if($datos[codigo] !="") {
- if( $datos[codigo] =="$password[0]" ){
- $control = remplacetas('form_datos','control',"$usuario[0]",'control'," id_campo = '$campo_password' ") ;
- $campos ="
-
-
-
-
-
-
-
- ";
-
- $formulario ="$campos";
- $respuesta->addAssign("formulario_session","innerHTML",$formulario);
- return $respuesta;
-
-
- }else {
- $respuesta->addAlert("El código no es correcto, por favor rectifíquelo o solicítelo nuevamente dejando el campo VACIO");
- return $respuesta;
- }
- }
- $campo_email = buscar_campo_tipo("$form_id","13");
- $usuario = remplacetas('form_datos','form_id',"$form_id",'control'," BINARY contenido = '$datos[usuario]' AND id_campo = '$campo_usuario'") ;
- $email = remplacetas('form_datos','control',"$usuario[0]",'contenido'," id_campo = '$campo_email[0]' ") ;
- $formulario="$usuario[0] $password[0] // $campo_email[0] $email[0]";
- //// siempre se enviara el email desde el mail parametrizado en la empresa 1
- //$email_empresa = remplacetas('empresa','id','1','email','') ;
- $email_empresa = remplacetas('empresa','id','1','email','') ;
- $sigla = remplacetas('empresa','id','1','sigla','') ;
- $razon_social = remplacetas('empresa','id','1','razon_social','') ;
- $headers = "MIME-Version: 1.0\r\n";
- $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
- $headers .= "From: $razon_social[0] <$email_empresa[0]>\r\n";
- $headers .= "Reply-To: $razon_social[0] $email_empresa[0]\r\n";
- $headers .= "Return-path: $email_empresa[0]\r\n";
- $asunto= "[ $sigla[0] ] Código para recuperar contraseña ";
- $cuerpo ="
-
Hola $datos[usuario]
- El código para recuperar tu contraseña es:
-
$password[0]
- Regresa pronto :-)
-
- ";
- if(mail("$email[0]","$asunto","$cuerpo","$headers")){ $formulario ="
Te hemos enviado un correo a $email[0] con el código de recuperación "; }
- else {$formulario ="
Error enviando correo ";}
-
- }else{
-
- $formulario="
No encontramos tu usuario $datos[usuario] . Por favor rectifícalo y prueba nuevamente ";
-
- }
-
-
- }
- $respuesta->addAssign("formulario_session","innerHTML",$formulario);
-
-
-}
-elseif($tipo=='confirmar_recuperar') {
-
- if($datos[password] != $datos[confirmar_password]) {
- $respuesta->addAlert("Los valores no son iguales");
- return $respuesta;
-
- }
- $link=Conectarse();
-
- mysqli_set_charset($link, "utf8");
-
- $consulta="UPDATE form_datos SET contenido = MD5('$datos[password]')
- WHERE control ='$datos[control]'
- AND contenido ='$datos[codigo]'
- AND form_id ='$form_id'
- AND id_campo = '$campo_password' ";
-
- if (mysqli_query($link,$consulta,$link)){
- $resultado ="
Se cambió el password Por favor ingrese con sus nuevos datos
aquí ";
- $respuesta->addAssign("formulario_session","innerHTML",$resultado);
- return $respuesta;
- };
-
-
-
-}
-
-elseif ($tipo=='ingreso'){
-
- $usuario = remplacetas('form_datos','form_id',"$form_id",'control'," BINARY contenido = '$datos[usuario]' AND id_campo = '$campo_usuario'") ;
- $password = remplacetas('form_datos','form_id',"$form_id",'control'," BINARY contenido = MD5('$datos[password]') AND id_campo = '$campo_password'") ;
-
- if ( $usuario[0] != "" AND $usuario[0] === $password[0]) {
- $respuesta->addAssign("login_milfs","className"," has-success ");
- // $control_servicio = remplacetas('form_datos','form_id',"$login_formulario",'control'," BINARY contenido = '$servicio' AND control = '$control_uid[0]'") ;
- $_SESSION['usuario_milfs'] = $usuario[0];
- $_SESSION['id'] = $usuario[0];
- $_SESSION['nombre_usuario_milfs'] = $datos['usuario'];
- $_SESSION['control_usuario_milfs'] = $usuario[0];
- $resultado ="
Gracias por regresar $_SESSION[nombre_usuario_milfs] ";
- $respuesta->addScript("javascript:location.reload(true);");
- }else {$resultado ="
Error Los datos no son correctos :( ";
- $respuesta->addAssign("login_milfs","className"," has-error ");
- $respuesta->addAssign("resultado","innerHTML",$resultado);
- return $respuesta;
- }
-
- $respuesta->addAssign("formulario_session","innerHTML",$resultado);
- //$respuesta->addAlert("resultado");
-
-
-}
-elseif ($tipo=='nuevo'){
-
- $usuario = remplacetas('form_datos','form_id',"$form_id",'control'," BINARY contenido = '$datos[usuario]' AND id_campo = '$campo_usuario'") ;
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
-
-
- $campos_consulta_obligatorio="
- SELECT id_campo, obligatorio
- FROM form_contenido_campos
- WHERE id_form ='$form_id'
- AND obligatorio='1'
- ";
-
-
- $campos_obligados= mysqli_query($link,$campos_consulta_obligatorio);
-
- while( $row = mysqli_fetch_array( $campos_obligados ) ) {
- $campo_valor=$datos[$row[id_campo]][0];
-
- if($row[obligatorio]=='1'){
- $obligatorios .= "$row[id_campo]";
- if($campo_valor == '' && $row[obligatorio]=='1'){
- $campo_nombre = remplacetas('form_campos','id',$row[id_campo],'campo_nombre');
- $error = "Revise campos obligatorios $campo_nombre[0]";
-
- }else {$error ="";}
- if($error !=''){
- $respuesta->addAlert($error);
- $respuesta->addScript(" document.getElementById('boton_registro').disabled=false");
- return $respuesta; }
- }
-
-
- }/// fin de registros obligatorios
-
-
-
- $campos_consulta="
- SELECT id_campo, obligatorio, id_empresa
- FROM form_contenido_campos
- WHERE id_form ='$form_id'
-
- ";
- $campos= mysqli_query($link,$campos_consulta);
- $ip = obtener_ip();
- $control = $datos['control'];
-
- /// incluyo servicio
-
-
- while( $row = mysqli_fetch_array( $campos ) ) {
-
- $campo_valor=$datos[$row['id_campo']][0];
-
- $campo_tipo = remplacetas('form_campos','id',$row['id_campo'],'campo_tipo','');
- /// Si el campo es password (18) se guarda su equivalente en md5
- if($campo_tipo[0] =="18") {
- $campo_valor = MD5("$campo_valor");
- }
- // SI EL CAMPO ES UNICO O EMAIL SE REVISA QUE NO EXISTA
- elseif($campo_tipo[0] =="19" OR $campo_tipo[0] =="12" OR $campo_tipo[0] =="13" ) {
- $existe = remplacetas('form_datos','form_id',"$form_id",'control'," BINARY contenido = '$campo_valor' AND id_campo = '$row[id_campo]'") ;
- if($existe[0] !='') {
- $respuesta->addAlert("ATENCION: El nombre de usuario o el Correo electrónico ya se encuentran registrados !");
- $respuesta->addScript(" document.getElementById('boton_registro').disabled=false");
-
-
- return $respuesta;
- }else{
- //$respuesta->addAlert("$existe[2]"); return $respuesta;
- }
- }
- else {}
-
- if ($campo_valor !=''){
- $graba_ip = "INET_ATON('".$ip."') ";
-
- $insertar_consulta = "
- INSERT INTO `form_datos`
- SET
- id_campo = '$row[id_campo]',
- contenido = '$campo_valor',
- control ='$control',
- timestamp = UNIX_TIMESTAMP(),
- form_id = '$form_id',
- ip = $graba_ip,
- id_empresa = '$row[id_empresa]'
- ";
- //$debug .= "$insertar_consulta / ";
-
- }else{
-
-
- }
-
- if ($error ==''){
- $sql_consulta=mysqli_query($link,$insertar_consulta);
- if($sql_consulta){
- $login = milfs_session("$form_id","$campo_usuario","$campo_password","","");
- $resultado ="
Gracias por registrarse, por favor ingrese con los nuevos datos.
";
-
-
- }else{$resultado.= "
La consulta no se grabó
";}
- }else { }
-
- }
- require ("milfs/includes/parametrizacion.php");
- $insertar_servicio = insertar_linea("form_datos","$login_formulario","$social_login_servicio","$portal_sigla",$control,"","");
- $resultado ="
Gracias por registrarse, por favor ingrese con los nuevos datos.
";
- $respuesta->addAssign("formulario_session","innerHTML","$resultado");
- return $respuesta;
-
-
-}
-elseif ($tipo=='boton'){
- if(isset($_SESSION['usuario_milfs'])) {
- //$control = remplacetas('form_datos','control',"$_SESSION[control_usuario_milfs]",'contenido'," id_campo = '$campo_password' ") ;
- $campo_email = buscar_campo_tipo("$form_id","13");
- $usuario = remplacetas('form_datos','form_id',"$form_id",'control'," BINARY contenido = '$_SESSION[nombre_usuario_milfs]' AND id_campo = '$campo_usuario'") ;
- $email = remplacetas('form_datos','control',"$usuario[0]",'contenido'," id_campo = '$campo_email[0]' ") ;
- $validado = remplacetas('form_datos','control',"$usuario[0]",'contenido'," id_campo = '$login_campo_validado' ") ;
- /*if($validado[0] != md5("$email[0]")) { $validar_email= "El email no ha sido validado $validado[0] //". md5("$email[0]")." // $email[0] ";}
- else{ $validar_email= "validado"; }
- */
- $validar_email = verificacion_email($_SESSION['nombre_usuario_milfs'],'','');
-
- //$email = "someone@somewhere.com";
- if(isset($_SESSION['avatar_usuario_milfs']) ) {
- $avatar = $_SESSION['avatar_usuario_milfs'];
- }else {
- $size="";
- $default = "https://tupale.co/milfs/images/avatar.png";
- $avatar = "https://www.gravatar.com/avatar/" . md5( strtolower( trim( $email[0] ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size;
- }
-
- $formulario = "
-
- Hola $_SESSION[nombre_usuario_milfs]
- $validar_email
-
SALIR
-
- ";
-
- }else{
- $formulario ="
-
Login
- ";
- }
- return $formulario;
-}else{}
-return $respuesta;
-
-}
-$xajax->registerFunction("milfs_session");
-
-
-function buscar_datos($valores,$id_form,$plantilla,$div){
- $valores = mysql_seguridad($valores);
- $respuesta = new xajaxResponse('utf-8');
-if($valores =="") {
- $alerta = "
Por favor escriba que desea buscar ";
-$respuesta->addAssign("$div","innerHTML",$alerta);
- return $respuesta;
-}
- if (is_array($valores) ){
- $valor = $valores['valor'];
- }
- else {$valor=$valores;}
-if($valor =='*formato*') {
-$resultado="
-
-
-
-
-
-";
-return $resultado;
- }else{
-if($id_form !="") {$w_form ="form_id = '$id_form' AND ";}
-$consulta ="SELECT * FROM form_datos WHERE $w_form ( contenido COLLATE utf8_spanish2_ci like '%$valor%' ) group by control LIMIT 200 ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!=0){
-mysqli_data_seek($sql, 0);
-$fila=1;
-$divider=2;
-$cols = (12/$divider);
-$i =0;
-while( $row = mysqli_fetch_array( $sql ) ) {
-if($i % $divider==0) {
-
- $encontrados .= "
-
-
-
- ";
- }
- $i++;
- /* $contenido = htmlentities($row[contenido]);
- $p = stripos($contenido, $valor);
- $s1 = substr($contenido, 0, $p);
- $s2 = substr($contenido, $p, strlen($valor));
- $s3 = substr($contenido, ($p + strlen($valor)));
- $r = $s1."
$s2 ".$s3;
- */
- $datos = landingpage_contenido_identificador($row['control'],"","grid",'paginado');
- // $datos= landingpage_contenido_identificador($identificador,$form,$plantilla,$tipo);
- //$datos = contenido_mostrar("$row[form_id]","$row[control]",'',"$plantilla");
- $contenido ="
";
-
- $encontrados .="$contenido ";
- $fila++;
- if( $i % $divider==0) {
- $encontrados .= "
";
- }
- }
- }
-$resultado .="
Resultados de: $valor
-
$encontrados
";
-
-$respuesta->addAssign("$div","innerHTML",$resultado);
- return $respuesta;
-
- }
-}
-$xajax->registerFunction("buscar_datos");
-
-
-
-function datos_grid($id_form,$filtro,$valor,$plantilla,$divider,$inicio,$limite) {
- $respuesta = new xajaxResponse('utf-8');
- $nuevo_inicio = ($inicio+$limite+1);
-if($inicio =="") {
- $inicio = "0";
- $script = "
-$(window).scroll(function() {
- if ($(window).scrollTop() == $(document).height() - $(window).height()) {
- xajax_datos_grid('$id_form','$filtro','$valor','$plantilla','$divider','$nuevo_inicio','$limite') ;
- }
-});
-";
-//$respuesta->addScript("$script");
-//$respuesta->addAlert("$script");
-
- }
-if($limite =="") {$limite = "250";}
-
- if($valor !=""){
-$md5_valor = $valor;
-if($filtro !='' ){$w_filtro =" AND id_campo = '$filtro' AND md5(binary contenido) = '$md5_valor' ";}
-}
-$consulta_total= "SELECT * FROM form_datos WHERE form_id= '$id_form' $w_filtro GROUP BY control ";
-$consulta= "SELECT * FROM form_datos WHERE form_id= '$id_form' $w_filtro GROUP BY control LIMIT $inicio , $limite";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-//mysqli_real_escape_string($link,$consulta);
-$sql_total=mysqli_query($link,$consulta_total);
-$total = mysqli_num_rows($sql_total);
-$sql=mysqli_query($link,$consulta);
- $descripcion = remplacetas('form_id','id',$id_form,'descripcion',"") ;
- $descripcion = $descripcion[0];
- $buscador = buscar_datos("","$id_form","$plantilla","grid_resultado");
- $contenido = "$descripcion";
-
-if (mysqli_num_rows($sql)!=0){
-mysqli_data_seek($sql, 0);
-$fila=1;
-if($divider =="") {
-$divider=3;
-}
-$cols = (12/$divider);
-$i =0;
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- if($i % $divider==0) {
-
- $contenido .= "
-
-
-
- ";
- }
- $i++;
-$datos = contenido_mostrar("$id_form","$row[control]",'',"$plantilla");
-$contenido .="
$datos
";
-$fila++;
- if( $i % $divider==0) {
- $contenido .= "
";
- }
-
-}
- }
-
-
-$inicio = ($inicio+$limite+1);
-$div_mas_contenido ="mas_contenido_".$inicio."_".$limite."";
-$mostrado = ($inicio+$limite-1);
-//$limite = ($inicio+$limite-1);
-$resultado ="
$buscador
-
-
-
- $contenido
-
- Mostrar mas resultados
-
- ";
-
-
-///$respuesta->addScript("$script");
-$respuesta->addAssign("contenedor","innerHTML",$resultado);
- return $respuesta;
-}
-$xajax->registerFunction("datos_grid");
-
-
-function insertar_registro($tabla,$formulario,$div,$principal) {
- //$valores ="$formulario[0]";
- $formulario = limpiar_caracteres($formulario);
- foreach($formulario as $c=>$v){
-
- $valores .= " $c = '$v',";
- }
- $valores = "$valores id_empresa = '$_SESSION[id_empresa]'";
-
-$respuesta = new xajaxResponse('utf-8');
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- $insertar = "INSERT INTO $tabla set $valores";
-// $edit = "UPDATE $tabla SET $campo = '$valor' WHERE id = '$key' limit 1; ";
- $sql=mysqli_query($link,$insertar);
- $ultimo_id = mysql_insert_id();
- if(mysql_affected_rows($link) != 0){
-
- }
-if($div !='') {
- $valores = limpiar_caracteres("$valores");
- $grupo = editar_campo("$tabla",$ultimo_id,"$principal","","","");
- $respuesta->addAssign($div,"innerHTML","
$formulario[$principal] ");
-
- }
- //$respuesta->addAlert("$insertar");
-//$areas = tabla_areas('form_areas','id','nombre,descripcion,estado,orden','',"",'Areas','');
- //$respuesta->addScript("javascript:xajax_tabla_areas('form_areas','id','nombre,descripcion,estado,orden','','','Areas','div_campos')");
- //$respuesta->addAssign("contenido","innerHTML","$insertar");
- return $respuesta;
-}
-$xajax->registerFunction("insertar_registro");
-
-
-
-function formulario_area_campos($perfil,$area,$control) {
- $tipo="";
- $control_edit ="$control";
- $solo_campos ="";
- $muestra_form ="";
- if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];} $campos= "";
-
-$consulta = "
- SELECT * FROM form_campos , form_contenido_campos
- WHERE form_contenido_campos.id_form = '$perfil'
- AND form_contenido_campos.id_campo = form_campos.id
- AND campo_area='$area'
- ORDER BY form_contenido_campos.orden";
-
- $link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-
-
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
- if( $row['obligatorio'] == '1'){$obligatorio="*";}else {$obligatorio='X';}
-
- if($row['campo_tipo'] =="24") { $row['multiple'] = "1";}else {}
- //if($row['multiple'] =="1" AND $tipo =='edit'){
- if($row['multiple'] =="1" ){
- $campos .= "($row[multiple] $row[id_campo])".formulario_campos_render_multiple($row['id_campo'],$perfil,$control_edit);
- }else{
- $campos .= "".formulario_campos_render($row['id_campo'],$perfil,$control_edit,'','');
- //$campos .= "".formulario_campos_render_multiple($row['id_campo'],$perfil,$control_edit);
- }
- $muestra_form .= "$campos $obligatorio ";
- $solo_campos .= "$campos $obligatorio ";
-
- }
-
-
-}
-
-
-$resultado = "$muestra_form ";
- return "$campos";
-
-}
-
-function formulario_areas($perfil,$tipo,$form_respuesta,$control_respuesta){
- $id="";
- $resultado_campos ="";
- $subir_imagen ="";
- $campo_imagen_nombre ="";
- if($form_respuesta =='respuesta'){$control = $control_respuesta;}
- //elseif($form_respuesta =='edicion'){$control = $control_respuesta;}
- else{
-$control = md5(rand(1,99999999).microtime());
-}
- $respuesta = new xajaxResponse('utf-8');
- if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];}
- /*$consulta = "SELECT * FROM form_areas, form_campos, `form_contenido_campos`
- WHERE form_campos.id = form_contenido_campos.id_campo
- AND form_contenido_campos.id_form = '$perfil'
- AND form_areas.id = form_campos.campo_area AND form_areas.id_empresa = '$id_empresa'
- OR (form_contenido_campos.id_form = '$perfil' AND form_campos.campo_area ='0' )
- AND form_areas.estado = '1' GROUP BY form_areas.id ORDER BY form_areas.orden";
- */
- $consulta= "SELECT * FROM form_campos, `form_contenido_campos`
- WHERE form_campos.id = form_contenido_campos.id_campo
- AND form_contenido_campos.id_form = '$perfil'
-
- GROUP BY form_campos.campo_area
- ";
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- //$campo_titulo = remplacetas('parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
- $nombre = remplacetas('form_id','id',$perfil,'nombre','') ;
- $descripcion = remplacetas('form_id','id',$perfil,'descripcion','') ;
- $formulario_respuesta = remplacetas('form_id','id',$perfil,'formulario_respuesta','') ;
- $empresa = remplacetas('form_id','id',$perfil,'id_empresa','') ;
- $empresa = $empresa[0];
-
- $nombre= strtoupper($nombre[0]);
- $descripcion= $descripcion[0];
- $form_respuesta= $formulario_respuesta[0];
-
-
-//// encabezado form
-
- if($tipo =='edit') {$control= $control_respuesta;}
- elseif($form_respuesta !='' AND $control !=''){$control =$control;}
- else{$control = md5(rand(1,99999999).microtime());}
- //$descripcion=mysqli_result($sql,0,"descripcion");
- //$nombre=mysqli_result($sql,0,"nombre");
- //$empresa=mysqli_result($sql,0,"id_empresa");
- $encabezado = empresa_datos("$empresa",'encabezado');
- $pie = empresa_datos("$empresa",'pie');
- $logo = remplacetas('empresa','id',"$empresa",'imagen','') ;
- $cabecera = "
-
-
-
-
-
-
-
-
-
$nombre$descripcion
-
-
-
";
-
-$campo_imagen = buscar_campo_tipo($perfil,"15");
-if($campo_imagen[0] !="") {
-$campo_imagen_nombre = $campo_imagen[1];
-$campo_imagen_nombre = ucwords($campo_imagen_nombre);
-$campo_imagen = $campo_imagen[0];
- }
-
-if ($campo_imagen[0] != "") {
-$subir_imagen = subir_imagen("$perfil","$campo_imagen"."[0]");
-if($tipo != "campos") {
- $imagen = "
-
-
- ";
-
- }else {$imagen =" ";}
- }
-
- $muestra_form = "
-
-
-
-
-
-
-
-
- ";
- if($tipo=="edit") {$control_edit = "$control";}else {$control_edit = "";}
-
-
-////fin encabezado form
-
-
-$fila=0;
-while( $row = mysqli_fetch_array( $sql ) ) {
-
- if($row['campo_area']=="0"){$area_nombre ="";}
- else{
- $area_nombre = remplacetas('form_areas','id',$row['campo_area'],'nombre','') ;
- $area_nombre = $area_nombre[0];
- }
- $fila = $fila +1;
-
- //$producto = remplacetas('farmacia_cum','id',$row[id_producto],'fabricante_importador') ;
- ///// para pasar el parametro de medicamentos al formulario no pos se adiciona ".func_get_arg(2)."
- $campos = formulario_area_campos($perfil,$row['campo_area'],"$control_edit");
-$resultado_campos .= "
-
-$area_nombre
-$campos
- ";
- }
-
-
-//// botonera form
-
-$muestra_form .="$resultado_campos
-
-
-
- Continuar editando
-
-
-
-
- ";
-
-//// fin botonera form
-
- }
-
-//// cierre form
-
-$muestra_form .="
-
-
-
";
-if($tipo=='campos') {
-
- $resultado = "$resultado_campos $imagen ";
- return $resultado;
-}
-if($tipo=='embebido') {
-$resultado = "
-$muestra_form
-
Poweredy by MILFS
-
Políticas de privacidad y protección de datos.
-";
-return $resultado;
-
-}
-
-$resultado = "
-$cabecera
-$muestra_form
-
Poweredy by MILFS
-
Políticas de privacidad y protección de datos.
-
-";
-return $resultado;
-
-/// fin cierre form
- // $resultado .= "$consulta";
-//$respuesta->addAssign($div,"style.display","block");
-//$respuesta->addAssign($div,"innerHTML",$resultado);
-//return $respuesta;
- //print $muestra_form;
-// return $muestra_form;
- }
-
- $xajax->registerFunction("formulario_areas");
-
-
-
-function tabla_areas($tabla,$value,$descripcion,$onchange,$where,$nombre,$div){
- $group ="";
- if($div =="") {
- $div="div_campos";
- $resultado = "
-
Modificar areas
- ";
- return $resultado;
- }
-$link=Conectarse();
-$campos = explode(",",$descripcion);
-$campo1 = $campos[0];
-$campo2 = $campos[1];
-$campo3 = $campos[2];
-$campo4 = $campos[3];
-$debug = "($tabla,$value,$descripcion,$onchange,$where)";
-mysqli_set_charset($link, "utf8");
-if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];}if($where =='AGRUPADO'){$group="group by $value ";}
-elseif($where != ''){$w = "AND ".$where;}else{ $w="";}
-$busca = array("[","]");
-if( strpos( $onchange,'[') !== false ){$fila=str_replace($busca,'',$onchange);$onchange='';};
-$consulta = "SELECT * FROM $tabla WHERE 1 $w AND id_empresa='$_SESSION[id_empresa]' $group ORDER BY orden ";
-$sql=mysqli_query($link,$consulta);
-if($nombre==''){$name=$tabla."_".$value;}else{$name = "$nombre";}
-
-$resultado="
-$name
-Id $campo1 $campo2 $campo3 $campo4
- " ;
-if (mysqli_num_rows($sql)!='0'){
- if($onchange !=''){$vacio ="";}else{$vacio =" >> Nuevo $descripcion << ";}
-
-$linea = 1;
-while( $row = mysqli_fetch_array( $sql ) ) {
-$editar_campo1= editar_campo("$tabla",$row['id'],"$campo1","","","","");
-$editar_campo2= editar_campo("$tabla",$row['id'],"$campo2","","","","");
-$editar_campo3= editar_campo("$tabla",$row['id'],"$campo3","","","","");
-$editar_campo4= editar_campo("$tabla",$row['id'],"$campo4","","","","");
-$eliminar = " ";
-$resultado .= "$row[$value] $editar_campo1 $editar_campo2 $editar_campo3 $editar_campo4 $eliminar ";
-$linea++;
- }
-
-
- }else{
- $resultado = " No hay resultados
";
- }
-
-$resultado .= "
-
-
-
-
-
-Agregar área
-
-
-
-
-
-
-
-
-
-
-
-
-";
-//return $resultado;
- //$respuesta = new xajaxResponse('utf-8');
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
-
-}
-$xajax->registerFunction("tabla_areas");
-
-
-
-
-function importar_coleccion($form){
-$div ="confirmar_importacion";
-//$archivos = listado_archivos("$form[path]");
-//$archivos = listar_archivos("$form[path]",'cantidad','',$form);
-
- $directorio = opendir("$form[path]"); //ruta actual
-$resultado = " ";
-while ($archivo = readdir($directorio)) //obtenemos un archivo y luego otro sucesivamente
-{
- if (is_dir($archivo))//verificamos si es o no un directorio
- {
- // $resultado .= "[".$archivo . "]
"; //de ser un directorio lo envolvemos entre corchetes
- }
- else
- {$autor="";
- $ext = explode(".", $archivo);
$ext = strtolower($ext[count($ext) - 1]);
if ($ext == "jpeg") {$ext = "jpg"; }
- if ($ext == "jpg") {
- $cantidad_imagenes++ ;
-
- $exif = leer_exif("$form[path]/$archivo");
- //$name = $exif['exif']['FileName']." ".$form['38']['0']."*" ;
- $form['0']['0'] = "$archivo";
- $autor= $exif['exif']['Artist'];
- $creator = $form['40'][0];
- if($autor !="" ) { $remplazo = array('40' => array("$autor")); }else{ $remplazo; }
-
- }
- //$form = array_replace_recursive($form, $reemplazo);
- $resultado .= $archivo ." / $name ".$form['0'][0]."
";
- }
-}
-
-/*
-foreach($form as $c=>$v){
-
-//LISTA ELEMENTOS DE UN ARRAY
-if (is_array($v) ){
- foreach($v as $C=>$V){
- $campo .= "( $c : $V )
";
- if($V != '') {
- }
- }
-}
-}
-*/
-//$resultado="$archivos $campo";
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
-
-}
-$xajax->registerFunction("importar_coleccion");
-
-
-
-
-function listar_archivos( $path ,$opcion, $div,$datos){
- // Abrimos la carpeta que nos pasan como parámetro
-
- $resultado ="";
- //$link = Conectarse();
- $dir = opendir($path);
- $cantidad =0;
- $cantidad_imagenes =0;
-//$datos['61'] = array ( 0 => "otro valor");//"OTRO VALOR";
- if(is_file($path)) {$esarchivo="Escriba la ruta a un directorio en el servidor
"; }
- // Leo todos los ficheros de la carpeta
- //if($esarchivo =="") {
- // $elemento = readdir($dir);
- //}
- while ($elemento = readdir($dir) ){
-
- // Tratamos los elementos . y .. que tienen todas las carpetas
- if( $elemento != "." && $elemento != ".."){
- // Si es una carpeta
- if( is_dir($path.$elemento) ){
- // Muestro la carpeta
- // $resultado .= "
CARPETA: ". $elemento ."
";
- // Si es un fichero
- } else {
- $ext = explode(".", $elemento);
$ext = strtolower($ext[count($ext) - 1]);
if ($ext == "jpeg") {$ext = "jpg"; }
- if ($ext == "jpg") {$cantidad_imagenes++ ;
-
- $exif = leer_exif("$path/$elemento");
- $name = $exif['exif']['FileName'];
- $title= "$name ";
- $date= $exif['exif']['DateTimeOriginal'];
- $autor= $exif['exif']['Artist'];
- if(!isset($autor)) { $autor = $datos['40'][0]; }
- $licencia= $exif['exif']['Copyright'];
- if($licencia ==="") { }
- else{
-// $datos['61'][0]= " XX $licencia XXX";
- }
-
-
- //$datos['61'][0] = $licencia;
- if(isset($exif['exif']['UndefinedTag:0xC4A5'])) {
- $exif['exif']['UndefinedTag:0xC4A5']= base64_encode($exif['exif']['UndefinedTag:0xC4A5']);
- }
- if(isset($exif['exif']['MakerNote'])) {
- $exif['exif']['MakerNote']= base64_encode($exif['exif']['MakerNote']);
- }
- if ( $exif['lon'] =="" )
- {
- $geo = $datos['58'][0];
- $mundo ="";
- $datos['58'][0] = $datos['58'][0];
-
- }
- else {
- $geo = "$exif[lon] $exif[lat] 18" ;//$datos['58'][0];
- $mundo ="
";
- $datos['58'][0]= "$geo";
-
-
- }
-
- // $remplazos = array('40');
- // else { $mapa="";}
- //$json = json_encode($exif['exif'],JSON_PRETTY_PRINT);
- //if ( $exif['lon'] =="" ){$datos['58'][0] = $geo;}else {$datos['58'][0] = $datos['58'][0];}
- $resultado .= "
$geo $mundo / ".$datos['58'][0]." ".$datos['999'][0]." $title / $autor / ".$datos['61'][0]." ".$datos['68'][0]." ";
-
- }
-
- $cantidad ++;
-
- $campo .= "";
-
-
- }
- }
-
- }
-
-
- if($div !="" ) {
- if($opcion == "cantidad") {
- $resultado = "
-
- $esarchivo $cantidad archivos, $cantidad_imagenes imágenes jpg, $mapa georeferenciadas
-
-
";
- }
-
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
- }else {
-
-
-
- return " $campo $resultado"; }
-}
-$xajax->registerFunction("listar_archivos");
-
-
-
-// Convertir un string "1/123" a su representación float
-function exif_float($value) {
- $pos = strpos($value, '/');
- if ($pos === false) return (float) $value;
- $a = (float) substr($value, 0, $pos);
- $b = (float) substr($value, $pos+1);
- return ($b == 0) ? ($a) : ($a / $b);
-}
-
-function leer_exif($file){
- //$file = "/var/www/html/milfs/images/gps.jpg";
- $exif = exif_read_data( "$file" );
- $resultado['exif'] = $exif;
- $resultado['file']= $file;
- $resultado['FileName']=$exif['FileName'];
-
-if($exif === false) {
-//return false;
-}
-
-if ( !empty($exif['GPSLongitude']) && !empty($exif['GPSLatitude']) ) {
- $d = (float) $exif['GPSLongitude'][0];
- $m = exif_float($exif['GPSLongitude'][1] );
- $s = exif_float( $exif['GPSLongitude'][2] );
-
- $gps_longitude = (float)$d + $m/60 + $s/3600;
- if ( $exif['GPSLongitudeRef'] == 'W')
- $gps_longitude = -$gps_longitude;
-
- $d = $exif['GPSLatitude'][0];
- $m = exif_float($exif['GPSLatitude'][1] );
- $s = exif_float( $exif['GPSLatitude'][2] );
-
- $gps_latitude = (float)$d + $m/60 + $s/3600;
- if ( $exif['GPSLatitudeRef'] == 'S')
- $gps_latitude = -$gps_latitude;
- if($gps_latitude !='') {
- $resultado['lat'] = $gps_latitude;
- $resultado['lon'] = $gps_longitude;
-
- //$resultado = "$_SESSION[url]/mapa.php?lon=$gps_latitude&lat=$gps_longitude&zoom=18";
- }else{}
-
-}
-
-
- $resultado['DateTime'] = $exif['DateTimeOriginal'];
- $resultado['estado'] = "oK";
-
-//$resultado = "$gps_longitude $gps_latitude";
-
- return $resultado;
-}
-
-function relacion_render($form_id,$id_campo,$valor,$cantidad,$plantilla){
-$claves = remplacetas("form_campos_valores","id_form_campo","$id_campo","campo_valor","");
-$claves = $claves[0];
- $claves = explode(' ',$claves);
- $formulario = explode(':',$claves[0]) ;
- $formulario = $formulario[1];
- $key = explode(':',$claves[1]) ;
- $key = $key[1];
- $limit = explode(':',$claves[2]) ;
- $limit = $limit[1];
- if($limit=='0' or $limit ==''){$limit = "LIMIT $limit";}
- else {$limit = "";}
-if($valor !="") {
- if($plantilla =="") {$plantilla= "relacion";}
-$valor_actual = contenido_mostrar("$formulario",$valor,'',"$plantilla");
-if($plantilla == 'relacion_drop') { $link ="";} else{
-$link = "
Ver referencia ";
-}
-}
-
- return " $valor_actual $link";
-$div ="div_relacion_$name";
-
-$consulta = "SELECT contenido, control FROM form_datos WHERE form_id ='$formulario' and id_campo ='$key' GROUP BY control $limit ";
-if($name =="") {
-//return "$valor_actual";
-}
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-
-
-if (mysqli_num_rows($sql)!='0'){
-$onchange = " xajax_contenido_mostrar('$formulario',(this.value),'$div','relacion')";
-$resultado="
-Seleccione
- " ;
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-
- if($row[control] == "$valor") {
-
- $selected = "selected";
- }else{ $selected = "";}
- $resultado .= " $row[contenido] ";
-
- }
-
-$resultado .= "
-
$valor_actual
";
- }else{$resultado = "
No hay resultados
";}
-
-
- return $resultado;
-
-}
-$xajax->registerFunction("relacion_render");
-
-function buscador_base($id_campo,$form_id,$valor,$name,$control,$tipo){
-$div ="div_buscador_base_$name";
-$onchange = " xajax_buscador_select_base('$id_campo','$form_id',(this.value),'$name','$control','$tipo'); document.getElementById('$name').value='';";
-$onclick = " xajax_buscador_select_base('$id_campo','$form_id','','$name','$control','$tipo'); document.getElementById('$name').value=''; (this).value='';";
-$resultado ="
-
-
-
";
-return $resultado;
-
-}
-$xajax->registerFunction("buscador_base");
-
-
-function buscador_select_base($id_campo,$form_id,$valor,$name,$control,$tipo){
- $div ="div_buscador_base_$name";
- $respuesta = new xajaxResponse('utf-8');
- if($valor=="") {
-$resultado="";
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
- }
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$claves = remplacetas("form_campos_valores","id_form_campo","$id_campo","campo_valor","");
-$consulta=$claves;
-$claves = $claves[0];
-
- $claves = explode(' ',$claves);
- $tabla = explode(':',$claves[0]) ;
- $tabla = $tabla[1];
- $key = explode(':',$claves[1]) ;
- $key = $key[1];
- $descripcion1 = explode(':',$claves[2]) ;
- $descripcion1 = $descripcion1[1];
- $descripcion2 = explode(':',$claves[3]) ;
- $descripcion2 = $descripcion2[1];
- $descripcion3 = explode(':',$claves[4]) ;
- $descripcion3 = $descripcion3[1];
- $where = explode(':',$claves[5]) ;
- $where = $where[1];
-
-if($valor !="") {
-//$valor_actual = contenido_mostrar("$formulario",$valor,'','5');
-}
-
-$consulta = "SELECT * FROM $tabla WHERE $descripcion1 like '%%$valor%%' $where GROUP BY $key limit 50 ";
-
-$sql=mysqli_query($link,$consulta);
-
-if (mysqli_num_rows($sql)!='0'){
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-//$campo_descripcion= remplacetas("form_datos","control","$row[control]","contenido"," id_campo = '$descripcion' ");
-//$campo_key= remplacetas("form_datos","control","$row[control]","contenido"," id_campo = '$key' ");
- if($row[control] == "$valor") {
-
- $selected = "selected";
- }else{ $selected = "";}
- $resultado .= "
- $row[$descripcion1] $row[$descripcion2] $row[$descripcion3] ";
-
- }
-
-$resultado .= "
-
";
- }else{$resultado = "
No hay resultados
";}
-
-
-
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
-
-}
-$xajax->registerFunction("buscador_select_base");
-
-
-
-function buscador_campo($id_campo,$form_id,$valor,$name,$control,$tipo){
-$div ="div_buscador_$name";
-$onchange = " xajax_buscador_select('$id_campo','$form_id',(this.value),'$name','$control','$tipo'); document.getElementById('$name').value='';";
-$onclick = " xajax_buscador_select('$id_campo','$form_id','','$name','$control','$tipo'); document.getElementById('$name').value=''; (this).value='';";
-$resultado ="
-
-
-
";
-return $resultado;
-
-}
-$xajax->registerFunction("buscador_campo");
-
-
-function imprimir_buscador_campo($id_campo,$valor) {
-
- $claves = remplacetas("form_campos_valores","id_form_campo","$id_campo","campo_valor","");
-$consulta=$claves;
-$claves = $claves[0];
-
- $claves = explode(' ',$claves);
- $formulario = explode(':',$claves[0]) ;
- $formulario = $formulario[1];
- $key = explode(':',$claves[1]) ;
- $key = $key[1];
- $descripcion = explode(':',$claves[2]) ;
- $descripcion = $descripcion[1];
- $campo1 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$key' ");
- $campo2 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$descripcion' ");
- $imprimir ="$campo1[0] $campo2[0]";
- return $imprimir;
-}
-
-function imprimir_buscador_campo_key($id_campo,$valor) {
-
- $claves = remplacetas("form_campos_valores","id_form_campo","$id_campo","campo_valor","");
-$consulta=$claves;
-$claves = $claves[0];
-
- $claves = explode(' ',$claves);
- $formulario = explode(':',$claves[0]) ;
- $formulario = $formulario[1];
- $key = explode(':',$claves[1]) ;
- $key = $key[1];
- $descripcion = explode(':',$claves[2]) ;
- $descripcion = $descripcion[1];
- $campo1 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$key' ");
- $campo2 = remplacetas("form_datos","control","$valor","contenido","form_id = '$formulario' AND id_campo = '$descripcion' ");
- $imprimir ="$campo1[0]";
- return $imprimir;
-}
-
-function imprimir_base($id_campo,$valor) {
-
- $claves = remplacetas("form_campos_valores","id_form_campo","$id_campo","campo_valor","");
-$consulta=$claves;
-$claves = $claves[0];
-
- $claves = explode(' ',$claves);
- $formulario = explode(':',$claves[0]) ;
- $formulario = $formulario[1];
- $key = explode(':',$claves[1]) ;
- $key = $key[1];
- $descripcion = explode(':',$claves[2]) ;
- $descripcion = $descripcion[1];
- $descripcion2 = explode(':',$claves[3]) ;
- $descripcion2 = $descripcion2[1];
- $campo1 = remplacetas("$formulario","$key","$valor","$descripcion","");
- $campo2 = remplacetas("$formulario","$key","$valor","$descripcion2","");
- $imprimir ="$campo1[0] $campo2[0]";
- return $imprimir ;
-}
-
-function buscador_select($id_campo,$form_id,$valor,$name,$control,$tipo){
- $div ="div_buscador_$name";
- $respuesta = new xajaxResponse('utf-8');
- if($valor=="") {
-$resultado="";
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
- }
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$claves = remplacetas("form_campos_valores","id_form_campo","$id_campo","campo_valor","");
-$consulta=$claves;
-$claves = $claves[0];
-
- $claves = explode(' ',$claves);
- $formulario = explode(':',$claves[0]) ;
- $formulario = $formulario[1];
- $key = explode(':',$claves[1]) ;
- $key = $key[1];
- $descripcion = explode(':',$claves[2]) ;
- $descripcion = $descripcion[1];
- $limite='50';
-
-if($valor !="") {
-//$valor_actual = contenido_mostrar("$formulario",$valor,'','5');
-}
-$consulta_paginacion = "SELECT control FROM form_datos WHERE contenido LIKE '$valor%%' and form_id ='$formulario' and ( id_campo ='$key' OR id_campo = '$descripcion' ) GROUP BY control ";
-//$consulta = "SELECT contenido, control FROM form_datos WHERE form_id ='$formulario' and (id_campo ='$key' OR id_campo ='$descripcion' )AND contenido like '%%$valor%%' GROUP BY control limit 15 ";
-$consulta = "SELECT contenido, control ,id_campo FROM form_datos WHERE contenido LIKE '$valor%%' and form_id ='$formulario' and ( id_campo ='$key' OR id_campo = '$descripcion' ) GROUP BY control limit $limite ";
-
-$sql=mysqli_query($link,$consulta);
-$sql_paginacion=mysqli_query($link,$consulta_paginacion);
-$cantidad = mysqli_num_rows($sql_paginacion);
-
-if (mysqli_num_rows($sql)!='0'){
-
- if($limite < $cantidad) { $alert="warning"; $aviso ="Mostrando $limite de $cantidad registros";}else { $alert="success";}
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-$campo_descripcion= remplacetas("form_datos","control","$row[control]","contenido"," id_campo = '$descripcion' ");
-$campo_key= remplacetas("form_datos","control","$row[control]","contenido"," id_campo = '$key' ");
- if($row[control] == "$valor") {
-
- $selected = "selected";
- }else{ $selected = "";}
- $lista.= "
- $campo_key[0] $campo_descripcion[0] ";
-
- }
-
-$resultado .= "
-
-
-
$aviso
";
- }else{$resultado = "
No hay resultados
";}
-
-
-
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
-
-}
-$xajax->registerFunction("buscador_select");
-
-
-
-function relacion_select($id_campo,$form_id,$valor,$name,$control,$tipo){
-$link=Conectarse();
-$valor_actual ="";
-mysqli_set_charset($link, "utf8");
-
-$claves = remplacetas("form_campos_valores","id_form_campo","$id_campo","campo_valor","");
-$claves = $claves[0];
- $claves = explode(' ',$claves);
- $formulario = explode(':',$claves[0]) ;
- $formulario = $formulario[1];
- $key = explode(':',$claves[1]) ;
- $key = $key[1];
- $limit = explode(':',$claves[2]) ;
- $limit = $limit[1];
- if($limit=='0' or $limit ==''){$limit = "";}
- else {$limit = "LIMIT $limit";}
-if($valor !="") {
-$valor_actual = contenido_mostrar("$formulario",$valor,'','5');
-}
-
-$div ="div_relacion_$name";
-
-$consulta = "SELECT contenido, control FROM form_datos WHERE form_id ='$formulario' and id_campo ='$key' GROUP BY control $limit ";
-if($name =="") {
-//return "$valor_actual";
-}
-$sql=mysqli_query($link,$consulta);
-
-
-if (mysqli_num_rows($sql)!='0'){
-$onchange = " xajax_contenido_mostrar('$formulario',(this.value),'$div','relacion')";
-$resultado="
-Seleccione
- " ;
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-
- if($row['control'] == "$valor") {
-
- $selected = "selected";
- }else{ $selected = "";}
- $resultado .= " $row[contenido] ";
-
- }
-
-$resultado .= "
-
$valor_actual
";
- }else{$resultado = "
No hay resultados $consulta XXX
";}
-
-
- return $resultado;
-
-}
-$xajax->registerFunction("relacion_select");
-
-function combo_select($id_campo,$form_id,$valor,$name,$control,$control_combo){
- $selected="";
- $and="";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-if($control_combo !="") {
- $div ="combo_$name";
-$and ="AND campo_valor LIKE '$control_combo:%%'";
-}else{
-$onchange ="xajax_combo_select('$id_campo','$valor','$valor','$name','$control',(this.value)) ";
-$div ="combo_$name";
-$name ="primario_$name";
-}
-$consulta = "SELECT * FROM form_campos_valores WHERE id_form_campo ='$id_campo' $and ";
-$sql=mysqli_query($link,$consulta);
-// $value = remplacetas("form_datos","control","$control","contenido","id_campo ='$id_campo' ");
-if (mysqli_num_rows($sql)!='0'){
-
-$resultado=" $valor
-Seleccione
- " ;
- // $resultado = array_unique($entrada);
-while( $row = mysqli_fetch_array( $sql ) ) {
- $campos = explode(':',$row['campo_valor']);
-
- IF($control_combo ==""){
- $campo_primario[]=$campos[0];
- $campo_primario = array_unique($campo_primario);
- }
- else {
- $campo_primario[] = "$campos[0] $campos[1]";
- }
- //$identificador = $identificador[0];
-//if($row[campo_valor] ==="$valor"){$selected="selected";}else{$selected ="";}
-//$resultado .= " $campos[0] ";
- }
-
-foreach($campo_primario as $C=>$V){
-$resultado .= "$V ";
-}
-$resultado .= "
-
";
- }else{$resultado = "
No hay resultados
";}
-if($control_combo =='') {
- return $resultado;
- }
-else{
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$resultado");
- return $respuesta;
-}
-}
-$xajax->registerFunction("combo_select");
-
-
-function aplicacion_carrusel($nombre,$id,$plantilla){
- if($id =='') {
- $id = remplacetas('form_id','nombre',$nombre,'id',"") ;
- $id = $id[0];
- }
- if($nombre =='') {
- $nombre = remplacetas('form_id','id',$id,'nombre',"") ;
- $nombre = $nombre[0];
- }
- $descripcion = remplacetas('form_id','id',$id,'descripcion',"") ;
- $descripcion = $descripcion[0];
-
- $campo_titulo = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
- if($campo_titulo[0] !='') {$w_campo = "AND id_campo = '$campo_titulo[0]'";}
- $campo_titulo = $campo_titulo[0];
- $consulta ="SELECT *,GROUP_CONCAT(id ORDER by timestamp desc ) as identificador FROM form_datos WHERE form_id = '$id' $w_campo GROUP BY control order by contenido";
- $link=Conectarse();
- $sql=mysqli_query($link,$consulta);
- if (mysqli_num_rows($sql)!='0'){
- $control = mysqli_result($sql,0,control);
- $nombre = remplacetas('form_id','id',$id,'nombre',"") ;
- $descripcion = remplacetas('form_id','id',$id,'descripcion',"") ;
-
- mysqli_data_seek($sql, 0);
-// $contenido = "
$nombre[0] ";
-// $contenido .= "
$descripcion[0] ";
-
- $orden = 0;
-while( $row = mysqli_fetch_array( $sql ) ) {
-
- $identificador = explode(',',$row[identificador]);
- $identificador = $identificador[0];
- if($orden === 0) {$activo = "active";}else{$activo="";}
- $contenido_desplegado = contenido_mostrar("$row[form_id]","$row[control]",'',"$plantilla");
- $campo = buscar_campo_tipo($id,"15");
- $id_campo = $campo[0];
- $imagen = remplacetas('form_datos','control',$row[control],'contenido',"id_campo = '$id_campo'") ;
- $items .= "
-
-
- $contenido_desplegado
-
-
";
- $indicador .= "
";
- $titulo = remplacetas('form_datos','id',$identificador,'contenido',"") ;
- //$contenido .= "$contenido_desplegado ";
- $orden = ($orden +1 );
- }
-$contenido .= "
-
-
-
$nombre[0] $descripcion[0]
-
-
-
- ";
- //$contenido = " $links
";
- }
-
-
-return $contenido;
-}
-
-
-function formulario_embebido($id){
- $publico = remplacetas('form_id','id',"$id",'modificable',"") ;
- $propietario = remplacetas('form_id','id',$id,'propietario',"") ;
- $empresa = remplacetas('form_id','id',$id,'id_empresa',"") ;
- if($publico[0] =="0" AND @$_SESSION['id_empresa'] != $empresa[0] AND $propietario[0] != @$_SESSION['control_usuario_milfs'] ) {
- $resultado = "
";
- //$respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
- // $respuesta->addAssign("muestra_form","innerHTML","$resultado");
- $pie = empresa_datos("$empresa[0]",'pie');
- //$respuesta->addscript("$('#muestraInfo').modal('toggle')");
- return $resultado;
- }
- //$impresion = formulario_modal("$id",$form_respuesta,$control,"embebido");
- //($perfil,$tipo,$form_respuesta,$control_respuesta)
-
- $impresion = formulario_areas($id,"embebido",'','');
- $formulario_nombre = remplacetas('form_id','id',$id,'nombre','') ;
- $formulario_descripcion = remplacetas('form_id','id',$id,'descripcion','') ;
- $visitas= contar_visitas($id,'formulario') ;
- $muestra_form = "
-
-
-
-
-
$visitas
-
- $impresion
-
-
-
-
-
-
-
";
- return $muestra_form ;
-}
-
-
-function formulario_embebido_ajax($id,$opciones,$tipo){
- $respuesta = new xajaxResponse('utf-8');
- $publico = remplacetas('form_id','id',"$id",'modificable',"") ;
- if($publico[0] =="0" AND $_SESSION[id] =="") {
- $resultado = "
NO tiene permiso para usar este formulario ";
- $respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
- $respuesta->addAssign("muestra_form","innerHTML","$resultado");
- $pie = empresa_datos("$id_empresa",'pie');
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
- return $respuesta;
- }
- //$impresion = formulario_modal("$id",$form_respuesta,$control,"embebido");
- //($perfil,$tipo,$form_respuesta,$control_respuesta)
-
- $id_empresa = remplacetas('form_id','id',$id,'id_empresa',"") ;
- $propietario = remplacetas('form_id','id',$id,'propietario',"") ;
- if(isset($_SESSION['permiso_identificador'])) {
- $permiso_identificador = $_SESSION['permiso_identificador'] ;
- $salir= "$permiso_identificador
Salir
";
- }
- else{ $permiso_identificador = ""; $salir="";}
-
-
-
- if($tipo =='edit' AND ($_SESSION['id_empresa'] !== $id_empresa[0] AND $_SESSION['id'] != $propietario[0] )AND $permiso_identificador != $opciones) {
- $password = buscar_campo_tipo($id,"18");
-
- $aviso = "
ATENCIÓNNo está autorizado // $_SESSION[id] != $propietario[0] //";
- $seguridad ="
-
-
- ";
- $resultado ="
-
- $salir
- $aviso
- $seguridad
-
- ";
- $respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
- $respuesta->addAssign("muestra_form","innerHTML","$resultado");
- $pie = empresa_datos("$id_empresa",'pie');
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
- return $respuesta;
- }
-
- if($tipo=="respuesta") { $form_respuesta = "respuesta";}
- $impresion = formulario_areas("$id","$tipo","$form_respuesta","$opciones");
- $formulario_nombre = remplacetas('form_id','id',$id,'nombre','') ;
- $formulario_descripcion = remplacetas('form_id','id',$id,'descripcion','') ;
- $visitas= contar_visitas($id,'formulario') ;
- $muestra_form = "
-
-
-
$visitas
-
-
- $impresion
-
-
-
- ";
- // return $muestra_form ;
-
- //$respuesta->addAssign("$div","innerHTML","$resultado");
- //$div_contenido = "
$div
";
- $respuesta->addAssign("muestra_form","innerHTML","$muestra_form");
- //$respuesta->addAssign("titulo_modal","innerHTML","Hola mundo");
- //$respuesta->addAssign("pie_modal","innerHTML","$pie");
- //$respuesta->addAssign("$div","innerHTML","$resultado");
- $respuesta->addscript("$('#muestraInfo').removeClass('fade').modal('hide')");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
- ///if($tipo =="edit") {return $muestra_form;}
- return $respuesta;
-
-}
-$xajax->registerFunction("formulario_embebido_ajax");
-
-function formulario_embebido_campos($id,$opcion){
- $impresion = formulario_modal("$id",$form_respuesta,$control,"$opcion");
-
- $formulario_nombre = remplacetas('form_id','id',$id,'nombre') ;
- $formulario_descripcion = remplacetas('form_id','id',$id,'descripcion') ;
-
- $muestra_form = "
-
-
-
$formulario_descripcion[0]
- $impresion
-
-
-
";
- return $muestra_form ;
-}
-
-function json($datos){
-if ( !isset ( $_SESSION['id_empresa'] ) ) { $publico = "AND
-form_id.publico = '1' "; $w_publico = "WHERE form_id.publico = '1'
-"; }
-else { $publico = "AND form_id.id_empresa = '$_SESSION[id_empresa]'
-"; $w_publico = "WHERE form_id.id_empresa = '$_SESSION[id_empresa]' ";
-}
-$datos = mysql_seguridad($datos);
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-if($datos[id] !=''){
-if($datos[tipo] =='simple') {
-$campos ="control " ;
-$consulta = "SELECT $campos
-FROM `form_datos` , `form_campos` ,form_id
-WHERE form_datos.id_campo = `form_campos`.id
-AND form_datos.form_id = `form_id`.id
-AND (form_id = '$datos[id]' )
-$publico
-GROUP BY form_datos.control
-ORDER BY form_datos.timestamp DESC";
-
-$sql = mysqli_query($link,$consulta,$link) or die("error al ejecutar consulta ");
- if (mysqli_num_rows($sql)!='0'){
-$i = 1;
-$features = array();
-// $features[] = $consulta;
-while($row = mysqli_fetch_array( $sql ))
- {
-
-
-
- if($datos[tipo]=="simple"){
-
- $id_campo = remplacetas('form_datos','id',$row[id_dato],'id_campo',"") ;
-
- //if($privado != '1') {
- //$contenido = remplacetas('form_datos','id',$row[id_dato],'contenido',"") ;
- //$contenido = remplacetas_orden('form_datos','id',$row[id_dato],'contenido',""," ORDER BY timestamp DESC ") ;
- $nombre_campo = remplacetas('form_campos','id',$id_campo[0],'campo_nombre',"") ;
- $nuevos_datos = $datos;
- $nuevos_datos[identificador]="$row[control]";
- $nuevos_datos[tipo]="array";
- //$features[$row[control]] = datos_array($row[control]) ;
-//json($nuevos_datos);//" $contenido[0]";//$row[id_campo];
- $features[] = datos_array($row[control]) ;
- // $features[consulta] = "$consulta";
-//json($nuevos_datos);//" $contenido[0]";//$row[id_campo];
-//}//
- }
- else {
- // $features[] = $row;
- }
-
-
- $i++;
- }
-
-
-
-}
-
-
-if($tipo == "array" ) {
-$resultado = $features;
-}else {
-
-$resultado = json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
-}
-return $resultado;
-
-}
-else {
-$campos ="form_datos.id as id_dato, form_datos.form_id AS
-id_formulario, nombre as formulario, campo_nombre, form_campos.id AS
-id_campo , contenido ,timestamp, control as identificador ,
-form_datos.orden" ;
-$consulta = "SELECT $campos
-FROM `form_datos` , `form_campos` ,form_id
-WHERE form_datos.id_campo = `form_campos`.id
-AND form_datos.form_id = `form_id`.id
-AND (form_id = '$datos[id]' )
-$publico
-ORDER BY form_datos.control ,form_datos.timestamp ";
-}
-
-}
-elseif($datos[identificador] !=''){
-if($datos[tipo] =='simple') {$campos ="form_campos.id as id_campo,
-form_datos.id as id_dato " ;}
-else {$campos ="form_datos.id as id_dato, form_datos.form_id AS
-id_formulario, nombre as formulario, campo_nombre, form_campos.id AS
-id_campo ,contenido ,timestamp, control as identificador ,
-form_datos.orden" ;}
-$consulta = "SELECT $campos
-FROM `form_datos` , `form_campos` ,form_id
-WHERE form_datos.id_campo = `form_campos`.id
-AND form_datos.form_id = `form_id`.id
-AND (control = '$datos[identificador]' )
-$publico
-";
-}
-elseif($datos[dato] !=''){
-if($datos[tipo] =='simple') {$campos ="form_campos.id as id_campo,
-form_datos.id as id_dato " ;}
-else {$campos ="form_datos.id as id_dato, form_datos.form_id AS
-id_formulario, nombre as formulario, nombre as formulario,
-campo_nombre, form_campos.id AS id_campo ,contenido ,timestamp,
-control as identificador, form_datos.orden" ;}
-$consulta = "SELECT $campos
-FROM `form_datos` , `form_campos` ,form_id
-WHERE form_datos.id_campo = `form_campos`.id
-AND form_datos.form_id = `form_id`.id
-AND (form_datos.id = '$datos[dato]' )
-$publico
-";
-}
-else {
-$consulta = "SELECT id as form_id, nombre as form_nombre, descripcion
-as form_descripcion , creacion , publico AS contenido_publico ,
-modificable AS formulario_publico
-FROM form_id $w_publico";
-}
-
-
-$sql = mysqli_query($link,$consulta,$link) or die("error al ejecutar consulta ");
- if (mysqli_num_rows($sql)!='0'){
-$i = 1;
-$features = array();
-// $features[] = $consulta;
-while($row = mysqli_fetch_array( $sql ))
- {
- //$nombre_campo =remplacetas('form_campos','id',$id_campo[0],'campo_nombre',"") ;
- $id_campo = remplacetas('form_datos','id',$row[id_dato],'id_campo',"") ;
- $formulario = remplacetas('form_datos','id',$row[id_dato],'form_id',"") ;
- //// PRIVACIDAD
- $privado = remplacetas('form_parametrizacion','campo',"$formulario[0]",'opcion'," tabla='form_id' AND descripcion ='$id_campo[0]' AND opcion REGEXP '^privacidad:' ") ;
- $privado = explode(":",$privado[0]);
- $privado = $privado[1];
-/// PRIVACIDAD
- if($privado !='1') {
- if($datos[tipo]=="simple"){
- $contenido = remplacetas('form_datos','id',$row[id_dato],'contenido',"") ;
- $id_campo = remplacetas('form_datos','id',$row[id_dato],'id_campo',"") ;
- $nombre_campo =remplacetas('form_campos','id',$id_campo[0],'campo_nombre',"") ;
- $features[] = "$nombre_campo[0] : $contenido[0]";//$row[id_campo];
- }
- else {
- $features[] = $row;
- }
-}
-
- $i++;
- }
-
-
-
-}
-
-if($datos[tipo] == "array" ) {
-$resultado = $features;
-}else {
-
-$resultado = json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
-}
-
-return $resultado;
-}
-
-
-
-
-function imprime_geojson($id,$id2,$plantilla,$busqueda){
- $id_form = mysql_seguridad($id);
- $id_form2 = mysql_seguridad($id2);
- $campo = buscar_campo_tipo($id_form,"14");
- $campo2 = buscar_campo_tipo($id_form2,"14");
- $id_campo = $campo[0];
- $id_campo2 = $campo2[0];
- $busqueda = explode(':',$busqueda);
- if($busqueda[1] !="") {
- $consulta = "SELECT form_id as id, control, GROUP_CONCAT(contenido ORDER by timestamp desc ) as data FROM `form_datos` WHERE (form_id = '$id_form' $w_id2 AND id_campo ='$busqueda[0]' AND contenido COLLATE utf8_spanish2_ci like '%$busqueda[1]%' ) group by control ORDER BY orden desc";
-
- }
-
- else{
-
-$consulta = "SELECT form_id as id, control, GROUP_CONCAT(contenido ORDER by timestamp desc ) as data
-FROM `form_datos`
-WHERE (form_id = '$id_form' $w_id2 )
-AND ( id_campo ='$id_campo' $or_2 )
-group by control
-ORDER BY orden desc";
- }
-
- if($id_form2 !=""){$w_id2 =" OR form_id = '$id_form2'"; $or_2 ="or id_campo = '$id_campo2'";}
-
-$link=Conectarse();
-
-
-//return $consulta;
-
- mysqli_set_charset($link, "utf8");
- $sql = mysqli_query($link,$consulta,$link) or die("error al ejecutar consulta ");
- if (mysqli_num_rows($sql)!='0'){
- $id = 1;
- $features = array();
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- $marcador = array();
- $propiedades = array();
- $identificador = explode(',',$row[data]);
- $localizacion = remplacetas('form_datos','control',$row['control'],'contenido',"id_campo = '$id_campo'") ;
-
- $identificador = $identificador[0];
- //$campos = explode(" ",$identificador);
- $campos = explode(" ",$localizacion[0]);
- $lat = $campos[0];
- $lon = $campos[1];
- $zoom = $campos[2];
- $formulario = formulario_imprimir($row[id],$row[control],"$plantilla");
-
- $marcador["type"] = "Point";
- $marcador["coordinates"] = array($lat,$lon);
- $propiedades = formulario_imprimir_linea($row[id],$row[control],"array");//
- //$propiedades[description] ="HOLA MUNDO";
- $propiedades[buscar] ="$consulta ";
- $propiedades[localizacion] ="$localizacion[0] ";
- $propiedades[description] ="
$formulario
";
- $propiedades[sounds] ="";
- $propiedades[url] ='';
- $propiedades[icon][iconSize] =[60];
- //$propiedades[icon][shadowSize] =[70,70];
- //$propiedades[icon][shadowUrl] = "https://raw.githubusercontent.com/humano/milfs/master/milfs/images/iconos/negro.png";
-
- //$propiedades[title] ='Hola mundo';
- if($propiedades[icon][iconUrl] =="") {
- $icono_imagen = buscar_imagen("$id_form",$row['control'],"","");
- //$propiedades[icon][iconUrl] = "$_SESSION[site]/milfs/images/iconos/negro.png";
- $propiedades[icon][iconUrl] = "$_SESSION[url]images/secure/?file=150/$icono_imagen";
- }
- $geometria .= "{\"type\":\"Feature\",\"geometry\":".json_encode($marcador,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT).",\"properties\":".json_encode($propiedades,JSON_NUMERIC_CHECK|JSON_HEX_TAG | JSON_HEX_APOS | JSON_HEX_QUOT | JSON_HEX_AMP | JSON_UNESCAPED_UNICODE|JSON_PRETTY_PRINT)."},";
- $features[] = $marcador;
-
- $id++;
- }
-
-}
-//-75.58295 6.25578 16
-
-//encode and output jsonObject
-header('Content-Type: text/plain');
-//echo $consulta;
-$resultado = " { \"type\": \"FeatureCollection\",
- \"features\": ";
-$resultado .= json_encode($features,JSON_NUMERIC_CHECK|JSON_PRETTY_PRINT);
-$resultado .= "}";
-//echo $resultado;
-$geometria = substr("$geometria",0,-1);
-$geometria = "{
- \"type\": \"FeatureCollection\",
- \"features\": [$geometria ]}";
-return $geometria;
-}
-
-
-function aplicacion_presentacion($id,$div,$timeout){
- if($timeout < '1000') {$timeout =5000;};
- $respuesta = new xajaxResponse('utf-8');
-$consulta ="SELECT * FROM form_datos WHERE form_id = '$id' ORDER BY rand() limit 1 ";
-$link=Conectarse();
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$control = mysqli_result($sql,0,control);
-$impresion = formulario_imprimir("$id","$control","");
-
- }
-$siguiente = "
SIGUIENTE ";
-if($div ==''){
- $presentacion = "
$siguiente $impresion
";
- }else{
- //$respuesta->addAlert("$consulta");
- $respuesta->addScript("setTimeout(function(){xajax_aplicacion_presentacion('$id','presentacion_$id','$timeout')},$timeout)");
- $respuesta->addAssign("$div","innerHTML","$siguiente $impresion");
- return $respuesta;
- }
-return " $presentacion";
-
-
-}
-$xajax->registerFunction("aplicacion_presentacion");
-
-function aplicaciones_listado($id_empresa,$id_form,$tipo,$div){
- $onclick ="";
- $contenido = "";
- $accion = "";
- $resultado_li = "";
- $resultado = "";
- $resultado_banner = "";
- $resultado_inicial = "";
- $resultado_final = "";
- $resultado_grid = "";
- $contenido_listado = "";
- $resultado_nav = "";
- $w_form = "";
- $divider = "";
- $categoria = "";
- if($id_empresa !=''){
- if($id_form !="") {$w_form = " AND id = '$id_form'";}
- $w_publico =" publico ='1'";
- $w_empresa = " AND id_empresa = '$id_empresa' ";
- //$consulta = "SELECT * , form_id.id as id_formulario FROM form_id WHERE $w_publico $w_form $w_empresa ORDER BY orden asc limit 10 ";
- $consulta = "SELECT * , form_id.id as id_formulario FROM form_id WHERE $w_publico $w_form $w_empresa ORDER BY orden asc ";
- //xajax_contenido_parallax('$row[id]');
- }
- else {
- $consulta = "SELECT *, razon_social as nombre , form_id.id as id_formulario FROM empresa, form_id WHERE empresa.id = form_id.id_empresa AND form_id.activo = '1' AND form_id.publico ='1' group by empresa.id ORDER BY empresa.id DESC ";
-
- }
- //if($tipo =='publico'){ $w_publico =" publico ='0'";}else {$w_publico =" publico ='1'";}
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-mysqli_real_escape_string($link,$consulta);
-$sql=mysqli_query($link,$consulta);
-
-
-if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- $resultado_li .= "
";
- }else {$resultado_li = "";}
-
-if($tipo =='li') { return $resultado_li.$resultado;}
-elseif($tipo =='nav') { return $resultado_nav;}
-elseif($tipo =='grid') {
-if($div !="") {
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAssign("$div","innerHTML","$resultado_grid");
- return $respuesta;
- }else{
- return $resultado_grid;
- }
-}
-elseif($tipo =='banner') { return $resultado_banner;}
-elseif($tipo =='carrusel') { return $resultado_carrusel;}
-elseif($tipo =='sitemap') { return $resultado."sitemap";;}
-else {return $resultado;}
-}
-$xajax->registerFunction("aplicaciones_listado");
-
-
-function contenido_aplicacion($id,$plantilla){
-$div = "contenedor";
- $respuesta = new xajaxResponse('utf-8');
-
- $campo_titulo = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
-if($campo_titulo[0] !='') {$w_campo = "AND id_campo = '$campo_titulo[0]'";}
-$campo_titulo = $campo_titulo[0];
-$consulta ="SELECT *,GROUP_CONCAT(id ORDER by timestamp desc ) as identificador FROM form_datos WHERE form_id = '$id' $w_campo GROUP BY control order by contenido";
-
-$link=Conectarse();
-$sql=mysqli_query($link,$consulta);
-
-if (mysqli_num_rows($sql)!='0'){
-
- $control = mysqli_result($sql,0,"control");
- $nombre = remplacetas('form_id','id',$id,'nombre',"") ;
- $descripcion = remplacetas('form_id','id',$id,'descripcion',"") ;
-
- mysqli_data_seek($sql, 0);
-
- //$contenido = "
$nombre[0] ";
- $contenido = "
$descripcion[0] ";
-
- $orden = 0;
-
-while( $row = mysqli_fetch_array( $sql ) ) {
-
- $identificador = explode(',',$row[identificador]);
- $identificador = $identificador[0];
- $contenido_desplegado = contenido_mostrar("$row[form_id]","$row[control]",'',"$plantilla");
- //return "$row[form_id] $row[control] $plantilla";
- $titulo = remplacetas('form_datos','id',$identificador,'contenido',"") ;
- $contenido .= "$contenido_desplegado
";
- }
- $contenido = " $links
";
- }
-
- return $contenido;
-
-}
-
-function contenido_aplicacion_nombre($nombre,$plantilla){
- $id = remplacetas('form_id','nombre',$nombre,'id',"") ;
- $id = $id[0];
- if($id[0] =="") {$aviso = "
No se ha definido una aplicación con el nombre $nombre ";
- return $aviso;}
- $campo_titulo = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
-if($campo_titulo[0] !='') {$w_campo = "AND id_campo = '$campo_titulo[0]'";}
-$campo_titulo = $campo_titulo[0];
-$consulta ="SELECT *,GROUP_CONCAT(id ORDER by timestamp desc ) as identificador FROM form_datos WHERE form_id = '$id' $w_campo GROUP BY control order by contenido";
-$link=Conectarse();
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
- $control = mysqli_result($sql,0,control);
-
- mysqli_data_seek($sql, 0);
- $contenido = " ";
- $orden = 0;
-while( $row = mysqli_fetch_array( $sql ) ) {
-
- $identificador = explode(',',$row[identificador]);
- $identificador = $identificador[0];
- $contenido_desplegado = contenido_mostrar("$row[form_id]","$row[control]",'',"$plantilla");
- $titulo = remplacetas('form_datos','id',$identificador,'contenido',"") ;
- $contenido .= "$contenido_desplegado ";
- }
- $contenido = " $links
";
- }
-
- return $contenido;
-
-}
-
-
-
-function contenido_parallax($id){
-$div = "contenedor";
- $respuesta = new xajaxResponse('utf-8');
-
- $campo_titulo = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
-if($campo_titulo[0] !='') {$w_campo = "AND id_campo = '$campo_titulo[0]'";}
-$campo_titulo = $campo_titulo[0];
-$consulta ="SELECT *,GROUP_CONCAT(id ORDER by timestamp desc ) as identificador FROM form_datos WHERE form_id = '$id' $w_campo GROUP BY control order by contenido";
-$link=Conectarse();
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
- $control = mysqli_result($sql,0,control);
- $contenido = "";
- mysqli_data_seek($sql, 0);
-
- $orden = 0;
-while( $row = mysqli_fetch_array( $sql ) ) {
- //$orden = $orden+500;
- $identificador = explode(',',$row[identificador]);
- $identificador = $identificador[0];
- $contenido_desplegado = contenido_mostrar("$row[form_id]","$row[control]",'','contenido');
-
- $titulo = remplacetas('form_datos','id',$identificador,'contenido',"") ;
- $nav_li .="
-
- ";
- $style .=" a[id= '$row[control]']:target ~ #main_$id article.article
- {
- -webkit-transform: translateY(-$orden"."px);
- transform: translateY( -$orden"."px );
- } ";
- $links .= "
";
- $contenido .= "
-
- $contenido_desplegado
-
- ";
- $orden = $orden +800;
- }
- $contenido = "
-
-
- $links
-
-
-
-
- ";
- }
-
-//return " $contenido";
- $respuesta->addAssign("$div","innerHTML","$contenido");
- return $respuesta;
-
-}
-$xajax->registerFunction("contenido_parallax");
-
-function contenido_timeline($id){
-$div = "contenedor";
- $descripcion = remplacetas('form_id','id',$id,'descripcion') ;
- $nombre = remplacetas('form_id','id',$id,'nombre') ;
- $respuesta = new xajaxResponse('utf-8');
-
- $campo_titulo = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
-if($campo_titulo[0] !='') {$w_campo = "AND id_campo = '$campo_titulo[0]'";}
-$campo_titulo = $campo_titulo[0];
-$consulta ="SELECT *,GROUP_CONCAT(id ORDER by timestamp desc ) as identificador FROM form_datos WHERE form_id = '$id' $w_campo GROUP BY control order by contenido";
-$link=Conectarse();
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
- $control = mysqli_result($sql,0,control);
- //$contenido = "
";
-//}else {$resultado ="
No se encontraron resultados "; return $resultado;}
-//if($id=="6" OR $id=="10") {
- $plantilla="";
- $class="";
- if($tipo !="" AND (!is_numeric($tipo)) AND $tipo !="metadatos" ) {
-////Usa una plantilla apra cada id
-
-$plantilla = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'plantilla:$tipo'") ;
-$plantilla = $plantilla[0];
-if($plantilla =="") {
-///Usa una plantilla generica por nombre
-$plantilla = remplacetas('form_parametrizacion','opcion',"plantilla:$tipo",'descripcion',"campo = ''") ;
-$plantilla = $plantilla[0];
-//$plantilla = remplacetas('parametrizacion','opcion',"plantilla:$tipo",'descripcion',"campo = '$id' ") ;
-}
-if($plantilla !='') { $plantilla = html_entity_decode ( $plantilla );}
-/*else {
-$plantilla = remplacetas('parametrizacion','opcion',"plantilla:$tipo",'descripcion',"") ;
-$plantilla= $plantilla[0];
- }
- */
- }
-if($plantilla != ""){
-@eval("\$plantilla = \"$plantilla \";");
- $full ="$plantilla";
- /// $full = preg_replace("/<[^\/][^<>]*> *<\/[^<>]*>/", "", $full );
-
- }else {
- $full= "
$resultado
";
- }
-
- $resultado ="$full";
- return $resultado;
-
-// }else {$resultado ="
No se encontraron resultados "; return $resultado;}
- }else {$resultado =""; return $resultado;}
-}
-
-
-function subir_imagen($respuesta,$id){
-$resultado ="";
-///vinculado con la funcion de javascript resultadoUpload(estado, file) que esta en librerias/scripts.js
-//this.form.taget= 'ventana'; this.form.action = 'destinoEspecial.html'; this.form.submit()"
-if($id =="") {
- $empresa = $_SESSION['id_empresa'];
- $javascript = "includes/upload.php";
- $path = "";
-}
-else {
-$id_empresa = remplacetas('form_id','id',"$respuesta",'id_empresa','');
-$empresa= $id_empresa[0];
-$web = remplacetas('empresa','id',"$empresa",'web','');
- $javascript = "https://$web[0]/milfs/includes/upload.php";
- $path = "https://$web[0]/milfs/";
-}
-
-/*
-if(file_exists(milfs/includes/upload.php)) {$javascript="milfs/includes/upload.php"; $path ="milfs/";}
-else{$javascript="includes/upload.php"; $path ="";}
-*/
-
-//$javascript="milfs/includes/upload.php";
-//$javascript="milfs/includes/upload.php";
-//$path ="milfs/";
-$campo_mapa = buscar_campo_tipo($respuesta,"14");
-$campo_mapa = $campo_mapa[0];
-if ($id ==''){$id='imagen';}
-$size = ($_SESSION['upload_size']*1024*1024)." bytes";
-$resultado ="
-
-
-
-
-
-
-
-La imagen debe estar en formato .jpg y de tamaño máximo $_SESSION[upload_size] MB ( $size)
-
-";
-return $resultado;
-
-}
-
-
-function formulario_importador($accion) {
-
- if($accion =='') {
- $resultado="
Importador";
-
- return $resultado;
- }
- $respuesta = new xajaxResponse('utf-8');
- $formulariox =formulario_importar('','menu','');
- $resultado="$formulariox
";
- $respuesta->addAssign("contenido","innerHTML","$resultado");
- return $respuesta;
-}
-$xajax->registerFunction("formulario_importador");
-
-
-function subir_archivo($perfil){
-///vinculado con la funcion de javascript resultadoUpload(estado, file) que esta en librerias/scripts.js
-//$empresa = remplacetas('form_id','id',"$perfil",'id_empresa','');
-//$web = remplacetas('empresa','id',"$empresa[0]",'web','');
-
-
-$id_empresa = remplacetas('form_id','id',"$respuesta",'id_empresa','');
-$empresa= $id_empresa[0];
-$web = remplacetas('empresa','id',"$empresa",'web','');
- $javascript = "includes/upload_archivo.php";
- $path = "//$web[0]/milfs/";
-
-///$javascript="https://tupale.co/milfs/includes/upload_archivo.php";
-$resultado ="
-
-
-
-
-
-Máximo 1MB
-
- ";
-
-
-return $resultado;
-
-}
-
- /*
-function formularios_muestra_listado($formulario){
-
- if($formulario==''){
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$consulta = "SELECT * FROM form_id WHERE id_empresa = '$_SESSION[id_empresa]' ORDER BY nombre ";
-$sql=mysqli_query($link,$consulta);
-
-
-if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
- $resultado .="
";
- $resultado .= "Seleccionar formulario a importar ";
-$fila=0;
-while( $row = mysqli_fetch_array( $sql ) ) {
- $fila = $fila +1;
- if ($fila %2 == 0){$bg='LightCyan';}else{ $bg='FFFFFF';}
-
-$resultado .= " $row[nombre] ";
- }
-
- $resultado .=" ";
- }else {$resultado = "";}
-
- return $resultado;
- }else{
- $respuesta = new xajaxResponse('utf-8');
- $subir = subir_archivo($formulario) ;
- $div="importador_select";
- $resultado .= "$subir";
-$respuesta->addAssign($div,"innerHTML",$resultado);
-$respuesta->addAssign("importador_archivo","innerHTML","");
-
-
-
-return $respuesta;
-}
-}
-$xajax->registerFunction("formularios_muestra_listado");
- */
-
-function formulario_importar_subir($formulario){
- $pie="";
- $respuesta = new xajaxResponse('utf-8');
- $formulario_nombre = remplacetas('form_id','id',$formulario,'nombre','') ;
- //$formulario_descripcion = remplacetas('form_id','id',$formulario,'descripcion','') ;
- $encabezado = "
Importar $formulario_nombre[0] ";
- $subir = subir_archivo($formulario) ;
- $div="contenido";
-
- $muestra_form = "
-
- $subir
-
-
- ";
- $respuesta->addAssign("muestra_form","innerHTML","$muestra_form");
- $respuesta->addAssign("titulo_modal","innerHTML","$encabezado");
- $respuesta->addAssign("pie_modal","innerHTML","$pie");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
-return $respuesta;
-
-}
-$xajax->registerFunction("formulario_importar_subir");
-
-
-function formulario_importar($filename,$accion,$perfil){
-$formulario = "";
-$consulta = "";
-$div = "importador_archivo";
-$respuesta = new xajaxResponse('utf-8');
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$resultado = "
-
-
-
-
- Importando formulario ";
-$nombre = "/tmp/$filename";
-if($accion == "grabar") {
-}
-if (($handle = fopen($nombre, 'r')) !== FALSE)
- {
- $fila= 0;
- set_time_limit(0);
-while (($datos = fgetcsv($handle,0,"|")) !== FALSE) {
-$numero = count($datos);
-if($fila >=1) {
-$resultado .= "";
-$numero_columna = 0;
-for ($c=0; $c < $numero; $c++) {
-$columna = $datos[$c];
-if($columna !=""){
-if($accion === "grabar"){
-$control=md5($perfil.$fila.time());
-$ip = obtener_ip();
-$graba_ip = " ip = INET_ATON('".$ip."') ";
-$consulta_campos = "INSERT INTO form_datos SET timestamp= '".time()."', id_usuario='$_SESSION[id]',id_empresa='$_SESSION[id_empresa]',form_id ='$perfil',
-$graba_ip ,
-control = '$control', $consulta id_campo = '$campo[$numero_columna]' , contenido = '$columna'";
- // $verificar_campo = formulario_verificar_campo($perfil,$campo[$numero_columna]);
- $elregistro= $campo[$numero_columna];
- //if($verificar_campo == NULL){}else{
- if(is_numeric($elregistro)) { $elregistro =$elregistro;}else {$elregistro = -9;}
- //$verificar_campo = formulario_verificar_campo($perfil,$titulo);
- $campo_existe = remplacetas('form_campos','id',$elregistro,'campo_nombre','');
- if($campo_existe[0] == ""){}else{
- $sql = mysqli_query($link,$consulta_campos);
- if($sql) {
- $class='success';
- $resultado = "GRABADO $fila".time();
- //$sql_resultado = "oK";
- }
- else {
- $class='danger';
- }
- }
- }
-}
-//$resultado .= "$columna $sql_resultado ";
-$numero_columna ++;
- }
- $resultado .= " ";
- }
- else {
- $resultado .= "";
-
- $posicion = 0;
- for ($c=0; $c < $numero; $c++) {
- $titulo = $datos[$c] ;
- $campo[$posicion] = $datos[$c];
- if(is_numeric($titulo)) { $titulo =$titulo;}else {$titulo = -9;}
- $verificar_campo = formulario_verificar_campo($perfil,$titulo);
- $campo_existe = remplacetas('form_campos','id',$titulo,'campo_nombre','');
- if($verificar_campo == NULL){$verificar_campo_aviso =" No existe "; $class='danger';
- if($campo_existe[0] !='') { $verificar_campo_aviso =" No está en el formulario ";$class='warning';}
- }
-
- else{$verificar_campo_aviso =""; $class='success';}
-
- $resultado .= "$titulo $campo_existe[0]$verificar_campo_aviso ";
- $posicion ++;
- }
-
-
- $resultado .= " ";
- }
- $fila++;
- }
-
-
- $resultado .= "
-
$fila ".time()." " ;
- }
-
-$respuesta->addAssign($div,"innerHTML",$resultado);
-
-return $respuesta;
-}
-
-$xajax->registerFunction("formulario_importar");
-
-
-
-function formulario_verificar_campo($perfil,$id_campo){
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$consulta = "SELECT * FROM `form_contenido_campos` WHERE `id_form` = '$perfil' AND id_campo='$id_campo'";
-$sql =mysqli_query($link,$consulta);
-$cant =mysqli_num_rows($sql);
-
-if (mysqli_num_rows($sql) == '0'){
-$existe = NULL;
-
- }else {
-
-$control=mysqli_result($sql,0,"control");
-$obligatorio=mysqli_result($sql,0,"obligatorio");
-$existe[]= $control;
-$existe[]= $obligatorio;
-$existe[]= $consulta;
-
-}
-
-return $existe;
- }
-
-function borrar_tmp($div) {
-if($div =='') {
- $div="borra_tmp";
-$resultado ="
Limpiar ";
-
-return $resultado ;
-}
-$dir = "tmp/";
-$ficheroseliminados= 0;
-$handle = opendir($dir);
-while ($file = readdir($handle)) {
- if (is_file($dir.$file)) {
- if ( unlink($dir.$file) ){
- $ficheroseliminados++;
- }
- }
-}
-$fecha = time ();
-$ahora = date ( "Y-m-d h:i:s" , $fecha );
-$resultado ="
$ahora
";
- $respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign($div,"innerHTML",$resultado);
-return $respuesta;
-
- }
-$xajax->registerFunction("borrar_tmp");
-
-
-function formulario_imprimir_linea($id,$control,$tipo) {
- $id = mysql_seguridad($id);
- //if($id !='') {$w_id = "AND form_id = '$id'";}
- $control = mysql_seguridad($control);
-/* $consulta = "SELECT *
- FROM form_contenido_campos
- WHERE form_contenido_campos.id_form = '$id'
- ORDER BY form_contenido_campos.orden ASC
- ";
- */
- if($id !='') {
- $consulta = "SELECT *
- FROM form_contenido_campos
- WHERE form_contenido_campos.id_form = '$id'
-
- ORDER BY form_contenido_campos.orden ASC $limit
- ";
- }else {
- $consulta = "SELECT * FROM form_datos WHERE control = '$control' GROUP BY id_campo" ;
- }
-
-
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if($id !='') {$id = $id;}else {$id=mysqli_result($sql,0,"form_id");}
- $categoria_campo = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'categoria:campo'") ;
- $categoria_campo = $categoria_campo[0];
-
- $titulo = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'titulo'") ;
- $titulo = $titulo[0];
-
-$timestamp=mysqli_result($sql,0,"timestamp");
-$fecha = date ( "Y-m-d h:i:s" , $timestamp);
-
-if (mysqli_num_rows($sql)!='0'){
- mysqli_data_seek($sql, 0);
-// $resultado ="
";
- $imagen = formulario_valor_campo("$id","0","","$control");
- $imagen = $imagen[3];
- if($imagen[3] != null AND $tipo !='titulos') {
- $array[image]=$imagen;
- $imagen_icon="secure/?file=150/$imagen";
- $imagen= " ";
-
- }else {$imagen='';}
-$td .= "$imagen ";
-
- while( $row = mysqli_fetch_array( $sql ) ) {
-
- $campo_tipo = remplacetas('form_campos','id',$row[id_campo],'campo_tipo');
- $campo_tipo =$campo_tipo[0];
- $contenido = formulario_valor_campo("$id","$row[id_campo]","","$control",'');
- $md5_contenido = $contenido[4];
- //md5(binary contenido) as md5_contenido,
- $contenido_original = $contenido;
- //$control = $contenido[0];
- $contenido = $contenido[3];
- $campo_nombre = remplacetas('form_campos','id',$row[id_campo],'campo_nombre');
- $campo_nombre[0] =" $campo_nombre[0]";
- if($tipo=="titulos") {
- $contenido = "$campo_nombre[0] ";
- }
- elseif($tipo=="titulos_csv"){
- $csv .= '"'.$campo_nombre[0].'";';
- }
- elseif($tipo=="linea_csv"){
- $csv .= '"'.$contenido.'";';
- }
- elseif($tipo=="array"){
-
- if($row[id_campo] == $titulo){$array[title]=$contenido;}
- if($row[id_campo] == $categoria_campo){
- $array[category]=$contenido;
-
- $categoria_filtro = remplacetas('form_parametrizacion','campo',$id,'descripcion',"tabla='form_id' and opcion = 'categoria:filtro:$row[id_campo]'") ;
- $filtro = $categoria_filtro;
- $categoria_filtro = $categoria_filtro[0];
- $icono = remplacetas('form_parametrizacion','campo',$id,'descripcion'," tabla='form_id' and opcion = 'categoria:icon:$md5_contenido'") ;
- //$icono[0] = $imagen_icon;
- if($icono[0] =='') {
- //$icon = "https://raw.githubusercontent.com/humano/milfs/master/milfs/images/iconos/negro.png";
- }else{
-
- $icon = $icono[0];
- }
- $array[icon][iconUrl] = "$icon";
- //$array[icon][iconSize] ="[50,50]";
- //$array[icon][shadowSize] =[70,70];
- //$array[icon][shadowUrl] = "http://$_SERVER[HTTP_HOST]/milfs/images/iconos/sha.png";
-
- }else{}
- $array[$row[id_campo]] = $contenido;
- }
- else{
- $limite = 100;
- $size= strlen($contenido);
- $restante = ($limite - $size);
- if($size > $limite) {
- $contenido = substr($contenido,0, $length = 300)."... ";//$contenido;
- }
- if($campo_tipo=='15' AND $tipo==""){if($contenido !=""){$contenido = " "; }else{$contenido="";}}
- if($campo_tipo=='14'){
- if($contenido !='') {
- $campos = explode(" ",$contenido);
- $lat = $campos[0];
- $lon = $campos[1];
- $zoom = $campos[2];
- require("includes/datos.php");
- $url_pin =urlencode("$_SESSION[site]milfs/images/iconos/pin.png");
- $contenido = "
-
- ";
- } else { $contenido ='';}
- }
- elseif($campo_tipo=='4'){ $contenido = "$contenido ";}
- elseif($campo_tipo=='3' AND $contenido !=""){ $contenido = number_format($contenido);}
- else {$contenido = Markdown("$contenido");}
-
- }
-
-
- if($tipo=="titulos") {
-$td .= " $contenido ";
-
- }else{
-
- $td .= " $contenido ";
- }
- }
-
-if($tipo=="titulos") { $identificador ="Identificador "; }else {$identificador ="$control ";}
- $resultado .="$td $identificador ";
-}
- if($tipo =='titulos_csv' or $tipo=='linea_csv') {
-
-return $csv;
- }
- if($tipo =="array") {
- //$array["title"]="hola mundos";
- return $array;
- }
- return $resultado;
-}
-
-
-// $contenido_desplegado = contenido_mostrar("$row[form_id]","$row[control]",'',"$plantilla");
-function mostrar_coincidencias_plantilla($id_form,$filtro,$valor,$plantilla) {
-
- if($valor !=""){
-$md5_valor = $valor;
-if($filtro !='' ){$w_filtro ="AND md5(binary contenido) = '$md5_valor'";}
-}
-$consulta= "SELECT * FROM form_datos WHERE form_id= '$id_form' AND id_campo = '$filtro' $w_filtro ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-//mysqli_real_escape_string($link,$consulta);
-$sql=mysqli_query($link,$consulta);
-$control=mysqli_result($sql,0,"control");
-if (mysqli_num_rows($sql)!=0){
-mysqli_data_seek($sql, 0);
-while( $row = mysqli_fetch_array( $sql ) )
- {
-$resultado .= contenido_mostrar("$row[form_id]","$row[control]",'',"$plantilla");
-
- }
- }
-$respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign("mostrar_resultado","innerHTML",$resultado);
- return $respuesta;
-}
-$xajax->registerFunction("mostrar_coincidencias_plantilla");
-
-
-function mostrar_coincidencias($id_form,$filtro,$valor) {
- if($valor !=""){
-$md5_valor = $valor;
-if($filtro !='' ){$w_filtro ="AND md5(binary contenido) = '$md5_valor'";}
-}
-$consulta= "SELECT * FROM form_datos WHERE form_id= '$id_form' AND id_campo = '$filtro' $w_filtro ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-//mysqli_real_escape_string($link,$consulta);
-$sql=mysqli_query($link,$consulta);
-
-if (mysqli_num_rows($sql)!=0){
-mysqli_data_seek($sql, 0);
-while( $row = mysqli_fetch_array( $sql ) )
- {
- $depliegue = formulario_imprimir_linea($row[form_id],$row[control]);
- $titulo = formulario_imprimir_linea($row[form_id],$row[control],'titulos');
- $campos .= " $depliegue ";
-
- }
- $resultado = "
";
- }
-$respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign("mostrar_resultado","innerHTML",$resultado);
- return $respuesta;
-}
-$xajax->registerFunction("mostrar_coincidencias");
-
-
-function matriz_formulario($formulario,$div,$registros,$pagina,$formato){
- $respuesta = new xajaxResponse('utf-8');
-if ( !isset ( $_SESSION['id_empresa'] ) ) {
-$respuesta->addRedirect("index.php");
-return $respuesta;
-}
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$md5_filtro = $formulario["campo_filtro"];
-//$formulario = mysql_seguridad($formulario);
-mysqli_real_escape_string($link,$formulario);
-$perfil = $formulario["form_id_id"];
-$filtro = $formulario["campo_filtro"];
-$control = md5(rand(1,99999999).microtime());
-
-$cantidad = formulario_contar($perfil);
-$formulario_nombre = remplacetas('form_id','id',$perfil,'nombre','') ;
-if($filtro !='' ){$w_filtro ="AND md5(binary contenido) = '$md5_filtro'";}
-if($perfil !=''){$perfil ="AND form_id = '$perfil'";}Else{
- $resultado ="
Por favor seleccione un formulario";
- $respuesta->addAssign($div,"innerHTML",$resultado);
- return $respuesta;
- }
-if($cantidad < 1) {
- $resultado ="
-
- El formulario \"$formulario_nombre[0]\" no tiene registros
-
- ";
- $respuesta->addAssign($div,"innerHTML",$resultado);
- return $respuesta;
-
-}
-
-$fecha_inicio = $formulario["inicio"];
-if($fecha_inicio =="" ) { $fecha_inicio ="2000-01-01";}
-$fin = $formulario["fin"];
-$id_campo = $formulario["id_campo"];
-$busqueda = $formulario["busqueda"];
-
-if($formato =='csv') {$orden = "ORDER BY form_datos_id ASC ";}else{$orden = "ORDER BY form_datos_id DESC ";}
-if($id_campo ==''){
- $campo ='';
-
- }else{
- if($busqueda =='') {
- $resultado ="
Por favor escriba una palabra para buscar";
- $respuesta->addAssign($div,"innerHTML",$resultado);
- return $respuesta;
- }
- $campo ="AND id_campo = '$id_campo'";
-
- }
-
-if($busqueda !=''){$busca ="AND contenido LIKE '%%$busqueda%%'";}Else{$busca ='';}
-
-
-
-$consulta = " SELECT *,from_unixtime(timestamp) AS fecha , form_datos.id AS form_datos_id
- FROM form_datos, form_campos
- WHERE form_datos.id_campo = form_campos.id AND form_datos.id_empresa = '$_SESSION[id_empresa]'
- $busca
- $perfil
- $campo
- $w_filtro
- AND timestamp BETWEEN UNIX_TIMESTAMP('$fecha_inicio')
- AND UNIX_TIMESTAMP('$fin 23:59:59') GROUP BY control $orden";
-
-
-
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)==0){
- $resultado ="
No hay resultados para la consulta ";
- $respuesta->addAssign($div,"innerHTML",$resultado);
- return $respuesta;
-
- }
-if (mysqli_num_rows($sql)!=0){
- $total_registros = mysqli_num_rows($sql);
- if($formato=='csv'){
- $nombre_archivo ="tmp/Formulario_".mktime()."_".$_SESSION['id'].".csv";
- $boton_descarga ="
Descargar ";
- $archivo_reporte=fopen($nombre_archivo , "w");
- $encabezado =";;Periodo\n;;$inicio\n;;$fin \n ";
- fputs ($archivo_reporte,$encabezado);
- $tabla .= "ID;Fecha;Timestamp;Formulario;Campo;Contenido;Control\n";
- fputs ($archivo_reporte,$titulo);
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) )
- {
- $titulo = formulario_imprimir_linea($row[form_id],$row[control],'titulos_csv');
- $linea = formulario_imprimir_linea($row[form_id],$row[control],'linea_csv');
- $formulario_nombre = remplacetas('form_id','id',$row[form_id],'nombre') ;
- $linea = $linea."\n";
- $lineas .= $linea;
- }
- $contenido ="$titulo \n $lineas";
- //rewind($archivo_reporte);
- fputs ($archivo_reporte,$contenido);
- $respuesta->addAssign("boton_descarga","innerHTML",$boton_descarga);
- $respuesta->addAssign($div,"innerHTML",$resultado);
- return $respuesta;
-
- }
- }
- else{
- $respuesta ="
No hay resultados
";
- $respuesta->addAssign($div,"innerHTML",$resultado);
- return $respuesta;
- }
-/// PAGINACION
- if ($pagina =='') {$inicio = 0; $pagina = 1; }
- else { $inicio = ($pagina - 1) * $registros;}
-
- if($total_registros < $registros) { $limite ="";}
- else{$limite =" LIMIT $inicio, $registros ";}
- $consulta_limite = $consulta.$limite;
- $sql=mysqli_query($link,$consulta_limite);
- if (mysqli_num_rows($sql)!='0'){
- $botones .= "
Limpiar ";
- if($formato!='csv'){
- $botones .= "
- Exportar
- ";
- }
- $paginacion ="";
- $paginacion .= $indice;
- $encabezado = "
-
-
-
$botones $paginacion $total_registros registros
-
-
";
-$fila=0;
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
- $formulario_nombre = remplacetas('form_id','id',$row[form_id],'nombre') ;
- $fila = $fila +1;
- if ($fila %2 == 0){$bg='LightCyan';}else{ $bg='FFFFFF';}
- $depliegue = formulario_imprimir_linea($row[form_id],$row[control]);
- $titulo = formulario_imprimir_linea($row[form_id],$row[control],'titulos');
- $menu ="
-
-
-
- ";
- $campos .= "
$menu $depliegue ";
- }
- $resultado .="
";
- }else{
- $resultado .="
No hay resultados para la consulta ";
- }
- //$resultado .="$consulta";
-$respuesta->addAssign("resultados_encabezado","innerHTML",$encabezado);
-$respuesta->addAssign($div,"innerHTML",$resultado);
-
-return $respuesta;
-} $xajax->registerFunction("matriz_formulario");
-
-
-
-function remplacetas($tabla,$campo,$valor,$por,$and){
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-if(@$and !=''){$AND = "AND $and";}else{$AND ="";}
-//$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND order by $campo DESC limit 1";
-$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND order by id DESC limit 1";
-$sql=mysqli_query($link,$consulta);
-if (@mysqli_num_rows($sql)!=0){
-$resultado[] = mysqli_result($sql,0,$por);
-$resultado[] = mysqli_result($sql,0,'id');
-$resultado[] = $consulta;
-$resultado[] = mysqli_result($sql,0,"md5_$por");
-$resultado[] = @mysqli_result($sql,0,"timestamp");
-$resultado[] = @mysqli_result($sql,0,"form_id");
- }else{
- $resultado[0] = '';
- $resultado[1] ="";
- $resultado[2] = $consulta;
- $resultado[3] = NULL;
- $resultado[4] = NULL;
- $resultado[4] = NULL;
- }
-return $resultado;
-}
-
-function mysqli_result($res,$row=0,$col=0){
- $numrows = mysqli_num_rows($res);
- if ($numrows && $row <= ($numrows-1) && $row >=0){
- mysqli_data_seek($res,$row);
- $resrow = (is_numeric($col)) ? mysqli_fetch_row($res) : mysqli_fetch_assoc($res);
- if (isset($resrow[$col])){
- return $resrow[$col];
- }
- }
- return false;
-}
-function remplacetas_orden($tabla,$campo,$valor,$por,$and,$orden){
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-if(@$and !=''){$AND = "AND $and";}else{$AND ="";}
-//$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND order by $campo DESC limit 1";
-$consulta = "SELECT * , md5(binary $por ) as md5_".$por." FROM $tabla WHERE $campo = '$valor' $AND $orden limit 1";
-$sql=mysqli_query($link,$consulta);
-if (@mysqli_num_rows($sql)!=0){
-$resultado[] = mysqli_result($sql,0,$por);
-$resultado[] = mysqli_result($sql,0,'id');
-$resultado[] = $consulta;
-$resultado[] = mysqli_result($sql,0,"md5_$por");
-$resultado[] = mysqli_result($sql,0,"timestamp");
-$resultado[] = mysqli_result($sql,0,"form_id");
- }else{
- $resultado[0] = '';
- $resultado[1] ="";
- $resultado[2] = $consulta;
- $resultado[3] = NULL;
- $resultado[4] = NULL;
- $resultado[4] = NULL;
- }
-return $resultado;
-}
-
-function formulario_campos_select($perfil,$div,$onchange){
- $listado ="";
- $respuesta = new xajaxResponse('utf-8');
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$consulta = "
- SELECT * FROM form_contenido_campos, form_campos
- WHERE form_contenido_campos.id_campo = form_campos.id
- AND id_form = '$perfil'
- ORDER BY campo_nombre ASC";
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-
- $categoria = remplacetas('form_parametrizacion','campo',$perfil,'descripcion'," opcion = 'categoria'") ;
- $categoria = $categoria[0];
-$resultado = "
Campo
-
- Todos los campos ";
-while( $row = mysqli_fetch_array( $sql ) ) {
-$resultado .= " $row[campo_nombre] ";
-if($div =='') {
- if ($row['id_campo'] == "$categoria"){
- $class="active";
- $filtro = formulario_campos_filtro("$perfil","$row[id_campo]","");
- }else { $class=""; $filtro ='';}
- $listado .="$row[id_campo] $row[campo_nombre] $filtro ";
- }
- }
-$resultado .= "
-
"; }
-else{$resultado = '';}
-
-if($div =='') {return $listado;}
-$respuesta->addAssign($div,"innerHTML",$resultado);
-return $respuesta;
-
- }
-$xajax->registerFunction("formulario_campos_select");
-
-
-function formulario_campos_filtro($perfil,$campo,$div,$onchange){
- $respuesta = new xajaxResponse('utf-8');
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$consulta = "
- SELECT md5(binary contenido) as md5_contenido, contenido FROM form_datos
- WHERE form_id = '$perfil'
- AND id_campo = '$campo'
- GROUP BY contenido
- ORDER BY contenido asc";
-
-
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado = "
- Filtro
-
- Seleccione ";
-while( $row = mysqli_fetch_array( $sql ) ) {
-$resultado .= " $row[contenido] ";
- }
-$resultado .= "
-
";
- }
-else{$resultado = "
No se encontraron resultados
";}
-
-if($div !="") {
-$respuesta->addAssign($div,"innerHTML",$resultado);
-return $respuesta;
- }else{return $resultado;}
-
- }
-$xajax->registerFunction("formulario_campos_filtro");
-
-
-//$select = select('form_campos_valores','campo_valor','campo_valor','',"id_form_campo = $id_campo","$id_campo");
-function formulario_consultar($div){
- if($div==''){
- $div = "contenido";
- $resultado = "
Consultas";
- return $resultado;
- }
- $formulario = select('form_id','id','nombre','xajax_formulario_campos_select((this.value),\'div_campos\')',"id_empresa = '$_SESSION[id_empresa]'",'');
- $fecha = time ();
- $ahora = date ( "Y-m-d" , $fecha );
- $peticion = "
-
-
-
-
-
-
-
-
- Formulario
- $formulario
-
-
-
-
-
-
-
-
Consultar
-
-
-";
-$respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign($div,"innerHTML",$peticion);
-return $respuesta;
-}
-$xajax->registerFunction("formulario_consultar");
-
-
-function formulario_campos_procesar($form,$tipo_accion){
- //$form = mysql_seguridad($form);
- $campos_formulario ="";
-$grabar_campos_valores ="";
-$respuesta = new xajaxResponse('utf-8');
-$campo_nombre = $form["campo_nombre"];
-if($campo_nombre =='') {
-$respuesta->addAlert("El Nombre del campo no puede estar vacío");
-$respuesta->addAssign("grupo_campo_nombre","className"," input-group has-error ");
-return $respuesta;
-}
-
-//$campo_nombre = ucfirst(strtolower($campo_nombre));
-@$campo_descripcion = $form["campo_descripcion"];
-@$campo_tipo = $form["campo_tipo"];
-@$campo_area = $form["campo_area"];
-if($campo_area =="") { $campo_area="1";}
-@$misma_area = $form["misma_area"];
-@$campo_orden = $form["campo_orden"];
-@$campo_identificador = $form["campo_identificador"];
-@$activo = $form["activo"];
-@$tipo = $form["tipo"];
-@$editar = $form["editar"];
-@$id_campo_editar = $form["id_campo_editar"];
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-if ($editar == 'editar' AND $tipo_accion =='editar'){
-mysqli_query($link,"
- UPDATE `form_campos`
- SET `campo_nombre` = '$campo_nombre',
- `campo_descripcion` = '$campo_descripcion',
- `orden` = '$campo_orden' ,
- `campo_area` = '$campo_area',
- `campo_tipo` = '$campo_tipo',
- `id_empresa` = '$_SESSION[id_empresa]',
- `activo` = '$activo'
- WHERE `form_campos`.`id` ='$id_campo_editar'
- LIMIT 1");
-$w_campo = "id = '$id_campo_editar'";
-
- }else {
-$id_empresa = $_SESSION['id_empresa'];
-$id_especialista = $_SESSION['id'];
- $buscar_campo_nombre = remplacetas('form_campos','campo_nombre',$campo_nombre,'campo_nombre'," id_empresa = '$id_empresa' AND campo_area = '$campo_area' ") ;
- if($buscar_campo_nombre[0] == $campo_nombre) {
- $respuesta->addAlert("El Nombre del campo ( $campo_nombre ) ya existe en la misma área ");
- $respuesta->addAssign("grupo_campo_nombre","className"," input-group has-error ");
- return $respuesta;
- }
-if($campo_identificador == "") { $campo_identificador = md5($_SESSION['id_usuario']."-".microtime()); }
-$consulta = "
- INSERT INTO `form_campos`
- (`id_especialista`, `campo_nombre`,`campo_descripcion`,`campo_tipo`, `campo_area`, `orden`, `activo`, `identificador`, `id_empresa`)
- VALUES ('$id_especialista','$campo_nombre','$campo_descripcion','$campo_tipo','$campo_area','$campo_orden','1','$campo_identificador','$id_empresa')";
- $sql =mysqli_query($link,$consulta);
- $ultimo_id = mysql_insert_id();
-$w_campo= "identificador = '$campo_identificador'";
-if($sql) {
- $listado_campos = select('form_campos','id','campo_nombre',"xajax_formulario_crear_campo('',(this.value),'div_campos')","id_empresa = '$_SESSION[id_empresa]' AND activo = '1'",'campo_editar','');
- $campos_formulario ="
-
-
- El campo se creó con éxito
- Crear un nuevo campo
- Modificar campo $listado_campos
- ";
- if(@$form['agregar_id_form'] !="") {
- $respuesta->AddScript("xajax_agregar_campos('grabar_campos','contenido','$ultimo_id','$form[agregar_id_form]') ");
- ///$respuesta->addAssign("$div","innerHTML",$resultado);
- //return $respuesta;
- }
- }else {$campos_formulario = "
Problemas al grabar el campo $consulta";}
- }
-
-if($id_campo_editar !='' AND $tipo_accion =='editar'){$id_form_campo = $id_campo_editar;}else {
-//$id_form_campo = mysql_insert_id($link);
-$id_form_campo = $ultimo_id;
-}
-//$respuesta->addAlert("( $campo_tipo / $id_form_campo / $ultimo_id / $form[opciones] ) $consulta");
-//$respuesta->addAssign("contenido","innerHTML","$consulta_campos_valores");
-//return $respuesta;
-if($campo_tipo == '23' ){
-$grabar_campos_valores = "(".$id_form_campo.",'".$form[opciones]."')";
-}
-/// separacion por comas
-else {
-$opciones=str_replace(', ',',',"$form[opciones]");
-$opciones = explode(",",$opciones);
-
-foreach($opciones as $c=>$v){
-
- //if($v !='') {$v = ucfirst(strtolower($v));
- if($v !='') {$v = $v;
-
-$grabar_campos_valores .= "( $id_form_campo ,'$v'),";
- }
-
- }
-$grabar_campos_valores =substr ("$grabar_campos_valores",0,-1);
-} /// fin de separacion por comas
-
-$borrar_campos_valores = "DELETE FROM `form_campos_valores` WHERE `id_form_campo` = '$id_form_campo'";
-$consulta_campos_valores = "INSERT INTO form_campos_valores (id_form_campo,campo_valor) VALUES ".$grabar_campos_valores."";
-
- $sql_borrar_campos_valores =mysqli_query($link,$borrar_campos_valores);
- $sql_campos_valores =mysqli_query($link,$consulta_campos_valores);
-
- $campos=mysqli_query($link,"
- SELECT id_form_campo, campo_nombre, campo_descripcion, tipo_campo_accion, campo_area, orden
- FROM `consulta_campos` , `tipo_campo`
- WHERE $w_campo
-
- AND form_campos.campo_tipo = form_tipo_campo.id_tipo_campo
- LIMIT 1");
-
-
-$campos_formulario .= "
";
-while( @$row = mysqli_fetch_array( $campos ) ) {
-if ($row['tipo_campo_accion']=='textarea'){
-$campos_formulario .= "
".$row['orden']."";}
-else{
-$campos_formulario .= "
".$row['orden']." ";
- } }
-
-$respuesta->addAssign("formulario_campos_$misma_area","innerHTML",$campos_formulario);
-return $respuesta;
-}$xajax->registerFunction("formulario_campos_procesar");
-
-function formulario_opciones_select($tipo,$id_campo){
- $valores="";
- $respuesta = new xajaxResponse('utf-8');
- $div = 'opciones_select';
-if($id_campo !=''){
-$consulta= "SELECT * FROM form_campos_valores WHERE id_form_campo = '$id_campo'";
-$link = Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-while( $row = mysqli_fetch_array( $sql ) ) {
- $valores .= "$row[campo_valor],";
- }
- $valores = substr($valores,0,-1);
- }
- }
-if($tipo =='8'){
-$resultado = "
$valores ";
- }
-elseif($tipo =='9'){
-$resultado = "
$valores ";
- }
-elseif($tipo =='16'){
- if($valores =='') {$valores = "1,10";}
-$resultado = "
$valores ";
- }
-elseif($tipo =='17'){
- $resultado ="
";
-}
-else{
-$resultado = "
$valores ";
-}
-$respuesta->addAssign("$div","innerHTML",$resultado);
-return $respuesta;
-}
-$xajax->registerFunction("formulario_opciones_select");
-
-
-
-function crear_campos_formulario($form,$id_form){
- $id_form=$id_form;
- $area="";
- $Campo_tipo_definido="";
- $Tipo_campo="";
- $campo_nombre ="";
- $campo_descripcion ="";
- $editar ="";
-
-$form = mysql_seguridad($form);
-$respuesta = new xajaxResponse('utf-8');
-if($form['div'] !="") { $div = $form['div'];}else{$div="div_campos";}
-
-@$especialista = $form["id_especialista"];
-@$id_campo_editar = $form["id_campo_editar"];
-$resultado = "
-
-$id_campo_editar";
-$link = Conectarse();
-mysqli_set_charset($link, "utf8");
-$capa = "crear_campos_consulta_$area";
-$formulario ="manejo_campos_$area";
-
-if ($id_campo_editar > 0){
-$sql=mysqli_query($link,"SELECT * FROM form_campos WHERE id = '$id_campo_editar' AND activo ='1'");
-while( $row = mysqli_fetch_array( $sql ) ) {
-$resultado .="";
-$campo_descripcion =$row['campo_descripcion'];
-$campo_nombre =$row['campo_nombre'];
-$orden =$row['orden'];
-$especialista =$row['id_especialista'];
-
-$formulario ="manejo_campos_$id_campo_editar";
-$editar="
-
-
-
";
-$Campo_tipo_definido= $row['campo_tipo'];
-}
- }
-
-$Tipo_campo ="
Tipo:
-
";
-$tipos=mysqli_query($link,"
- SELECT *
- FROM `form_tipo_campo`
- WHERE activo = '1' ORDER BY tipo_campo_nombre
- ");
-while( $row = mysqli_fetch_array( $tipos ) ) {
-
-if($row['id_tipo_campo'] == $Campo_tipo_definido){
-$Tipo_campo .= " > ".$row['id_tipo_campo']." - ".$row['tipo_campo_nombre']." < ";
- }
-$Tipo_campo .= " ".$row['tipo_campo_nombre']." [".$row['id_tipo_campo']."] ";
-}
-$Tipo_campo .="
";
-
-
-if($id_form !="") {
-
-$agregar_a_formulario = "
-
-
-
- Incluir este campo en el formulario actual
-
-
- ";
-}else {$agregar_a_formulario = "";}
-
-$identificador = md5($_SESSION['id']."-".microtime());
-$areas = select('form_areas','id','nombre','',"id_empresa = '$_SESSION[id_empresa]'",'campo_area',"");
-$resultado .= "
-
-
";
-$resultado = "
-
-
- Crear un nuevo campo
- $resultado
-
-";
-$respuesta->addAssign("$div","innerHTML",$resultado);
-return $respuesta;
-}
-$xajax->registerFunction("crear_campos_formulario");
-
-function formulario_crear_campo($area,$campo,$div){
- $campos_formulario="";
- $misma_area="";
-$respuesta = new xajaxResponse('utf-8');
- if($div==''){
- $div = "contenido";
- $cerrar = "
[X] ";
-$resultado = "
Campos ";
-
- return $resultado;
- }
- //$div="div_campos";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$consulta_campos ="SELECT id, campo_nombre, campo_descripcion, tipo_campo_accion, campo_area, form_campos.activo, form_campos.campo_tipo
- FROM `form_campos` , `form_tipo_campo`
- WHERE id_empresa = '$_SESSION[id_empresa]' AND id = $campo
- AND form_campos.campo_tipo = form_tipo_campo.id_tipo_campo
- ORDER BY orden ASC";
- $campos=mysqli_query($link,$consulta_campos);
-if($campo ==''){
-
- $listado_campos = select('form_campos','id','campo_nombre',"xajax_formulario_crear_campo('',(this.value),'$div')","id_empresa = '$_SESSION[id_empresa]' AND activo = '1'",'campo_editar','');
-$areas = tabla_areas('form_areas','id','nombre,descripcion,estado,orden','',"",'Areas','');
-$tabla_campos = campos_tabla('id_especialista','','20','0');
-$campos_formulario = "
-
-
-
-
-
-
-
-
-
-
-
-
-
$tabla_campos
-";
-}else{
-$campos_formulario .= "
";
-while( $row = mysqli_fetch_array( $campos ) ) {
-// if($row[campo_tipo] =='8'){
- $respuesta->addScript("xajax_formulario_opciones_select('$row[campo_tipo]','$campo') ");
-// }
- $Tipo_campo ="
Tipo:
-
";
-$tipos=mysqli_query($link,"
- SELECT *
- FROM `form_tipo_campo`
- WHERE activo = '1'
- ");
-while( $row_tipo = mysqli_fetch_array( $tipos ) ) {
-
-if($row_tipo['id_tipo_campo'] == $row['campo_tipo'] ){
-$Tipo_campo .= " > ".$row_tipo['id_tipo_campo']." - ".$row_tipo['tipo_campo_nombre']." < ";
- }
-$Tipo_campo .= " ".$row_tipo['id_tipo_campo']." - ".$row_tipo['tipo_campo_nombre']." ";
-}
-$Tipo_campo .="
";
-
-if($row['activo'] =='1'){$activo = "
Activo: el campo puede ser usado en formularios ";}
-else{$activo = "
Inactivo: El campo NO se usará ";}
-$formulario = "editar_campos";
-$areas = select('form_areas',"id",'nombre','',"id_empresa = '$_SESSION[id_empresa]'",'campo_area',"$row[campo_area]");
-
-$campos_formulario .= "
-
-
-
-
-
-
-
";
-
- }
- }///fin de edicion
-
-
-
-$respuesta->addAssign($div,"innerHTML",$campos_formulario);
-
-return $respuesta;
-}
-$xajax->registerFunction("formulario_crear_campo");
-
-function agregar_campos($tipo,$div,$id,$formulario){
-$respuesta = new xajaxResponse('utf-8');
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-if($tipo==''){
- $div="contenido";
-$resultado = "
Editar";
-print $resultado;
-return;
- }
- if($tipo=='consultar_listado'){
- $consulta="SELECT * FROM form_id WHERE id_empresa = '$_SESSION[id_empresa]' ORDER BY nombre ASC";
- $sql =mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado .="Formulario:
";
-$resultado .= "Selecciona ";
-while( $row = mysqli_fetch_array( $sql ) ) {
-$resultado .= "$row[nombre] ";
- }
-$resultado .=" $cerrar";
- }else {
-$resultado = "
No hay formularios para editar
";
- }
- }
-
-if ($tipo=='consultar_campos'){
- /// restringe campo a propios form_campos.id_empresa = '$_SESSION[id_empresa]' AND
- $consulta="
- SELECT form_contenido_campos.id_campo, form_contenido_campos.id,
- campo_nombre, obligatorio,control,multiple,form_contenido_campos.orden
- FROM form_contenido_campos, form_campos
- WHERE form_contenido_campos.id_form = $id
- AND form_contenido_campos.id_campo = form_campos.id
- ORDER BY form_contenido_campos.orden";
- $sql =mysqli_query($link,$consulta);
- $consulta_nombre="SELECT * FROM form_id WHERE id ='$id'";
- $sql_nombre =mysqli_query($link,$consulta_nombre);
- $nombre =mysqli_result($sql_nombre,0,"nombre");
- $id_formulario = $id;
- //if (mysqli_num_rows($sql)!='0'){
-$resultado ="$cerrar
$nombre
- ";
-$resultado .= "
-
- Campo
-
-
-
-
-
- Orden
-
-
- Multiple
-
-
- Borrar
-
-
-
";
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- /* $multiple = remplacetas('form_parametrizacion','campo',"$id",'descripcion'," tabla='form_id' and opcion = '$row[id]' AND descripcion REGEXP '^multiple:' ") ;
- $multiple = explode(":",$multiple[0]);
- $multiple = $multiple[1];*/
-
- //$multiple = $multiple[0];
-
- $privado = remplacetas('form_parametrizacion','campo',"$id_formulario",'opcion'," tabla='form_id' AND descripcion ='$row[id_campo]' AND opcion REGEXP '^privacidad:' ") ;
- $privado = explode(":",$privado[0]);
- $privado = $privado[1];
- if($privado == "") { $privado="0";}
-
-
- //$multiple = $multiple[0];
-$resultado .= "
-
- $row[id_campo] $row[campo_nombre]
-
-
- Obligatorio
-
-
- 0
-
- 1
-
-
- Privacidad
-
- 0
-
- 1
-
-
-
-
-
-
-
-
";
- }
-
-$consulta_campos_todos ="SELECT form_campos.id, form_campos.campo_nombre, form_campos.campo_descripcion FROM form_campos WHERE form_campos.id_empresa = '$_SESSION[id_empresa]'
- ORDER BY campo_nombre ";
-$sql_consulta_campo =mysqli_query($link,$consulta_campos_todos);
-
-$crear_nuevo ="
-
-
-
-
-
-
-";
- while( $row = mysqli_fetch_array( $sql_consulta_campo ) ) {
-$valores .= "
$row[campo_nombre] [$row[id]] ";
- }
-$resultado .="
-
-
-
-$crear_nuevo ";
-
- }/// fin de consultar_campos
-
-if($tipo=='grabar_campos'){
- if ($id=="nuevo")
-{
-
-
-}
-elseif($id =="") { $div='atencion';$resultado="
Seleccione un campo";}
-else {
-$id_form=func_get_arg(3);
-$consulta = "SELECT id_campo FROM form_contenido_campos WHERE id_empresa = '$_SESSION[id_empresa]' AND id_campo= '$id' AND id_form= $id_form";
-$sql_consulta =mysqli_query($link,$consulta);
-if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];}if(mysqli_num_rows($sql_consulta) =='0') {
-$microtime = microtime();
-$orden = remplacetas('form_contenido_campos','id_form',$id_form,'orden',"") ;
-$nuevo_orden = $orden[0]+1;
-$consulta_grabar=" INSERT INTO form_contenido_campos (
-`id_campo` ,
-`id_empresa` ,
-`orden` ,
-`id_form` ,
-`obligatorio`,
-`control`
-)
-VALUES (
-'$id', '$id_empresa','$nuevo_orden', '$id_form', '0', md5('$microtime' + rand())
-)";
-$sql_consulta_grabar =mysqli_query($link,$consulta_grabar);
-$respuesta->addScript("xajax_agregar_campos('consultar_campos','$div','$id_form')");
-return $respuesta;
- }else{
-$div='atencion';$resultado="
El campo ya pertenece a esta consulta ";
- }
- }
-
- }///fin de grabar_campos
-
-if($tipo=='eliminar'){
-$confirmar=func_get_arg(3);
-
-
-if($id==''){
-$id_c=func_get_arg(4);
-$capa_original=func_get_arg(5);
-$resultado = "
- Seguro que desea eliminar el campo de esta consulta?
-
[SI]
-
[NO]
-
- ";}
- else{
- if($id=='x'){ /// si se pasa una x como argumento se regresa a la capa original
-$resultado .= "
-
- ";
- }else{
-$consulta="DELETE FROM `form_contenido_campos` WHERE `control` = '$confirmar' LIMIT 1";
-$sql_consulta_eliminar = mysqli_query($link,$consulta);
-$div=func_get_arg(5);
-$id_consulta=func_get_arg(4);
-$respuesta->addScript("xajax_agregar_campos('consultar_campos','$div','$id_consulta')");
-
- }
- }
-
- }/// fin de eliminar
-if($tipo == 'obligatorio'){
-if($id == '0'){$id='1';}else{$id='0';}
-$control = func_get_arg(3);
-$consulta= "UPDATE `form_contenido_campos` SET `obligatorio` = '$id' WHERE `control` = '$control' LIMIT 1 ";
-$sql_consulta_grabar =mysqli_query($link,$consulta);
-$a ="
$id
- ";
-$respuesta->addAssign($div,"innerHTML",$a);
-return $respuesta;
-
- }/// fin de obligatorio
-if($tipo == 'orden'){ /// orden
-$control = func_get_arg(3);
-$consulta= "UPDATE `form_contenido_campos` SET `orden` = '$id' WHERE `control` = '$control' LIMIT 1 ";
-$sql_consulta_grabar =mysqli_query($link,$consulta);
-$a ="
$id
- ";
-
-$respuesta->addAssign($div,"innerHTML",$a);
-return $respuesta;
-
- }/// fin de obligatorio
-
-if($tipo == 'prellenado'){
-if($id == '0'){$id='1';}else{$id='0';}
-$control = func_get_arg(3);
-$consulta= "UPDATE `consulta_tipo_campos` SET `prellenado` = '$id' WHERE `control` = '$control' LIMIT 1 ";
-$sql_consulta_grabar =mysqli_query($link,$consulta);
-$a ="
$id
- ";
-$respuesta->addAssign($div,"innerHTML",$a);
-return $respuesta;
-
- }/// fin de oprellenado
-$respuesta->addAssign($div,"style.display","block");
-$respuesta->addAssign($div,"innerHTML",$resultado);
-return $respuesta;
-
- }
-$xajax->registerFunction("agregar_campos");
-
-function formulario_nuevo($formulario,$div){
- $resultado ="";
- $formulario = mysql_seguridad($formulario);
- $respuesta = new xajaxResponse('utf-8');
- //$formulario=mysqli_real_escape_string($formulario);
- $id_empresa= $_SESSION['id'];
- if($div==''){
- $div = "contenido";
-
-$resultado .= "
Formulario ";
-
- return $resultado;
- }
-if($formulario ==''){
- $formulario_nombre = "nuevo_formulario";
- $formulario_respuesta = select('form_id','id','nombre','',"id_empresa = '$_SESSION[id_empresa]'",'formulario_respuesta','');
-$resultado .= "
-
-Crear un formulario
-
- Nombre para el formulario
-
-
-
- Descripción
-
-
-
- Formulario anidado con:
- $formulario_respuesta
-
-
- Grupo:
-
-
-
-
- Privado
-
- Público
-
-
-
-
-
- Grabar
-
-
- ";
-
- }else{
-$control = md5(rand(1,99999999).microtime());
-
-$nombre = $formulario['nombre']; // aa
-$descripcion = $formulario['descripcion']; // dxddc
-$publico = $formulario['publico']; // dxddc
-$grupo = $formulario['grupo'];
-$id_empresa = $_SESSION['id_empresa'];
-
-if($publico =='') {$publico ='0';}
-$propietario= $_SESSION['id'];
-$formulario_respuesta = $formulario['formulario_respuesta']; // dxddc
-$link=Conectarse();
-@$formulario=mysqli_real_escape_string($link,$formulario);
-mysqli_set_charset($link, "utf8");
-$consulta = "INSERT INTO `form_id` ( `nombre`, `descripcion`, `activo`, `modificable`, `publico`, `propietario`, `formulario_respuesta`, `id_empresa`)
-VALUES ('$nombre', '$descripcion', '1', '1', '$publico', '$propietario','$formulario_respuesta','$id_empresa');";
-$sql=mysqli_query($link,$consulta);
-$ultimo_id = mysql_insert_id();
- if($grupo !="") {
- $consulta_grupo = "INSERT INTO form_grupo set id = '$ultimo_id',grupo = '$grupo' ,id_empresa= '$id_empresa'";
- $sql_grupo=mysqli_query($link,$consulta_grupo);
- }
-
-$respuesta->addscript("xajax_formulario_listado('','contenido'); ");
-}
-$respuesta->addAssign($div,"innerHTML",$resultado);
-
-return $respuesta;
-}$xajax->registerFunction("formulario_nuevo");
-
-
-function formulario_listado($filtro_grupo,$div){
- $item="";
- $grupo_formularios="";
-if ( !isset ( $_SESSION['id_empresa'] ) ) {
- $respuesta = new xajaxResponse('utf-8');
-$respuesta->addRedirect("index.php");
-return $respuesta;
-}
-
- if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];} if($div==''){
- $div = "contenido";
- if(isset($_SESSION['grupo_formularios'])) { $sesion_grupo_formularios = $_SESSION['grupo_formularios'];}else { $sesion_grupo_formularios = "";}
-$resultado = "
Formularios ";
-
- return $resultado;;
- }
-$control = md5(rand(1,99999999).microtime());
-$respuesta = new xajaxResponse('utf-8');
-$_SESSION['grupo_formularios'] = $filtro_grupo;
-
-$link=Conectarse();
- $id=mysqli_real_escape_string($link,'$id');
-mysqli_set_charset($link, "utf8");
-if($filtro_grupo =="") {
-$consulta = "SELECT * FROM form_id WHERE id_empresa ='$_SESSION[id_empresa]' ORDER BY orden ASC";
- }
-else {
-$consulta = "
-SELECT * FROM form_id, form_grupo
-WHERE form_grupo.id = form_id.id
-AND form_grupo.grupo = '$filtro_grupo'
-AND form_id.id_empresa ='$_SESSION[id_empresa]' ORDER BY orden ASC";
-}
-$sql=mysqli_query($link,$consulta);
-if($filtro_grupo !="") {
- $leyenda_filtro_grupo ="
Grupo $filtro_grupo ";
-
- }else{ $leyenda_filtro_grupo ="
Administración de Formularios ";
- unset($_SESSION['grupo_formularios']);
- }
-$resultado_link = "
Formularios ";
-$respuesta->addAssign("link_formulario","innerHTML",$resultado_link);
-
-
-$divider = 1;
-$columnas = intval(12/$divider);
-// $listado_grupos = select_empresa('form_grupo','grupo','grupo',"xajax_formulario_listado((this.value),'contenido')","AGRUPADO",'','',"$id_empresa");
- $listado_grupos = select_empresa('form_id, form_grupo','grupo','grupo',"xajax_formulario_listado((this.value),'contenido')","form_grupo.id = form_id.id",'','',"$id_empresa");
- $listado_grupos ="
-
- Seleccione un grupo de formularios
- $listado_grupos
-
-
- ";
- $clonar = clonar_formulario($formulario,$id_empresa,"","","formato");
- $mover = mover_formulario($formulario,$id_empresa,"formato");
- $nuevo_formulario = "
-
";
- $resultado = "
-
- $nuevo_formulario
-
-
- $listado_grupos
-
- $leyenda_filtro_grupo
-
-
-
- ";
-
-if (mysqli_num_rows($sql)!='0' ){
- $i =0;
-
- while( $row = mysqli_fetch_array( $sql ) ) {
- $id= $row['id'];
- $C = $id;
-
- $cantidad = formulario_contar($row['id']);
- if($cantidad >0) {$cantidad ="
Llenado: $cantidad veces ";}else{$cantidad = "";}
- $propietario = remplacetas('usuarios','id',$row['propietario'],'email',"") ;
- $estado = remplacetas('form_id','id',$id,'publico',"") ;
- $nombre_formulario = remplacetas('form_id','id',$id,'nombre',"") ;
- $descripcion_formulario = remplacetas('form_id','id',$id,'descripcion',"") ;
- $estado = "
-
- Contenido privado
-
- Público
-
- ";
- $modificable = remplacetas('form_id','id',$id,'modificable',"") ;
- $modificable = "
-
- Formulario privado
-
- Público
-
- ";
-
-
- $primer = formulario_uso("$id",'','primer') ;
- if(@$primer[0] !='') {$primer = "
Primer registro: ".date ( "Y-m-d h:i:s" , $primer[0])." ";}else{$primer='';}
- $ultimo = formulario_uso("$id",'','ultimo') ;
- @$ultimo_control = $ultimo[1];
- if(@$ultimo[0] !='') {$ultimo = "
Último registro: ".date ( "Y-m-d h:i:s" , $ultimo[0])." ";}else{$ultimo='';}
-
- $nombre = editar_campo("form_id",$row['id'],"nombre","","","","");
- $orden = editar_campo("form_id",$row['id'],"orden","","","","");
- $descripcion = editar_campo("form_id",$row['id'],"descripcion","","","","");
- $geo = buscar_campo_tipo($id,"14");
- $email_envio = remplacetas('form_parametrizacion','campo',"$row[id]",'descripcion'," tabla='form_id' and opcion = 'email'") ;
- $mensaje_envio = remplacetas('form_parametrizacion','campo',"$row[id]",'descripcion'," tabla='form_id' and opcion = 'mensaje_envio'") ;
- if($geo[0] !='') { $mapa= "
Mapa";}else {$mapa='';}
-
- if($i % $divider==0) {
-
-//$item .= "";
- }
- $i++;
- $grupo_actual = remplacetas('form_grupo','id',$row['id'],'grupo',"") ;
- if(is_null($grupo_actual[3])) {
- $valores_grupo['id']=$row['id'];
- $valores_grupo['grupo']="";
- $grupo = "
-
- ";
- // $grupo = "Grupo ".editar_campo("form_grupo",$row['id'],"grupo","","","");
- }else
- {
- $grupo = "".editar_campo("form_grupo",$row['id'],"grupo","","","","");
- }
-
-$item .= "
-
-
-
-
-
-
-
- Creación: $row[creacion] / $propietario[0]
- $cantidad
- $ultimo
- $primer
- $mapa
-
-
-
-
-
$row[id]
-
-
-
-
-
-
-
-
-
-
-
-
Agregar o quitar campos
-
-
-
-
-
-
-
- Nombre: $nombre
- Descripción: $descripcion
- Orden: $orden Grupo: $grupo
-
-
-
Mensaje de respuesta
-
-
$mensaje_envio[0]
-
Soporta CSS3, HTML5 y Bootstrap
-
Grabar y previsualizar
-
-
-
-
-
Previsualización
-
- $mensaje_envio[0]
-
-
-
-
-
-
-
-
-
-
- $estado
-
-
- $modificable
-
-
-
-
-
- ";
-
-
- if($i%$divider==0) {
- $item .= "
";
- }
-
- }
-
-
- //$resultado .="";
- }
-
-
-else{ $resultado .= "
Aún no se han diseñado formularios ";}
-
- $resultado_formulario ="
-
-
- ";
-/*
-
- */
- $resultado = "$resultado $resultado_formulario ";
-$respuesta->addAssign($div,"innerHTML",$resultado);
-
-return $respuesta;
-}$xajax->registerFunction("formulario_listado");
-
-function formulario_eliminar($id,$tipo) {
- $respuesta = new xajaxResponse('utf-8');
- $nombre = remplacetas('form_id','id',$id,'nombre',"") ;
- $nombre_form = $nombre[0];
- if($tipo =='') {
-$resultado ="
";
-}elseif($tipo=='cancelar') {
- $resultado ="
Eliminar";
-}elseif($tipo =='eliminar'){
-$consulta = "DELETE FROM form_id WHERE form_id.id = '$id' ";
-$link=Conectarse();
- $sql=mysqli_query($link,$consulta);
- if($sql) {
- $respuesta->addAlert("Se eliminó el formulario \" $nombre_form \" ");
- $respuesta->addAssign("panel_$id","innerHTML","");
- return $respuesta;
-
- }
-}
-else {}
-$respuesta->addAssign("eliminar_$id","innerHTML",$resultado);
-
-return $respuesta;
-}$xajax->registerFunction("formulario_eliminar");
-
-
-function campo_multiple($id_campo,$id_form,$control,$item){
-//if ( !isset ( $_SESSION['id'] ) ) { return;}
-
- if($item==''){$item=1;}
- $id= $item;
-$render = formulario_campos_render($id_campo,$id_form,$control,$item+1);
- $ingredientes = "
-
- $render
-
-
-
-
- ";
- $boton= "
".($item+1)."
- Agregar campo
-
";
-$div = "id_campo_$id_campo"."_".$id;
-$respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign($div,"innerHTML",$ingredientes);
-$respuesta->addAssign("boton_".$id_campo."","innerHTML","$boton ");
-return $respuesta;
-
-}
-$xajax->registerFunction("campo_multiple");
-
-
-function formulario_campos_render($id_campo,$id_form,$control,$item,$id_dato){
-$cols ="";
-$style="";
-$campo_multiple="";
-$render="";
- if($id_form !="") {
- $w_form = " AND form_contenido_campos.id_form = '$id_form' ";
- }
- else{
- $w_form ="";
- }
-
-$consulta ="
- SELECT *
- FROM form_contenido_campos,form_campos, form_tipo_campo
- WHERE form_contenido_campos.id_campo = '$id_campo'
- $w_form
- AND form_contenido_campos.id_campo = form_campos.id
- AND form_tipo_campo.id_tipo_campo = form_campos.campo_tipo ";
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- $sql=mysqli_query($link,$consulta);
- if (mysqli_num_rows($sql)!='0'){
- if($id_dato !='') {
- $value = remplacetas('form_datos','id',$id_dato,'contenido'," control = '$control'") ;
- $multiple='0';
- $esta_editando =1;
- }
- else {
- $value = remplacetas('form_datos','id_campo',$id_campo,'contenido'," control = '$control'") ;
- $multiple=mysqli_result($sql,0,"multiple");
- }
- if($item=='') {$item ="0";}else {$item=$item;}
- $clase_item="clase_$id_campo";
-
- if($value[0] !='') {$value= "$value[0]";}ELSE{$value='';}
- $campo_nombre=mysqli_result($sql,0,"campo_nombre");
- $campo_descripcion=mysqli_result($sql,0,"campo_descripcion");
- $campo_tipo_accion=mysqli_result($sql,0,"tipo_campo_accion");
- $campo_obligatorio=mysqli_result($sql,0,"obligatorio");
- if($campo_obligatorio =='1') {$obligatorio ="danger";}else{$obligatorio ="default";}
-
- if($campo_tipo_accion == 'text'){$render = "
";}
- elseif($campo_tipo_accion == 'date'){$render = "
";}
- elseif($campo_tipo_accion == 'rango'){
- $rango = rango("form_campos_valores","campo_valor","id_form_campo","$id_campo","$value","".$id_campo."[".$item."]",""); $render = "$rango
$campo_descripcion ";}
- elseif($campo_tipo_accion == 'mapa'){
- $lat="";
- $lon="";
- $zoom="";
- if($value !=""){
-
- $campos = explode(" ",$value);
- $lat = $campos[0];
- $lon = $campos[1];
- $zoom = $campos[2];
- if($lat =="") {
- $localizacion = remplacetas('form_campos_valores','id_form_campo',$id_campo,'campo_valor',"") ;
- //$render= $localizacion[0];
- $campos = explode(" ",$localizacion[0]);
- $lat = $campos[0];
- $lon = $campos[1];
- $zoom = $campos[2];
-
- }
- }
-
- $render .= "
-
-
-
-
-
- ";
- $cols='12';
- }
-elseif($campo_tipo_accion == 'email'){$render = "
-
-
Escriba un email válido
";}
- elseif($campo_tipo_accion == 'envio'){$render = "
-
-
Se enviará un email
";}
- elseif($campo_tipo_accion == 'textarea'){
- $render = "
-
-
-
$value ";
- $cols='12';
- }
- //$subir_imagen = subir_imagen('');
- elseif($campo_tipo_accion == 'imagen'){
- $style ="display:hidden";
- // $gps = leer_exif($file);
- $render= "
"; //subir_imagen('',$id_campo[$item]);
- $cols='12'; }
-
- elseif($campo_tipo_accion == 'html'){
- $render = "
-
-
Editor HTML
-
-
$value
-
-
-
- ";
- $cols='12';
- /*$respuesta = new xajaxResponse('utf-8');
- $respuesta->addscript("$(document).ready(function() {
- $('.$clase_item').summernote();
- });");
- */
- }
- elseif($campo_tipo_accion == 'limit'){
- $limite = limite("".$id_campo."[".$item."]",'','limite');
- $rows = ceil($limite / 50 )+1;
- $render = "$limite /
-
-
-
$value ";
- $cols='12';
- }
- elseif($campo_tipo_accion == 'select'){
-
- //$select = select('form_campos_valores','campo_valor','campo_valor','',"id_form_campo = $id_campo",$id_campo."[".$item."]");
- $select = select_edit($id_campo,$id_form,"$value",$id_campo."[".$item."]",$control);
- $render = "$select
$campo_descripcion "; $cols='12'; }
- elseif($campo_tipo_accion == 'radio'){
- $select = radio_edit($id_campo,$id_form,$value,$id_campo."[".$item."]",$control);
- $render = "$select
$campo_descripcion ";
- $cols='12';
- }
- elseif($campo_tipo_accion == 'radio_agrupado_campos'){
- //radio_agrupado_linea($id_campo,$form_id,$valor,$name,$control)
- $campos_valores = remplacetas('form_campos_valores','id_form_campo',$id_campo,'campo_valor',"") ;
- $mensaje = remplacetas('form_campos','id',$id_campo,'campo_descripcion',"") ;
- $campos = explode(":",$campos_valores[0]);
- $titulos = explode(";",$campos[0]);
- $campos_incluidos = explode(";",$campos[1]);
- for($i=0;$i
$campos_incluidos[$i] ";
- //$select = radio_agrupado_linea($id_campo,$id_form,$value,$id_campo."[".$item."]",$control);
- $render = "
-
-
-
- $mensaje[0]
- $listado_titulos
- $listado_campos
-
-
-
";
- $cols='12';
- }
- elseif($campo_tipo_accion == 'radio_agrupado_linea'){
-
- //$select = select('form_campos_valores','campo_valor','campo_valor','',"id_form_campo = $id_campo",$id_campo."[".$item."]");
- $select = radio_agrupado_linea($id_campo,$id_form,$value,$id_campo."[".$item."]",$control);
- $render = " ";
- $cols='12';
- }
- elseif($campo_tipo_accion == 'checkbox'){
-
- //$select = select('form_campos_valores','campo_valor','campo_valor','',"id_form_campo = $id_campo",$id_campo."[".$item."]");
- $select = checkbox_edit($id_campo,$id_form,$value,$id_campo."[".$item."]",$control);
- $render = "$select $campo_descripcion ";}
- elseif($campo_tipo_accion == 'combo'){
- //$select = select('form_campos_valores','campo_valor','campo_valor','',"id_form_campo = $id_campo",$id_campo."[".$item."]");
- $select = combo_select($id_campo,$id_form,$value,$id_campo."[".$item."]",$control,"");
- $render = "$select $campo_descripcion ";
- $cols='12'; }
- elseif($campo_tipo_accion == 'relacion'){
- $select = relacion_select($id_campo,$id_form,$value,$id_campo."[".$item."]",$control,"");
- $render = "$select $campo_descripcion ";
- $cols='12'; }
- elseif($campo_tipo_accion == 'buscador'){
- $select = buscador_campo($id_campo,$id_form,$value,$id_campo."[".$item."]",$control,"");
- $render = "$select $campo_descripcion ";
- $cols='12'; }
- elseif($campo_tipo_accion == 'base'){
- $select = buscador_base($id_campo,$id_form,$value,$id_campo."[".$item."]",$control,"");
- $render = "$select ";}
- elseif($campo_tipo_accion == 'vinculado'){
- $vinculado = remplacetas('form_campos_valores','id_form_campo',$id_campo,'campo_valor',"") ;
- $select = formulario_areas($vinculado[0],'campos');
- $render = "
- $select
- ";
- $cols='12';
- }
- elseif($campo_tipo_accion == 'number'){
- $render = "
-
- (solo números)
";
- $cols='12';
- }
-
- elseif($campo_tipo_accion == 'password'){
- if( $control != "") {
- $render="";$label=""; $campo_tipo_accion="oculto";
- }else {
- $render = "
-
- ";
- }
- //else {}
- $cols='12'; }
- elseif($campo_tipo_accion == 'unico'){
- $render ="
-
";
- }
- else{$render = " ";}
- if($multiple =='1'){
-
-
- $campo_multiple = "
-
- ";
-}
- if($item == 0) { $label = " $campo_nombre ";}
- else {$label = "$campo_nombre $campo_obligatorio ";}
- ///// CAMPOS QUE NO SE MOSTRARAN
- if($campo_tipo_accion == 'imagen'){
- $label="";
- $campo_descripcion="";
- }
- if($cols =="") {$cols = "6";}
- $input = "
-
-
-$campo_multiple
-
- ";
-
-
-if($campo_tipo_accion != "oculto") {
- $input= $input;
- }else { $input ="";}
-
- }
- return $input;
-}
-
-function validar_email($email) {
-
-if (preg_match('/^[^0-9][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[@][a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)*[.][a-zA-Z]{2,4}$/',$email)) {
- return 1;
-}else{
- return 0;
-}
-}
-
-function formulario_valor_campo_ORIGINAL($perfil,$id_campo,$valor,$id_control){
-
-
-//if($id_control !=""){ $control ="AND `control` = '$id_control'";}else {$control ="";}
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$valor=mysqli_real_escape_string($link,$valor);
-if($valor !=""){ $valor ="AND md5(contenido) LIKE '$valor'";}else {$valor ="";}
-$consulta = "SELECT * FROM `form_datos` WHERE `form_id` = '$perfil' AND id_campo='$id_campo' $valor AND `control` = '$id_control' ORDER BY timestamp DESC limit 1";
-$sql =mysqli_query($link,$consulta);
-$cant =mysqli_num_rows($sql);
-
-if (mysqli_num_rows($sql) == '0'){
- $existe = NULL;
- }else {
-
-$control=mysqli_result($sql,0,"control");
-$timestamp=mysqli_result($sql,0,"timestamp");
-mysqli_data_seek($sql, 0);
-if($cant === 1) {
- $contenido=mysqli_result($sql,0,"contenido");
- }else {
-while( $row = mysqli_fetch_array( $sql ) ) {
- $contenido .= "$row[contenido]\n ";
- }
- }
-$existe[]= $control;
-$existe[] = $timestamp;
-$existe[] = $consulta;
-$existe[] = $contenido;
-}
-return $existe;
- }
-
-
-
-function formulario_valor_campo($perfil,$id_campo,$valor,$id_control,$orden,$timestamp){
-$contenido="";
-if ($timestamp != ""){$where_timestamp = "AND form_datos.timestamp = '$timestamp' ";}ELSE { $where_timestamp = ""; }
-//if($id_control !=""){ $control ="AND `control` = '$id_control'";}else {$control ="";}
-$campo_multiple = remplacetas("form_contenido_campos","id_campo",$id_campo,"multiple"," id_form ='$perfil'");
-$tipo_campo = remplacetas("form_campos","id","$id_campo","campo_tipo","");
-$campo_multiple = $campo_multiple[0];
-if($tipo_campo[0] =="24") {$campo_multiple = "1";}
-/// SI EL CAMPO ES MULTIPLE O CHECK BOX MUESTRA LAS MULTIPLES ENTRADAS
-if($campo_multiple !="1" ){ $limite =" asc limit 1 ";}else {$limite =" asc ";}
-if(@$orden !=""){ $campo_orden =" AND orden ='$orden' ";}else {$campo_orden ="";}
-
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$valor=mysqli_real_escape_string($link,$valor);
-if($valor !=""){ $valor ="AND md5(contenido) LIKE '$valor'";}else {$valor ="";}
-/*
-$consulta = "SELECT * FROM `form_datos`
-WHERE `form_id` = '$perfil'
-AND id_campo='$id_campo' $valor
-AND `control` = '$id_control' $campo_orden
-GROUP BY orden
-ORDER BY timestamp $limite ";
-*/
- $consulta = "SELECT *,GROUP_CONCAT(id ORDER by timestamp desc ) as identificador
- FROM `form_datos`
- WHERE form_id = '$perfil'
- AND id_campo ='$id_campo' $valor
- AND control ='$id_control' $campo_orden
- $where_timestamp
- group by orden
- ORDER BY orden $limite";
-
-$sql =mysqli_query($link,$consulta);
-$cant =mysqli_num_rows($sql);
-
-if (mysqli_num_rows($sql) == '0'){
- $existe = NULL;
- }else {
-
-$control=mysqli_result($sql,0,"control");
-$timestamp=mysqli_result($sql,0,"timestamp");
-$orden=mysqli_result($sql,0,"orden");
-$id_usuario=mysqli_result($sql,0,"id_usuario");
-$ip=mysqli_result($sql,0,"ip");
-mysqli_data_seek($sql, 0);
-$md5_contenido = "";
-if($cant === 1) {
- //$contenido=mysqli_result($sql,0,"contenido");
- $identificador=mysqli_result($sql,0,"identificador");
- $identificador = explode(',',$identificador);
- $identificador = $identificador[0];
- $contenido_campo = remplacetas('form_datos','id',$identificador,'contenido',"") ;
- $md5_contenido = $contenido_campo[3];
- //$md5_contenido = remplacetas('form_datos','id',$identificador,' md5(binary contenido) as md5_contenido ',"") ; //md5(binary contenido) as md5_contenido,
- //$md5_contenido = $md5_contenido[0];
- $contenido = "$contenido_campo[0] ";
- }else {
-while( $row = mysqli_fetch_array( $sql ) ) {
- $identificador = explode(',',$row['identificador']);
- $identificador = $identificador[0];
- $contenido_campo = remplacetas('form_datos','id',$identificador,'contenido',"") ;
- $contenido .= "$contenido_campo[0]\n";
- }
- }
-// $contenido .="$consulta";
-$existe[]= $control;
-$existe[] = $timestamp;
-$existe[] = $consulta;
-$existe[] = "$contenido";
-$existe[] = $md5_contenido;
-$existe[] = $orden;
-$existe[] = $id_usuario;
-$existe[] = $ip;
-}
-return $existe;
- }
-
-function formulario_grabar($formulario) {
- $debug="";
- $respuesta = new xajaxResponse('utf-8');
- $datos="";
- $envio="";
- //$formulario = mysql_seguridad($formulario);
- $ip = obtener_ip();
- $graba_ip = "INET_ATON('".$ip."') ";
- $consulta_grabada ='0';
- $control = $formulario['control']; //
- $form_id = $formulario['form_id']; //
- $tipo = $formulario['tipo']; //
- if(@$formulario['imagen'] !=''){$formulario[0][0] = $formulario['imagen'];}
-
- $consulta_form = "SELECT * FROM form_contenido_campos,form_campos
- WHERE form_contenido_campos.id_campo = form_campos.id
- AND id_form = '$form_id' ";
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
-// $sql=mysqli_query($link,$consulta_form);
-
-// if (mysqli_num_rows($sql)!='0'){
-// mysqli_data_seek($sql, 0);
-// while( $row = mysqli_fetch_array( $sql ) ) {
-
-
-//////
- if(isset ( $_SESSION['id_empresa'])){$id_empresa = $_SESSION['id_empresa']; }else{
- $id_empresa = remplacetas('form_id','id',$formulario['form_id'],'id_empresa',"") ;
- $id_empresa = $id_empresa[0];
- }
-foreach($formulario as $c=>$v){
-
-
-//LISTA ELEMENTOS DE UN ARRAY
-if (is_array($v) ){
- foreach($v as $C=>$V){
- $campo_tipo = remplacetas("form_campos","id",$c,"campo_tipo","");
- $campo_nombre = remplacetas("form_campos","id",$c,"campo_nombre","");
- if($V != '') {
-
-
-
-$datos .= "$$c = \$formulario['$c'][$C]; // $V /$campo_tipo[0]
";
- if($campo_tipo[0] =='12' OR $campo_tipo[0] =='13') {
- $validar = validar_email($V);
- if($validar == '0') {
- $respuesta->addAssign("input_".$c."[".$C."]","className"," form-group has-error ");
- $respuesta->addScript("document.getElementById('".$c."[".$C."]').focus(); ");
- $respuesta->addAlert("Se necesita un email válido");
- return $respuesta;
- }else {
- $respuesta->addAssign("input_".$c."[".$C."]","className"," form-group has-success ");
- }
- }
- if($campo_tipo[0] =='3' ) {
- $validar = is_numeric($V);
- if(is_numeric($V) ) {
- $respuesta->addAssign("input_".$c."[".$C."]","className"," form-group has-success ");
- //return $respuesta;
- }else{
- $respuesta->addAssign("input_".$c."[".$C."]","className"," form-group has-error ");
- $respuesta->addScript("document.getElementById('".$c."[".$C."]').focus(); ");
- $respuesta->addAlert("El campo $campo_nombre[0] solo acepta valores numéricos");
- return $respuesta;
- }
- }
-
- if($campo_tipo[0]=='17') {
- $limite = limite("$c",'','limite');
- $size= strlen($V);
- $restante = ($limite - $size);
- if( $restante < 0) {
-
- $respuesta->addAssign("input_".$c."[".$C."]","className"," form-group has-error ");
- $respuesta->addAlert("ATENCION: El campo $campo_nombre[0] no debe tener mas de $limite caractéres, sobran $restante");
- $respuesta->addScript("document.getElementById('".$c."[".$C."]').focus(); ");
- return $respuesta;
- }
- }
-
-
-
- }
-else{ //busca campos vacios
-
-$campo_obligatorio = remplacetas("form_contenido_campos","id_campo",$c,"obligatorio","id_form = '$formulario[form_id]'");
-if($campo_obligatorio[0] =='1'){
-
- $respuesta->addAssign("input_".$c."[".$C."]","className"," form-group has-error ");
- $respuesta->addAlert("ATENCION: El campo $campo_nombre[0] es obligatorio");
- $respuesta->addScript("document.getElementById('".$c."[".$C."]').focus(); ");
- return $respuesta;
- }
-
-}
-
-$md5 = md5($V);
-$igual = formulario_valor_campo("$form_id","$c","$md5","$formulario[control]","$C");
-$existe = formulario_valor_campo("$form_id","$c","","$formulario[control]","$C");
-//$valor_anterior .= $existe[3]."| ";
-$debug .= "$existe";
-if(!is_null($existe) AND $tipo =='edit' AND $V =='') {
- $consulta_vacio ="
- INSERT INTO `form_datos` (`id`, `id_campo`,`orden`,`form_id`, `id_usuario`, `contenido`, `timestamp`, `control`, ip , id_empresa)
- VALUES (NULL, '$c','$C', '$formulario[form_id]', '$_SESSION[id]', '', UNIX_TIMESTAMP(), '$formulario[control]',$graba_ip,'$id_empresa');";
-
- $sql=mysqli_query($link,$consulta_vacio);
- if($sql) {
- $consulta_grabada ='1';
- }
-}
-if(is_null($igual) ){$repetido = 0;}else{
-$repetido = 1;
-}
-
-
-//return $respuesta;
-//$respuesta->addAlert("$debug");
-//return $respuesta;
-$debug .= "V = $V /$c /$repetido / $igual ";
-//$V = str_replace("
", "", $V );
-if(($V !='' ) && (is_numeric($c)) AND $repetido !=1 ) {
-//$debug = "Hola mundo";
- $V = mysqli_real_escape_string($link,$V);
- ///
-
- $V = htmlentities($V);
-
- $campo_tipo = remplacetas("form_campos","id",$c,"campo_tipo","");
-
-if(@$campo_tipo[0] =="18") {
- $V = md5("$V");
-}else{$V=$V;}
-
-
- $consulta ="
- INSERT INTO `form_datos` (`id`, `id_campo`,`orden`,`form_id`, `id_usuario`, `contenido`, `timestamp`, `control`, ip , id_empresa)
- VALUES (NULL, '$c','$C', '$formulario[form_id]', '".@$_SESSION[id]."', '$V', UNIX_TIMESTAMP(), '$formulario[control]',$graba_ip,'$id_empresa');";
-
- $sql=mysqli_query($link,$consulta);
- $debug .= "$consulta = $sql ,";
- if($sql) {
- $consulta_grabada ='1';
- }
- }
-
- } ///fin del array
-
- }///fin del array primario
- else {
- if($v !='') { //$datos .= "$$c = \$formulario['$c']; // $v
";
- }
- }
- }
-
-
-
-
-// }
-// }
-
-$debug .= " $link ";
-//$respuesta->addAssign("pie_modal","innerHTML","$debug");
-
-if($consulta_grabada =='1') {
- if($formulario['continuar']=='1') {
-// xajax_formulario_embebido_ajax($form[0],'$identificador','edit')
- //$respuesta->addscript("$('#muestraInfo').modal('hide')");
- //$respuesta->addscript("$('#muestraInfo').modal('toggle')");
- $respuesta->addscript("$('#muestraInfo').removeClass('fade').modal('hide')");
- $respuesta->addscript("xajax_formulario_embebido_ajax('$formulario[form_id]','$formulario[control]','edit') ");
- return $respuesta;
- }
-
-if($tipo == "embebidoX" )
-{
- $exito ="
-
- $formulario[mensaje]
-
- ";
- $mail = '1';
- }
- elseif($tipo == "solocampos" ){
-
-
- $exito ="
-
- $formulario[mensaje]
-
- ";
-
- $mail='0';
- }
- else{
- $campo_envio = buscar_campo_tipo($formulario['form_id'],"13");
- if($campo_envio[0] != "") {
-$envio = email_contenido("$formulario[form_id]","$formulario[control]","$campo_envio[0]",'');
- }
-
-if($tipo = "embebido") {
-$otro_formulario ="
-
- Llenar otro formulario
-
-";
-}else {
- $otro_formulario = "
-
- Llenar otro formulario
-
-
- ";
-}
-$impresion = formulario_imprimir("","$formulario[control]","preview");
-$mensaje_agradecimiento = remplacetas('form_parametrizacion','campo',"$formulario[form_id]",'descripcion'," tabla='form_id' and opcion = 'mensaje_envio'") ;
-//$impresion = mostrar_identificador($formulario['control']);
- $exito ="
-
- $mensaje_agradecimiento[0]
-
-
- $impresion
-
-
- Gracias por aportar $formulario[form_nombre]
-
-
- $otro_formulario
-
-
- $envio
-
-
-
";
-
-// $mail ='1';
- }
-
-//if($mail =='1') {
-
- //$propietario = remplacetas('form_id','id',$formulario[form_id],'propietario',"") ;
- //$propietario = remplacetas('usuarios','id',$propietario[0],'email',"") ;
- $email_envio = remplacetas('form_parametrizacion','campo',"$formulario[form_id]",'descripcion'," tabla='form_id' and opcion = 'email'") ;
- if($email_envio[0] !="") {
- $impresion = formulario_imprimir("","$formulario[control]","preview");
- $id_empresa = remplacetas('form_id','id',$formulario[form_id],'id_empresa',"") ;
- $id_empresa = $id_empresa[0];
-
- $direccion = remplacetas("empresa","id",$id_empresa,"direccion","");
- $telefono = remplacetas("empresa","id",$id_empresa,"telefono","");
- $web = remplacetas("empresa","id",$id_empresa,"web","");
- //// siempre se enviara el email desde el mail parametrizado en la empresa 1
- //$email = remplacetas("empresa","id","1","email","");
- $email = remplacetas("empresa","id","$id_empresa","email","");
- $reply = remplacetas("empresa","id","$id_empresa","email","");
- $imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
- $razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
- $slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
- $nombre_formulario = remplacetas("form_id","id",$formulario[form_id],"nombre","");
-
-$headers = "MIME-Version: 1.0\r\n";
-$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
-$headers .= "From: $razon_social[0] <$email[0]>\r\n";
-$headers .= "Reply-To: $razon_social[0] <$reply[0]>\r\n";
-$headers .= "Return-path: $email[0]\r\n";
-$headers .= "Cc: $email_envio[0]" . "\r\n";
-
-$asunto= "$nombre_formulario[0]";
-$cuerpo ="
-$mensaje_agradecimiento[0]
-$impresion
-Se ha completado el formulario $nombre_formulario[0]
-Puede revisar los datos en $_SESSION[site]I$formulario[control]
-
-Descargo de responsabilidades
-Esta herramienta es creada y proporcionada por Tupale.co, como portal para el activismo de datos no nos hacemos responsables por el uso de la herramienta y cuando utilizas esta herramienta para enviar una carta firmas la petición con tu nombre personal, de esta forma es responsabilidad de cada persona que diligencie el formulario así como los comentarios escritos y los datos personales, por motivos de seguridad almacenamos temporalmente algunos metadatos como tu dirección IP y la hora de diligenciamiento de la carta, los demás datos personales son aquellos pedidos en el formulario que se encuentran protegidos por las politicas que puedes leer a continuación: Políticas de privacidad y protección de datos.
-
";
- if(mail("$email[0]","$asunto","$cuerpo","$headers")){ $exito .=""; }else {$exito .="error enviando correo";}
- //$exito .= "$email[0] $headers ";
- }
- /// }
- $respuesta->addAssign("div_$control","innerHTML","$exito ");
- return $respuesta;
- }else{
- $mensaje ="
-
-
Todo bien pero al parecer no se modicaron registros ";
- $respuesta->addAssign("div_$control","innerHTML","$mensaje");
- }
-//$respuesta->addAssign("respuesta_$control","innerHTML","$resultado");
-return $respuesta;
-}
-$xajax->registerFunction("formulario_grabar");
-
-function mysql_seguridad($inp) {
- if(is_array($inp))
- return array_map(__METHOD__, $inp);
-
- if(!empty($inp) && is_string($inp)) {
- return str_replace(array('\\', "\0", "'", '"', "\x1a"), array('\\\\', '\\0', "\\*", "\\*", '\\Z'), $inp);
- }
-
- return $inp;
-}
-
-function formulario_campos_render_multiple($id_campo,$id_form,$control,$item) {
-
- $consulta = "SELECT *,GROUP_CONCAT(id ORDER by timestamp desc ) as identificador
- FROM `form_datos`
- WHERE form_id = '$id_form'
- AND id_campo ='$id_campo'
- AND control ='$control'
- group by orden ORDER BY orden asc";
- $link=Conectarse();
- //$resultado .= "$consulta";
- mysqli_set_charset($link, "utf8");
- $sql =mysqli_query($link,$consulta);
- if (mysqli_num_rows($sql)!='0' ){
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
- $identificador = explode(',',$row[identificador]);
- $identificador = $identificador[0];
- //$identificador = $row[identificador];
- $resultado .= $identificador;
- $resultado .= formulario_campos_render($row[id_campo],$id_form,$control,$row[orden],$identificador);
- $item = $item + 1;
- }
- }
- $resultado .= formulario_campos_render($id_campo,$id_form,'',$item,'')."";
-
- return $resultado;
-}
-
-
-
-function formulario_modal($id,$form_respuesta,$control,$tipo) {
-
- $respuesta = new xajaxResponse('utf-8');
- $solo_campos ="";
- $subir_imagen ="";
-
- if(isset($_SESSION['permiso_identificador'])) {
- $permiso_identificador = $_SESSION['permiso_identificador'] ;
- $salir= "Salir
";
- }
- else{ $permiso_identificador = ""; $salir="";}
- $formulario_respuesta = formulario_respuesta("$id","$control");
- $id_empresa = remplacetas('form_id','id',$id,'id_empresa',"",'') ;
- $id_empresa = $id_empresa[0];
- $encabezado = empresa_datos("$id_empresa",'encabezado');
- $pie = "$formulario_respuesta";
- $pie .= empresa_datos("$id_empresa",'pie');
- $formulario_descripcion = remplacetas('form_id','id',$id,'descripcion','') ;
- $formulario_nombre = remplacetas('form_id','id',$id,'nombre','') ;
- $cabecera ="".$formulario_nombre['0']." ".$formulario_descripcion['0']."
";
-
- $nuevo_formulario = "Llenar otro formulario ";
-if($control !='' AND $tipo =='' ) {
- $impresion = formulario_imprimir("$id","$control","");
- $formulario_nombre = remplacetas('form_id','id',$id,'nombre','') ;
- $muestra_form = "$impresion
";
- $respuesta->addAssign("muestra_form","innerHTML","$muestra_form");
- $respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
- $respuesta->addAssign("pie_modal","innerHTML","$pie");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
- return $respuesta;
- }
-
- $modificable = remplacetas('form_id','id',$id,'modificable','') ;
- if($modificable[0] != "1" and (!isset ( $_SESSION[id]) )) {
- $resultado ="
Acceso restringido No se puede consultar los datos.";
- $respuesta->addAssign("muestra_form","innerHTML","$resultado");
- $respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
- $respuesta->addAssign("pie_modal","innerHTML","$pie");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
- return $respuesta;
- }
-
-
-$consulta = "
- SELECT * FROM form_id, form_contenido_campos
- WHERE form_id.id = form_contenido_campos.id_form
- AND form_id.id = '$id' ORDER BY form_contenido_campos.orden ASC
- ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
- if($respuesta !='' AND $control !=''){$control =$control;}
- else{$control = md5(rand(1,99999999).microtime());}
- $descripcion=mysqli_result($sql,0,"descripcion");
- $nombre=mysqli_result($sql,0,"nombre");
- $id_empresa=mysqli_result($sql,0,"id_empresa");
- $encabezado = empresa_datos("$id_empresa",'encabezado');
- $pie = empresa_datos("$id_empresa",'pie');
-
- $cabecera = "
- $salir
-
-
-
-
-
-
-
-
-
$nombre $descripcion
-
-
-
-
-
";
-
-$campo_imagen = buscar_campo_tipo($id,"15");
-@$campo_imagen_nombre = $campo_imagen[1];
-@$campo_imagen = $campo_imagen[0];
-
-
-if (@$campo_imagen[0] != "") {
-$subir_imagen = subir_imagen("$id","$campo_imagen"."[0]");
- }
- $muestra_form = "
-
-
-
-
-
-
-
-
-
-
- ";
- if($tipo=="edit") {
-
- //if(null === @$_SESSION['id'] AND $permiso_identificador != $control) {
- if($_SESSION['id_empresa'] !== $id_empresa AND $permiso_identificador != $control) {
- $password = buscar_campo_tipo($id,"18");
-
- $aviso = "
ATENCIÓNNo está autorizado ";
- $seguridad ="
-
-
- ";
- $resultado ="
-
-
- $aviso
- $seguridad
-
- ";
- $respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
- $respuesta->addAssign("muestra_form","innerHTML","$resultado");
- $pie = empresa_datos("$id_empresa",'pie');
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
- return $respuesta;
- }
- //// si no esta logueado nose puede editar ////
- $control_edit = "$control";
-
- }else {$control_edit = "";}
-
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
- $tipo_campo = remplacetas("form_campos","id","$row[id_campo]","campo_tipo","");
- //if($tipo_campo[0] =="24") { $row[multiple] = "1";}
- if($row['multiple'] ==='1' AND $tipo =='edit'){
- $campos = formulario_campos_render_multiple($row['id_campo'],$id,$control_edit);
- }else{
- $campos = formulario_campos_render($row['id_campo'],$id,$control_edit,'','');
- }
- $muestra_form .= "$campos ";
- $solo_campos .= "$campos ";
- }
- $muestra_form .="
-
- ";
- }
-
-$muestra_form .="
-
-
-
";
- $muestra_form = "$muestra_form
";
-if($tipo=='campos') {
- return $solo_campos;
-}
-if($tipo=='embebido') {
- return $muestra_form;
-}
-
-$respuesta->addAssign("muestra_form","innerHTML","$muestra_form");
-$respuesta->addAssign("titulo_modal","innerHTML","$cabecera");
-$respuesta->addAssign("pie_modal","innerHTML","$pie");
-$respuesta->addscript("$('#muestraInfo').modal('toggle')");
-//$respuesta->addscript("$('textarea').markdown({autofocus:false,savable:false})");
-//$respuesta->addscript("$(document).ready(function () { $(\"#24[0]\").cleditor(); })");
-//$(document).ready(function () { $("#input").cleditor(); });
-
-
-
-return $respuesta;
-}
-$xajax->registerFunction("formulario_modal");
-
-
-
-function limpia_div($capa){
-$respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign($capa,"style.padding","0px");
-$respuesta->addClear($capa,"innerHTML");
-
-return $respuesta;
-}$xajax->registerFunction("limpia_div");
-
-function contenido_ocultar($capa){
-$respuesta = new xajaxResponse('utf-8');
-//$respuesta->addAssign($capa,"innerHTML","$contenido");
-$respuesta->addAssign("$capa","className","hidden");
-
-return $respuesta;
-}$xajax->registerFunction("contenido_ocultar");
-
-function contenido_show($capa){
-$respuesta = new xajaxResponse('utf-8');
-//$respuesta->addAssign($capa,"innerHTML","$contenido");
-$respuesta->addAssign("$capa","className","show");
-
-return $respuesta;
-}$xajax->registerFunction("contenido_show");
-
-
-function select_key($tabla,$key,$value,$descripcion,$onchange,$where,$nombre,$valor){
-$link=Conectarse();
-$campos = explode(",",$descripcion);
-$campo1 = $campos[0];
-$campo2 = $campos[1];
-$debug = "($tabla,$value,$descripcion,$onchange,$where)";
-mysqli_set_charset($link, "utf8");
-if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];}if($where =='AGRUPADO'){$group="GROUP BY $value ";}
-elseif($where != ''){$w = "AND ".$where;}else{ $w="";}
-$busca = array("[","]");
-if( strpos( $onchange,'[') !== false ){$fila=str_replace($busca,'',$onchange);$onchange='';};
-$consulta = "SELECT $value, $descripcion FROM $tabla WHERE 1 $w $group ORDER BY $campo1 ";
-$sql=mysqli_query($link,$consulta);
-if($nombre==''){$name=$tabla."_".$key;}else{$name = "$nombre";}
-if (mysqli_num_rows($sql)!='0'){
- if($onchange !=''){$vacio ="";}else{$vacio =" >> Nuevo $descripcion << ";}
-$resultado="
-Seleccione
- " ;
-while( $row = mysqli_fetch_array( $sql ) ) {
-if($row[$key]=="") {$resultado.="";}else{
-if($row[$key] ==="$valor"){$selected="selected";}else{$selected ="";}
-
-$resultado .= " ".substr($row[$campo1], 0, 150 )." ".substr($row[$campo2], 0, 30 )." ";
- }
- }
-$resultado .= " ";
- }else{$resultado = " No hay resultados
";}
-
-return $resultado;
-}
-
-function select($tabla,$value,$descripcion,$onchange,$where,$nombre,$valor){
-$group ="";
-@$valor=$valor;
-@$value =$value;
-$link=Conectarse();
-$campos = explode(",",$descripcion);
-@$campo1 = $campos[0];
-@$campo2 = $campos[1];
-$debug = "($tabla,$value,$descripcion,$onchange,$where)";
-mysqli_set_charset($link, "utf8");
-if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];}
-if($where =='AGRUPADO'){$group="GROUP BY $value ";}
-elseif($where != ''){$w = "AND ".$where;}else{ $w="";}
-$busca = array("[","]");
-if( strpos( $onchange,'[') !== false ){$fila=str_replace($busca,'',$onchange);$onchange='';};
-$consulta = "SELECT $value, $descripcion FROM $tabla WHERE 1 $w $group ORDER BY $campo1 ";
-$sql=mysqli_query($link,$consulta);
-if($nombre==''){$name=$tabla."_".$value;}else{$name = "$nombre";}
-if (mysqli_num_rows($sql)!='0'){
- if($onchange !=''){$vacio ="Todos los valores ";}else{$vacio =" ";}
-$resultado="
-$nombre $vacio
- " ;
-while( $row = mysqli_fetch_array( $sql ) ) {
-if($row[$value]=="") {$resultado.="";}else{
-if($row[$value] ==="$valor"){$selected="selected";}else{$selected ="";}
-$mostrar_id = "[$row[$value]]";
-$resultado .= " ".substr(@$row[$campo1], 0, 150 )." ".substr(@$row[$campo2], 0, 30 )." $mostrar_id ";
- }
- }
-$resultado .= " ";
- }else{$resultado = " No hay resultados
";}
-
-return $resultado;
-}
-
-function select_empresa($tabla,$value,$descripcion,$onchange,$where,$nombre,$valor,$id_empresa){
- $w ="";
-$link=Conectarse();
-$campos = explode(",",$descripcion);
-$tablas= explode(",",$tabla);
-$tabla1= $tablas[0];
-@$tabla2= $tablas[1];
-
-$campo1 = $campos[0];
-@$campo2 = $campos[1];
-$debug = "($tabla,$value,$descripcion,$onchange,$where)";
-mysqli_set_charset($link, "utf8");
- if(isset($_SESSION['id_empresa'])) {$id_empresa= $_SESSION['id_empresa'];}
- if($where =='AGRUPADO'){$group="GROUP BY $value ";}
- elseif($where != ''){$w = "AND ".$where; $group="GROUP BY $value "; }
- else{ $w="";}
-$busca = array("[","]");
-if( strpos( $onchange,'[') !== false ){$fila=str_replace($busca,'',$onchange);$onchange='';};
-$consulta = "SELECT $value, $descripcion FROM $tabla WHERE $tabla1.id_empresa = '$id_empresa' $w $group ORDER BY $campo1 ";
-$sql=mysqli_query($link,$consulta);
-if($nombre==''){$name=$tabla."_".$value;}else{$name = "$nombre";}
-if (mysqli_num_rows($sql)!='0'){
- if($onchange !=''){$vacio ="Todos los valores ";}else{$vacio =" ";}
-$resultado="
-$nombre $vacio
- " ;
-while( $row = mysqli_fetch_array( $sql ) ) {
-if($row[$value]=="") {$resultado.="";}else{
-if($row[$value] ==="$valor"){$selected="selected";}else{$selected ="";}
-$mostrar_id = "[$row[$value]]";
-$resultado .= " ".substr(@$row[$campo1], 0, 150 )." ".substr(@$row[$campo2], 0, 30 )." $mostrar_id ";
- }
- }
-$resultado .= " ";
- }else{$resultado = " No hay resultados
";}
-
-return $resultado;
-}
-function sin_acentos($cadena) {
-$no_permitidas= array ("á","é","í","ó","ú","Á","É","Í","Ó","Ú","ñ","À","Ã","Ì","Ò","Ù","Ù","à ","è","ì","ò","ù","ç","Ç","â","ê","î","ô","û","Â","Ê","ÃŽ","Ô","Û","ü","ö","Ö","ï","ä","«","Ò","Ã","Ä","Ë");
-$permitidas= array ("a","e","i","o","u","A","E","I","O","U","n","N","A","E","I","O","U","a","e","i","o","u","c","C","a","e","i","o","u","A","E","I","O","U","u","o","O","i","a","e","U","I","A","E");
-$texto = str_replace($no_permitidas, $permitidas ,$cadena);
-return $texto;
-}
-
-function select_edit($id_campo,$form_id,$valor,$name,$control){
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$consulta = "SELECT * FROM form_campos_valores WHERE id_form_campo ='$id_campo' ";
-$sql=mysqli_query($link,$consulta);
-// $value = remplacetas("form_datos","control","$control","contenido","id_campo ='$id_campo' ");
-if (mysqli_num_rows($sql)!='0'){
-
-$resultado="
-Seleccione
- " ;
-while( $row = mysqli_fetch_array( $sql ) ) {
- //$coll = collator_create( 'en_US' );
- //$res = collator_compare( $coll, $row['campo_valor'], $valor );
-if( $row['campo_valor'] == "$valor"){$selected="selected";}else{$selected ="";}
-//if($res === 0){$selected="selected";}else{$selected ="";}
-//if(strcmp($row['campo_valor'], $valor) === 0 ){$selected="selected";}else{$selected ="";}
-$resultado .= " $row[campo_valor] ";
- }
-$resultado .= " ";
- }else{$resultado = " No hay resultados
";}
-
-return $resultado;
-}
-
-
-
-
-function radio_agrupado_linea($id_campo,$form_id,$valor,$name,$control){
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$consulta = "SELECT * FROM form_campos_valores , form_campos WHERE form_campos_valores.id_form_campo = form_campos.id AND id_form_campo ='$id_campo' ";
-$sql=mysqli_query($link,$consulta);
-$valor = remplacetas("form_datos","control","$control","contenido","id_campo ='$id_campo' ");
-if (mysqli_num_rows($sql)!='0'){
-$nombre_linea = mysqli_result($sql,0,"campo_nombre");
-$descripcion_linea = mysqli_result($sql,0,"campo_descripcion");
- mysqli_data_seek($sql, 0);
-while( $row = mysqli_fetch_array( $sql ) ) {
-if($row[campo_valor] ==="$valor[0]"){$selected="checked";}else{$selected ="";}
-$lineas .= " $row[campo_valor] ";
- }
-$resultado .= "$nombre_linea
$lineas ";
- }else{$resultado = " No hay resultados
";}
-
-return $resultado;
-}
-
-function radio_linea($id_campo,$form_id,$valor,$name,$control){
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$consulta = "SELECT * FROM form_campos_valores , form_campos WHERE form_campos_valores.id_form_campo = form_campos.id AND id_form_campo ='$id_campo' ";
-$sql=mysqli_query($link,$consulta);
-// $value = remplacetas("form_datos","control","$control","contenido","id_campo ='$id_campo' ");
-if (mysqli_num_rows($sql)!='0'){
-$nombre_linea = mysqli_result($sql,0,"campo_nombre");
-$descripcion_linea = mysqli_result($sql,0,"campo_descripcion");
- mysqli_data_seek($sql, 0);
-while( $row = mysqli_fetch_array( $sql ) ) {
-if($row[campo_valor] ==="$valor"){$selected="checked";}else{$selected ="";}
-$lineas .= "$row[campo_valor] ";
- }
-$resultado .= "$nombre_linea
$lineas ";
- }else{$resultado = " No hay resultados $consulta
";}
-
-return $resultado;
-}
-function radio_edit($id_campo,$form_id,$valor,$name,$control){
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$consulta = "SELECT * FROM form_campos_valores WHERE id_form_campo ='$id_campo' ";
-$sql=mysqli_query($link,$consulta);
-// $value = remplacetas("form_datos","control","$control","contenido","id_campo ='$id_campo' ");
-if (mysqli_num_rows($sql)!='0'){
-
-$resultado="
-
- " ;
-while( $row = mysqli_fetch_array( $sql ) ) {
-if($row[campo_valor] ==="$valor"){$selected="checked";}else{$selected ="";}
-$resultado .= " $row[campo_valor]
";
- }
-$resultado .= "";
- }else{$resultado = " No hay resultados
";}
-
-return $resultado;
-}
-
-
-function checkbox_edit($id_campo,$form_id,$valor,$name,$control){
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$consulta = "SELECT * FROM form_campos_valores WHERE id_form_campo ='$id_campo' ";
-$sql=mysqli_query($link,$consulta);
-// $value = remplacetas("form_datos","control","$control","contenido","id_campo ='$id_campo' ");
-if (mysqli_num_rows($sql)!='0'){
- $name = explode("[",$name);
- $name = $name[0];
- $fila="0";
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- $value = remplacetas("form_datos","control","$control","contenido","id_campo ='$id_campo' and contenido ='$row[campo_valor]' ");
-
- $nombre= "$name"."[".$fila."]";
-//if($row[campo_valor] ==="$valor"){$selected="checked";}else{$selected ="";}
-if($value[0] ==="$row[campo_valor]"){$selected="checked";}else{$selected ="";}
-$resultado .= "
-
-
- $row[campo_valor] $selected
-
-
";
- $fila++;
- }
-$resultado .= "";
- }else{$resultado = " No hay resultados
";}
-
-return $resultado;
-}
-
-
-function rango($tabla,$campo,$key,$valor,$selected,$nombre,$onchange){
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$consulta = "SELECT min($campo) as min , max($campo) as max FROM $tabla WHERE $key ='$valor' ";
-$sql=mysqli_query($link,$consulta);
-
-if (mysqli_num_rows($sql)!='0'){
- $min=mysqli_result($sql,0,"min");
- $max=mysqli_result($sql,0,"max");
-if($nombre==''){$name=$tabla."_".$value;}else{$name = "$nombre";}
-$resultado="
- $min
-
- $max $selected
-
" ;
-
-
- }else{$resultado = " No hay resultados
";}
-
-return $resultado;
-}
-
-function limite($id_campo,$contenido,$tipo){
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$consulta = "SELECT campo_valor FROM form_campos_valores WHERE id_form_campo ='$id_campo' ";
-$sql=mysqli_query($link,$consulta);
-
-if (mysqli_num_rows($sql)!='0'){
- $limite=mysqli_result($sql,0,"campo_valor");
-
- }else{}
- if($tipo =='limite') { return $limite;}
-$respuesta = new xajaxResponse('utf-8');
-if($contenido !='') {
-
- $size= strlen($contenido);
- $restante = ($limite - $size);
- $div_input = "input_$id_campo";
- if( $restante<=1) {
-$respuesta->addAssign("aviso_$id_campo","className","alert-danger ");
-$respuesta->addAssign("$div_input","className","has-error ");
- }
- elseif( $restante<=10) {
-$respuesta->addAssign("aviso_$id_campo","className","alert-warning ");
-$respuesta->addAssign("$div_input","className","has-warning ");
- }else{
-$respuesta->addAssign("aviso_$id_campo","className","alert-succes ");
-$respuesta->addAssign("$div_input","className","has-success ");
-}
- $respuesta->addAssign("aviso_$id_campo","innerHTML","$restante");
-
- return $respuesta;
- }
- $respuesta->addAssign("aviso_$id_campo","innerHTML","$limite");
- return $respuesta;
- //return $limite;
-}
-$xajax->registerFunction("limite");
-
-function confirma_campo($valor_1,$valor_2,$campo,$campo_confirmacion){
- $respuesta = new xajaxResponse('utf-8');
- $pos = strpos($campo,"email");
-
-if($pos == "") { //// si no es un email
- }
- else {//// si es un email se revisa
- $email = validar_email("$valor_1");
- if($email === 0 ) {
- $respuesta->addAssign("$campo","value","");
- $respuesta->addAssign("$campo"."_grupo","className"," input-group has-error ");
- $respuesta->addAssign("$campo_confirmacion"."_grupo","className"," input-group has-error ");
- $respuesta->addAlert("El email no es valido ");
- $respuesta->addScript("document.getElementById('$campo').focus(); ");
- return $respuesta;
- }
- else{
- }
- }
-
-
-
- if($valor_1 != $valor_2){$resultado = "Los valores NO son iguales";
- $respuesta->addAlert("$resultado");
- /// $respuesta->addAssign("$campo","style.color","red");
-
-
- $respuesta->addAssign("$campo","value","$pos");
- $respuesta->addAssign("$campo_confirmacion","value","");
- $respuesta->addAssign("$campo"."_grupo","className"," input-group has-error ");
- $respuesta->addAssign("$campo_confirmacion"."_grupo","className"," input-group has-error ");
- $respuesta->addScript("document.getElementById('$campo').focus(); ");
- // document.getElementById('mobileno').focus();
-
-
- }else{
- //$respuesta->addAssign("$campo_confirmacion","style.color","green");
-
- $respuesta->addAssign("$campo","className"," form-control ");
- $respuesta->addAssign("$campo_confirmacion","className"," form-control ");
- $respuesta->addAssign("$campo"."_grupo","className"," input-group has-success ");
- $respuesta->addAssign("$campo_confirmacion"."_grupo","className"," input-group has-success ");
- }
- return $respuesta;
-}
-$xajax->registerFunction("confirma_campo");
-
-
-function validar_campo($valor,$campo,$tabla,$div,$id){
-$valor = mysql_seguridad($valor);
-$respuesta = new xajaxResponse('utf-8');
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
-$consulta="SELECT $campo FROM $tabla WHERE $campo = '$valor' LIMIT 1";
-$sql =mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0' ){
-$verificacion = "atencion"; $existe='';
-
-$respuesta->addAssign($campo,"value","");
-///$respuesta->addAlert("El valor $valor $existe existe");
-$resultado = "Grrr $valor $existe existe ";
-$respuesta->addAssign("$id","style.backgroundColor","pink");
-$respuesta->addAssign($div,"innerHTML",$resultado);
-return $respuesta;
- }else {$verificacion ="check"; $existe='NO';}
-$resultado = "Ok, buen $campo ! ";
-$respuesta->addAssign("$id","style.backgroundColor","#CBE7CB");
-//$resultado .= "$valor,$campo,$tabla,$div";
-$respuesta->addAssign($div,"innerHTML",$resultado);
-
-
-return $respuesta;
-}
-$xajax->registerFunction("validar_campo");
-
-
-function comprobar_email($email,$tipo,$campo){
-$email = mysql_seguridad($email);
-$respuesta = new xajaxResponse('utf-8');
-if($tipo =='tercero') {$id_campo='tercero_email';}
-
-
-else{$id_campo = 'email';}
-
-if($campo !=''){
-$id_campo="$campo";
-}
-
-
-if ($email == "" AND $tipo==''){
- $respuesta->addAlert("El campo email es obligatorio ");
- $respuesta->addAssign("$id_campo","style.backgroundColor","pink");
- $respuesta->addAssign("$id_campo","value","");
- return $respuesta;
- }
-
- $mail_correcto = 0;
- //compruebo unas cosas primeras
- if ((strlen($email) >= 6) && (substr_count($email,"@") == 1) && (substr($email,0,1) != "@") && (substr($email,strlen($email)-1,1) != "@")){
- if ((!strstr($email,"'")) && (!strstr($email,"\"")) && (!strstr($email,"\\")) && (!strstr($email,"\$")) && (!strstr($email," "))) {
- //miro si tiene caracter .
- if (substr_count($email,".")>= 1){
- //obtengo la terminacion del dominio
- $term_dom = substr(strrchr ($email, '.'),1);
- //compruebo que la terminación del dominio sea correcta
- if (strlen($term_dom)>1 && strlen($term_dom)<5 && (!strstr($term_dom,"@")) ){
- //compruebo que lo de antes del dominio sea correcto
- $antes_dom = substr($email,0,strlen($email) - strlen($term_dom) - 1);
- $caracter_ult = substr($antes_dom,strlen($antes_dom)-1,1);
- if ($caracter_ult != "@" && $caracter_ult != "."){
- $mail_correcto = 1;
- }
- }
- }
- }
- }
- if ($mail_correcto AND $tipo=='' )
- {
-$consulta= "SELECT email FROM usuarios WHERE email = '$email' LIMIT 1 ";
- $link=Conectarse();
-$sql=mysqli_query($link,$consulta);
-$revisa=mysqli_result($sql,0,"email");
-if ($revisa != ''){
-
- $respuesta->addAlert("$email: ya está registrado ");
- $respuesta->addAssign("email","style.color","red");
- $respuesta->addAssign("email","value","");
- return $respuesta;
- }
- $respuesta->addAssign("email","style.color","green");}
- elseif ($mail_correcto AND $tipo==='revisar' ) {
- $revisar = remplacetas("usuarios","email",$email,"email","");
- if($revisar[0] != '') {
-
- $respuesta->addAssign("$campo","style.color","white");
- $respuesta->addAssign("$id_campo","style.backgroundColor","green");
- }else{
- $respuesta->addAlert("$email: No existe en el sistema)");
- $respuesta->addAssign("$campo","value","");
- }
- return $respuesta;
- }
-
- elseif ($mail_correcto AND $tipo==='tercero' ) {
- $documento = remplacetas("terceros","email",$email,"documento","");
- if($documento[1] =='') { /// si el tercero NO existe
-
- }else { /// si el tercero existe en el sistema
-
- $tipo_persona = remplacetas("terceros","id",$documento[1],"tipo_persona","");
-
- if($tipo_persona[0] =='1') {
- $razon_social = remplacetas("terceros","id",$documento[1],"razon_social","");
- $resultado .= " $razon_social[0]] Nit: $documento[0]";
- } else {
- $primer_nombre = remplacetas("terceros","id",$documento[1],"p_nombre","");
- $segundo_nombre = remplacetas("terceros","id",$documento[1],"s_nombre","");
- $primer_apellido = remplacetas("terceros","id",$documento[1],"p_apellido","");
- $segundo_apellido = remplacetas("terceros","id",$documento[1],"s_apellido","");
- $resultado .=" \r $primer_nombre[0] $segundo_nombre[0] $primer_apellido[0] $segundo_apellido[0] \r Documento: $documento[0]";
- }
-
- $respuesta->addAlert("$email: $resultado");
- $respuesta->addAssign("tercero_documento","value","$documento[0]");
- $respuesta->addAssign("tercero_primer_nombre","value","$primer_nombre[0]");
- $respuesta->addAssign("tercero_segundo_nombre","value","$segundo_nombre[0]");
- $respuesta->addAssign("tercero_primer_apellido","value","$primer_apellido[0]");
- $respuesta->addAssign("tercero_segundo_apellido","value","$segundo_apellido[0]");
- $respuesta->addAssign("tercero_razon_social","value","$razon_social[0]");
- $respuesta->addAssign("tercero_id","value","$documento[1]");
-
- }
-
- }
- else
- {$respuesta->addAlert("$email: no es un correo válido");
- $respuesta->addAssign("$id_campo","style.backgroundColor","pink");
- $respuesta->addAssign("$id_campo","value","");
- }
- return $respuesta;
-}
-$xajax->registerFunction("comprobar_email");
-
-function obtener_ip()
-
-{
-
- if (isset($_SERVER["HTTP_CLIENT_IP"]))
- {
- return $_SERVER["HTTP_CLIENT_IP"];
- }
- elseif (isset($_SERVER["HTTP_X_FORWARDED_FOR"]))
- {
- return $_SERVER["HTTP_X_FORWARDED_FOR"];
- }
- elseif (isset($_SERVER["HTTP_X_FORWARDED"]))
- {
- return $_SERVER["HTTP_X_FORWARDED"];
- }
- elseif (isset($_SERVER["HTTP_FORWARDED_FOR"]))
- {
- return $_SERVER["HTTP_FORWARDED_FOR"];
- }
- elseif (isset($_SERVER["HTTP_FORWARDED"]))
- {
- return $_SERVER["HTTP_FORWARDED"];
- }
- else
- {
- return $_SERVER["REMOTE_ADDR"];
- }
-
- }
-
-function milfs(){
-
- if($_SESSION['grupo'] != "1") {
- $menu = "";// header("Location: ../");
- }else{
-
- $crear_campos = formulario_crear_campo('','','');
- $listado = formulario_listado('','');
- //$consultas = formulario_consultar('','');
- //$importador = formulario_importador('');
- //$limpiar_cache = borrar_tmp('');
- $configuracion= configuracion('');
-
- $login = login_boton('');
- $usuarios = "
-
-
- Gestión de usuarios
- ";
- $menu =
-"
-
-
-
- $crear_campos
-
- $listado
- $usuarios
- $configuracion
-
-
-
-
-
";
- }
- return $menu;
-}
-
-function url_existe($url)
-{
- $handle = @fopen($url, "r");
- if ($handle == false)
- return NULL;
- fclose($handle);
- return $url;
-}
-function es_imagen($url)
- {
- $imageSizeArray = getimagesize($url);
- $imageTypeArray = $imageSizeArray[2];
- return (bool)(in_array($imageTypeArray , array(IMAGETYPE_GIF , IMAGETYPE_JPEG ,IMAGETYPE_PNG )));
- }
-function parametrizacion($array) {
- //return $array;
- $link=Conectarse();
- mysqli_real_escape_string($link,$array);
- $accion = $array[accion];
- $tabla = $array[tabla];
- $campo = $array[campo];
- $opcion = $array[opcion];
- $descripcion= $array[descripcion];
- $visible= $array[visible];
- $id= $array[id];
-
- if($accion =='grabar'){
- $consulta= "INSERT INTO form_parametrizacion set tabla='$tabla', campo ='$campo',opcion ='$opcion' , descripcion ='$descripcion' ,visible='$visible'";
- }
- // return $consulta;
- $sql=mysqli_query($link,$consulta);
- if($sql){return "Campo grabado"; }else{return "";}
-
-}
-
-
-
-function registro_express($formulario,$accion) {
- //$formulario = mysql_seguridad($formulario);
- require("includes/datos.php");
- require ("includes/parametrizacion.php");
-
- if($nombre_formulario =="") {$nombre_formulario = "login";}
- $boton ="Grabar
";
-$respuesta = new xajaxResponse('utf-8');
-
-
- if($accion =='confirmar')
- {
- $div = "registro_confirmacion_email";
- $email_existe = remplacetas("$tabla_autenticacion","email",$formulario[email_express_confirmar],"email","");
- $documento_existe = remplacetas("$tabla_autenticacion","documento_numero",$formulario[documento_express],"documento_numero","");
- if($email_existe[0] !="" or $formulario[email_express_confirmar] ==="") {
- $respuesta->addAlert("No se ha especificado un email o ya está en uso ");
- $respuesta->addAssign("email_express_grupo","className"," input-group has-error ");
- ///$respuesta->addAssign("debug","innerHTML"," $email_existe[2]");
- $respuesta->addScript("document.getElementById('email_express').focus(); ");
- return $respuesta;
- }
- if($documento_existe[0] !="" OR $formulario[documento_express] === "") {
- $respuesta->addAlert("No se ha proporcionado un documento único // $formulario[documento_express] // ");
- $respuesta->addAssign("documento_express_grupo","className"," input-group has-error ");
- $respuesta->addScript("document.getElementById('documento_express').focus(); ");
- return $respuesta;
- }
- if( !isset($formulario[password_express_confirmar]) ){
- $resultado ="Por favor escribe una clave. $formulario[password_express_confirmar] // $formulario[password_express]
$boton";
- $respuesta->addAssign("password_express"."_grupo","className"," input-group has-error ");
- $respuesta->addAlert("Por favor escribe una la clave ");
- $respuesta->addScript("document.getElementById('password_express').focus(); ");
- $respuesta->addAssign("$div","innerHTML",$resultado);
- return $respuesta;
- }
- if($formulario[password_express_confirmar] =="" or $formulario[password_express_confirmar] !== $formulario[password_express] ){
- $resultado ="Por favor escribe y confirma una clave. $formulario[password_express_confirmar] // $formulario[password_express]
$boton";
- $respuesta->addAssign("password_express"."_grupo","className"," input-group has-error ");
- $respuesta->addAlert("Por favor escribe y confirma la clave XXX");
- $respuesta->addScript("document.getElementById('password_express').focus(); ");
- $respuesta->addAssign("$div","innerHTML",$resultado);
- return $respuesta;
- }
- if($formulario[email_express_confirmar] ==="") {
- $resultado .= "$boton No hay un email válido // $formulario[email_express_confirmar]
";
- $respuesta->addAssign("$div","innerHTML",$resultado);
- return $respuesta;
- }else{
- $email_envio = $formulario['email_express_confirmar'];
-
- $rrn = rand(123,999);
- $rrncode = MD5("$rrn");
-// $aviso= aviso('','mail privacidad','');
- $direccion = remplacetas("empresa","id",$id_empresa,"direccion","");
- $telefono = remplacetas("empresa","id",$id_empresa,"telefono","");
- $web = remplacetas("empresa","id",$id_empresa,"web","");
- $email = remplacetas("empresa","id",$id_empresa,"email","");
- $imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
- $razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
- $slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
-
-$headers = "MIME-Version: 1.0\r\n";
-$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
-$headers .= "From: $razon_social[0] <$email[0]>\r\n";
-$headers .= "Reply-To: $email[0]\r\n";
-$headers .= "Return-path: $email[0]\r\n";
-
-$asunto= "Código de validación";
-$cuerpo ="
-
-
Registro
-
-
-
Código de validación
-
Bienvenido a nuestra aplicación. Por favor digita el siguente código para validar tu cuenta.
-
$rrn
-
-
-
- $aviso
- ";
-
-mail("$email_envio","$asunto","$cuerpo","$headers") ;
- $boton ="Confirmar
";
- $control = MD5(mktime().$rrncode);
- $resultado .="
-
- $boton
- ";
- }
-
-$respuesta->addAssign("$div","innerHTML",$resultado);
-return $respuesta;
-
-
- }elseif($accion =="elegir") {
- $form = "
-
-
-
-
-
-
Ya estoy registrado
-
-
-
-
-
-
Antes de continuar, por favor revisa nuestras Políticas de privacidad y protección de datos.
- ";
- return $form;
- }
-elseif($accion =="validar") {
- $boton ="
Confirmar
";
- $div = "registro_confirmacion_email";
-
-
-if($formulario[password_express_confirmar] =="" OR $formulario[password_express_confirmar] != $formulario[password_express] ){
- $resultado ="
Por favor escribe y confirma una clave.
$boton";
- $respuesta->addAssign("password_express"."_grupo","className"," input-group has-error ");
- $respuesta->addAlert("Por favor escribe y confirma la clave");
- $respuesta->addScript("document.getElementById('password_express').focus(); ");
- $respuesta->addAssign("$div","innerHTML",$resultado);
-return $respuesta;
-
- }
-$codigo_confirmacion = $formulario[codigo_confirmacion]; //
-$rrn = $formulario[rrn]; //
-$codificado = md5("$codigo_confirmacion");
-if($rrn == $codificado) {
-$control = $formulario[control]; // nuevo_
-$id_empresa = $formulario[id_empresa]; // nuevo_
-if($id_empresa =="") {$id_empresa= $_SESSION['id_empresa'];}
-$nombre_formulario = $formulario[nombre_formulario]; // nuevo_
-$email_express = $formulario[email_express]; // aa@gmail.com
-$email_express_confirmar = $formulario[email_express_confirmar]; // aa@gmail.com
-$nombre_express = $formulario[nombre_express]; // nombre
-$apellido_express = $formulario[apellido_express]; // apellido
-$telefono_express = $formulario[telefono_express]; // 324343
-$password_express = $formulario[password_express]; // 1234
-$documento = $formulario[documento_express]; // 1234
-$password_express_confirmar = $formulario[password_express_confirmar]; // 23456
- $ip = obtener_ip();
-
- $link = Conectarse();
-mysqli_set_charset($link, "utf8");
-
-$consulta = "INSERT INTO $tabla_autenticacion (username,p_nombre,p_apellido,email,passwd,control,status,lastip,id_empresa,documento_numero)
- VALUES ('$email_express_confirmar','$nombre_express','$apellido_express','$email_express_confirmar','".MD5($password_express_confirmar)."','$control','1','$ip','$id_empresa','$documento')";
-//$respuesta->addAssign("debug","innerHTML",$consulta);
-//return $respuesta;
- $sql_consulta=mysqli_query($link,$consulta);
- if($sql_consulta) {
- $id = mysql_insert_id();
-
- $consulta_localizacion = "INSERT INTO localizacion (id_localizado,telefono,id_grupo) VALUES ('$id','$telefono_express','1')";
- $consulta_empresa = "INSERT INTO empresa SET razon_social = '$nombre_express $nombre_express', regimen_tributario = 'simplificado' ,id_responsable='$id'";
- $sql_localizacion=mysqli_query($link,$consulta_localizacion);
- //$sql_empresa=mysqli_query($link,$consulta_empresa);
- if($sql_empresa) {
- $id_empresa = mysql_insert_id();
- $_SESSION[id_empresa] = $id_empresa;
- $_SESSION[id] = $id;
- }
- //// faltan variables de session
-
- }
-$resultado = "
Bienvenido
-
Felicitaciones, tu registro se efectuó correctamente, ahora puedes usar nuestros servicios.
-
";
-$div = "contenido";
-$respuesta->addAssign("$div","innerHTML",$resultado);
-return $respuesta;
-}else{
-$resultado = "
Error El Código de confirmación no es correcto, por favor inténtalo nuevamente.";
-}
-
-$resultado .= "$boton";
-$respuesta->addAssign("$div","innerHTML",$resultado);
-return $respuesta;
-
-
-}
-elseif($accion =="nuevo") {
-//$respuesta = new xajaxResponse('utf-8');
- $div="contenido";
- if($_SESSION['id'] == 1 AND $soporte_multiempresa !== 0) {
-
-$empresa = select('empresa','id','razon_social','',"estado = '1'",'id_empresa');
-$empresa ="
-
- Empresa
- $empresa
-
-
-";
-}
-$listado_usuarios = usuarios_listado($tabla_autenticacion,"");
-$mailer = mailer('','','','');
-$form = "
-
-
-
-
- Usuario
- $empresa
-
-
-
-
-
-
-
-
-
-
-$mailer
-$listado_usuarios
-
-
-";
-$respuesta->addAssign("$div","innerHTML",$form);
-return $respuesta;
-
- }
-
-
-elseif($accion =="boton"){
-
-$modal ="
-
-
-
-
-
-
-
-
- ";
-return; //$modal;
- }
- else{}
-$respuesta->addAssign("$div","innerHTML",$resultado);
-return $respuesta;
-
-}
-$xajax->registerFunction("registro_express");
-
-
-function cambiar_grupo($id_usuario,$id_grupo){
- $respuesta = new xajaxResponse('utf-8');
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
- $consulta = "UPDATE $_SESSION[tabla_autenticacion]
- SET `id_grupo` = '".mysqli_real_escape_string($link,$id_grupo)."'
- WHERE `id` = '".mysqli_real_escape_string($link,$id_usuario)."' ";
- $sql = mysqli_query($link,$consulta);
-$respuesta->addScript("");
- return $respuesta;
-
-}
-$xajax->registerFunction("cambiar_grupo");
-
-
-function buscar_funcionario($formulario,$tipo,$div){
-
- $tabla_autenticacion = $_SESSION['tabla_autenticacion'];
- $respuesta = new xajaxResponse('utf-8');
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
-
- if($tipo =="buscador"){
- $div ="div_mostrar_funcionario";
- $resultado= "
-
-
-
-
- Documento
-
-
-
-
-
-
-
-
-
- ";
-
-print $resultado; return;
- }
- elseif( $tipo =='busqueda') {
- $id = $formulario;
-//$consulta= "SELECT * FROM $tabla_autenticacion ,usuarios_grupo WHERE $tabla_autenticacion.id_grupo = usuarios_grupo.id_grupo AND documento_numero ='".$documento."' LIMIT 1";
-$consulta= "SELECT *, usuarios_grupo.id AS id_grupo , $tabla_autenticacion.id AS id_usuario
- FROM $tabla_autenticacion ,usuarios_grupo
- WHERE $tabla_autenticacion.id_grupo = usuarios_grupo.id AND $tabla_autenticacion.id ='".$id."' LIMIT 1";
-
-
- //$respuesta->addAlert(" ya $consulta");
- //$respuesta->addAssign("$div","innerHTML","$resultado");
-
- //return $respuesta;
- $sql = mysqli_query($link,$consulta);
- if (mysqli_num_rows($sql)!=0){
- $resultado ="
";
- mysqli_data_seek($sql, 0);
- while( $row = mysqli_fetch_array( $sql ) ) {
-
- if($_SESSION[grupo] === "1") {
- //($tabla,$key,$campo,$valor,$accion,$div,$indice)
- $username = editar_campo("$tabla_autenticacion",$row['id_usuario'],"username","","","","");
- $email = editar_campo("$tabla_autenticacion",$row['id_usuario'],"email","","","","");
- $p_nombre = editar_campo("$tabla_autenticacion",$row['id_usuario'],"p_nombre","","","","");
- $s_nombre = editar_campo("$tabla_autenticacion",$row['id_usuario'],"s_nombre","","","","");
- $p_apellido = editar_campo("$tabla_autenticacion",$row['id_usuario'],"p_apellido","","","","");
- $s_apellido = editar_campo("$tabla_autenticacion",$row['id_usuario'],"s_apellido","","","","");
- $fecha_nacimiento = editar_campo("$tabla_autenticacion",$row['id_usuario'],"fecha_nacimiento","","","","");
- $telefono_celular = editar_campo("$tabla_autenticacion",$row['id_usuario'],"telefono_celular","","","","");
- $titulo_profesional = editar_campo("$tabla_autenticacion",$row['id_usuario'],"titulo_profesional","","","","");
- $ocupacion = editar_campo("$tabla_autenticacion",$row['id_usuario'],"ocupacion","","","","");
- $cargo = editar_campo("$tabla_autenticacion",$row['id_usuario'],"cargo","","","");
- if($row['imagen'] =="") { $imagen = "images/profile.jpg"; }
- else{$imagen= "images/secure/?file=300/$row[imagen]";}
-
- //$grupo = seleccionar_grupo('id_grupo',"$row[id_grupo]");
- $grupo = select('usuarios_grupo','id','grupo_nombre',"xajax_cambiar_grupo('$row[id_usuario]',(this.value))",'',"","$row[id_grupo]");
- //select($tabla,$value,$descripcion,$onchange,$where,$nombre,$valor)
- $grupo ="
-
-
- Grupo:
-
- $grupo
-
-
- ";
- }
-
- //$ = editar_campo("$tabla_autenticacion",$row['id_usuario'],"","","","");
- $listado_formularios = formulario_permisos_usuario("","$id",'');
- $subir_imagen = subir_imagen("","");
- $resultado .= "
-
-
-
Perfil de usuario
-
-
-
-
-
-
- $subir_imagen
-
-
Cambiar imagen
-
-
-
- Nombre de usuario: $username
- Primer nombre: $p_nombre
- Otros nombres: $s_nombre
- Primer apellido: $p_apellido
- Otros apellidos: $s_apellido
- Fecha de nacimieno: $fecha_nacimiento
- Teléfono: $telefono_celular
- Titulo profesional: $titulo_profesional
- Ocupación: $ocupacion
- Cargo: $cargo
-
- $listado_formularios
-
-
-
-
-
-
-
-
- ";
-
-
- }
-
- $resultado .= " ";}else {
-
- $resultado ="
No existe el usuario
";
- }
-
- $respuesta->addAssign("muestra_form","innerHTML","$resultado");
- $respuesta->addAssign("titulo_modal","innerHTML","$regresar");
- //$respuesta->addAssign("titulo_modal","innerHTML","$datos_usuario");
- //$respuesta->addAssign("pie_modal","innerHTML","$pie");
- $respuesta->addscript("$('#muestraInfo').removeClass('fade').modal('hide')");
- $respuesta->addscript("$('#muestraInfo').modal('toggle')");
- return $respuesta;
-
- }
- elseif( $tipo =='nuevo') {
- ///$grupo = select('usuarios_grupos','id','nombre,regimen','xajax_eapbs((this.value))',"",'');
- $grupo = seleccionar_grupo('id_grupo');
- $resultado ="
-
-
- ";
-
- }
- elseif( $tipo =='grabar') {
- $password = generar_password();
- $password_md5 = md5($password);
- $consulta ="INSERT INTO $tabla_autenticacion SET
-
-
- username='$formulario[username]',
- email='$formulario[email]',
- p_nombre='$formulario[p_nombre]',
- s_nombre='$formulario[s_nombre]',
- p_apellido='$formulario[p_apellido]',
- s_apellido='$formulario[s_apellido]',
- fecha_nacimiento='$formulario[fecha_nacimiento]',
- telefono_celular='$formulario[telefono_celular]',
- titulo_profesional='$formulario[titulo_profesional]',
- documento_numero='$formulario[documento_numero]',
- ocupacion='$formulario[ocupacion]',
- cargo='$formulario[cargo]',
- id_grupo='$formulario[id_grupo]',
- passwd ='$password_md5'
-
- ";
- $insertar = mysqli_query($link,$consulta);
- $resultado = "$consulta";
- }
-else {}
-
- $resultado .="";
-
- $respuesta = new xajaxResponse('utf-8');
- $respuesta->addAlert(" ya $resultado");
- $respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
-
-
-}
-$xajax->registerFunction("buscar_funcionario");
-
-
-
-function usuarios_listado($tabla,$div){
-
- if($_SESSION['id'] == 1) { } else {$w_empresa = "WHERE id_empresa= '$_SESSION[id_empresa]' ";}
-
-$link=Conectarse();
-
-mysqli_set_charset($link, "utf8");
-
-$consulta = "SELECT * FROM $tabla $w_empresa ORDER BY username ";
-$sql=mysqli_query($link,$consulta);
-
-$resultado="
-$name
-Id Username Nombre Email Documento Empresa
- " ;
-if (mysqli_num_rows($sql)!='0'){
- if($onchange !=''){$vacio ="";}else{$vacio =" >> Nuevo $descripcion << ";}
-
-$linea = 1;
-while( $row = mysqli_fetch_array( $sql ) ) {
-$username= editar_campo("$tabla",$row['id'],"username","","","");
-$p_nombre= editar_campo("$tabla",$row['id'],"p_nombre","","","");
-$p_apellido= editar_campo("$tabla",$row['id'],"p_apellido","","","");
-//$empresa_id= editar_campo("$tabla",$row['id'],"id_empresa","","","");
-$empresa_id= $row['id_empresa'];
-$grupo = remplacetas('usuarios_grupo','id',"$row[id_grupo]","grupo_nombre","") ;
-$empresa = remplacetas('empresa','id',"$row[id_empresa]","sigla","") ;
-
-
- require ("includes/parametrizacion.php");
- if($_SESSION['id'] == 1 AND $soporte_multiempresa !== 0) {
- $empresa_id= editar_campo("$tabla",$row['id'],"id_empresa","","","");
- }else {$empresa_id= $row['id_empresa'];}
-if($row[id] !="1") {
- $acciones = " ";}
- else {$acciones="";}
-$resultado .= "$row[id] $username $p_nombre $p_apellido $row[email] $row[documento_numero] $empresa[0] $grupo[0] Editar
$acciones ";
-$linea++;
- }
-
-
- }else{
- $resultado = " No hay resultados
";
- }
-
- if($div =="") {
- $div="contenido";
- // $resultado ="Configuración multiempresa ";
- return $resultado;
- }
- $respuesta->addScript("javascript:xajax_multiempresa('empresa','$div')");
- return $respuesta;
-}
-$xajax->registerFunction("usuarios_listado");
-
-
-function XXX($identificador,$tipo,$usuario,$div){
- if($tipo=="todo") {
- $w_tipo ="";
- }else {
- $w_tipo ="AND tipo= '$tipo'";
- }
-$consulta = "SELECT * FROM form_interacciones WHERE identificador = '$identificador' $w_tipo ORDER BY timestamp DESC ";
-$link=Conectarse();
-mysqli_set_charset($link, "utf8");
- mysqli_real_escape_string($link,$consulta);
-$sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0'){
-$resultado = mysqli_num_rows($sql);
-
-require ("milfs/includes/parametrizacion.php");
-
-
-while( $row = mysqli_fetch_array( $sql ) ) {
- $usuario = remplacetas('form_datos','control',"$row[usuario]","contenido","id_campo = '$login_campo_nombres'") ;
- $nombre_usuario = remplacetas('form_datos','control',"$control_servicio[0]","contenido"," id_campo = '$login_campo_nombres'") ;
- $avatar_usuario = remplacetas('form_datos','control',"$control_servicio[0]","contenido","id_campo = '$login_campo_avatar'") ;
- if($tipo =="todo") {
- if($row[tipo] =="Mensaje"){ $alerta='default'; }
- elseif($row[tipo] =="Si"){ $alerta='success'; }
- elseif($row[tipo] =="No"){ $alerta='warning'; }
- elseif($row[tipo] =="Comentar"){ $alerta='info'; }
- else{ $alerta=''; }
-
- }
-
- $listado .= "
-
-
- ".strip_tags($row['mensaje'])."
- $usuario[0] $row[timestamp]
-
-
- ";
-
- }
-$resultado= "
-
-
-
- Interacciones
-
-
-
-
-
";
-}
-$respuesta = new xajaxResponse('utf-8');
-$respuesta->addAssign("$div","innerHTML","$resultado");
-
- return $respuesta;
-
-}
-$xajax->registerFunction("XXX");
-
-
-?>
diff --git a/milfs/funciones/login.php~ b/milfs/funciones/login.php~
deleted file mode 100755
index 390e30c..0000000
--- a/milfs/funciones/login.php~
+++ /dev/null
@@ -1,315 +0,0 @@
-addRedirect("index.php");
- return $respuesta;
- }
-
- if(isset($_SESSION['id'])){
-
-$accion = " $_SESSION[username] ";
- }else{
- $accion = registro_express("nuevo_$nombre_formato","boton");
- print $accion;
- return;
-// return $login;
- }
- $resultado ="
-
-";
- print $resultado;
- return;
- }
-$xajax->registerFunction("login_boton");
-
-
-
-function revisar_ingreso($formulario){
- $formulario = mysql_seguridad($formulario);
- if($formulario =="") {
- $formulario ="
-
-
- Correo o usuario
-
-
-
-
-
-
-
-
-
- Clave
-
-
-
-
-
-
- No recuerdo mi clave
-
-
-
-
-
- ";
-$resultado = "
-
- ";
-if(!isset($_SESSION['id'])){ print $resultado; }else {
-
-//print $nuevo ;
-}
-return;
- }
- include("includes/datos.php");
- $div='contenido';
- $respuesta = new xajaxResponse('utf-8');
-
- $email = $formulario[email];
- $recordar = $formulario[recordar];
-
-
- if($email =='') {
-
- $respuesta->addAlert("Ingresa tu nombre de usuario o email");
- return $respuesta;
- }
- if($formulario[password] =='' AND $recordar =='') {
-
- $respuesta->addAlert("Ingresa tu clave");
- return $respuesta;
- }
- $password= MD5($formulario[password]);
- $link=Conectarse();
- mysqli_set_charset($link, "utf8");
-
- if($recordar =='1')
-{
-if($email =='')
- {
-$tipo='danger';
-$mensaje ="Por favor escribe tu correo o usuario si olvidaste tu clave.";
- $respuesta->addAssign($div,"innerHTML",$mensaje);
- return $respuesta;
- }else
- {
-$consulta = "SELECT id,email,control,id_empresa FROM $tabla_autenticacion WHERE (email = '$email' OR username = '$email' )";
- $sql=mysqli_query($link,$consulta);
-if (mysqli_num_rows($sql)!='0')
- {
-$firma_recuperacion = sha1("$control".mktime()."");
-$correo = mysqli_result($sql,0,"email");
-$control = mysqli_result($sql,0,"control");
-$id_usuario = mysqli_result($sql,0,"id");
-$id_empresa = mysqli_result($sql,0,"id_empresa");
-$firma ="UPDATE $tabla_autenticacion SET `firma_recuperacion` = '$firma_recuperacion' WHERE `usuarios`.`id` = '$id_usuario';";
-$cambiar_firma=mysqli_query($link,$firma);
-$tipo='success';
-
- $direccion = remplacetas("empresa","id",$id_empresa,"direccion","");
- $telefono = remplacetas("empresa","id",$id_empresa,"telefono","");
- $web = remplacetas("empresa","id",$id_empresa,"web","");
- $email = remplacetas("empresa","id",$id_empresa,"email","");
- $imagen = remplacetas("empresa","id",$id_empresa,"imagen","");
- $razon_social = remplacetas("empresa","id",$id_empresa,"razon_social","");
- $slogan = remplacetas("empresa","id",$id_empresa,"slogan","");
-
-$headers = "MIME-Version: 1.0\r\n";
-$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
-$headers .= "From: $razon_social[0] <$email[0]>\r\n";
-$headers .= "Reply-To: $email[0]\r\n";
-$headers .= "Return-path: $email[0]\r\n";
-
-$asunto= "Cambio de clave";
-$cuerpo ="
-$razon_social[0]
-
-
Aplicación de formularios
-
-
-
Se ha solicitado un cambio de clave para tu usuario.
-Si fuiste tu quien lo solicitó, sigue este enlace para realizar el cambio.
-http://$_SERVER[HTTP_HOST]/milfs/index.php?change=$firma_recuperacion
-
-
Si no solicitaste el cambio, por favor comunícalo respondiendo este correo.
-
-
- ";
- $mensaje =" Enviamos un correo con la confirmación a $correo";
- mail("$correo","$asunto","$cuerpo","$headers") ;
- }else
- {
-$tipo='danger';
-$mensaje ="El correo o usuario no se encuentra registrado aún.";
- }
- }
- $resultado ="$mensaje
";
- $respuesta->addAssign($div,"innerHTML",$resultado);
-
- return $respuesta;
-}
-
-//$consulta = "SELECT * FROM $tabla_autenticacion WHERE (email = '$email' OR username = '$email' )AND passwd = '$password' LIMIT 1";
-$consulta= "SELECT *
- FROM $tabla_autenticacion, usuarios_grupo
- WHERE (email = '$email' OR username = '$email' )AND passwd = '$password'
- AND $tabla_autenticacion.id_grupo = usuarios_grupo.id
- LIMIT 1";
-
- $sql=mysqli_query($link,$consulta);
- if (mysqli_num_rows($sql)!='0'){
- if(mysqli_result($sql,0,"status") === '0' ) {
- $resultado = "
-
- Aún no se ha confirmado tu email, por favor revisa tu correo
-
";
- //$div ="login_ok";
-
- }
- else {
- //session_destroy();
- $_SESSION = array();
- $_SESSION['username']= mysqli_result($sql,0,"username");
- $_SESSION['id']= mysqli_result($sql,0,"id");
- $_SESSION['grupo']= mysqli_result($sql,0,"id_grupo");
- $_SESSION['tabla_autenticacion']= "$tabla_autenticacion";
- $_SESSION['prioridad'] = mysqli_result($sql,0,"prioridad");
- $_SESSION['id_empresa']= mysqli_result($sql,0,"id_empresa");
- $_SESSION[$usuarios_sesion]= "$usuarios_sesion";
-
-
-
- $resultado .="
- $sucursal
-
-
Hola $_SESSION[username] ";
- //$url=urlencode('../index.php');
- //$respuesta->addRedirect("$_SESSION[site]");
- $respuesta->addScript("window.location='../'");
- //header("Location: ../");
- //return;
- }
- }else{
- $resultado = "
-
- Los datos no son correctos, por favor rectifica o ponte en para mas información.
-
";
- }
- $respuesta->addAssign($div,"innerHTML",$resultado);
- return $respuesta;
- }
-
-$xajax->registerFunction("revisar_ingreso");
-
-function cambiar_password_formato($change) {
- $firma_recuperacion = remplacetas("usuarios","firma_recuperacion",$change,"firma_recuperacion") ;
- if($firma_recuperacion[0] =='') {
- $formato ="Lo sentimos El Link ya no es válido
";
- return $formato;
- }
-$formato="
-
-
-
-
-
-
- Cambio de clave
-
-
-
-
-
-
-
-
Grabar
-
-
-
-
-";
-return $formato;
-}
-
-function cambiar_password($formulario){
- // if ( !isset ( $_SESSION['id'] ) ) { return;}
- $respuesta = new xajaxResponse('utf-8');
-$formulario = mysql_seguridad($formulario);
-$actual= $formulario[password_actual];
-$nuevo= $formulario[password_nuevo];
-$confirmacion= $formulario[password_confirmacion];
-$firma = $formulario[firma_recuperacion];
-$firma_recuperacion = remplacetas("usuarios","firma_recuperacion",$formulario[firma_recuperacion],"firma_recuperacion") ;
-if(isset($firma)) {$actual = $firma; $id_usuario = $firma_recuperacion[1]; }else{$id_usuario = $_SESSION[id]; }
-$verifica = remplacetas("usuarios","id",$_SESSION[id],"passwd") ;
-
-$size= strlen($nuevo);
-if($nuevo != $confirmacion OR $actual =="" ){
-
- $respuesta->addAlert("Los valores no coinciden ( $formulario[firma_recuperacion] ) $nuevo != $confirmacion $formulario[firma_recuperacion] $firma $actual \OR $actual");
-return $respuesta;
-}elseif($size < 8) {
- $respuesta->addAlert("Use un password mas seguro: Mínimo 8 caracteres.");
-return $respuesta;
-}
-elseif( $firma_recuperacion[0] != $formulario[firma_recuperacion]){
- $respuesta->addAlert("El link ya no es valido");
- return $respuesta;
-
-}
-elseif($formulario[firma_recuperacion] =='' AND $verifica[0] != MD5($actual) ){
- $respuesta->addAlert("Error de password $formulario[firma_recuperacion]");
- return $respuesta;
-}else{}
-
-$link=Conectarse();
- mysqli_set_charset($link, "utf8");
- $nueva_firma = sha1(mktime());
- $consulta = "UPDATE usuarios SET passwd = '".MD5($nuevo)."' , firma_recuperacion = '$nueva_firma' WHERE id = $id_usuario;";
- $sql_consulta=mysqli_query($link,$consulta);
- if($sql_consulta) {
-$resultado = "La clave se cambió con éxito.
";
- }else{$resultado= "";}
- $respuesta->addAlert("La clave se cambió con éxito.");
- $respuesta->addRedirect("index.php");
- return $respuesta;
- }
-
-$xajax->registerFunction("cambiar_password");
-
-
-
-?>
\ No newline at end of file
diff --git a/temas/chamitrip/cabecera b/temas/chamitrip/cabecera
new file mode 100644
index 0000000..2d369ea
--- /dev/null
+++ b/temas/chamitrip/cabecera
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/temas/chamitrip/css/freelancer.css b/temas/chamitrip/css/freelancer.css
new file mode 100644
index 0000000..343c5a4
--- /dev/null
+++ b/temas/chamitrip/css/freelancer.css
@@ -0,0 +1,529 @@
+/*!
+ * Start Bootstrap - Freelancer v3.3.7+1 (http://startbootstrap.com/template-overviews/freelancer)
+ * Copyright 2013-2016 Start Bootstrap
+ * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
+ */
+body {
+ font-family: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
+ overflow-x: hidden;
+}
+p {
+ font-size: 20px;
+}
+p.small {
+ font-size: 16px;
+}
+a,
+a:hover,
+a:focus,
+a:active,
+a.active {
+ color: #18BC9C;
+ outline: none;
+}
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
+ text-transform: uppercase;
+ font-weight: 700;
+}
+hr.star-light,
+hr.star-primary {
+ padding: 0;
+ border: none;
+ border-top: solid 5px;
+ text-align: center;
+ max-width: 250px;
+ margin: 25px auto 30px;
+}
+hr.star-light:after,
+hr.star-primary:after {
+ content: "\f005";
+ font-family: FontAwesome;
+ display: inline-block;
+ position: relative;
+ top: -0.8em;
+ font-size: 2em;
+ padding: 0 0.25em;
+}
+hr.star-light {
+ border-color: white;
+}
+hr.star-light:after {
+ background-color: #18BC9C;
+ color: white;
+}
+hr.star-primary {
+ border-color: #2C3E50;
+}
+hr.star-primary:after {
+ background-color: white;
+ color: #2C3E50;
+}
+.img-centered {
+ margin: 0 auto;
+}
+header {
+ text-align: center;
+ background: #18BC9C;
+ color: white;
+}
+header .container {
+ padding-top: 100px;
+ padding-bottom: 50px;
+}
+header img {
+ display: block;
+ margin: 0 auto 20px;
+}
+header .intro-text .name {
+ display: block;
+ font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
+ text-transform: none;
+ font-weight: 400;
+ font-size: 2em;
+}
+header .intro-text .skills {
+ font-size: 1.25em;
+ font-weight: 300;
+}
+@media (min-width: 768px) {
+ header .container {
+ padding-top: 200px;
+ padding-bottom: 200px;
+ }
+ header .intro-text .name {
+ font-size: 3.5em;
+ margin-bottom: 60px;
+ }
+ header .intro-text .skills {
+ font-size: 1.75em;
+ }
+}
+.bg-cover {
+ background-position: center;
+ background-size: cover;
+}
+#mainNav.navbar.navbar-default {
+ background-color: #333943;
+}
+.navbar-custom {
+ background: #2C3E50;
+ font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
+ text-transform: uppercase;
+ font-weight: 700;
+ border: none;
+}
+.navbar-custom a:focus {
+ outline: none;
+}
+.navbar-custom .navbar-brand {
+ color: white;
+}
+.navbar-custom .navbar-brand:hover,
+.navbar-custom .navbar-brand:focus,
+.navbar-custom .navbar-brand:active,
+.navbar-custom .navbar-brand.active {
+ color: white;
+}
+.navbar-custom .navbar-nav {
+ letter-spacing: 1px;
+}
+.navbar-custom .navbar-nav li a {
+ color: white;
+}
+.navbar-custom .navbar-nav li a:hover {
+ color: #18BC9C;
+ outline: none;
+}
+.navbar-custom .navbar-nav li a:focus,
+.navbar-custom .navbar-nav li a:active {
+ color: white;
+}
+.navbar-custom .navbar-nav li.active a {
+ color: white;
+ background: #18BC9C;
+}
+.navbar-custom .navbar-nav li.active a:hover,
+.navbar-custom .navbar-nav li.active a:focus,
+.navbar-custom .navbar-nav li.active a:active {
+ color: white;
+ background: #18BC9C;
+}
+.navbar-custom .navbar-toggle {
+ color: white;
+ text-transform: uppercase;
+ font-size: 10px;
+ border-color: white;
+}
+.navbar-custom .navbar-toggle:hover,
+.navbar-custom .navbar-toggle:focus {
+ background-color: #18BC9C;
+ color: white;
+ border-color: #18BC9C;
+}
+@media (min-width: 768px) {
+ .navbar-custom {
+ padding: 18px 0;
+ -webkit-transition: padding 0.3s;
+ -moz-transition: padding 0.3s;
+ transition: padding 0.3s;
+ }
+ .navbar-custom .navbar-brand {
+ font-size: 2em;
+ -webkit-transition: all 0.3s;
+ -moz-transition: all 0.3s;
+ transition: all 0.3s;
+ }
+ .navbar-custom.affix {
+ padding: 10px 0;
+ }
+ .navbar-custom.affix .navbar-brand {
+ font-size: 1.5em;
+ }
+
+ .navbar-brand {
+ height: 75px;
+ padding: 0;
+ }
+}
+section {
+ padding: 100px 0;
+}
+section h2 {
+ margin: 0;
+ font-size: 3em;
+}
+section.success {
+ background: #18BC9C;
+ color: white;
+}
+@media (max-width: 767px) {
+ section {
+ padding: 75px 0;
+ }
+ section.first {
+ padding-top: 75px;
+ }
+}
+#portfolio .portfolio-item {
+ margin: 0 0 15px;
+ right: 0;
+}
+#portfolio .portfolio-item .portfolio-link {
+ display: block;
+ position: relative;
+ max-width: 400px;
+ margin: 0 auto;
+}
+#portfolio .portfolio-item .portfolio-link .caption {
+ background: rgba(24, 188, 156, 0.9);
+ position: absolute;
+ width: 100%;
+ height: 100%;
+ opacity: 0;
+ transition: all ease 0.5s;
+ -webkit-transition: all ease 0.5s;
+ -moz-transition: all ease 0.5s;
+}
+#portfolio .portfolio-item .portfolio-link .caption:hover {
+ opacity: 1;
+}
+#portfolio .portfolio-item .portfolio-link .caption .caption-content {
+ position: absolute;
+ width: 100%;
+ height: 20px;
+ font-size: 20px;
+ text-align: center;
+ top: 50%;
+ margin-top: -12px;
+ color: white;
+}
+#portfolio .portfolio-item .portfolio-link .caption .caption-content i {
+ margin-top: -12px;
+}
+#portfolio .portfolio-item .portfolio-link .caption .caption-content h3,
+#portfolio .portfolio-item .portfolio-link .caption .caption-content h4 {
+ margin: 0;
+}
+#portfolio * {
+ z-index: 2;
+}
+@media (min-width: 767px) {
+ #portfolio .portfolio-item {
+ margin: 0 0 30px;
+ }
+}
+.floating-label-form-group {
+ position: relative;
+ margin-bottom: 0;
+ padding-bottom: 0.5em;
+ border-bottom: 1px solid #eeeeee;
+}
+.floating-label-form-group input,
+.floating-label-form-group textarea {
+ z-index: 1;
+ position: relative;
+ padding-right: 0;
+ padding-left: 0;
+ border: none;
+ border-radius: 0;
+ font-size: 1.5em;
+ background: none;
+ box-shadow: none !important;
+ resize: none;
+}
+.floating-label-form-group label {
+ display: block;
+ z-index: 0;
+ position: relative;
+ top: 2em;
+ margin: 0;
+ font-size: 0.85em;
+ line-height: 1.764705882em;
+ vertical-align: middle;
+ vertical-align: baseline;
+ opacity: 0;
+ -webkit-transition: top 0.3s ease,opacity 0.3s ease;
+ -moz-transition: top 0.3s ease,opacity 0.3s ease;
+ -ms-transition: top 0.3s ease,opacity 0.3s ease;
+ transition: top 0.3s ease,opacity 0.3s ease;
+}
+.floating-label-form-group:not(:first-child) {
+ padding-left: 14px;
+ border-left: 1px solid #eeeeee;
+}
+.floating-label-form-group-with-value label {
+ top: 0;
+ opacity: 1;
+}
+.floating-label-form-group-with-focus label {
+ color: #18BC9C;
+}
+form .row:first-child .floating-label-form-group {
+ border-top: 1px solid #eeeeee;
+}
+footer {
+ color: white;
+}
+footer h3 {
+ margin-bottom: 30px;
+}
+footer .footer-above {
+ padding-top: 50px;
+ background-color: #2C3E50;
+}
+footer .footer-col {
+ margin-bottom: 50px;
+}
+footer .footer-below {
+ padding: 25px 0;
+ background-color: #233140;
+}
+.btn-outline {
+ color: white;
+ font-size: 20px;
+ border: solid 2px white;
+ background: transparent;
+ transition: all 0.3s ease-in-out;
+ margin-top: 15px;
+}
+.btn-outline:hover,
+.btn-outline:focus,
+.btn-outline:active,
+.btn-outline.active {
+ color: #18BC9C;
+ background: white;
+ border: solid 2px white;
+}
+.btn-primary {
+ color: white;
+ background-color: #2C3E50;
+ border-color: #2C3E50;
+ font-weight: 700;
+}
+.btn-primary:hover,
+.btn-primary:focus,
+.btn-primary:active,
+.btn-primary.active,
+.open .dropdown-toggle.btn-primary {
+ color: white;
+ background-color: #1a242f;
+ border-color: #161f29;
+}
+.btn-primary:active,
+.btn-primary.active,
+.open .dropdown-toggle.btn-primary {
+ background-image: none;
+}
+.btn-primary.disabled,
+.btn-primary[disabled],
+fieldset[disabled] .btn-primary,
+.btn-primary.disabled:hover,
+.btn-primary[disabled]:hover,
+fieldset[disabled] .btn-primary:hover,
+.btn-primary.disabled:focus,
+.btn-primary[disabled]:focus,
+fieldset[disabled] .btn-primary:focus,
+.btn-primary.disabled:active,
+.btn-primary[disabled]:active,
+fieldset[disabled] .btn-primary:active,
+.btn-primary.disabled.active,
+.btn-primary[disabled].active,
+fieldset[disabled] .btn-primary.active {
+ background-color: #2C3E50;
+ border-color: #2C3E50;
+}
+.btn-primary .badge {
+ color: #2C3E50;
+ background-color: white;
+}
+.btn-success {
+ color: white;
+ background-color: #18BC9C;
+ border-color: #18BC9C;
+ font-weight: 700;
+}
+.btn-success:hover,
+.btn-success:focus,
+.btn-success:active,
+.btn-success.active,
+.open .dropdown-toggle.btn-success {
+ color: white;
+ background-color: #128f76;
+ border-color: #11866f;
+}
+.btn-success:active,
+.btn-success.active,
+.open .dropdown-toggle.btn-success {
+ background-image: none;
+}
+.btn-success.disabled,
+.btn-success[disabled],
+fieldset[disabled] .btn-success,
+.btn-success.disabled:hover,
+.btn-success[disabled]:hover,
+fieldset[disabled] .btn-success:hover,
+.btn-success.disabled:focus,
+.btn-success[disabled]:focus,
+fieldset[disabled] .btn-success:focus,
+.btn-success.disabled:active,
+.btn-success[disabled]:active,
+fieldset[disabled] .btn-success:active,
+.btn-success.disabled.active,
+.btn-success[disabled].active,
+fieldset[disabled] .btn-success.active {
+ background-color: #18BC9C;
+ border-color: #18BC9C;
+}
+.btn-success .badge {
+ color: #18BC9C;
+ background-color: white;
+}
+.btn-social {
+ display: inline-block;
+ height: 50px;
+ width: 50px;
+ border: 2px solid white;
+ border-radius: 100%;
+ text-align: center;
+ font-size: 20px;
+ line-height: 45px;
+}
+.btn:focus,
+.btn:active,
+.btn.active {
+ outline: none;
+}
+.scroll-top {
+ position: fixed;
+ right: 2%;
+ bottom: 2%;
+ width: 50px;
+ height: 50px;
+ z-index: 1049;
+}
+.scroll-top .btn {
+ font-size: 20px;
+ width: 50px;
+ height: 50px;
+ border-radius: 100%;
+ line-height: 28px;
+}
+.scroll-top .btn:focus {
+ outline: none;
+}
+.portfolio-modal .modal-content {
+ border-radius: 0;
+ background-clip: border-box;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ border: none;
+ min-height: 100%;
+ padding: 100px 0;
+ text-align: center;
+}
+.portfolio-modal .modal-content h2 {
+ margin: 0;
+ font-size: 3em;
+}
+.portfolio-modal .modal-content img {
+ margin-bottom: 30px;
+}
+.portfolio-modal .modal-content .item-details {
+ margin: 30px 0;
+}
+.portfolio-modal .close-modal {
+ position: absolute;
+ width: 75px;
+ height: 75px;
+ background-color: transparent;
+ top: 25px;
+ right: 25px;
+ cursor: pointer;
+}
+.portfolio-modal .close-modal:hover {
+ opacity: 0.3;
+}
+.portfolio-modal .close-modal .lr {
+ height: 75px;
+ width: 1px;
+ margin-left: 35px;
+ background-color: #2C3E50;
+ transform: rotate(45deg);
+ -ms-transform: rotate(45deg);
+ /* IE 9 */
+ -webkit-transform: rotate(45deg);
+ /* Safari and Chrome */
+ z-index: 1051;
+}
+.portfolio-modal .close-modal .lr .rl {
+ height: 75px;
+ width: 1px;
+ background-color: #2C3E50;
+ transform: rotate(90deg);
+ -ms-transform: rotate(90deg);
+ /* IE 9 */
+ -webkit-transform: rotate(90deg);
+ /* Safari and Chrome */
+ z-index: 1052;
+}
+.portfolio-modal .modal-backdrop {
+ opacity: 0;
+ display: none;
+}
+
+.navbar-brand .main-logo {
+ height: 100%;
+}
+.search-form .search-input {
+ color: #454545;
+ border: 0;
+ background: #fff;
+ box-shadow: none;
+ padding: 13px 16px;
+}
\ No newline at end of file
diff --git a/temas/chamitrip/css/freelancer.min.css b/temas/chamitrip/css/freelancer.min.css
new file mode 100644
index 0000000..f8d0c5f
--- /dev/null
+++ b/temas/chamitrip/css/freelancer.min.css
@@ -0,0 +1,5 @@
+/*!
+ * Start Bootstrap - Freelancer v3.3.7+1 (http://startbootstrap.com/template-overviews/freelancer)
+ * Copyright 2013-2016 Start Bootstrap
+ * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
+ */body{font-family:Lato,'Helvetica Neue',Helvetica,Arial,sans-serif;overflow-x:hidden}p{font-size:20px}p.small{font-size:16px}a,a.active,a:active,a:focus,a:hover{color:#18BC9C;outline:0}h1,h2,h3,h4,h5,h6{font-family:Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;text-transform:uppercase;font-weight:700}hr.star-light,hr.star-primary{padding:0;border:none;border-top:solid 5px;text-align:center;max-width:250px;margin:25px auto 30px}hr.star-light:after,hr.star-primary:after{content:"\f005";font-family:FontAwesome;display:inline-block;position:relative;top:-.8em;font-size:2em;padding:0 .25em}.navbar-custom,header .intro-text .name{font-family:Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;text-transform:uppercase}hr.star-light{border-color:#fff}hr.star-light:after{background-color:#18BC9C;color:#fff}hr.star-primary{border-color:#2C3E50}hr.star-primary:after{background-color:#fff;color:#2C3E50}.navbar-custom .navbar-brand,.navbar-custom .navbar-brand.active,.navbar-custom .navbar-brand:active,.navbar-custom .navbar-brand:focus,.navbar-custom .navbar-brand:hover,.navbar-custom .navbar-nav li a,header{color:#fff}.img-centered{margin:0 auto}header{text-align:center;background:#18BC9C}header .container{padding-top:100px;padding-bottom:50px}header img{display:block;margin:0 auto 20px}header .intro-text .name{display:block;font-weight:700;font-size:2em}header .intro-text .skills{font-size:1.25em;font-weight:300}@media (min-width:768px){header .container{padding-top:200px;padding-bottom:100px}header .intro-text .name{font-size:4.75em}header .intro-text .skills{font-size:1.75em}}.navbar-custom{background:#2C3E50;font-weight:700;border:none}.navbar-custom a:focus{outline:0}.navbar-custom .navbar-nav{letter-spacing:1px}.navbar-custom .navbar-nav li a:hover{color:#18BC9C;outline:0}.navbar-custom .navbar-nav li a:active,.navbar-custom .navbar-nav li a:focus{color:#fff}.navbar-custom .navbar-nav li.active a,.navbar-custom .navbar-nav li.active a:active,.navbar-custom .navbar-nav li.active a:focus,.navbar-custom .navbar-nav li.active a:hover{color:#fff;background:#18BC9C}.navbar-custom .navbar-toggle{color:#fff;text-transform:uppercase;font-size:10px;border-color:#fff}.navbar-custom .navbar-toggle:focus,.navbar-custom .navbar-toggle:hover{background-color:#18BC9C;color:#fff;border-color:#18BC9C}@media (min-width:768px){.navbar-custom{padding:25px 0;-webkit-transition:padding .3s;-moz-transition:padding .3s;transition:padding .3s}.navbar-custom .navbar-brand{font-size:2em;-webkit-transition:all .3s;-moz-transition:all .3s;transition:all .3s}.navbar-custom.affix{padding:10px 0}.navbar-custom.affix .navbar-brand{font-size:1.5em}}section{padding:100px 0}section h2{margin:0;font-size:3em}section.success{background:#18BC9C;color:#fff}@media (max-width:767px){section{padding:75px 0}section.first{padding-top:75px}}#portfolio .portfolio-item{margin:0 0 15px;right:0}#portfolio .portfolio-item .portfolio-link{display:block;position:relative;max-width:400px;margin:0 auto}#portfolio .portfolio-item .portfolio-link .caption{background:rgba(24,188,156,.9);position:absolute;width:100%;height:100%;opacity:0;transition:all ease .5s;-webkit-transition:all ease .5s;-moz-transition:all ease .5s}#portfolio .portfolio-item .portfolio-link .caption:hover{opacity:1}#portfolio .portfolio-item .portfolio-link .caption .caption-content{position:absolute;width:100%;height:20px;font-size:20px;text-align:center;top:50%;margin-top:-12px;color:#fff}.btn-social,.scroll-top,.scroll-top .btn{width:50px;height:50px}#portfolio .portfolio-item .portfolio-link .caption .caption-content i{margin-top:-12px}#portfolio .portfolio-item .portfolio-link .caption .caption-content h3,#portfolio .portfolio-item .portfolio-link .caption .caption-content h4{margin:0}#portfolio *{z-index:2}@media (min-width:767px){#portfolio .portfolio-item{margin:0 0 30px}}.floating-label-form-group{position:relative;margin-bottom:0;padding-bottom:.5em;border-bottom:1px solid #eee}.floating-label-form-group input,.floating-label-form-group textarea{z-index:1;position:relative;padding-right:0;padding-left:0;border:none;border-radius:0;font-size:1.5em;background:0 0;box-shadow:none!important;resize:none}.floating-label-form-group label{display:block;z-index:0;position:relative;top:2em;margin:0;font-size:.85em;line-height:1.764705882em;vertical-align:middle;vertical-align:baseline;opacity:0;-webkit-transition:top .3s ease,opacity .3s ease;-moz-transition:top .3s ease,opacity .3s ease;-ms-transition:top .3s ease,opacity .3s ease;transition:top .3s ease,opacity .3s ease}.floating-label-form-group:not(:first-child){padding-left:14px;border-left:1px solid #eee}.floating-label-form-group-with-value label{top:0;opacity:1}.floating-label-form-group-with-focus label{color:#18BC9C}form .row:first-child .floating-label-form-group{border-top:1px solid #eee}footer{color:#fff}footer h3{margin-bottom:30px}footer .footer-above{padding-top:50px;background-color:#2C3E50}footer .footer-col{margin-bottom:50px}footer .footer-below{padding:25px 0;background-color:#233140}.btn-outline{color:#fff;font-size:20px;border:2px solid #fff;background:0 0;transition:all .3s ease-in-out;margin-top:15px}.btn-outline.active,.btn-outline:active,.btn-outline:focus,.btn-outline:hover{color:#18BC9C;background:#fff;border:2px solid #fff}.btn-primary.active,.btn-primary:active,.btn-success.active,.btn-success:active,.open .dropdown-toggle.btn-primary,.open .dropdown-toggle.btn-success{background-image:none}.btn-primary{color:#fff;background-color:#2C3E50;border-color:#2C3E50;font-weight:700}.btn-primary.active,.btn-primary:active,.btn-primary:focus,.btn-primary:hover,.open .dropdown-toggle.btn-primary{color:#fff;background-color:#1a242f;border-color:#161f29}.btn-primary.disabled,.btn-primary.disabled.active,.btn-primary.disabled:active,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled],.btn-primary[disabled].active,.btn-primary[disabled]:active,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary,fieldset[disabled] .btn-primary.active,fieldset[disabled] .btn-primary:active,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#2C3E50;border-color:#2C3E50}.btn-primary .badge{color:#2C3E50;background-color:#fff}.btn-success{color:#fff;background-color:#18BC9C;border-color:#18BC9C;font-weight:700}.btn-success.active,.btn-success:active,.btn-success:focus,.btn-success:hover,.open .dropdown-toggle.btn-success{color:#fff;background-color:#128f76;border-color:#11866f}.btn-success.disabled,.btn-success.disabled.active,.btn-success.disabled:active,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled],.btn-success[disabled].active,.btn-success[disabled]:active,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success,fieldset[disabled] .btn-success.active,fieldset[disabled] .btn-success:active,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#18BC9C;border-color:#18BC9C}.btn-success .badge{color:#18BC9C;background-color:#fff}.btn-social{display:inline-block;border:2px solid #fff;border-radius:100%;text-align:center;font-size:20px;line-height:45px}.btn.active,.btn:active,.btn:focus{outline:0}.scroll-top{position:fixed;right:2%;bottom:2%;z-index:1049}.scroll-top .btn{font-size:20px;border-radius:100%;line-height:28px}.scroll-top .btn:focus{outline:0}.portfolio-modal .modal-content{border-radius:0;background-clip:border-box;-webkit-box-shadow:none;box-shadow:none;border:none;min-height:100%;padding:100px 0;text-align:center}.portfolio-modal .modal-content h2{margin:0;font-size:3em}.portfolio-modal .modal-content img{margin-bottom:30px}.portfolio-modal .modal-content .item-details{margin:30px 0}.portfolio-modal .close-modal{position:absolute;width:75px;height:75px;background-color:transparent;top:25px;right:25px;cursor:pointer}.portfolio-modal .close-modal:hover{opacity:.3}.portfolio-modal .close-modal .lr{height:75px;width:1px;margin-left:35px;background-color:#2C3E50;transform:rotate(45deg);-ms-transform:rotate(45deg);-webkit-transform:rotate(45deg);z-index:1051}.portfolio-modal .close-modal .lr .rl{height:75px;width:1px;background-color:#2C3E50;transform:rotate(90deg);-ms-transform:rotate(90deg);-webkit-transform:rotate(90deg);z-index:1052}.portfolio-modal .modal-backdrop{opacity:0;display:none}
\ No newline at end of file
diff --git a/temas/chamitrip/fonts/font-awesome/css/font-awesome.css b/temas/chamitrip/fonts/font-awesome/css/font-awesome.css
new file mode 100644
index 0000000..a0b879f
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/css/font-awesome.css
@@ -0,0 +1,2199 @@
+/*!
+ * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
+ */
+/* FONT PATH
+ * -------------------------- */
+@font-face {
+ font-family: 'FontAwesome';
+ src: url('../fonts/fontawesome-webfont.eot?v=4.6.3');
+ src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.6.3') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.6.3') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.6.3') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.6.3') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.6.3#fontawesomeregular') format('svg');
+ font-weight: normal;
+ font-style: normal;
+}
+.fa {
+ display: inline-block;
+ font: normal normal normal 14px/1 FontAwesome;
+ font-size: inherit;
+ text-rendering: auto;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+}
+/* makes the font 33% larger relative to the icon container */
+.fa-lg {
+ font-size: 1.33333333em;
+ line-height: 0.75em;
+ vertical-align: -15%;
+}
+.fa-2x {
+ font-size: 2em;
+}
+.fa-3x {
+ font-size: 3em;
+}
+.fa-4x {
+ font-size: 4em;
+}
+.fa-5x {
+ font-size: 5em;
+}
+.fa-fw {
+ width: 1.28571429em;
+ text-align: center;
+}
+.fa-ul {
+ padding-left: 0;
+ margin-left: 2.14285714em;
+ list-style-type: none;
+}
+.fa-ul > li {
+ position: relative;
+}
+.fa-li {
+ position: absolute;
+ left: -2.14285714em;
+ width: 2.14285714em;
+ top: 0.14285714em;
+ text-align: center;
+}
+.fa-li.fa-lg {
+ left: -1.85714286em;
+}
+.fa-border {
+ padding: .2em .25em .15em;
+ border: solid 0.08em #eeeeee;
+ border-radius: .1em;
+}
+.fa-pull-left {
+ float: left;
+}
+.fa-pull-right {
+ float: right;
+}
+.fa.fa-pull-left {
+ margin-right: .3em;
+}
+.fa.fa-pull-right {
+ margin-left: .3em;
+}
+/* Deprecated as of 4.4.0 */
+.pull-right {
+ float: right;
+}
+.pull-left {
+ float: left;
+}
+.fa.pull-left {
+ margin-right: .3em;
+}
+.fa.pull-right {
+ margin-left: .3em;
+}
+.fa-spin {
+ -webkit-animation: fa-spin 2s infinite linear;
+ animation: fa-spin 2s infinite linear;
+}
+.fa-pulse {
+ -webkit-animation: fa-spin 1s infinite steps(8);
+ animation: fa-spin 1s infinite steps(8);
+}
+@-webkit-keyframes fa-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(359deg);
+ transform: rotate(359deg);
+ }
+}
+@keyframes fa-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(359deg);
+ transform: rotate(359deg);
+ }
+}
+.fa-rotate-90 {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
+ -webkit-transform: rotate(90deg);
+ -ms-transform: rotate(90deg);
+ transform: rotate(90deg);
+}
+.fa-rotate-180 {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";
+ -webkit-transform: rotate(180deg);
+ -ms-transform: rotate(180deg);
+ transform: rotate(180deg);
+}
+.fa-rotate-270 {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
+ -webkit-transform: rotate(270deg);
+ -ms-transform: rotate(270deg);
+ transform: rotate(270deg);
+}
+.fa-flip-horizontal {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";
+ -webkit-transform: scale(-1, 1);
+ -ms-transform: scale(-1, 1);
+ transform: scale(-1, 1);
+}
+.fa-flip-vertical {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";
+ -webkit-transform: scale(1, -1);
+ -ms-transform: scale(1, -1);
+ transform: scale(1, -1);
+}
+:root .fa-rotate-90,
+:root .fa-rotate-180,
+:root .fa-rotate-270,
+:root .fa-flip-horizontal,
+:root .fa-flip-vertical {
+ filter: none;
+}
+.fa-stack {
+ position: relative;
+ display: inline-block;
+ width: 2em;
+ height: 2em;
+ line-height: 2em;
+ vertical-align: middle;
+}
+.fa-stack-1x,
+.fa-stack-2x {
+ position: absolute;
+ left: 0;
+ width: 100%;
+ text-align: center;
+}
+.fa-stack-1x {
+ line-height: inherit;
+}
+.fa-stack-2x {
+ font-size: 2em;
+}
+.fa-inverse {
+ color: #ffffff;
+}
+/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
+ readers do not read off random characters that represent icons */
+.fa-glass:before {
+ content: "\f000";
+}
+.fa-music:before {
+ content: "\f001";
+}
+.fa-search:before {
+ content: "\f002";
+}
+.fa-envelope-o:before {
+ content: "\f003";
+}
+.fa-heart:before {
+ content: "\f004";
+}
+.fa-star:before {
+ content: "\f005";
+}
+.fa-star-o:before {
+ content: "\f006";
+}
+.fa-user:before {
+ content: "\f007";
+}
+.fa-film:before {
+ content: "\f008";
+}
+.fa-th-large:before {
+ content: "\f009";
+}
+.fa-th:before {
+ content: "\f00a";
+}
+.fa-th-list:before {
+ content: "\f00b";
+}
+.fa-check:before {
+ content: "\f00c";
+}
+.fa-remove:before,
+.fa-close:before,
+.fa-times:before {
+ content: "\f00d";
+}
+.fa-search-plus:before {
+ content: "\f00e";
+}
+.fa-search-minus:before {
+ content: "\f010";
+}
+.fa-power-off:before {
+ content: "\f011";
+}
+.fa-signal:before {
+ content: "\f012";
+}
+.fa-gear:before,
+.fa-cog:before {
+ content: "\f013";
+}
+.fa-trash-o:before {
+ content: "\f014";
+}
+.fa-home:before {
+ content: "\f015";
+}
+.fa-file-o:before {
+ content: "\f016";
+}
+.fa-clock-o:before {
+ content: "\f017";
+}
+.fa-road:before {
+ content: "\f018";
+}
+.fa-download:before {
+ content: "\f019";
+}
+.fa-arrow-circle-o-down:before {
+ content: "\f01a";
+}
+.fa-arrow-circle-o-up:before {
+ content: "\f01b";
+}
+.fa-inbox:before {
+ content: "\f01c";
+}
+.fa-play-circle-o:before {
+ content: "\f01d";
+}
+.fa-rotate-right:before,
+.fa-repeat:before {
+ content: "\f01e";
+}
+.fa-refresh:before {
+ content: "\f021";
+}
+.fa-list-alt:before {
+ content: "\f022";
+}
+.fa-lock:before {
+ content: "\f023";
+}
+.fa-flag:before {
+ content: "\f024";
+}
+.fa-headphones:before {
+ content: "\f025";
+}
+.fa-volume-off:before {
+ content: "\f026";
+}
+.fa-volume-down:before {
+ content: "\f027";
+}
+.fa-volume-up:before {
+ content: "\f028";
+}
+.fa-qrcode:before {
+ content: "\f029";
+}
+.fa-barcode:before {
+ content: "\f02a";
+}
+.fa-tag:before {
+ content: "\f02b";
+}
+.fa-tags:before {
+ content: "\f02c";
+}
+.fa-book:before {
+ content: "\f02d";
+}
+.fa-bookmark:before {
+ content: "\f02e";
+}
+.fa-print:before {
+ content: "\f02f";
+}
+.fa-camera:before {
+ content: "\f030";
+}
+.fa-font:before {
+ content: "\f031";
+}
+.fa-bold:before {
+ content: "\f032";
+}
+.fa-italic:before {
+ content: "\f033";
+}
+.fa-text-height:before {
+ content: "\f034";
+}
+.fa-text-width:before {
+ content: "\f035";
+}
+.fa-align-left:before {
+ content: "\f036";
+}
+.fa-align-center:before {
+ content: "\f037";
+}
+.fa-align-right:before {
+ content: "\f038";
+}
+.fa-align-justify:before {
+ content: "\f039";
+}
+.fa-list:before {
+ content: "\f03a";
+}
+.fa-dedent:before,
+.fa-outdent:before {
+ content: "\f03b";
+}
+.fa-indent:before {
+ content: "\f03c";
+}
+.fa-video-camera:before {
+ content: "\f03d";
+}
+.fa-photo:before,
+.fa-image:before,
+.fa-picture-o:before {
+ content: "\f03e";
+}
+.fa-pencil:before {
+ content: "\f040";
+}
+.fa-map-marker:before {
+ content: "\f041";
+}
+.fa-adjust:before {
+ content: "\f042";
+}
+.fa-tint:before {
+ content: "\f043";
+}
+.fa-edit:before,
+.fa-pencil-square-o:before {
+ content: "\f044";
+}
+.fa-share-square-o:before {
+ content: "\f045";
+}
+.fa-check-square-o:before {
+ content: "\f046";
+}
+.fa-arrows:before {
+ content: "\f047";
+}
+.fa-step-backward:before {
+ content: "\f048";
+}
+.fa-fast-backward:before {
+ content: "\f049";
+}
+.fa-backward:before {
+ content: "\f04a";
+}
+.fa-play:before {
+ content: "\f04b";
+}
+.fa-pause:before {
+ content: "\f04c";
+}
+.fa-stop:before {
+ content: "\f04d";
+}
+.fa-forward:before {
+ content: "\f04e";
+}
+.fa-fast-forward:before {
+ content: "\f050";
+}
+.fa-step-forward:before {
+ content: "\f051";
+}
+.fa-eject:before {
+ content: "\f052";
+}
+.fa-chevron-left:before {
+ content: "\f053";
+}
+.fa-chevron-right:before {
+ content: "\f054";
+}
+.fa-plus-circle:before {
+ content: "\f055";
+}
+.fa-minus-circle:before {
+ content: "\f056";
+}
+.fa-times-circle:before {
+ content: "\f057";
+}
+.fa-check-circle:before {
+ content: "\f058";
+}
+.fa-question-circle:before {
+ content: "\f059";
+}
+.fa-info-circle:before {
+ content: "\f05a";
+}
+.fa-crosshairs:before {
+ content: "\f05b";
+}
+.fa-times-circle-o:before {
+ content: "\f05c";
+}
+.fa-check-circle-o:before {
+ content: "\f05d";
+}
+.fa-ban:before {
+ content: "\f05e";
+}
+.fa-arrow-left:before {
+ content: "\f060";
+}
+.fa-arrow-right:before {
+ content: "\f061";
+}
+.fa-arrow-up:before {
+ content: "\f062";
+}
+.fa-arrow-down:before {
+ content: "\f063";
+}
+.fa-mail-forward:before,
+.fa-share:before {
+ content: "\f064";
+}
+.fa-expand:before {
+ content: "\f065";
+}
+.fa-compress:before {
+ content: "\f066";
+}
+.fa-plus:before {
+ content: "\f067";
+}
+.fa-minus:before {
+ content: "\f068";
+}
+.fa-asterisk:before {
+ content: "\f069";
+}
+.fa-exclamation-circle:before {
+ content: "\f06a";
+}
+.fa-gift:before {
+ content: "\f06b";
+}
+.fa-leaf:before {
+ content: "\f06c";
+}
+.fa-fire:before {
+ content: "\f06d";
+}
+.fa-eye:before {
+ content: "\f06e";
+}
+.fa-eye-slash:before {
+ content: "\f070";
+}
+.fa-warning:before,
+.fa-exclamation-triangle:before {
+ content: "\f071";
+}
+.fa-plane:before {
+ content: "\f072";
+}
+.fa-calendar:before {
+ content: "\f073";
+}
+.fa-random:before {
+ content: "\f074";
+}
+.fa-comment:before {
+ content: "\f075";
+}
+.fa-magnet:before {
+ content: "\f076";
+}
+.fa-chevron-up:before {
+ content: "\f077";
+}
+.fa-chevron-down:before {
+ content: "\f078";
+}
+.fa-retweet:before {
+ content: "\f079";
+}
+.fa-shopping-cart:before {
+ content: "\f07a";
+}
+.fa-folder:before {
+ content: "\f07b";
+}
+.fa-folder-open:before {
+ content: "\f07c";
+}
+.fa-arrows-v:before {
+ content: "\f07d";
+}
+.fa-arrows-h:before {
+ content: "\f07e";
+}
+.fa-bar-chart-o:before,
+.fa-bar-chart:before {
+ content: "\f080";
+}
+.fa-twitter-square:before {
+ content: "\f081";
+}
+.fa-facebook-square:before {
+ content: "\f082";
+}
+.fa-camera-retro:before {
+ content: "\f083";
+}
+.fa-key:before {
+ content: "\f084";
+}
+.fa-gears:before,
+.fa-cogs:before {
+ content: "\f085";
+}
+.fa-comments:before {
+ content: "\f086";
+}
+.fa-thumbs-o-up:before {
+ content: "\f087";
+}
+.fa-thumbs-o-down:before {
+ content: "\f088";
+}
+.fa-star-half:before {
+ content: "\f089";
+}
+.fa-heart-o:before {
+ content: "\f08a";
+}
+.fa-sign-out:before {
+ content: "\f08b";
+}
+.fa-linkedin-square:before {
+ content: "\f08c";
+}
+.fa-thumb-tack:before {
+ content: "\f08d";
+}
+.fa-external-link:before {
+ content: "\f08e";
+}
+.fa-sign-in:before {
+ content: "\f090";
+}
+.fa-trophy:before {
+ content: "\f091";
+}
+.fa-github-square:before {
+ content: "\f092";
+}
+.fa-upload:before {
+ content: "\f093";
+}
+.fa-lemon-o:before {
+ content: "\f094";
+}
+.fa-phone:before {
+ content: "\f095";
+}
+.fa-square-o:before {
+ content: "\f096";
+}
+.fa-bookmark-o:before {
+ content: "\f097";
+}
+.fa-phone-square:before {
+ content: "\f098";
+}
+.fa-twitter:before {
+ content: "\f099";
+}
+.fa-facebook-f:before,
+.fa-facebook:before {
+ content: "\f09a";
+}
+.fa-github:before {
+ content: "\f09b";
+}
+.fa-unlock:before {
+ content: "\f09c";
+}
+.fa-credit-card:before {
+ content: "\f09d";
+}
+.fa-feed:before,
+.fa-rss:before {
+ content: "\f09e";
+}
+.fa-hdd-o:before {
+ content: "\f0a0";
+}
+.fa-bullhorn:before {
+ content: "\f0a1";
+}
+.fa-bell:before {
+ content: "\f0f3";
+}
+.fa-certificate:before {
+ content: "\f0a3";
+}
+.fa-hand-o-right:before {
+ content: "\f0a4";
+}
+.fa-hand-o-left:before {
+ content: "\f0a5";
+}
+.fa-hand-o-up:before {
+ content: "\f0a6";
+}
+.fa-hand-o-down:before {
+ content: "\f0a7";
+}
+.fa-arrow-circle-left:before {
+ content: "\f0a8";
+}
+.fa-arrow-circle-right:before {
+ content: "\f0a9";
+}
+.fa-arrow-circle-up:before {
+ content: "\f0aa";
+}
+.fa-arrow-circle-down:before {
+ content: "\f0ab";
+}
+.fa-globe:before {
+ content: "\f0ac";
+}
+.fa-wrench:before {
+ content: "\f0ad";
+}
+.fa-tasks:before {
+ content: "\f0ae";
+}
+.fa-filter:before {
+ content: "\f0b0";
+}
+.fa-briefcase:before {
+ content: "\f0b1";
+}
+.fa-arrows-alt:before {
+ content: "\f0b2";
+}
+.fa-group:before,
+.fa-users:before {
+ content: "\f0c0";
+}
+.fa-chain:before,
+.fa-link:before {
+ content: "\f0c1";
+}
+.fa-cloud:before {
+ content: "\f0c2";
+}
+.fa-flask:before {
+ content: "\f0c3";
+}
+.fa-cut:before,
+.fa-scissors:before {
+ content: "\f0c4";
+}
+.fa-copy:before,
+.fa-files-o:before {
+ content: "\f0c5";
+}
+.fa-paperclip:before {
+ content: "\f0c6";
+}
+.fa-save:before,
+.fa-floppy-o:before {
+ content: "\f0c7";
+}
+.fa-square:before {
+ content: "\f0c8";
+}
+.fa-navicon:before,
+.fa-reorder:before,
+.fa-bars:before {
+ content: "\f0c9";
+}
+.fa-list-ul:before {
+ content: "\f0ca";
+}
+.fa-list-ol:before {
+ content: "\f0cb";
+}
+.fa-strikethrough:before {
+ content: "\f0cc";
+}
+.fa-underline:before {
+ content: "\f0cd";
+}
+.fa-table:before {
+ content: "\f0ce";
+}
+.fa-magic:before {
+ content: "\f0d0";
+}
+.fa-truck:before {
+ content: "\f0d1";
+}
+.fa-pinterest:before {
+ content: "\f0d2";
+}
+.fa-pinterest-square:before {
+ content: "\f0d3";
+}
+.fa-google-plus-square:before {
+ content: "\f0d4";
+}
+.fa-google-plus:before {
+ content: "\f0d5";
+}
+.fa-money:before {
+ content: "\f0d6";
+}
+.fa-caret-down:before {
+ content: "\f0d7";
+}
+.fa-caret-up:before {
+ content: "\f0d8";
+}
+.fa-caret-left:before {
+ content: "\f0d9";
+}
+.fa-caret-right:before {
+ content: "\f0da";
+}
+.fa-columns:before {
+ content: "\f0db";
+}
+.fa-unsorted:before,
+.fa-sort:before {
+ content: "\f0dc";
+}
+.fa-sort-down:before,
+.fa-sort-desc:before {
+ content: "\f0dd";
+}
+.fa-sort-up:before,
+.fa-sort-asc:before {
+ content: "\f0de";
+}
+.fa-envelope:before {
+ content: "\f0e0";
+}
+.fa-linkedin:before {
+ content: "\f0e1";
+}
+.fa-rotate-left:before,
+.fa-undo:before {
+ content: "\f0e2";
+}
+.fa-legal:before,
+.fa-gavel:before {
+ content: "\f0e3";
+}
+.fa-dashboard:before,
+.fa-tachometer:before {
+ content: "\f0e4";
+}
+.fa-comment-o:before {
+ content: "\f0e5";
+}
+.fa-comments-o:before {
+ content: "\f0e6";
+}
+.fa-flash:before,
+.fa-bolt:before {
+ content: "\f0e7";
+}
+.fa-sitemap:before {
+ content: "\f0e8";
+}
+.fa-umbrella:before {
+ content: "\f0e9";
+}
+.fa-paste:before,
+.fa-clipboard:before {
+ content: "\f0ea";
+}
+.fa-lightbulb-o:before {
+ content: "\f0eb";
+}
+.fa-exchange:before {
+ content: "\f0ec";
+}
+.fa-cloud-download:before {
+ content: "\f0ed";
+}
+.fa-cloud-upload:before {
+ content: "\f0ee";
+}
+.fa-user-md:before {
+ content: "\f0f0";
+}
+.fa-stethoscope:before {
+ content: "\f0f1";
+}
+.fa-suitcase:before {
+ content: "\f0f2";
+}
+.fa-bell-o:before {
+ content: "\f0a2";
+}
+.fa-coffee:before {
+ content: "\f0f4";
+}
+.fa-cutlery:before {
+ content: "\f0f5";
+}
+.fa-file-text-o:before {
+ content: "\f0f6";
+}
+.fa-building-o:before {
+ content: "\f0f7";
+}
+.fa-hospital-o:before {
+ content: "\f0f8";
+}
+.fa-ambulance:before {
+ content: "\f0f9";
+}
+.fa-medkit:before {
+ content: "\f0fa";
+}
+.fa-fighter-jet:before {
+ content: "\f0fb";
+}
+.fa-beer:before {
+ content: "\f0fc";
+}
+.fa-h-square:before {
+ content: "\f0fd";
+}
+.fa-plus-square:before {
+ content: "\f0fe";
+}
+.fa-angle-double-left:before {
+ content: "\f100";
+}
+.fa-angle-double-right:before {
+ content: "\f101";
+}
+.fa-angle-double-up:before {
+ content: "\f102";
+}
+.fa-angle-double-down:before {
+ content: "\f103";
+}
+.fa-angle-left:before {
+ content: "\f104";
+}
+.fa-angle-right:before {
+ content: "\f105";
+}
+.fa-angle-up:before {
+ content: "\f106";
+}
+.fa-angle-down:before {
+ content: "\f107";
+}
+.fa-desktop:before {
+ content: "\f108";
+}
+.fa-laptop:before {
+ content: "\f109";
+}
+.fa-tablet:before {
+ content: "\f10a";
+}
+.fa-mobile-phone:before,
+.fa-mobile:before {
+ content: "\f10b";
+}
+.fa-circle-o:before {
+ content: "\f10c";
+}
+.fa-quote-left:before {
+ content: "\f10d";
+}
+.fa-quote-right:before {
+ content: "\f10e";
+}
+.fa-spinner:before {
+ content: "\f110";
+}
+.fa-circle:before {
+ content: "\f111";
+}
+.fa-mail-reply:before,
+.fa-reply:before {
+ content: "\f112";
+}
+.fa-github-alt:before {
+ content: "\f113";
+}
+.fa-folder-o:before {
+ content: "\f114";
+}
+.fa-folder-open-o:before {
+ content: "\f115";
+}
+.fa-smile-o:before {
+ content: "\f118";
+}
+.fa-frown-o:before {
+ content: "\f119";
+}
+.fa-meh-o:before {
+ content: "\f11a";
+}
+.fa-gamepad:before {
+ content: "\f11b";
+}
+.fa-keyboard-o:before {
+ content: "\f11c";
+}
+.fa-flag-o:before {
+ content: "\f11d";
+}
+.fa-flag-checkered:before {
+ content: "\f11e";
+}
+.fa-terminal:before {
+ content: "\f120";
+}
+.fa-code:before {
+ content: "\f121";
+}
+.fa-mail-reply-all:before,
+.fa-reply-all:before {
+ content: "\f122";
+}
+.fa-star-half-empty:before,
+.fa-star-half-full:before,
+.fa-star-half-o:before {
+ content: "\f123";
+}
+.fa-location-arrow:before {
+ content: "\f124";
+}
+.fa-crop:before {
+ content: "\f125";
+}
+.fa-code-fork:before {
+ content: "\f126";
+}
+.fa-unlink:before,
+.fa-chain-broken:before {
+ content: "\f127";
+}
+.fa-question:before {
+ content: "\f128";
+}
+.fa-info:before {
+ content: "\f129";
+}
+.fa-exclamation:before {
+ content: "\f12a";
+}
+.fa-superscript:before {
+ content: "\f12b";
+}
+.fa-subscript:before {
+ content: "\f12c";
+}
+.fa-eraser:before {
+ content: "\f12d";
+}
+.fa-puzzle-piece:before {
+ content: "\f12e";
+}
+.fa-microphone:before {
+ content: "\f130";
+}
+.fa-microphone-slash:before {
+ content: "\f131";
+}
+.fa-shield:before {
+ content: "\f132";
+}
+.fa-calendar-o:before {
+ content: "\f133";
+}
+.fa-fire-extinguisher:before {
+ content: "\f134";
+}
+.fa-rocket:before {
+ content: "\f135";
+}
+.fa-maxcdn:before {
+ content: "\f136";
+}
+.fa-chevron-circle-left:before {
+ content: "\f137";
+}
+.fa-chevron-circle-right:before {
+ content: "\f138";
+}
+.fa-chevron-circle-up:before {
+ content: "\f139";
+}
+.fa-chevron-circle-down:before {
+ content: "\f13a";
+}
+.fa-html5:before {
+ content: "\f13b";
+}
+.fa-css3:before {
+ content: "\f13c";
+}
+.fa-anchor:before {
+ content: "\f13d";
+}
+.fa-unlock-alt:before {
+ content: "\f13e";
+}
+.fa-bullseye:before {
+ content: "\f140";
+}
+.fa-ellipsis-h:before {
+ content: "\f141";
+}
+.fa-ellipsis-v:before {
+ content: "\f142";
+}
+.fa-rss-square:before {
+ content: "\f143";
+}
+.fa-play-circle:before {
+ content: "\f144";
+}
+.fa-ticket:before {
+ content: "\f145";
+}
+.fa-minus-square:before {
+ content: "\f146";
+}
+.fa-minus-square-o:before {
+ content: "\f147";
+}
+.fa-level-up:before {
+ content: "\f148";
+}
+.fa-level-down:before {
+ content: "\f149";
+}
+.fa-check-square:before {
+ content: "\f14a";
+}
+.fa-pencil-square:before {
+ content: "\f14b";
+}
+.fa-external-link-square:before {
+ content: "\f14c";
+}
+.fa-share-square:before {
+ content: "\f14d";
+}
+.fa-compass:before {
+ content: "\f14e";
+}
+.fa-toggle-down:before,
+.fa-caret-square-o-down:before {
+ content: "\f150";
+}
+.fa-toggle-up:before,
+.fa-caret-square-o-up:before {
+ content: "\f151";
+}
+.fa-toggle-right:before,
+.fa-caret-square-o-right:before {
+ content: "\f152";
+}
+.fa-euro:before,
+.fa-eur:before {
+ content: "\f153";
+}
+.fa-gbp:before {
+ content: "\f154";
+}
+.fa-dollar:before,
+.fa-usd:before {
+ content: "\f155";
+}
+.fa-rupee:before,
+.fa-inr:before {
+ content: "\f156";
+}
+.fa-cny:before,
+.fa-rmb:before,
+.fa-yen:before,
+.fa-jpy:before {
+ content: "\f157";
+}
+.fa-ruble:before,
+.fa-rouble:before,
+.fa-rub:before {
+ content: "\f158";
+}
+.fa-won:before,
+.fa-krw:before {
+ content: "\f159";
+}
+.fa-bitcoin:before,
+.fa-btc:before {
+ content: "\f15a";
+}
+.fa-file:before {
+ content: "\f15b";
+}
+.fa-file-text:before {
+ content: "\f15c";
+}
+.fa-sort-alpha-asc:before {
+ content: "\f15d";
+}
+.fa-sort-alpha-desc:before {
+ content: "\f15e";
+}
+.fa-sort-amount-asc:before {
+ content: "\f160";
+}
+.fa-sort-amount-desc:before {
+ content: "\f161";
+}
+.fa-sort-numeric-asc:before {
+ content: "\f162";
+}
+.fa-sort-numeric-desc:before {
+ content: "\f163";
+}
+.fa-thumbs-up:before {
+ content: "\f164";
+}
+.fa-thumbs-down:before {
+ content: "\f165";
+}
+.fa-youtube-square:before {
+ content: "\f166";
+}
+.fa-youtube:before {
+ content: "\f167";
+}
+.fa-xing:before {
+ content: "\f168";
+}
+.fa-xing-square:before {
+ content: "\f169";
+}
+.fa-youtube-play:before {
+ content: "\f16a";
+}
+.fa-dropbox:before {
+ content: "\f16b";
+}
+.fa-stack-overflow:before {
+ content: "\f16c";
+}
+.fa-instagram:before {
+ content: "\f16d";
+}
+.fa-flickr:before {
+ content: "\f16e";
+}
+.fa-adn:before {
+ content: "\f170";
+}
+.fa-bitbucket:before {
+ content: "\f171";
+}
+.fa-bitbucket-square:before {
+ content: "\f172";
+}
+.fa-tumblr:before {
+ content: "\f173";
+}
+.fa-tumblr-square:before {
+ content: "\f174";
+}
+.fa-long-arrow-down:before {
+ content: "\f175";
+}
+.fa-long-arrow-up:before {
+ content: "\f176";
+}
+.fa-long-arrow-left:before {
+ content: "\f177";
+}
+.fa-long-arrow-right:before {
+ content: "\f178";
+}
+.fa-apple:before {
+ content: "\f179";
+}
+.fa-windows:before {
+ content: "\f17a";
+}
+.fa-android:before {
+ content: "\f17b";
+}
+.fa-linux:before {
+ content: "\f17c";
+}
+.fa-dribbble:before {
+ content: "\f17d";
+}
+.fa-skype:before {
+ content: "\f17e";
+}
+.fa-foursquare:before {
+ content: "\f180";
+}
+.fa-trello:before {
+ content: "\f181";
+}
+.fa-female:before {
+ content: "\f182";
+}
+.fa-male:before {
+ content: "\f183";
+}
+.fa-gittip:before,
+.fa-gratipay:before {
+ content: "\f184";
+}
+.fa-sun-o:before {
+ content: "\f185";
+}
+.fa-moon-o:before {
+ content: "\f186";
+}
+.fa-archive:before {
+ content: "\f187";
+}
+.fa-bug:before {
+ content: "\f188";
+}
+.fa-vk:before {
+ content: "\f189";
+}
+.fa-weibo:before {
+ content: "\f18a";
+}
+.fa-renren:before {
+ content: "\f18b";
+}
+.fa-pagelines:before {
+ content: "\f18c";
+}
+.fa-stack-exchange:before {
+ content: "\f18d";
+}
+.fa-arrow-circle-o-right:before {
+ content: "\f18e";
+}
+.fa-arrow-circle-o-left:before {
+ content: "\f190";
+}
+.fa-toggle-left:before,
+.fa-caret-square-o-left:before {
+ content: "\f191";
+}
+.fa-dot-circle-o:before {
+ content: "\f192";
+}
+.fa-wheelchair:before {
+ content: "\f193";
+}
+.fa-vimeo-square:before {
+ content: "\f194";
+}
+.fa-turkish-lira:before,
+.fa-try:before {
+ content: "\f195";
+}
+.fa-plus-square-o:before {
+ content: "\f196";
+}
+.fa-space-shuttle:before {
+ content: "\f197";
+}
+.fa-slack:before {
+ content: "\f198";
+}
+.fa-envelope-square:before {
+ content: "\f199";
+}
+.fa-wordpress:before {
+ content: "\f19a";
+}
+.fa-openid:before {
+ content: "\f19b";
+}
+.fa-institution:before,
+.fa-bank:before,
+.fa-university:before {
+ content: "\f19c";
+}
+.fa-mortar-board:before,
+.fa-graduation-cap:before {
+ content: "\f19d";
+}
+.fa-yahoo:before {
+ content: "\f19e";
+}
+.fa-google:before {
+ content: "\f1a0";
+}
+.fa-reddit:before {
+ content: "\f1a1";
+}
+.fa-reddit-square:before {
+ content: "\f1a2";
+}
+.fa-stumbleupon-circle:before {
+ content: "\f1a3";
+}
+.fa-stumbleupon:before {
+ content: "\f1a4";
+}
+.fa-delicious:before {
+ content: "\f1a5";
+}
+.fa-digg:before {
+ content: "\f1a6";
+}
+.fa-pied-piper-pp:before {
+ content: "\f1a7";
+}
+.fa-pied-piper-alt:before {
+ content: "\f1a8";
+}
+.fa-drupal:before {
+ content: "\f1a9";
+}
+.fa-joomla:before {
+ content: "\f1aa";
+}
+.fa-language:before {
+ content: "\f1ab";
+}
+.fa-fax:before {
+ content: "\f1ac";
+}
+.fa-building:before {
+ content: "\f1ad";
+}
+.fa-child:before {
+ content: "\f1ae";
+}
+.fa-paw:before {
+ content: "\f1b0";
+}
+.fa-spoon:before {
+ content: "\f1b1";
+}
+.fa-cube:before {
+ content: "\f1b2";
+}
+.fa-cubes:before {
+ content: "\f1b3";
+}
+.fa-behance:before {
+ content: "\f1b4";
+}
+.fa-behance-square:before {
+ content: "\f1b5";
+}
+.fa-steam:before {
+ content: "\f1b6";
+}
+.fa-steam-square:before {
+ content: "\f1b7";
+}
+.fa-recycle:before {
+ content: "\f1b8";
+}
+.fa-automobile:before,
+.fa-car:before {
+ content: "\f1b9";
+}
+.fa-cab:before,
+.fa-taxi:before {
+ content: "\f1ba";
+}
+.fa-tree:before {
+ content: "\f1bb";
+}
+.fa-spotify:before {
+ content: "\f1bc";
+}
+.fa-deviantart:before {
+ content: "\f1bd";
+}
+.fa-soundcloud:before {
+ content: "\f1be";
+}
+.fa-database:before {
+ content: "\f1c0";
+}
+.fa-file-pdf-o:before {
+ content: "\f1c1";
+}
+.fa-file-word-o:before {
+ content: "\f1c2";
+}
+.fa-file-excel-o:before {
+ content: "\f1c3";
+}
+.fa-file-powerpoint-o:before {
+ content: "\f1c4";
+}
+.fa-file-photo-o:before,
+.fa-file-picture-o:before,
+.fa-file-image-o:before {
+ content: "\f1c5";
+}
+.fa-file-zip-o:before,
+.fa-file-archive-o:before {
+ content: "\f1c6";
+}
+.fa-file-sound-o:before,
+.fa-file-audio-o:before {
+ content: "\f1c7";
+}
+.fa-file-movie-o:before,
+.fa-file-video-o:before {
+ content: "\f1c8";
+}
+.fa-file-code-o:before {
+ content: "\f1c9";
+}
+.fa-vine:before {
+ content: "\f1ca";
+}
+.fa-codepen:before {
+ content: "\f1cb";
+}
+.fa-jsfiddle:before {
+ content: "\f1cc";
+}
+.fa-life-bouy:before,
+.fa-life-buoy:before,
+.fa-life-saver:before,
+.fa-support:before,
+.fa-life-ring:before {
+ content: "\f1cd";
+}
+.fa-circle-o-notch:before {
+ content: "\f1ce";
+}
+.fa-ra:before,
+.fa-resistance:before,
+.fa-rebel:before {
+ content: "\f1d0";
+}
+.fa-ge:before,
+.fa-empire:before {
+ content: "\f1d1";
+}
+.fa-git-square:before {
+ content: "\f1d2";
+}
+.fa-git:before {
+ content: "\f1d3";
+}
+.fa-y-combinator-square:before,
+.fa-yc-square:before,
+.fa-hacker-news:before {
+ content: "\f1d4";
+}
+.fa-tencent-weibo:before {
+ content: "\f1d5";
+}
+.fa-qq:before {
+ content: "\f1d6";
+}
+.fa-wechat:before,
+.fa-weixin:before {
+ content: "\f1d7";
+}
+.fa-send:before,
+.fa-paper-plane:before {
+ content: "\f1d8";
+}
+.fa-send-o:before,
+.fa-paper-plane-o:before {
+ content: "\f1d9";
+}
+.fa-history:before {
+ content: "\f1da";
+}
+.fa-circle-thin:before {
+ content: "\f1db";
+}
+.fa-header:before {
+ content: "\f1dc";
+}
+.fa-paragraph:before {
+ content: "\f1dd";
+}
+.fa-sliders:before {
+ content: "\f1de";
+}
+.fa-share-alt:before {
+ content: "\f1e0";
+}
+.fa-share-alt-square:before {
+ content: "\f1e1";
+}
+.fa-bomb:before {
+ content: "\f1e2";
+}
+.fa-soccer-ball-o:before,
+.fa-futbol-o:before {
+ content: "\f1e3";
+}
+.fa-tty:before {
+ content: "\f1e4";
+}
+.fa-binoculars:before {
+ content: "\f1e5";
+}
+.fa-plug:before {
+ content: "\f1e6";
+}
+.fa-slideshare:before {
+ content: "\f1e7";
+}
+.fa-twitch:before {
+ content: "\f1e8";
+}
+.fa-yelp:before {
+ content: "\f1e9";
+}
+.fa-newspaper-o:before {
+ content: "\f1ea";
+}
+.fa-wifi:before {
+ content: "\f1eb";
+}
+.fa-calculator:before {
+ content: "\f1ec";
+}
+.fa-paypal:before {
+ content: "\f1ed";
+}
+.fa-google-wallet:before {
+ content: "\f1ee";
+}
+.fa-cc-visa:before {
+ content: "\f1f0";
+}
+.fa-cc-mastercard:before {
+ content: "\f1f1";
+}
+.fa-cc-discover:before {
+ content: "\f1f2";
+}
+.fa-cc-amex:before {
+ content: "\f1f3";
+}
+.fa-cc-paypal:before {
+ content: "\f1f4";
+}
+.fa-cc-stripe:before {
+ content: "\f1f5";
+}
+.fa-bell-slash:before {
+ content: "\f1f6";
+}
+.fa-bell-slash-o:before {
+ content: "\f1f7";
+}
+.fa-trash:before {
+ content: "\f1f8";
+}
+.fa-copyright:before {
+ content: "\f1f9";
+}
+.fa-at:before {
+ content: "\f1fa";
+}
+.fa-eyedropper:before {
+ content: "\f1fb";
+}
+.fa-paint-brush:before {
+ content: "\f1fc";
+}
+.fa-birthday-cake:before {
+ content: "\f1fd";
+}
+.fa-area-chart:before {
+ content: "\f1fe";
+}
+.fa-pie-chart:before {
+ content: "\f200";
+}
+.fa-line-chart:before {
+ content: "\f201";
+}
+.fa-lastfm:before {
+ content: "\f202";
+}
+.fa-lastfm-square:before {
+ content: "\f203";
+}
+.fa-toggle-off:before {
+ content: "\f204";
+}
+.fa-toggle-on:before {
+ content: "\f205";
+}
+.fa-bicycle:before {
+ content: "\f206";
+}
+.fa-bus:before {
+ content: "\f207";
+}
+.fa-ioxhost:before {
+ content: "\f208";
+}
+.fa-angellist:before {
+ content: "\f209";
+}
+.fa-cc:before {
+ content: "\f20a";
+}
+.fa-shekel:before,
+.fa-sheqel:before,
+.fa-ils:before {
+ content: "\f20b";
+}
+.fa-meanpath:before {
+ content: "\f20c";
+}
+.fa-buysellads:before {
+ content: "\f20d";
+}
+.fa-connectdevelop:before {
+ content: "\f20e";
+}
+.fa-dashcube:before {
+ content: "\f210";
+}
+.fa-forumbee:before {
+ content: "\f211";
+}
+.fa-leanpub:before {
+ content: "\f212";
+}
+.fa-sellsy:before {
+ content: "\f213";
+}
+.fa-shirtsinbulk:before {
+ content: "\f214";
+}
+.fa-simplybuilt:before {
+ content: "\f215";
+}
+.fa-skyatlas:before {
+ content: "\f216";
+}
+.fa-cart-plus:before {
+ content: "\f217";
+}
+.fa-cart-arrow-down:before {
+ content: "\f218";
+}
+.fa-diamond:before {
+ content: "\f219";
+}
+.fa-ship:before {
+ content: "\f21a";
+}
+.fa-user-secret:before {
+ content: "\f21b";
+}
+.fa-motorcycle:before {
+ content: "\f21c";
+}
+.fa-street-view:before {
+ content: "\f21d";
+}
+.fa-heartbeat:before {
+ content: "\f21e";
+}
+.fa-venus:before {
+ content: "\f221";
+}
+.fa-mars:before {
+ content: "\f222";
+}
+.fa-mercury:before {
+ content: "\f223";
+}
+.fa-intersex:before,
+.fa-transgender:before {
+ content: "\f224";
+}
+.fa-transgender-alt:before {
+ content: "\f225";
+}
+.fa-venus-double:before {
+ content: "\f226";
+}
+.fa-mars-double:before {
+ content: "\f227";
+}
+.fa-venus-mars:before {
+ content: "\f228";
+}
+.fa-mars-stroke:before {
+ content: "\f229";
+}
+.fa-mars-stroke-v:before {
+ content: "\f22a";
+}
+.fa-mars-stroke-h:before {
+ content: "\f22b";
+}
+.fa-neuter:before {
+ content: "\f22c";
+}
+.fa-genderless:before {
+ content: "\f22d";
+}
+.fa-facebook-official:before {
+ content: "\f230";
+}
+.fa-pinterest-p:before {
+ content: "\f231";
+}
+.fa-whatsapp:before {
+ content: "\f232";
+}
+.fa-server:before {
+ content: "\f233";
+}
+.fa-user-plus:before {
+ content: "\f234";
+}
+.fa-user-times:before {
+ content: "\f235";
+}
+.fa-hotel:before,
+.fa-bed:before {
+ content: "\f236";
+}
+.fa-viacoin:before {
+ content: "\f237";
+}
+.fa-train:before {
+ content: "\f238";
+}
+.fa-subway:before {
+ content: "\f239";
+}
+.fa-medium:before {
+ content: "\f23a";
+}
+.fa-yc:before,
+.fa-y-combinator:before {
+ content: "\f23b";
+}
+.fa-optin-monster:before {
+ content: "\f23c";
+}
+.fa-opencart:before {
+ content: "\f23d";
+}
+.fa-expeditedssl:before {
+ content: "\f23e";
+}
+.fa-battery-4:before,
+.fa-battery-full:before {
+ content: "\f240";
+}
+.fa-battery-3:before,
+.fa-battery-three-quarters:before {
+ content: "\f241";
+}
+.fa-battery-2:before,
+.fa-battery-half:before {
+ content: "\f242";
+}
+.fa-battery-1:before,
+.fa-battery-quarter:before {
+ content: "\f243";
+}
+.fa-battery-0:before,
+.fa-battery-empty:before {
+ content: "\f244";
+}
+.fa-mouse-pointer:before {
+ content: "\f245";
+}
+.fa-i-cursor:before {
+ content: "\f246";
+}
+.fa-object-group:before {
+ content: "\f247";
+}
+.fa-object-ungroup:before {
+ content: "\f248";
+}
+.fa-sticky-note:before {
+ content: "\f249";
+}
+.fa-sticky-note-o:before {
+ content: "\f24a";
+}
+.fa-cc-jcb:before {
+ content: "\f24b";
+}
+.fa-cc-diners-club:before {
+ content: "\f24c";
+}
+.fa-clone:before {
+ content: "\f24d";
+}
+.fa-balance-scale:before {
+ content: "\f24e";
+}
+.fa-hourglass-o:before {
+ content: "\f250";
+}
+.fa-hourglass-1:before,
+.fa-hourglass-start:before {
+ content: "\f251";
+}
+.fa-hourglass-2:before,
+.fa-hourglass-half:before {
+ content: "\f252";
+}
+.fa-hourglass-3:before,
+.fa-hourglass-end:before {
+ content: "\f253";
+}
+.fa-hourglass:before {
+ content: "\f254";
+}
+.fa-hand-grab-o:before,
+.fa-hand-rock-o:before {
+ content: "\f255";
+}
+.fa-hand-stop-o:before,
+.fa-hand-paper-o:before {
+ content: "\f256";
+}
+.fa-hand-scissors-o:before {
+ content: "\f257";
+}
+.fa-hand-lizard-o:before {
+ content: "\f258";
+}
+.fa-hand-spock-o:before {
+ content: "\f259";
+}
+.fa-hand-pointer-o:before {
+ content: "\f25a";
+}
+.fa-hand-peace-o:before {
+ content: "\f25b";
+}
+.fa-trademark:before {
+ content: "\f25c";
+}
+.fa-registered:before {
+ content: "\f25d";
+}
+.fa-creative-commons:before {
+ content: "\f25e";
+}
+.fa-gg:before {
+ content: "\f260";
+}
+.fa-gg-circle:before {
+ content: "\f261";
+}
+.fa-tripadvisor:before {
+ content: "\f262";
+}
+.fa-odnoklassniki:before {
+ content: "\f263";
+}
+.fa-odnoklassniki-square:before {
+ content: "\f264";
+}
+.fa-get-pocket:before {
+ content: "\f265";
+}
+.fa-wikipedia-w:before {
+ content: "\f266";
+}
+.fa-safari:before {
+ content: "\f267";
+}
+.fa-chrome:before {
+ content: "\f268";
+}
+.fa-firefox:before {
+ content: "\f269";
+}
+.fa-opera:before {
+ content: "\f26a";
+}
+.fa-internet-explorer:before {
+ content: "\f26b";
+}
+.fa-tv:before,
+.fa-television:before {
+ content: "\f26c";
+}
+.fa-contao:before {
+ content: "\f26d";
+}
+.fa-500px:before {
+ content: "\f26e";
+}
+.fa-amazon:before {
+ content: "\f270";
+}
+.fa-calendar-plus-o:before {
+ content: "\f271";
+}
+.fa-calendar-minus-o:before {
+ content: "\f272";
+}
+.fa-calendar-times-o:before {
+ content: "\f273";
+}
+.fa-calendar-check-o:before {
+ content: "\f274";
+}
+.fa-industry:before {
+ content: "\f275";
+}
+.fa-map-pin:before {
+ content: "\f276";
+}
+.fa-map-signs:before {
+ content: "\f277";
+}
+.fa-map-o:before {
+ content: "\f278";
+}
+.fa-map:before {
+ content: "\f279";
+}
+.fa-commenting:before {
+ content: "\f27a";
+}
+.fa-commenting-o:before {
+ content: "\f27b";
+}
+.fa-houzz:before {
+ content: "\f27c";
+}
+.fa-vimeo:before {
+ content: "\f27d";
+}
+.fa-black-tie:before {
+ content: "\f27e";
+}
+.fa-fonticons:before {
+ content: "\f280";
+}
+.fa-reddit-alien:before {
+ content: "\f281";
+}
+.fa-edge:before {
+ content: "\f282";
+}
+.fa-credit-card-alt:before {
+ content: "\f283";
+}
+.fa-codiepie:before {
+ content: "\f284";
+}
+.fa-modx:before {
+ content: "\f285";
+}
+.fa-fort-awesome:before {
+ content: "\f286";
+}
+.fa-usb:before {
+ content: "\f287";
+}
+.fa-product-hunt:before {
+ content: "\f288";
+}
+.fa-mixcloud:before {
+ content: "\f289";
+}
+.fa-scribd:before {
+ content: "\f28a";
+}
+.fa-pause-circle:before {
+ content: "\f28b";
+}
+.fa-pause-circle-o:before {
+ content: "\f28c";
+}
+.fa-stop-circle:before {
+ content: "\f28d";
+}
+.fa-stop-circle-o:before {
+ content: "\f28e";
+}
+.fa-shopping-bag:before {
+ content: "\f290";
+}
+.fa-shopping-basket:before {
+ content: "\f291";
+}
+.fa-hashtag:before {
+ content: "\f292";
+}
+.fa-bluetooth:before {
+ content: "\f293";
+}
+.fa-bluetooth-b:before {
+ content: "\f294";
+}
+.fa-percent:before {
+ content: "\f295";
+}
+.fa-gitlab:before {
+ content: "\f296";
+}
+.fa-wpbeginner:before {
+ content: "\f297";
+}
+.fa-wpforms:before {
+ content: "\f298";
+}
+.fa-envira:before {
+ content: "\f299";
+}
+.fa-universal-access:before {
+ content: "\f29a";
+}
+.fa-wheelchair-alt:before {
+ content: "\f29b";
+}
+.fa-question-circle-o:before {
+ content: "\f29c";
+}
+.fa-blind:before {
+ content: "\f29d";
+}
+.fa-audio-description:before {
+ content: "\f29e";
+}
+.fa-volume-control-phone:before {
+ content: "\f2a0";
+}
+.fa-braille:before {
+ content: "\f2a1";
+}
+.fa-assistive-listening-systems:before {
+ content: "\f2a2";
+}
+.fa-asl-interpreting:before,
+.fa-american-sign-language-interpreting:before {
+ content: "\f2a3";
+}
+.fa-deafness:before,
+.fa-hard-of-hearing:before,
+.fa-deaf:before {
+ content: "\f2a4";
+}
+.fa-glide:before {
+ content: "\f2a5";
+}
+.fa-glide-g:before {
+ content: "\f2a6";
+}
+.fa-signing:before,
+.fa-sign-language:before {
+ content: "\f2a7";
+}
+.fa-low-vision:before {
+ content: "\f2a8";
+}
+.fa-viadeo:before {
+ content: "\f2a9";
+}
+.fa-viadeo-square:before {
+ content: "\f2aa";
+}
+.fa-snapchat:before {
+ content: "\f2ab";
+}
+.fa-snapchat-ghost:before {
+ content: "\f2ac";
+}
+.fa-snapchat-square:before {
+ content: "\f2ad";
+}
+.fa-pied-piper:before {
+ content: "\f2ae";
+}
+.fa-first-order:before {
+ content: "\f2b0";
+}
+.fa-yoast:before {
+ content: "\f2b1";
+}
+.fa-themeisle:before {
+ content: "\f2b2";
+}
+.fa-google-plus-circle:before,
+.fa-google-plus-official:before {
+ content: "\f2b3";
+}
+.fa-fa:before,
+.fa-font-awesome:before {
+ content: "\f2b4";
+}
+.sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0, 0, 0, 0);
+ border: 0;
+}
+.sr-only-focusable:active,
+.sr-only-focusable:focus {
+ position: static;
+ width: auto;
+ height: auto;
+ margin: 0;
+ overflow: visible;
+ clip: auto;
+}
diff --git a/temas/chamitrip/fonts/font-awesome/css/font-awesome.min.css b/temas/chamitrip/fonts/font-awesome/css/font-awesome.min.css
new file mode 100644
index 0000000..9b27f8e
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/css/font-awesome.min.css
@@ -0,0 +1,4 @@
+/*!
+ * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
+ */@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.6.3');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.6.3') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff2?v=4.6.3') format('woff2'),url('../fonts/fontawesome-webfont.woff?v=4.6.3') format('woff'),url('../fonts/fontawesome-webfont.ttf?v=4.6.3') format('truetype'),url('../fonts/fontawesome-webfont.svg?v=4.6.3#fontawesomeregular') format('svg');font-weight:normal;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.33333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.28571429em;text-align:center}.fa-ul{padding-left:0;margin-left:2.14285714em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.14285714em;width:2.14285714em;top:.14285714em;text-align:center}.fa-li.fa-lg{left:-1.85714286em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left{margin-right:.3em}.fa.fa-pull-right{margin-left:.3em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}.fa-pulse{-webkit-animation:fa-spin 1s infinite steps(8);animation:fa-spin 1s infinite steps(8)}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);-ms-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scale(-1, 1);-ms-transform:scale(-1, 1);transform:scale(-1, 1)}.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";-webkit-transform:scale(1, -1);-ms-transform:scale(1, -1);transform:scale(1, -1)}:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-flip-horizontal,:root .fa-flip-vertical{filter:none}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-remove:before,.fa-close:before,.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-photo:before,.fa-image:before,.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before,.fa-bar-chart:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook-f:before,.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-feed:before,.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-navicon:before,.fa-reorder:before,.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-desc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-asc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-mail-reply-all:before,.fa-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before,.fa-gratipay:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"}.fa-space-shuttle:before{content:"\f197"}.fa-slack:before{content:"\f198"}.fa-envelope-square:before{content:"\f199"}.fa-wordpress:before{content:"\f19a"}.fa-openid:before{content:"\f19b"}.fa-institution:before,.fa-bank:before,.fa-university:before{content:"\f19c"}.fa-mortar-board:before,.fa-graduation-cap:before{content:"\f19d"}.fa-yahoo:before{content:"\f19e"}.fa-google:before{content:"\f1a0"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-square:before{content:"\f1a2"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-stumbleupon:before{content:"\f1a4"}.fa-delicious:before{content:"\f1a5"}.fa-digg:before{content:"\f1a6"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-drupal:before{content:"\f1a9"}.fa-joomla:before{content:"\f1aa"}.fa-language:before{content:"\f1ab"}.fa-fax:before{content:"\f1ac"}.fa-building:before{content:"\f1ad"}.fa-child:before{content:"\f1ae"}.fa-paw:before{content:"\f1b0"}.fa-spoon:before{content:"\f1b1"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-recycle:before{content:"\f1b8"}.fa-automobile:before,.fa-car:before{content:"\f1b9"}.fa-cab:before,.fa-taxi:before{content:"\f1ba"}.fa-tree:before{content:"\f1bb"}.fa-spotify:before{content:"\f1bc"}.fa-deviantart:before{content:"\f1bd"}.fa-soundcloud:before{content:"\f1be"}.fa-database:before{content:"\f1c0"}.fa-file-pdf-o:before{content:"\f1c1"}.fa-file-word-o:before{content:"\f1c2"}.fa-file-excel-o:before{content:"\f1c3"}.fa-file-powerpoint-o:before{content:"\f1c4"}.fa-file-photo-o:before,.fa-file-picture-o:before,.fa-file-image-o:before{content:"\f1c5"}.fa-file-zip-o:before,.fa-file-archive-o:before{content:"\f1c6"}.fa-file-sound-o:before,.fa-file-audio-o:before{content:"\f1c7"}.fa-file-movie-o:before,.fa-file-video-o:before{content:"\f1c8"}.fa-file-code-o:before{content:"\f1c9"}.fa-vine:before{content:"\f1ca"}.fa-codepen:before{content:"\f1cb"}.fa-jsfiddle:before{content:"\f1cc"}.fa-life-bouy:before,.fa-life-buoy:before,.fa-life-saver:before,.fa-support:before,.fa-life-ring:before{content:"\f1cd"}.fa-circle-o-notch:before{content:"\f1ce"}.fa-ra:before,.fa-resistance:before,.fa-rebel:before{content:"\f1d0"}.fa-ge:before,.fa-empire:before{content:"\f1d1"}.fa-git-square:before{content:"\f1d2"}.fa-git:before{content:"\f1d3"}.fa-y-combinator-square:before,.fa-yc-square:before,.fa-hacker-news:before{content:"\f1d4"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-qq:before{content:"\f1d6"}.fa-wechat:before,.fa-weixin:before{content:"\f1d7"}.fa-send:before,.fa-paper-plane:before{content:"\f1d8"}.fa-send-o:before,.fa-paper-plane-o:before{content:"\f1d9"}.fa-history:before{content:"\f1da"}.fa-circle-thin:before{content:"\f1db"}.fa-header:before{content:"\f1dc"}.fa-paragraph:before{content:"\f1dd"}.fa-sliders:before{content:"\f1de"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-bomb:before{content:"\f1e2"}.fa-soccer-ball-o:before,.fa-futbol-o:before{content:"\f1e3"}.fa-tty:before{content:"\f1e4"}.fa-binoculars:before{content:"\f1e5"}.fa-plug:before{content:"\f1e6"}.fa-slideshare:before{content:"\f1e7"}.fa-twitch:before{content:"\f1e8"}.fa-yelp:before{content:"\f1e9"}.fa-newspaper-o:before{content:"\f1ea"}.fa-wifi:before{content:"\f1eb"}.fa-calculator:before{content:"\f1ec"}.fa-paypal:before{content:"\f1ed"}.fa-google-wallet:before{content:"\f1ee"}.fa-cc-visa:before{content:"\f1f0"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-bell-slash:before{content:"\f1f6"}.fa-bell-slash-o:before{content:"\f1f7"}.fa-trash:before{content:"\f1f8"}.fa-copyright:before{content:"\f1f9"}.fa-at:before{content:"\f1fa"}.fa-eyedropper:before{content:"\f1fb"}.fa-paint-brush:before{content:"\f1fc"}.fa-birthday-cake:before{content:"\f1fd"}.fa-area-chart:before{content:"\f1fe"}.fa-pie-chart:before{content:"\f200"}.fa-line-chart:before{content:"\f201"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-bicycle:before{content:"\f206"}.fa-bus:before{content:"\f207"}.fa-ioxhost:before{content:"\f208"}.fa-angellist:before{content:"\f209"}.fa-cc:before{content:"\f20a"}.fa-shekel:before,.fa-sheqel:before,.fa-ils:before{content:"\f20b"}.fa-meanpath:before{content:"\f20c"}.fa-buysellads:before{content:"\f20d"}.fa-connectdevelop:before{content:"\f20e"}.fa-dashcube:before{content:"\f210"}.fa-forumbee:before{content:"\f211"}.fa-leanpub:before{content:"\f212"}.fa-sellsy:before{content:"\f213"}.fa-shirtsinbulk:before{content:"\f214"}.fa-simplybuilt:before{content:"\f215"}.fa-skyatlas:before{content:"\f216"}.fa-cart-plus:before{content:"\f217"}.fa-cart-arrow-down:before{content:"\f218"}.fa-diamond:before{content:"\f219"}.fa-ship:before{content:"\f21a"}.fa-user-secret:before{content:"\f21b"}.fa-motorcycle:before{content:"\f21c"}.fa-street-view:before{content:"\f21d"}.fa-heartbeat:before{content:"\f21e"}.fa-venus:before{content:"\f221"}.fa-mars:before{content:"\f222"}.fa-mercury:before{content:"\f223"}.fa-intersex:before,.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-venus-double:before{content:"\f226"}.fa-mars-double:before{content:"\f227"}.fa-venus-mars:before{content:"\f228"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-neuter:before{content:"\f22c"}.fa-genderless:before{content:"\f22d"}.fa-facebook-official:before{content:"\f230"}.fa-pinterest-p:before{content:"\f231"}.fa-whatsapp:before{content:"\f232"}.fa-server:before{content:"\f233"}.fa-user-plus:before{content:"\f234"}.fa-user-times:before{content:"\f235"}.fa-hotel:before,.fa-bed:before{content:"\f236"}.fa-viacoin:before{content:"\f237"}.fa-train:before{content:"\f238"}.fa-subway:before{content:"\f239"}.fa-medium:before{content:"\f23a"}.fa-yc:before,.fa-y-combinator:before{content:"\f23b"}.fa-optin-monster:before{content:"\f23c"}.fa-opencart:before{content:"\f23d"}.fa-expeditedssl:before{content:"\f23e"}.fa-battery-4:before,.fa-battery-full:before{content:"\f240"}.fa-battery-3:before,.fa-battery-three-quarters:before{content:"\f241"}.fa-battery-2:before,.fa-battery-half:before{content:"\f242"}.fa-battery-1:before,.fa-battery-quarter:before{content:"\f243"}.fa-battery-0:before,.fa-battery-empty:before{content:"\f244"}.fa-mouse-pointer:before{content:"\f245"}.fa-i-cursor:before{content:"\f246"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-sticky-note:before{content:"\f249"}.fa-sticky-note-o:before{content:"\f24a"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-diners-club:before{content:"\f24c"}.fa-clone:before{content:"\f24d"}.fa-balance-scale:before{content:"\f24e"}.fa-hourglass-o:before{content:"\f250"}.fa-hourglass-1:before,.fa-hourglass-start:before{content:"\f251"}.fa-hourglass-2:before,.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-3:before,.fa-hourglass-end:before{content:"\f253"}.fa-hourglass:before{content:"\f254"}.fa-hand-grab-o:before,.fa-hand-rock-o:before{content:"\f255"}.fa-hand-stop-o:before,.fa-hand-paper-o:before{content:"\f256"}.fa-hand-scissors-o:before{content:"\f257"}.fa-hand-lizard-o:before{content:"\f258"}.fa-hand-spock-o:before{content:"\f259"}.fa-hand-pointer-o:before{content:"\f25a"}.fa-hand-peace-o:before{content:"\f25b"}.fa-trademark:before{content:"\f25c"}.fa-registered:before{content:"\f25d"}.fa-creative-commons:before{content:"\f25e"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-tripadvisor:before{content:"\f262"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-get-pocket:before{content:"\f265"}.fa-wikipedia-w:before{content:"\f266"}.fa-safari:before{content:"\f267"}.fa-chrome:before{content:"\f268"}.fa-firefox:before{content:"\f269"}.fa-opera:before{content:"\f26a"}.fa-internet-explorer:before{content:"\f26b"}.fa-tv:before,.fa-television:before{content:"\f26c"}.fa-contao:before{content:"\f26d"}.fa-500px:before{content:"\f26e"}.fa-amazon:before{content:"\f270"}.fa-calendar-plus-o:before{content:"\f271"}.fa-calendar-minus-o:before{content:"\f272"}.fa-calendar-times-o:before{content:"\f273"}.fa-calendar-check-o:before{content:"\f274"}.fa-industry:before{content:"\f275"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-map-o:before{content:"\f278"}.fa-map:before{content:"\f279"}.fa-commenting:before{content:"\f27a"}.fa-commenting-o:before{content:"\f27b"}.fa-houzz:before{content:"\f27c"}.fa-vimeo:before{content:"\f27d"}.fa-black-tie:before{content:"\f27e"}.fa-fonticons:before{content:"\f280"}.fa-reddit-alien:before{content:"\f281"}.fa-edge:before{content:"\f282"}.fa-credit-card-alt:before{content:"\f283"}.fa-codiepie:before{content:"\f284"}.fa-modx:before{content:"\f285"}.fa-fort-awesome:before{content:"\f286"}.fa-usb:before{content:"\f287"}.fa-product-hunt:before{content:"\f288"}.fa-mixcloud:before{content:"\f289"}.fa-scribd:before{content:"\f28a"}.fa-pause-circle:before{content:"\f28b"}.fa-pause-circle-o:before{content:"\f28c"}.fa-stop-circle:before{content:"\f28d"}.fa-stop-circle-o:before{content:"\f28e"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-hashtag:before{content:"\f292"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-percent:before{content:"\f295"}.fa-gitlab:before{content:"\f296"}.fa-wpbeginner:before{content:"\f297"}.fa-wpforms:before{content:"\f298"}.fa-envira:before{content:"\f299"}.fa-universal-access:before{content:"\f29a"}.fa-wheelchair-alt:before{content:"\f29b"}.fa-question-circle-o:before{content:"\f29c"}.fa-blind:before{content:"\f29d"}.fa-audio-description:before{content:"\f29e"}.fa-volume-control-phone:before{content:"\f2a0"}.fa-braille:before{content:"\f2a1"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asl-interpreting:before,.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-deafness:before,.fa-hard-of-hearing:before,.fa-deaf:before{content:"\f2a4"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-signing:before,.fa-sign-language:before{content:"\f2a7"}.fa-low-vision:before{content:"\f2a8"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-pied-piper:before{content:"\f2ae"}.fa-first-order:before{content:"\f2b0"}.fa-yoast:before{content:"\f2b1"}.fa-themeisle:before{content:"\f2b2"}.fa-google-plus-circle:before,.fa-google-plus-official:before{content:"\f2b3"}.fa-fa:before,.fa-font-awesome:before{content:"\f2b4"}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}
diff --git a/temas/chamitrip/fonts/font-awesome/fonts/FontAwesome.otf b/temas/chamitrip/fonts/font-awesome/fonts/FontAwesome.otf
new file mode 100644
index 0000000..d4de13e
Binary files /dev/null and b/temas/chamitrip/fonts/font-awesome/fonts/FontAwesome.otf differ
diff --git a/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.eot b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.eot
new file mode 100644
index 0000000..c7b00d2
Binary files /dev/null and b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.eot differ
diff --git a/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.svg b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.svg
new file mode 100644
index 0000000..8b66187
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.svg
@@ -0,0 +1,685 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.ttf b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.ttf
new file mode 100644
index 0000000..f221e50
Binary files /dev/null and b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.ttf differ
diff --git a/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.woff b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.woff
new file mode 100644
index 0000000..6e7483c
Binary files /dev/null and b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.woff differ
diff --git a/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.woff2 b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.woff2
new file mode 100644
index 0000000..7eb74fd
Binary files /dev/null and b/temas/chamitrip/fonts/font-awesome/fonts/fontawesome-webfont.woff2 differ
diff --git a/temas/chamitrip/fonts/font-awesome/less/animated.less b/temas/chamitrip/fonts/font-awesome/less/animated.less
new file mode 100644
index 0000000..66ad52a
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/animated.less
@@ -0,0 +1,34 @@
+// Animated Icons
+// --------------------------
+
+.@{fa-css-prefix}-spin {
+ -webkit-animation: fa-spin 2s infinite linear;
+ animation: fa-spin 2s infinite linear;
+}
+
+.@{fa-css-prefix}-pulse {
+ -webkit-animation: fa-spin 1s infinite steps(8);
+ animation: fa-spin 1s infinite steps(8);
+}
+
+@-webkit-keyframes fa-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(359deg);
+ transform: rotate(359deg);
+ }
+}
+
+@keyframes fa-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(359deg);
+ transform: rotate(359deg);
+ }
+}
diff --git a/temas/chamitrip/fonts/font-awesome/less/bordered-pulled.less b/temas/chamitrip/fonts/font-awesome/less/bordered-pulled.less
new file mode 100644
index 0000000..f1c8ad7
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/bordered-pulled.less
@@ -0,0 +1,25 @@
+// Bordered & Pulled
+// -------------------------
+
+.@{fa-css-prefix}-border {
+ padding: .2em .25em .15em;
+ border: solid .08em @fa-border-color;
+ border-radius: .1em;
+}
+
+.@{fa-css-prefix}-pull-left { float: left; }
+.@{fa-css-prefix}-pull-right { float: right; }
+
+.@{fa-css-prefix} {
+ &.@{fa-css-prefix}-pull-left { margin-right: .3em; }
+ &.@{fa-css-prefix}-pull-right { margin-left: .3em; }
+}
+
+/* Deprecated as of 4.4.0 */
+.pull-right { float: right; }
+.pull-left { float: left; }
+
+.@{fa-css-prefix} {
+ &.pull-left { margin-right: .3em; }
+ &.pull-right { margin-left: .3em; }
+}
diff --git a/temas/chamitrip/fonts/font-awesome/less/core.less b/temas/chamitrip/fonts/font-awesome/less/core.less
new file mode 100644
index 0000000..c577ac8
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/core.less
@@ -0,0 +1,12 @@
+// Base Class Definition
+// -------------------------
+
+.@{fa-css-prefix} {
+ display: inline-block;
+ font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
+ font-size: inherit; // can't have font-size inherit on line above, so need to override
+ text-rendering: auto; // optimizelegibility throws things off #1094
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+
+}
diff --git a/temas/chamitrip/fonts/font-awesome/less/fixed-width.less b/temas/chamitrip/fonts/font-awesome/less/fixed-width.less
new file mode 100644
index 0000000..110289f
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/fixed-width.less
@@ -0,0 +1,6 @@
+// Fixed Width Icons
+// -------------------------
+.@{fa-css-prefix}-fw {
+ width: (18em / 14);
+ text-align: center;
+}
diff --git a/temas/chamitrip/fonts/font-awesome/less/font-awesome.less b/temas/chamitrip/fonts/font-awesome/less/font-awesome.less
new file mode 100644
index 0000000..c44e5f4
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/font-awesome.less
@@ -0,0 +1,18 @@
+/*!
+ * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
+ */
+
+@import "variables.less";
+@import "mixins.less";
+@import "path.less";
+@import "core.less";
+@import "larger.less";
+@import "fixed-width.less";
+@import "list.less";
+@import "bordered-pulled.less";
+@import "animated.less";
+@import "rotated-flipped.less";
+@import "stacked.less";
+@import "icons.less";
+@import "screen-reader.less";
diff --git a/temas/chamitrip/fonts/font-awesome/less/icons.less b/temas/chamitrip/fonts/font-awesome/less/icons.less
new file mode 100644
index 0000000..ba21b22
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/icons.less
@@ -0,0 +1,733 @@
+/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
+ readers do not read off random characters that represent icons */
+
+.@{fa-css-prefix}-glass:before { content: @fa-var-glass; }
+.@{fa-css-prefix}-music:before { content: @fa-var-music; }
+.@{fa-css-prefix}-search:before { content: @fa-var-search; }
+.@{fa-css-prefix}-envelope-o:before { content: @fa-var-envelope-o; }
+.@{fa-css-prefix}-heart:before { content: @fa-var-heart; }
+.@{fa-css-prefix}-star:before { content: @fa-var-star; }
+.@{fa-css-prefix}-star-o:before { content: @fa-var-star-o; }
+.@{fa-css-prefix}-user:before { content: @fa-var-user; }
+.@{fa-css-prefix}-film:before { content: @fa-var-film; }
+.@{fa-css-prefix}-th-large:before { content: @fa-var-th-large; }
+.@{fa-css-prefix}-th:before { content: @fa-var-th; }
+.@{fa-css-prefix}-th-list:before { content: @fa-var-th-list; }
+.@{fa-css-prefix}-check:before { content: @fa-var-check; }
+.@{fa-css-prefix}-remove:before,
+.@{fa-css-prefix}-close:before,
+.@{fa-css-prefix}-times:before { content: @fa-var-times; }
+.@{fa-css-prefix}-search-plus:before { content: @fa-var-search-plus; }
+.@{fa-css-prefix}-search-minus:before { content: @fa-var-search-minus; }
+.@{fa-css-prefix}-power-off:before { content: @fa-var-power-off; }
+.@{fa-css-prefix}-signal:before { content: @fa-var-signal; }
+.@{fa-css-prefix}-gear:before,
+.@{fa-css-prefix}-cog:before { content: @fa-var-cog; }
+.@{fa-css-prefix}-trash-o:before { content: @fa-var-trash-o; }
+.@{fa-css-prefix}-home:before { content: @fa-var-home; }
+.@{fa-css-prefix}-file-o:before { content: @fa-var-file-o; }
+.@{fa-css-prefix}-clock-o:before { content: @fa-var-clock-o; }
+.@{fa-css-prefix}-road:before { content: @fa-var-road; }
+.@{fa-css-prefix}-download:before { content: @fa-var-download; }
+.@{fa-css-prefix}-arrow-circle-o-down:before { content: @fa-var-arrow-circle-o-down; }
+.@{fa-css-prefix}-arrow-circle-o-up:before { content: @fa-var-arrow-circle-o-up; }
+.@{fa-css-prefix}-inbox:before { content: @fa-var-inbox; }
+.@{fa-css-prefix}-play-circle-o:before { content: @fa-var-play-circle-o; }
+.@{fa-css-prefix}-rotate-right:before,
+.@{fa-css-prefix}-repeat:before { content: @fa-var-repeat; }
+.@{fa-css-prefix}-refresh:before { content: @fa-var-refresh; }
+.@{fa-css-prefix}-list-alt:before { content: @fa-var-list-alt; }
+.@{fa-css-prefix}-lock:before { content: @fa-var-lock; }
+.@{fa-css-prefix}-flag:before { content: @fa-var-flag; }
+.@{fa-css-prefix}-headphones:before { content: @fa-var-headphones; }
+.@{fa-css-prefix}-volume-off:before { content: @fa-var-volume-off; }
+.@{fa-css-prefix}-volume-down:before { content: @fa-var-volume-down; }
+.@{fa-css-prefix}-volume-up:before { content: @fa-var-volume-up; }
+.@{fa-css-prefix}-qrcode:before { content: @fa-var-qrcode; }
+.@{fa-css-prefix}-barcode:before { content: @fa-var-barcode; }
+.@{fa-css-prefix}-tag:before { content: @fa-var-tag; }
+.@{fa-css-prefix}-tags:before { content: @fa-var-tags; }
+.@{fa-css-prefix}-book:before { content: @fa-var-book; }
+.@{fa-css-prefix}-bookmark:before { content: @fa-var-bookmark; }
+.@{fa-css-prefix}-print:before { content: @fa-var-print; }
+.@{fa-css-prefix}-camera:before { content: @fa-var-camera; }
+.@{fa-css-prefix}-font:before { content: @fa-var-font; }
+.@{fa-css-prefix}-bold:before { content: @fa-var-bold; }
+.@{fa-css-prefix}-italic:before { content: @fa-var-italic; }
+.@{fa-css-prefix}-text-height:before { content: @fa-var-text-height; }
+.@{fa-css-prefix}-text-width:before { content: @fa-var-text-width; }
+.@{fa-css-prefix}-align-left:before { content: @fa-var-align-left; }
+.@{fa-css-prefix}-align-center:before { content: @fa-var-align-center; }
+.@{fa-css-prefix}-align-right:before { content: @fa-var-align-right; }
+.@{fa-css-prefix}-align-justify:before { content: @fa-var-align-justify; }
+.@{fa-css-prefix}-list:before { content: @fa-var-list; }
+.@{fa-css-prefix}-dedent:before,
+.@{fa-css-prefix}-outdent:before { content: @fa-var-outdent; }
+.@{fa-css-prefix}-indent:before { content: @fa-var-indent; }
+.@{fa-css-prefix}-video-camera:before { content: @fa-var-video-camera; }
+.@{fa-css-prefix}-photo:before,
+.@{fa-css-prefix}-image:before,
+.@{fa-css-prefix}-picture-o:before { content: @fa-var-picture-o; }
+.@{fa-css-prefix}-pencil:before { content: @fa-var-pencil; }
+.@{fa-css-prefix}-map-marker:before { content: @fa-var-map-marker; }
+.@{fa-css-prefix}-adjust:before { content: @fa-var-adjust; }
+.@{fa-css-prefix}-tint:before { content: @fa-var-tint; }
+.@{fa-css-prefix}-edit:before,
+.@{fa-css-prefix}-pencil-square-o:before { content: @fa-var-pencil-square-o; }
+.@{fa-css-prefix}-share-square-o:before { content: @fa-var-share-square-o; }
+.@{fa-css-prefix}-check-square-o:before { content: @fa-var-check-square-o; }
+.@{fa-css-prefix}-arrows:before { content: @fa-var-arrows; }
+.@{fa-css-prefix}-step-backward:before { content: @fa-var-step-backward; }
+.@{fa-css-prefix}-fast-backward:before { content: @fa-var-fast-backward; }
+.@{fa-css-prefix}-backward:before { content: @fa-var-backward; }
+.@{fa-css-prefix}-play:before { content: @fa-var-play; }
+.@{fa-css-prefix}-pause:before { content: @fa-var-pause; }
+.@{fa-css-prefix}-stop:before { content: @fa-var-stop; }
+.@{fa-css-prefix}-forward:before { content: @fa-var-forward; }
+.@{fa-css-prefix}-fast-forward:before { content: @fa-var-fast-forward; }
+.@{fa-css-prefix}-step-forward:before { content: @fa-var-step-forward; }
+.@{fa-css-prefix}-eject:before { content: @fa-var-eject; }
+.@{fa-css-prefix}-chevron-left:before { content: @fa-var-chevron-left; }
+.@{fa-css-prefix}-chevron-right:before { content: @fa-var-chevron-right; }
+.@{fa-css-prefix}-plus-circle:before { content: @fa-var-plus-circle; }
+.@{fa-css-prefix}-minus-circle:before { content: @fa-var-minus-circle; }
+.@{fa-css-prefix}-times-circle:before { content: @fa-var-times-circle; }
+.@{fa-css-prefix}-check-circle:before { content: @fa-var-check-circle; }
+.@{fa-css-prefix}-question-circle:before { content: @fa-var-question-circle; }
+.@{fa-css-prefix}-info-circle:before { content: @fa-var-info-circle; }
+.@{fa-css-prefix}-crosshairs:before { content: @fa-var-crosshairs; }
+.@{fa-css-prefix}-times-circle-o:before { content: @fa-var-times-circle-o; }
+.@{fa-css-prefix}-check-circle-o:before { content: @fa-var-check-circle-o; }
+.@{fa-css-prefix}-ban:before { content: @fa-var-ban; }
+.@{fa-css-prefix}-arrow-left:before { content: @fa-var-arrow-left; }
+.@{fa-css-prefix}-arrow-right:before { content: @fa-var-arrow-right; }
+.@{fa-css-prefix}-arrow-up:before { content: @fa-var-arrow-up; }
+.@{fa-css-prefix}-arrow-down:before { content: @fa-var-arrow-down; }
+.@{fa-css-prefix}-mail-forward:before,
+.@{fa-css-prefix}-share:before { content: @fa-var-share; }
+.@{fa-css-prefix}-expand:before { content: @fa-var-expand; }
+.@{fa-css-prefix}-compress:before { content: @fa-var-compress; }
+.@{fa-css-prefix}-plus:before { content: @fa-var-plus; }
+.@{fa-css-prefix}-minus:before { content: @fa-var-minus; }
+.@{fa-css-prefix}-asterisk:before { content: @fa-var-asterisk; }
+.@{fa-css-prefix}-exclamation-circle:before { content: @fa-var-exclamation-circle; }
+.@{fa-css-prefix}-gift:before { content: @fa-var-gift; }
+.@{fa-css-prefix}-leaf:before { content: @fa-var-leaf; }
+.@{fa-css-prefix}-fire:before { content: @fa-var-fire; }
+.@{fa-css-prefix}-eye:before { content: @fa-var-eye; }
+.@{fa-css-prefix}-eye-slash:before { content: @fa-var-eye-slash; }
+.@{fa-css-prefix}-warning:before,
+.@{fa-css-prefix}-exclamation-triangle:before { content: @fa-var-exclamation-triangle; }
+.@{fa-css-prefix}-plane:before { content: @fa-var-plane; }
+.@{fa-css-prefix}-calendar:before { content: @fa-var-calendar; }
+.@{fa-css-prefix}-random:before { content: @fa-var-random; }
+.@{fa-css-prefix}-comment:before { content: @fa-var-comment; }
+.@{fa-css-prefix}-magnet:before { content: @fa-var-magnet; }
+.@{fa-css-prefix}-chevron-up:before { content: @fa-var-chevron-up; }
+.@{fa-css-prefix}-chevron-down:before { content: @fa-var-chevron-down; }
+.@{fa-css-prefix}-retweet:before { content: @fa-var-retweet; }
+.@{fa-css-prefix}-shopping-cart:before { content: @fa-var-shopping-cart; }
+.@{fa-css-prefix}-folder:before { content: @fa-var-folder; }
+.@{fa-css-prefix}-folder-open:before { content: @fa-var-folder-open; }
+.@{fa-css-prefix}-arrows-v:before { content: @fa-var-arrows-v; }
+.@{fa-css-prefix}-arrows-h:before { content: @fa-var-arrows-h; }
+.@{fa-css-prefix}-bar-chart-o:before,
+.@{fa-css-prefix}-bar-chart:before { content: @fa-var-bar-chart; }
+.@{fa-css-prefix}-twitter-square:before { content: @fa-var-twitter-square; }
+.@{fa-css-prefix}-facebook-square:before { content: @fa-var-facebook-square; }
+.@{fa-css-prefix}-camera-retro:before { content: @fa-var-camera-retro; }
+.@{fa-css-prefix}-key:before { content: @fa-var-key; }
+.@{fa-css-prefix}-gears:before,
+.@{fa-css-prefix}-cogs:before { content: @fa-var-cogs; }
+.@{fa-css-prefix}-comments:before { content: @fa-var-comments; }
+.@{fa-css-prefix}-thumbs-o-up:before { content: @fa-var-thumbs-o-up; }
+.@{fa-css-prefix}-thumbs-o-down:before { content: @fa-var-thumbs-o-down; }
+.@{fa-css-prefix}-star-half:before { content: @fa-var-star-half; }
+.@{fa-css-prefix}-heart-o:before { content: @fa-var-heart-o; }
+.@{fa-css-prefix}-sign-out:before { content: @fa-var-sign-out; }
+.@{fa-css-prefix}-linkedin-square:before { content: @fa-var-linkedin-square; }
+.@{fa-css-prefix}-thumb-tack:before { content: @fa-var-thumb-tack; }
+.@{fa-css-prefix}-external-link:before { content: @fa-var-external-link; }
+.@{fa-css-prefix}-sign-in:before { content: @fa-var-sign-in; }
+.@{fa-css-prefix}-trophy:before { content: @fa-var-trophy; }
+.@{fa-css-prefix}-github-square:before { content: @fa-var-github-square; }
+.@{fa-css-prefix}-upload:before { content: @fa-var-upload; }
+.@{fa-css-prefix}-lemon-o:before { content: @fa-var-lemon-o; }
+.@{fa-css-prefix}-phone:before { content: @fa-var-phone; }
+.@{fa-css-prefix}-square-o:before { content: @fa-var-square-o; }
+.@{fa-css-prefix}-bookmark-o:before { content: @fa-var-bookmark-o; }
+.@{fa-css-prefix}-phone-square:before { content: @fa-var-phone-square; }
+.@{fa-css-prefix}-twitter:before { content: @fa-var-twitter; }
+.@{fa-css-prefix}-facebook-f:before,
+.@{fa-css-prefix}-facebook:before { content: @fa-var-facebook; }
+.@{fa-css-prefix}-github:before { content: @fa-var-github; }
+.@{fa-css-prefix}-unlock:before { content: @fa-var-unlock; }
+.@{fa-css-prefix}-credit-card:before { content: @fa-var-credit-card; }
+.@{fa-css-prefix}-feed:before,
+.@{fa-css-prefix}-rss:before { content: @fa-var-rss; }
+.@{fa-css-prefix}-hdd-o:before { content: @fa-var-hdd-o; }
+.@{fa-css-prefix}-bullhorn:before { content: @fa-var-bullhorn; }
+.@{fa-css-prefix}-bell:before { content: @fa-var-bell; }
+.@{fa-css-prefix}-certificate:before { content: @fa-var-certificate; }
+.@{fa-css-prefix}-hand-o-right:before { content: @fa-var-hand-o-right; }
+.@{fa-css-prefix}-hand-o-left:before { content: @fa-var-hand-o-left; }
+.@{fa-css-prefix}-hand-o-up:before { content: @fa-var-hand-o-up; }
+.@{fa-css-prefix}-hand-o-down:before { content: @fa-var-hand-o-down; }
+.@{fa-css-prefix}-arrow-circle-left:before { content: @fa-var-arrow-circle-left; }
+.@{fa-css-prefix}-arrow-circle-right:before { content: @fa-var-arrow-circle-right; }
+.@{fa-css-prefix}-arrow-circle-up:before { content: @fa-var-arrow-circle-up; }
+.@{fa-css-prefix}-arrow-circle-down:before { content: @fa-var-arrow-circle-down; }
+.@{fa-css-prefix}-globe:before { content: @fa-var-globe; }
+.@{fa-css-prefix}-wrench:before { content: @fa-var-wrench; }
+.@{fa-css-prefix}-tasks:before { content: @fa-var-tasks; }
+.@{fa-css-prefix}-filter:before { content: @fa-var-filter; }
+.@{fa-css-prefix}-briefcase:before { content: @fa-var-briefcase; }
+.@{fa-css-prefix}-arrows-alt:before { content: @fa-var-arrows-alt; }
+.@{fa-css-prefix}-group:before,
+.@{fa-css-prefix}-users:before { content: @fa-var-users; }
+.@{fa-css-prefix}-chain:before,
+.@{fa-css-prefix}-link:before { content: @fa-var-link; }
+.@{fa-css-prefix}-cloud:before { content: @fa-var-cloud; }
+.@{fa-css-prefix}-flask:before { content: @fa-var-flask; }
+.@{fa-css-prefix}-cut:before,
+.@{fa-css-prefix}-scissors:before { content: @fa-var-scissors; }
+.@{fa-css-prefix}-copy:before,
+.@{fa-css-prefix}-files-o:before { content: @fa-var-files-o; }
+.@{fa-css-prefix}-paperclip:before { content: @fa-var-paperclip; }
+.@{fa-css-prefix}-save:before,
+.@{fa-css-prefix}-floppy-o:before { content: @fa-var-floppy-o; }
+.@{fa-css-prefix}-square:before { content: @fa-var-square; }
+.@{fa-css-prefix}-navicon:before,
+.@{fa-css-prefix}-reorder:before,
+.@{fa-css-prefix}-bars:before { content: @fa-var-bars; }
+.@{fa-css-prefix}-list-ul:before { content: @fa-var-list-ul; }
+.@{fa-css-prefix}-list-ol:before { content: @fa-var-list-ol; }
+.@{fa-css-prefix}-strikethrough:before { content: @fa-var-strikethrough; }
+.@{fa-css-prefix}-underline:before { content: @fa-var-underline; }
+.@{fa-css-prefix}-table:before { content: @fa-var-table; }
+.@{fa-css-prefix}-magic:before { content: @fa-var-magic; }
+.@{fa-css-prefix}-truck:before { content: @fa-var-truck; }
+.@{fa-css-prefix}-pinterest:before { content: @fa-var-pinterest; }
+.@{fa-css-prefix}-pinterest-square:before { content: @fa-var-pinterest-square; }
+.@{fa-css-prefix}-google-plus-square:before { content: @fa-var-google-plus-square; }
+.@{fa-css-prefix}-google-plus:before { content: @fa-var-google-plus; }
+.@{fa-css-prefix}-money:before { content: @fa-var-money; }
+.@{fa-css-prefix}-caret-down:before { content: @fa-var-caret-down; }
+.@{fa-css-prefix}-caret-up:before { content: @fa-var-caret-up; }
+.@{fa-css-prefix}-caret-left:before { content: @fa-var-caret-left; }
+.@{fa-css-prefix}-caret-right:before { content: @fa-var-caret-right; }
+.@{fa-css-prefix}-columns:before { content: @fa-var-columns; }
+.@{fa-css-prefix}-unsorted:before,
+.@{fa-css-prefix}-sort:before { content: @fa-var-sort; }
+.@{fa-css-prefix}-sort-down:before,
+.@{fa-css-prefix}-sort-desc:before { content: @fa-var-sort-desc; }
+.@{fa-css-prefix}-sort-up:before,
+.@{fa-css-prefix}-sort-asc:before { content: @fa-var-sort-asc; }
+.@{fa-css-prefix}-envelope:before { content: @fa-var-envelope; }
+.@{fa-css-prefix}-linkedin:before { content: @fa-var-linkedin; }
+.@{fa-css-prefix}-rotate-left:before,
+.@{fa-css-prefix}-undo:before { content: @fa-var-undo; }
+.@{fa-css-prefix}-legal:before,
+.@{fa-css-prefix}-gavel:before { content: @fa-var-gavel; }
+.@{fa-css-prefix}-dashboard:before,
+.@{fa-css-prefix}-tachometer:before { content: @fa-var-tachometer; }
+.@{fa-css-prefix}-comment-o:before { content: @fa-var-comment-o; }
+.@{fa-css-prefix}-comments-o:before { content: @fa-var-comments-o; }
+.@{fa-css-prefix}-flash:before,
+.@{fa-css-prefix}-bolt:before { content: @fa-var-bolt; }
+.@{fa-css-prefix}-sitemap:before { content: @fa-var-sitemap; }
+.@{fa-css-prefix}-umbrella:before { content: @fa-var-umbrella; }
+.@{fa-css-prefix}-paste:before,
+.@{fa-css-prefix}-clipboard:before { content: @fa-var-clipboard; }
+.@{fa-css-prefix}-lightbulb-o:before { content: @fa-var-lightbulb-o; }
+.@{fa-css-prefix}-exchange:before { content: @fa-var-exchange; }
+.@{fa-css-prefix}-cloud-download:before { content: @fa-var-cloud-download; }
+.@{fa-css-prefix}-cloud-upload:before { content: @fa-var-cloud-upload; }
+.@{fa-css-prefix}-user-md:before { content: @fa-var-user-md; }
+.@{fa-css-prefix}-stethoscope:before { content: @fa-var-stethoscope; }
+.@{fa-css-prefix}-suitcase:before { content: @fa-var-suitcase; }
+.@{fa-css-prefix}-bell-o:before { content: @fa-var-bell-o; }
+.@{fa-css-prefix}-coffee:before { content: @fa-var-coffee; }
+.@{fa-css-prefix}-cutlery:before { content: @fa-var-cutlery; }
+.@{fa-css-prefix}-file-text-o:before { content: @fa-var-file-text-o; }
+.@{fa-css-prefix}-building-o:before { content: @fa-var-building-o; }
+.@{fa-css-prefix}-hospital-o:before { content: @fa-var-hospital-o; }
+.@{fa-css-prefix}-ambulance:before { content: @fa-var-ambulance; }
+.@{fa-css-prefix}-medkit:before { content: @fa-var-medkit; }
+.@{fa-css-prefix}-fighter-jet:before { content: @fa-var-fighter-jet; }
+.@{fa-css-prefix}-beer:before { content: @fa-var-beer; }
+.@{fa-css-prefix}-h-square:before { content: @fa-var-h-square; }
+.@{fa-css-prefix}-plus-square:before { content: @fa-var-plus-square; }
+.@{fa-css-prefix}-angle-double-left:before { content: @fa-var-angle-double-left; }
+.@{fa-css-prefix}-angle-double-right:before { content: @fa-var-angle-double-right; }
+.@{fa-css-prefix}-angle-double-up:before { content: @fa-var-angle-double-up; }
+.@{fa-css-prefix}-angle-double-down:before { content: @fa-var-angle-double-down; }
+.@{fa-css-prefix}-angle-left:before { content: @fa-var-angle-left; }
+.@{fa-css-prefix}-angle-right:before { content: @fa-var-angle-right; }
+.@{fa-css-prefix}-angle-up:before { content: @fa-var-angle-up; }
+.@{fa-css-prefix}-angle-down:before { content: @fa-var-angle-down; }
+.@{fa-css-prefix}-desktop:before { content: @fa-var-desktop; }
+.@{fa-css-prefix}-laptop:before { content: @fa-var-laptop; }
+.@{fa-css-prefix}-tablet:before { content: @fa-var-tablet; }
+.@{fa-css-prefix}-mobile-phone:before,
+.@{fa-css-prefix}-mobile:before { content: @fa-var-mobile; }
+.@{fa-css-prefix}-circle-o:before { content: @fa-var-circle-o; }
+.@{fa-css-prefix}-quote-left:before { content: @fa-var-quote-left; }
+.@{fa-css-prefix}-quote-right:before { content: @fa-var-quote-right; }
+.@{fa-css-prefix}-spinner:before { content: @fa-var-spinner; }
+.@{fa-css-prefix}-circle:before { content: @fa-var-circle; }
+.@{fa-css-prefix}-mail-reply:before,
+.@{fa-css-prefix}-reply:before { content: @fa-var-reply; }
+.@{fa-css-prefix}-github-alt:before { content: @fa-var-github-alt; }
+.@{fa-css-prefix}-folder-o:before { content: @fa-var-folder-o; }
+.@{fa-css-prefix}-folder-open-o:before { content: @fa-var-folder-open-o; }
+.@{fa-css-prefix}-smile-o:before { content: @fa-var-smile-o; }
+.@{fa-css-prefix}-frown-o:before { content: @fa-var-frown-o; }
+.@{fa-css-prefix}-meh-o:before { content: @fa-var-meh-o; }
+.@{fa-css-prefix}-gamepad:before { content: @fa-var-gamepad; }
+.@{fa-css-prefix}-keyboard-o:before { content: @fa-var-keyboard-o; }
+.@{fa-css-prefix}-flag-o:before { content: @fa-var-flag-o; }
+.@{fa-css-prefix}-flag-checkered:before { content: @fa-var-flag-checkered; }
+.@{fa-css-prefix}-terminal:before { content: @fa-var-terminal; }
+.@{fa-css-prefix}-code:before { content: @fa-var-code; }
+.@{fa-css-prefix}-mail-reply-all:before,
+.@{fa-css-prefix}-reply-all:before { content: @fa-var-reply-all; }
+.@{fa-css-prefix}-star-half-empty:before,
+.@{fa-css-prefix}-star-half-full:before,
+.@{fa-css-prefix}-star-half-o:before { content: @fa-var-star-half-o; }
+.@{fa-css-prefix}-location-arrow:before { content: @fa-var-location-arrow; }
+.@{fa-css-prefix}-crop:before { content: @fa-var-crop; }
+.@{fa-css-prefix}-code-fork:before { content: @fa-var-code-fork; }
+.@{fa-css-prefix}-unlink:before,
+.@{fa-css-prefix}-chain-broken:before { content: @fa-var-chain-broken; }
+.@{fa-css-prefix}-question:before { content: @fa-var-question; }
+.@{fa-css-prefix}-info:before { content: @fa-var-info; }
+.@{fa-css-prefix}-exclamation:before { content: @fa-var-exclamation; }
+.@{fa-css-prefix}-superscript:before { content: @fa-var-superscript; }
+.@{fa-css-prefix}-subscript:before { content: @fa-var-subscript; }
+.@{fa-css-prefix}-eraser:before { content: @fa-var-eraser; }
+.@{fa-css-prefix}-puzzle-piece:before { content: @fa-var-puzzle-piece; }
+.@{fa-css-prefix}-microphone:before { content: @fa-var-microphone; }
+.@{fa-css-prefix}-microphone-slash:before { content: @fa-var-microphone-slash; }
+.@{fa-css-prefix}-shield:before { content: @fa-var-shield; }
+.@{fa-css-prefix}-calendar-o:before { content: @fa-var-calendar-o; }
+.@{fa-css-prefix}-fire-extinguisher:before { content: @fa-var-fire-extinguisher; }
+.@{fa-css-prefix}-rocket:before { content: @fa-var-rocket; }
+.@{fa-css-prefix}-maxcdn:before { content: @fa-var-maxcdn; }
+.@{fa-css-prefix}-chevron-circle-left:before { content: @fa-var-chevron-circle-left; }
+.@{fa-css-prefix}-chevron-circle-right:before { content: @fa-var-chevron-circle-right; }
+.@{fa-css-prefix}-chevron-circle-up:before { content: @fa-var-chevron-circle-up; }
+.@{fa-css-prefix}-chevron-circle-down:before { content: @fa-var-chevron-circle-down; }
+.@{fa-css-prefix}-html5:before { content: @fa-var-html5; }
+.@{fa-css-prefix}-css3:before { content: @fa-var-css3; }
+.@{fa-css-prefix}-anchor:before { content: @fa-var-anchor; }
+.@{fa-css-prefix}-unlock-alt:before { content: @fa-var-unlock-alt; }
+.@{fa-css-prefix}-bullseye:before { content: @fa-var-bullseye; }
+.@{fa-css-prefix}-ellipsis-h:before { content: @fa-var-ellipsis-h; }
+.@{fa-css-prefix}-ellipsis-v:before { content: @fa-var-ellipsis-v; }
+.@{fa-css-prefix}-rss-square:before { content: @fa-var-rss-square; }
+.@{fa-css-prefix}-play-circle:before { content: @fa-var-play-circle; }
+.@{fa-css-prefix}-ticket:before { content: @fa-var-ticket; }
+.@{fa-css-prefix}-minus-square:before { content: @fa-var-minus-square; }
+.@{fa-css-prefix}-minus-square-o:before { content: @fa-var-minus-square-o; }
+.@{fa-css-prefix}-level-up:before { content: @fa-var-level-up; }
+.@{fa-css-prefix}-level-down:before { content: @fa-var-level-down; }
+.@{fa-css-prefix}-check-square:before { content: @fa-var-check-square; }
+.@{fa-css-prefix}-pencil-square:before { content: @fa-var-pencil-square; }
+.@{fa-css-prefix}-external-link-square:before { content: @fa-var-external-link-square; }
+.@{fa-css-prefix}-share-square:before { content: @fa-var-share-square; }
+.@{fa-css-prefix}-compass:before { content: @fa-var-compass; }
+.@{fa-css-prefix}-toggle-down:before,
+.@{fa-css-prefix}-caret-square-o-down:before { content: @fa-var-caret-square-o-down; }
+.@{fa-css-prefix}-toggle-up:before,
+.@{fa-css-prefix}-caret-square-o-up:before { content: @fa-var-caret-square-o-up; }
+.@{fa-css-prefix}-toggle-right:before,
+.@{fa-css-prefix}-caret-square-o-right:before { content: @fa-var-caret-square-o-right; }
+.@{fa-css-prefix}-euro:before,
+.@{fa-css-prefix}-eur:before { content: @fa-var-eur; }
+.@{fa-css-prefix}-gbp:before { content: @fa-var-gbp; }
+.@{fa-css-prefix}-dollar:before,
+.@{fa-css-prefix}-usd:before { content: @fa-var-usd; }
+.@{fa-css-prefix}-rupee:before,
+.@{fa-css-prefix}-inr:before { content: @fa-var-inr; }
+.@{fa-css-prefix}-cny:before,
+.@{fa-css-prefix}-rmb:before,
+.@{fa-css-prefix}-yen:before,
+.@{fa-css-prefix}-jpy:before { content: @fa-var-jpy; }
+.@{fa-css-prefix}-ruble:before,
+.@{fa-css-prefix}-rouble:before,
+.@{fa-css-prefix}-rub:before { content: @fa-var-rub; }
+.@{fa-css-prefix}-won:before,
+.@{fa-css-prefix}-krw:before { content: @fa-var-krw; }
+.@{fa-css-prefix}-bitcoin:before,
+.@{fa-css-prefix}-btc:before { content: @fa-var-btc; }
+.@{fa-css-prefix}-file:before { content: @fa-var-file; }
+.@{fa-css-prefix}-file-text:before { content: @fa-var-file-text; }
+.@{fa-css-prefix}-sort-alpha-asc:before { content: @fa-var-sort-alpha-asc; }
+.@{fa-css-prefix}-sort-alpha-desc:before { content: @fa-var-sort-alpha-desc; }
+.@{fa-css-prefix}-sort-amount-asc:before { content: @fa-var-sort-amount-asc; }
+.@{fa-css-prefix}-sort-amount-desc:before { content: @fa-var-sort-amount-desc; }
+.@{fa-css-prefix}-sort-numeric-asc:before { content: @fa-var-sort-numeric-asc; }
+.@{fa-css-prefix}-sort-numeric-desc:before { content: @fa-var-sort-numeric-desc; }
+.@{fa-css-prefix}-thumbs-up:before { content: @fa-var-thumbs-up; }
+.@{fa-css-prefix}-thumbs-down:before { content: @fa-var-thumbs-down; }
+.@{fa-css-prefix}-youtube-square:before { content: @fa-var-youtube-square; }
+.@{fa-css-prefix}-youtube:before { content: @fa-var-youtube; }
+.@{fa-css-prefix}-xing:before { content: @fa-var-xing; }
+.@{fa-css-prefix}-xing-square:before { content: @fa-var-xing-square; }
+.@{fa-css-prefix}-youtube-play:before { content: @fa-var-youtube-play; }
+.@{fa-css-prefix}-dropbox:before { content: @fa-var-dropbox; }
+.@{fa-css-prefix}-stack-overflow:before { content: @fa-var-stack-overflow; }
+.@{fa-css-prefix}-instagram:before { content: @fa-var-instagram; }
+.@{fa-css-prefix}-flickr:before { content: @fa-var-flickr; }
+.@{fa-css-prefix}-adn:before { content: @fa-var-adn; }
+.@{fa-css-prefix}-bitbucket:before { content: @fa-var-bitbucket; }
+.@{fa-css-prefix}-bitbucket-square:before { content: @fa-var-bitbucket-square; }
+.@{fa-css-prefix}-tumblr:before { content: @fa-var-tumblr; }
+.@{fa-css-prefix}-tumblr-square:before { content: @fa-var-tumblr-square; }
+.@{fa-css-prefix}-long-arrow-down:before { content: @fa-var-long-arrow-down; }
+.@{fa-css-prefix}-long-arrow-up:before { content: @fa-var-long-arrow-up; }
+.@{fa-css-prefix}-long-arrow-left:before { content: @fa-var-long-arrow-left; }
+.@{fa-css-prefix}-long-arrow-right:before { content: @fa-var-long-arrow-right; }
+.@{fa-css-prefix}-apple:before { content: @fa-var-apple; }
+.@{fa-css-prefix}-windows:before { content: @fa-var-windows; }
+.@{fa-css-prefix}-android:before { content: @fa-var-android; }
+.@{fa-css-prefix}-linux:before { content: @fa-var-linux; }
+.@{fa-css-prefix}-dribbble:before { content: @fa-var-dribbble; }
+.@{fa-css-prefix}-skype:before { content: @fa-var-skype; }
+.@{fa-css-prefix}-foursquare:before { content: @fa-var-foursquare; }
+.@{fa-css-prefix}-trello:before { content: @fa-var-trello; }
+.@{fa-css-prefix}-female:before { content: @fa-var-female; }
+.@{fa-css-prefix}-male:before { content: @fa-var-male; }
+.@{fa-css-prefix}-gittip:before,
+.@{fa-css-prefix}-gratipay:before { content: @fa-var-gratipay; }
+.@{fa-css-prefix}-sun-o:before { content: @fa-var-sun-o; }
+.@{fa-css-prefix}-moon-o:before { content: @fa-var-moon-o; }
+.@{fa-css-prefix}-archive:before { content: @fa-var-archive; }
+.@{fa-css-prefix}-bug:before { content: @fa-var-bug; }
+.@{fa-css-prefix}-vk:before { content: @fa-var-vk; }
+.@{fa-css-prefix}-weibo:before { content: @fa-var-weibo; }
+.@{fa-css-prefix}-renren:before { content: @fa-var-renren; }
+.@{fa-css-prefix}-pagelines:before { content: @fa-var-pagelines; }
+.@{fa-css-prefix}-stack-exchange:before { content: @fa-var-stack-exchange; }
+.@{fa-css-prefix}-arrow-circle-o-right:before { content: @fa-var-arrow-circle-o-right; }
+.@{fa-css-prefix}-arrow-circle-o-left:before { content: @fa-var-arrow-circle-o-left; }
+.@{fa-css-prefix}-toggle-left:before,
+.@{fa-css-prefix}-caret-square-o-left:before { content: @fa-var-caret-square-o-left; }
+.@{fa-css-prefix}-dot-circle-o:before { content: @fa-var-dot-circle-o; }
+.@{fa-css-prefix}-wheelchair:before { content: @fa-var-wheelchair; }
+.@{fa-css-prefix}-vimeo-square:before { content: @fa-var-vimeo-square; }
+.@{fa-css-prefix}-turkish-lira:before,
+.@{fa-css-prefix}-try:before { content: @fa-var-try; }
+.@{fa-css-prefix}-plus-square-o:before { content: @fa-var-plus-square-o; }
+.@{fa-css-prefix}-space-shuttle:before { content: @fa-var-space-shuttle; }
+.@{fa-css-prefix}-slack:before { content: @fa-var-slack; }
+.@{fa-css-prefix}-envelope-square:before { content: @fa-var-envelope-square; }
+.@{fa-css-prefix}-wordpress:before { content: @fa-var-wordpress; }
+.@{fa-css-prefix}-openid:before { content: @fa-var-openid; }
+.@{fa-css-prefix}-institution:before,
+.@{fa-css-prefix}-bank:before,
+.@{fa-css-prefix}-university:before { content: @fa-var-university; }
+.@{fa-css-prefix}-mortar-board:before,
+.@{fa-css-prefix}-graduation-cap:before { content: @fa-var-graduation-cap; }
+.@{fa-css-prefix}-yahoo:before { content: @fa-var-yahoo; }
+.@{fa-css-prefix}-google:before { content: @fa-var-google; }
+.@{fa-css-prefix}-reddit:before { content: @fa-var-reddit; }
+.@{fa-css-prefix}-reddit-square:before { content: @fa-var-reddit-square; }
+.@{fa-css-prefix}-stumbleupon-circle:before { content: @fa-var-stumbleupon-circle; }
+.@{fa-css-prefix}-stumbleupon:before { content: @fa-var-stumbleupon; }
+.@{fa-css-prefix}-delicious:before { content: @fa-var-delicious; }
+.@{fa-css-prefix}-digg:before { content: @fa-var-digg; }
+.@{fa-css-prefix}-pied-piper-pp:before { content: @fa-var-pied-piper-pp; }
+.@{fa-css-prefix}-pied-piper-alt:before { content: @fa-var-pied-piper-alt; }
+.@{fa-css-prefix}-drupal:before { content: @fa-var-drupal; }
+.@{fa-css-prefix}-joomla:before { content: @fa-var-joomla; }
+.@{fa-css-prefix}-language:before { content: @fa-var-language; }
+.@{fa-css-prefix}-fax:before { content: @fa-var-fax; }
+.@{fa-css-prefix}-building:before { content: @fa-var-building; }
+.@{fa-css-prefix}-child:before { content: @fa-var-child; }
+.@{fa-css-prefix}-paw:before { content: @fa-var-paw; }
+.@{fa-css-prefix}-spoon:before { content: @fa-var-spoon; }
+.@{fa-css-prefix}-cube:before { content: @fa-var-cube; }
+.@{fa-css-prefix}-cubes:before { content: @fa-var-cubes; }
+.@{fa-css-prefix}-behance:before { content: @fa-var-behance; }
+.@{fa-css-prefix}-behance-square:before { content: @fa-var-behance-square; }
+.@{fa-css-prefix}-steam:before { content: @fa-var-steam; }
+.@{fa-css-prefix}-steam-square:before { content: @fa-var-steam-square; }
+.@{fa-css-prefix}-recycle:before { content: @fa-var-recycle; }
+.@{fa-css-prefix}-automobile:before,
+.@{fa-css-prefix}-car:before { content: @fa-var-car; }
+.@{fa-css-prefix}-cab:before,
+.@{fa-css-prefix}-taxi:before { content: @fa-var-taxi; }
+.@{fa-css-prefix}-tree:before { content: @fa-var-tree; }
+.@{fa-css-prefix}-spotify:before { content: @fa-var-spotify; }
+.@{fa-css-prefix}-deviantart:before { content: @fa-var-deviantart; }
+.@{fa-css-prefix}-soundcloud:before { content: @fa-var-soundcloud; }
+.@{fa-css-prefix}-database:before { content: @fa-var-database; }
+.@{fa-css-prefix}-file-pdf-o:before { content: @fa-var-file-pdf-o; }
+.@{fa-css-prefix}-file-word-o:before { content: @fa-var-file-word-o; }
+.@{fa-css-prefix}-file-excel-o:before { content: @fa-var-file-excel-o; }
+.@{fa-css-prefix}-file-powerpoint-o:before { content: @fa-var-file-powerpoint-o; }
+.@{fa-css-prefix}-file-photo-o:before,
+.@{fa-css-prefix}-file-picture-o:before,
+.@{fa-css-prefix}-file-image-o:before { content: @fa-var-file-image-o; }
+.@{fa-css-prefix}-file-zip-o:before,
+.@{fa-css-prefix}-file-archive-o:before { content: @fa-var-file-archive-o; }
+.@{fa-css-prefix}-file-sound-o:before,
+.@{fa-css-prefix}-file-audio-o:before { content: @fa-var-file-audio-o; }
+.@{fa-css-prefix}-file-movie-o:before,
+.@{fa-css-prefix}-file-video-o:before { content: @fa-var-file-video-o; }
+.@{fa-css-prefix}-file-code-o:before { content: @fa-var-file-code-o; }
+.@{fa-css-prefix}-vine:before { content: @fa-var-vine; }
+.@{fa-css-prefix}-codepen:before { content: @fa-var-codepen; }
+.@{fa-css-prefix}-jsfiddle:before { content: @fa-var-jsfiddle; }
+.@{fa-css-prefix}-life-bouy:before,
+.@{fa-css-prefix}-life-buoy:before,
+.@{fa-css-prefix}-life-saver:before,
+.@{fa-css-prefix}-support:before,
+.@{fa-css-prefix}-life-ring:before { content: @fa-var-life-ring; }
+.@{fa-css-prefix}-circle-o-notch:before { content: @fa-var-circle-o-notch; }
+.@{fa-css-prefix}-ra:before,
+.@{fa-css-prefix}-resistance:before,
+.@{fa-css-prefix}-rebel:before { content: @fa-var-rebel; }
+.@{fa-css-prefix}-ge:before,
+.@{fa-css-prefix}-empire:before { content: @fa-var-empire; }
+.@{fa-css-prefix}-git-square:before { content: @fa-var-git-square; }
+.@{fa-css-prefix}-git:before { content: @fa-var-git; }
+.@{fa-css-prefix}-y-combinator-square:before,
+.@{fa-css-prefix}-yc-square:before,
+.@{fa-css-prefix}-hacker-news:before { content: @fa-var-hacker-news; }
+.@{fa-css-prefix}-tencent-weibo:before { content: @fa-var-tencent-weibo; }
+.@{fa-css-prefix}-qq:before { content: @fa-var-qq; }
+.@{fa-css-prefix}-wechat:before,
+.@{fa-css-prefix}-weixin:before { content: @fa-var-weixin; }
+.@{fa-css-prefix}-send:before,
+.@{fa-css-prefix}-paper-plane:before { content: @fa-var-paper-plane; }
+.@{fa-css-prefix}-send-o:before,
+.@{fa-css-prefix}-paper-plane-o:before { content: @fa-var-paper-plane-o; }
+.@{fa-css-prefix}-history:before { content: @fa-var-history; }
+.@{fa-css-prefix}-circle-thin:before { content: @fa-var-circle-thin; }
+.@{fa-css-prefix}-header:before { content: @fa-var-header; }
+.@{fa-css-prefix}-paragraph:before { content: @fa-var-paragraph; }
+.@{fa-css-prefix}-sliders:before { content: @fa-var-sliders; }
+.@{fa-css-prefix}-share-alt:before { content: @fa-var-share-alt; }
+.@{fa-css-prefix}-share-alt-square:before { content: @fa-var-share-alt-square; }
+.@{fa-css-prefix}-bomb:before { content: @fa-var-bomb; }
+.@{fa-css-prefix}-soccer-ball-o:before,
+.@{fa-css-prefix}-futbol-o:before { content: @fa-var-futbol-o; }
+.@{fa-css-prefix}-tty:before { content: @fa-var-tty; }
+.@{fa-css-prefix}-binoculars:before { content: @fa-var-binoculars; }
+.@{fa-css-prefix}-plug:before { content: @fa-var-plug; }
+.@{fa-css-prefix}-slideshare:before { content: @fa-var-slideshare; }
+.@{fa-css-prefix}-twitch:before { content: @fa-var-twitch; }
+.@{fa-css-prefix}-yelp:before { content: @fa-var-yelp; }
+.@{fa-css-prefix}-newspaper-o:before { content: @fa-var-newspaper-o; }
+.@{fa-css-prefix}-wifi:before { content: @fa-var-wifi; }
+.@{fa-css-prefix}-calculator:before { content: @fa-var-calculator; }
+.@{fa-css-prefix}-paypal:before { content: @fa-var-paypal; }
+.@{fa-css-prefix}-google-wallet:before { content: @fa-var-google-wallet; }
+.@{fa-css-prefix}-cc-visa:before { content: @fa-var-cc-visa; }
+.@{fa-css-prefix}-cc-mastercard:before { content: @fa-var-cc-mastercard; }
+.@{fa-css-prefix}-cc-discover:before { content: @fa-var-cc-discover; }
+.@{fa-css-prefix}-cc-amex:before { content: @fa-var-cc-amex; }
+.@{fa-css-prefix}-cc-paypal:before { content: @fa-var-cc-paypal; }
+.@{fa-css-prefix}-cc-stripe:before { content: @fa-var-cc-stripe; }
+.@{fa-css-prefix}-bell-slash:before { content: @fa-var-bell-slash; }
+.@{fa-css-prefix}-bell-slash-o:before { content: @fa-var-bell-slash-o; }
+.@{fa-css-prefix}-trash:before { content: @fa-var-trash; }
+.@{fa-css-prefix}-copyright:before { content: @fa-var-copyright; }
+.@{fa-css-prefix}-at:before { content: @fa-var-at; }
+.@{fa-css-prefix}-eyedropper:before { content: @fa-var-eyedropper; }
+.@{fa-css-prefix}-paint-brush:before { content: @fa-var-paint-brush; }
+.@{fa-css-prefix}-birthday-cake:before { content: @fa-var-birthday-cake; }
+.@{fa-css-prefix}-area-chart:before { content: @fa-var-area-chart; }
+.@{fa-css-prefix}-pie-chart:before { content: @fa-var-pie-chart; }
+.@{fa-css-prefix}-line-chart:before { content: @fa-var-line-chart; }
+.@{fa-css-prefix}-lastfm:before { content: @fa-var-lastfm; }
+.@{fa-css-prefix}-lastfm-square:before { content: @fa-var-lastfm-square; }
+.@{fa-css-prefix}-toggle-off:before { content: @fa-var-toggle-off; }
+.@{fa-css-prefix}-toggle-on:before { content: @fa-var-toggle-on; }
+.@{fa-css-prefix}-bicycle:before { content: @fa-var-bicycle; }
+.@{fa-css-prefix}-bus:before { content: @fa-var-bus; }
+.@{fa-css-prefix}-ioxhost:before { content: @fa-var-ioxhost; }
+.@{fa-css-prefix}-angellist:before { content: @fa-var-angellist; }
+.@{fa-css-prefix}-cc:before { content: @fa-var-cc; }
+.@{fa-css-prefix}-shekel:before,
+.@{fa-css-prefix}-sheqel:before,
+.@{fa-css-prefix}-ils:before { content: @fa-var-ils; }
+.@{fa-css-prefix}-meanpath:before { content: @fa-var-meanpath; }
+.@{fa-css-prefix}-buysellads:before { content: @fa-var-buysellads; }
+.@{fa-css-prefix}-connectdevelop:before { content: @fa-var-connectdevelop; }
+.@{fa-css-prefix}-dashcube:before { content: @fa-var-dashcube; }
+.@{fa-css-prefix}-forumbee:before { content: @fa-var-forumbee; }
+.@{fa-css-prefix}-leanpub:before { content: @fa-var-leanpub; }
+.@{fa-css-prefix}-sellsy:before { content: @fa-var-sellsy; }
+.@{fa-css-prefix}-shirtsinbulk:before { content: @fa-var-shirtsinbulk; }
+.@{fa-css-prefix}-simplybuilt:before { content: @fa-var-simplybuilt; }
+.@{fa-css-prefix}-skyatlas:before { content: @fa-var-skyatlas; }
+.@{fa-css-prefix}-cart-plus:before { content: @fa-var-cart-plus; }
+.@{fa-css-prefix}-cart-arrow-down:before { content: @fa-var-cart-arrow-down; }
+.@{fa-css-prefix}-diamond:before { content: @fa-var-diamond; }
+.@{fa-css-prefix}-ship:before { content: @fa-var-ship; }
+.@{fa-css-prefix}-user-secret:before { content: @fa-var-user-secret; }
+.@{fa-css-prefix}-motorcycle:before { content: @fa-var-motorcycle; }
+.@{fa-css-prefix}-street-view:before { content: @fa-var-street-view; }
+.@{fa-css-prefix}-heartbeat:before { content: @fa-var-heartbeat; }
+.@{fa-css-prefix}-venus:before { content: @fa-var-venus; }
+.@{fa-css-prefix}-mars:before { content: @fa-var-mars; }
+.@{fa-css-prefix}-mercury:before { content: @fa-var-mercury; }
+.@{fa-css-prefix}-intersex:before,
+.@{fa-css-prefix}-transgender:before { content: @fa-var-transgender; }
+.@{fa-css-prefix}-transgender-alt:before { content: @fa-var-transgender-alt; }
+.@{fa-css-prefix}-venus-double:before { content: @fa-var-venus-double; }
+.@{fa-css-prefix}-mars-double:before { content: @fa-var-mars-double; }
+.@{fa-css-prefix}-venus-mars:before { content: @fa-var-venus-mars; }
+.@{fa-css-prefix}-mars-stroke:before { content: @fa-var-mars-stroke; }
+.@{fa-css-prefix}-mars-stroke-v:before { content: @fa-var-mars-stroke-v; }
+.@{fa-css-prefix}-mars-stroke-h:before { content: @fa-var-mars-stroke-h; }
+.@{fa-css-prefix}-neuter:before { content: @fa-var-neuter; }
+.@{fa-css-prefix}-genderless:before { content: @fa-var-genderless; }
+.@{fa-css-prefix}-facebook-official:before { content: @fa-var-facebook-official; }
+.@{fa-css-prefix}-pinterest-p:before { content: @fa-var-pinterest-p; }
+.@{fa-css-prefix}-whatsapp:before { content: @fa-var-whatsapp; }
+.@{fa-css-prefix}-server:before { content: @fa-var-server; }
+.@{fa-css-prefix}-user-plus:before { content: @fa-var-user-plus; }
+.@{fa-css-prefix}-user-times:before { content: @fa-var-user-times; }
+.@{fa-css-prefix}-hotel:before,
+.@{fa-css-prefix}-bed:before { content: @fa-var-bed; }
+.@{fa-css-prefix}-viacoin:before { content: @fa-var-viacoin; }
+.@{fa-css-prefix}-train:before { content: @fa-var-train; }
+.@{fa-css-prefix}-subway:before { content: @fa-var-subway; }
+.@{fa-css-prefix}-medium:before { content: @fa-var-medium; }
+.@{fa-css-prefix}-yc:before,
+.@{fa-css-prefix}-y-combinator:before { content: @fa-var-y-combinator; }
+.@{fa-css-prefix}-optin-monster:before { content: @fa-var-optin-monster; }
+.@{fa-css-prefix}-opencart:before { content: @fa-var-opencart; }
+.@{fa-css-prefix}-expeditedssl:before { content: @fa-var-expeditedssl; }
+.@{fa-css-prefix}-battery-4:before,
+.@{fa-css-prefix}-battery-full:before { content: @fa-var-battery-full; }
+.@{fa-css-prefix}-battery-3:before,
+.@{fa-css-prefix}-battery-three-quarters:before { content: @fa-var-battery-three-quarters; }
+.@{fa-css-prefix}-battery-2:before,
+.@{fa-css-prefix}-battery-half:before { content: @fa-var-battery-half; }
+.@{fa-css-prefix}-battery-1:before,
+.@{fa-css-prefix}-battery-quarter:before { content: @fa-var-battery-quarter; }
+.@{fa-css-prefix}-battery-0:before,
+.@{fa-css-prefix}-battery-empty:before { content: @fa-var-battery-empty; }
+.@{fa-css-prefix}-mouse-pointer:before { content: @fa-var-mouse-pointer; }
+.@{fa-css-prefix}-i-cursor:before { content: @fa-var-i-cursor; }
+.@{fa-css-prefix}-object-group:before { content: @fa-var-object-group; }
+.@{fa-css-prefix}-object-ungroup:before { content: @fa-var-object-ungroup; }
+.@{fa-css-prefix}-sticky-note:before { content: @fa-var-sticky-note; }
+.@{fa-css-prefix}-sticky-note-o:before { content: @fa-var-sticky-note-o; }
+.@{fa-css-prefix}-cc-jcb:before { content: @fa-var-cc-jcb; }
+.@{fa-css-prefix}-cc-diners-club:before { content: @fa-var-cc-diners-club; }
+.@{fa-css-prefix}-clone:before { content: @fa-var-clone; }
+.@{fa-css-prefix}-balance-scale:before { content: @fa-var-balance-scale; }
+.@{fa-css-prefix}-hourglass-o:before { content: @fa-var-hourglass-o; }
+.@{fa-css-prefix}-hourglass-1:before,
+.@{fa-css-prefix}-hourglass-start:before { content: @fa-var-hourglass-start; }
+.@{fa-css-prefix}-hourglass-2:before,
+.@{fa-css-prefix}-hourglass-half:before { content: @fa-var-hourglass-half; }
+.@{fa-css-prefix}-hourglass-3:before,
+.@{fa-css-prefix}-hourglass-end:before { content: @fa-var-hourglass-end; }
+.@{fa-css-prefix}-hourglass:before { content: @fa-var-hourglass; }
+.@{fa-css-prefix}-hand-grab-o:before,
+.@{fa-css-prefix}-hand-rock-o:before { content: @fa-var-hand-rock-o; }
+.@{fa-css-prefix}-hand-stop-o:before,
+.@{fa-css-prefix}-hand-paper-o:before { content: @fa-var-hand-paper-o; }
+.@{fa-css-prefix}-hand-scissors-o:before { content: @fa-var-hand-scissors-o; }
+.@{fa-css-prefix}-hand-lizard-o:before { content: @fa-var-hand-lizard-o; }
+.@{fa-css-prefix}-hand-spock-o:before { content: @fa-var-hand-spock-o; }
+.@{fa-css-prefix}-hand-pointer-o:before { content: @fa-var-hand-pointer-o; }
+.@{fa-css-prefix}-hand-peace-o:before { content: @fa-var-hand-peace-o; }
+.@{fa-css-prefix}-trademark:before { content: @fa-var-trademark; }
+.@{fa-css-prefix}-registered:before { content: @fa-var-registered; }
+.@{fa-css-prefix}-creative-commons:before { content: @fa-var-creative-commons; }
+.@{fa-css-prefix}-gg:before { content: @fa-var-gg; }
+.@{fa-css-prefix}-gg-circle:before { content: @fa-var-gg-circle; }
+.@{fa-css-prefix}-tripadvisor:before { content: @fa-var-tripadvisor; }
+.@{fa-css-prefix}-odnoklassniki:before { content: @fa-var-odnoklassniki; }
+.@{fa-css-prefix}-odnoklassniki-square:before { content: @fa-var-odnoklassniki-square; }
+.@{fa-css-prefix}-get-pocket:before { content: @fa-var-get-pocket; }
+.@{fa-css-prefix}-wikipedia-w:before { content: @fa-var-wikipedia-w; }
+.@{fa-css-prefix}-safari:before { content: @fa-var-safari; }
+.@{fa-css-prefix}-chrome:before { content: @fa-var-chrome; }
+.@{fa-css-prefix}-firefox:before { content: @fa-var-firefox; }
+.@{fa-css-prefix}-opera:before { content: @fa-var-opera; }
+.@{fa-css-prefix}-internet-explorer:before { content: @fa-var-internet-explorer; }
+.@{fa-css-prefix}-tv:before,
+.@{fa-css-prefix}-television:before { content: @fa-var-television; }
+.@{fa-css-prefix}-contao:before { content: @fa-var-contao; }
+.@{fa-css-prefix}-500px:before { content: @fa-var-500px; }
+.@{fa-css-prefix}-amazon:before { content: @fa-var-amazon; }
+.@{fa-css-prefix}-calendar-plus-o:before { content: @fa-var-calendar-plus-o; }
+.@{fa-css-prefix}-calendar-minus-o:before { content: @fa-var-calendar-minus-o; }
+.@{fa-css-prefix}-calendar-times-o:before { content: @fa-var-calendar-times-o; }
+.@{fa-css-prefix}-calendar-check-o:before { content: @fa-var-calendar-check-o; }
+.@{fa-css-prefix}-industry:before { content: @fa-var-industry; }
+.@{fa-css-prefix}-map-pin:before { content: @fa-var-map-pin; }
+.@{fa-css-prefix}-map-signs:before { content: @fa-var-map-signs; }
+.@{fa-css-prefix}-map-o:before { content: @fa-var-map-o; }
+.@{fa-css-prefix}-map:before { content: @fa-var-map; }
+.@{fa-css-prefix}-commenting:before { content: @fa-var-commenting; }
+.@{fa-css-prefix}-commenting-o:before { content: @fa-var-commenting-o; }
+.@{fa-css-prefix}-houzz:before { content: @fa-var-houzz; }
+.@{fa-css-prefix}-vimeo:before { content: @fa-var-vimeo; }
+.@{fa-css-prefix}-black-tie:before { content: @fa-var-black-tie; }
+.@{fa-css-prefix}-fonticons:before { content: @fa-var-fonticons; }
+.@{fa-css-prefix}-reddit-alien:before { content: @fa-var-reddit-alien; }
+.@{fa-css-prefix}-edge:before { content: @fa-var-edge; }
+.@{fa-css-prefix}-credit-card-alt:before { content: @fa-var-credit-card-alt; }
+.@{fa-css-prefix}-codiepie:before { content: @fa-var-codiepie; }
+.@{fa-css-prefix}-modx:before { content: @fa-var-modx; }
+.@{fa-css-prefix}-fort-awesome:before { content: @fa-var-fort-awesome; }
+.@{fa-css-prefix}-usb:before { content: @fa-var-usb; }
+.@{fa-css-prefix}-product-hunt:before { content: @fa-var-product-hunt; }
+.@{fa-css-prefix}-mixcloud:before { content: @fa-var-mixcloud; }
+.@{fa-css-prefix}-scribd:before { content: @fa-var-scribd; }
+.@{fa-css-prefix}-pause-circle:before { content: @fa-var-pause-circle; }
+.@{fa-css-prefix}-pause-circle-o:before { content: @fa-var-pause-circle-o; }
+.@{fa-css-prefix}-stop-circle:before { content: @fa-var-stop-circle; }
+.@{fa-css-prefix}-stop-circle-o:before { content: @fa-var-stop-circle-o; }
+.@{fa-css-prefix}-shopping-bag:before { content: @fa-var-shopping-bag; }
+.@{fa-css-prefix}-shopping-basket:before { content: @fa-var-shopping-basket; }
+.@{fa-css-prefix}-hashtag:before { content: @fa-var-hashtag; }
+.@{fa-css-prefix}-bluetooth:before { content: @fa-var-bluetooth; }
+.@{fa-css-prefix}-bluetooth-b:before { content: @fa-var-bluetooth-b; }
+.@{fa-css-prefix}-percent:before { content: @fa-var-percent; }
+.@{fa-css-prefix}-gitlab:before { content: @fa-var-gitlab; }
+.@{fa-css-prefix}-wpbeginner:before { content: @fa-var-wpbeginner; }
+.@{fa-css-prefix}-wpforms:before { content: @fa-var-wpforms; }
+.@{fa-css-prefix}-envira:before { content: @fa-var-envira; }
+.@{fa-css-prefix}-universal-access:before { content: @fa-var-universal-access; }
+.@{fa-css-prefix}-wheelchair-alt:before { content: @fa-var-wheelchair-alt; }
+.@{fa-css-prefix}-question-circle-o:before { content: @fa-var-question-circle-o; }
+.@{fa-css-prefix}-blind:before { content: @fa-var-blind; }
+.@{fa-css-prefix}-audio-description:before { content: @fa-var-audio-description; }
+.@{fa-css-prefix}-volume-control-phone:before { content: @fa-var-volume-control-phone; }
+.@{fa-css-prefix}-braille:before { content: @fa-var-braille; }
+.@{fa-css-prefix}-assistive-listening-systems:before { content: @fa-var-assistive-listening-systems; }
+.@{fa-css-prefix}-asl-interpreting:before,
+.@{fa-css-prefix}-american-sign-language-interpreting:before { content: @fa-var-american-sign-language-interpreting; }
+.@{fa-css-prefix}-deafness:before,
+.@{fa-css-prefix}-hard-of-hearing:before,
+.@{fa-css-prefix}-deaf:before { content: @fa-var-deaf; }
+.@{fa-css-prefix}-glide:before { content: @fa-var-glide; }
+.@{fa-css-prefix}-glide-g:before { content: @fa-var-glide-g; }
+.@{fa-css-prefix}-signing:before,
+.@{fa-css-prefix}-sign-language:before { content: @fa-var-sign-language; }
+.@{fa-css-prefix}-low-vision:before { content: @fa-var-low-vision; }
+.@{fa-css-prefix}-viadeo:before { content: @fa-var-viadeo; }
+.@{fa-css-prefix}-viadeo-square:before { content: @fa-var-viadeo-square; }
+.@{fa-css-prefix}-snapchat:before { content: @fa-var-snapchat; }
+.@{fa-css-prefix}-snapchat-ghost:before { content: @fa-var-snapchat-ghost; }
+.@{fa-css-prefix}-snapchat-square:before { content: @fa-var-snapchat-square; }
+.@{fa-css-prefix}-pied-piper:before { content: @fa-var-pied-piper; }
+.@{fa-css-prefix}-first-order:before { content: @fa-var-first-order; }
+.@{fa-css-prefix}-yoast:before { content: @fa-var-yoast; }
+.@{fa-css-prefix}-themeisle:before { content: @fa-var-themeisle; }
+.@{fa-css-prefix}-google-plus-circle:before,
+.@{fa-css-prefix}-google-plus-official:before { content: @fa-var-google-plus-official; }
+.@{fa-css-prefix}-fa:before,
+.@{fa-css-prefix}-font-awesome:before { content: @fa-var-font-awesome; }
diff --git a/temas/chamitrip/fonts/font-awesome/less/larger.less b/temas/chamitrip/fonts/font-awesome/less/larger.less
new file mode 100644
index 0000000..c9d6467
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/larger.less
@@ -0,0 +1,13 @@
+// Icon Sizes
+// -------------------------
+
+/* makes the font 33% larger relative to the icon container */
+.@{fa-css-prefix}-lg {
+ font-size: (4em / 3);
+ line-height: (3em / 4);
+ vertical-align: -15%;
+}
+.@{fa-css-prefix}-2x { font-size: 2em; }
+.@{fa-css-prefix}-3x { font-size: 3em; }
+.@{fa-css-prefix}-4x { font-size: 4em; }
+.@{fa-css-prefix}-5x { font-size: 5em; }
diff --git a/temas/chamitrip/fonts/font-awesome/less/list.less b/temas/chamitrip/fonts/font-awesome/less/list.less
new file mode 100644
index 0000000..0b44038
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/list.less
@@ -0,0 +1,19 @@
+// List Icons
+// -------------------------
+
+.@{fa-css-prefix}-ul {
+ padding-left: 0;
+ margin-left: @fa-li-width;
+ list-style-type: none;
+ > li { position: relative; }
+}
+.@{fa-css-prefix}-li {
+ position: absolute;
+ left: -@fa-li-width;
+ width: @fa-li-width;
+ top: (2em / 14);
+ text-align: center;
+ &.@{fa-css-prefix}-lg {
+ left: (-@fa-li-width + (4em / 14));
+ }
+}
diff --git a/temas/chamitrip/fonts/font-awesome/less/mixins.less b/temas/chamitrip/fonts/font-awesome/less/mixins.less
new file mode 100644
index 0000000..beef231
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/mixins.less
@@ -0,0 +1,60 @@
+// Mixins
+// --------------------------
+
+.fa-icon() {
+ display: inline-block;
+ font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration
+ font-size: inherit; // can't have font-size inherit on line above, so need to override
+ text-rendering: auto; // optimizelegibility throws things off #1094
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+
+}
+
+.fa-icon-rotate(@degrees, @rotation) {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})";
+ -webkit-transform: rotate(@degrees);
+ -ms-transform: rotate(@degrees);
+ transform: rotate(@degrees);
+}
+
+.fa-icon-flip(@horiz, @vert, @rotation) {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)";
+ -webkit-transform: scale(@horiz, @vert);
+ -ms-transform: scale(@horiz, @vert);
+ transform: scale(@horiz, @vert);
+}
+
+
+// Only display content to screen readers. A la Bootstrap 4.
+//
+// See: http://a11yproject.com/posts/how-to-hide-content/
+
+.sr-only() {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0,0,0,0);
+ border: 0;
+}
+
+// Use in conjunction with .sr-only to only display content when it's focused.
+//
+// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
+//
+// Credit: HTML5 Boilerplate
+
+.sr-only-focusable() {
+ &:active,
+ &:focus {
+ position: static;
+ width: auto;
+ height: auto;
+ margin: 0;
+ overflow: visible;
+ clip: auto;
+ }
+}
diff --git a/temas/chamitrip/fonts/font-awesome/less/path.less b/temas/chamitrip/fonts/font-awesome/less/path.less
new file mode 100644
index 0000000..835be41
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/path.less
@@ -0,0 +1,15 @@
+/* FONT PATH
+ * -------------------------- */
+
+@font-face {
+ font-family: 'FontAwesome';
+ src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
+ src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
+ url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'),
+ url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'),
+ url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'),
+ url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg');
+ // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
+ font-weight: normal;
+ font-style: normal;
+}
diff --git a/temas/chamitrip/fonts/font-awesome/less/rotated-flipped.less b/temas/chamitrip/fonts/font-awesome/less/rotated-flipped.less
new file mode 100644
index 0000000..f6ba814
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/rotated-flipped.less
@@ -0,0 +1,20 @@
+// Rotated & Flipped Icons
+// -------------------------
+
+.@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
+.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
+.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
+
+.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
+.@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); }
+
+// Hook for IE8-9
+// -------------------------
+
+:root .@{fa-css-prefix}-rotate-90,
+:root .@{fa-css-prefix}-rotate-180,
+:root .@{fa-css-prefix}-rotate-270,
+:root .@{fa-css-prefix}-flip-horizontal,
+:root .@{fa-css-prefix}-flip-vertical {
+ filter: none;
+}
diff --git a/temas/chamitrip/fonts/font-awesome/less/screen-reader.less b/temas/chamitrip/fonts/font-awesome/less/screen-reader.less
new file mode 100644
index 0000000..11c1881
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/screen-reader.less
@@ -0,0 +1,5 @@
+// Screen Readers
+// -------------------------
+
+.sr-only { .sr-only(); }
+.sr-only-focusable { .sr-only-focusable(); }
diff --git a/temas/chamitrip/fonts/font-awesome/less/stacked.less b/temas/chamitrip/fonts/font-awesome/less/stacked.less
new file mode 100644
index 0000000..fc53fb0
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/stacked.less
@@ -0,0 +1,20 @@
+// Stacked Icons
+// -------------------------
+
+.@{fa-css-prefix}-stack {
+ position: relative;
+ display: inline-block;
+ width: 2em;
+ height: 2em;
+ line-height: 2em;
+ vertical-align: middle;
+}
+.@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x {
+ position: absolute;
+ left: 0;
+ width: 100%;
+ text-align: center;
+}
+.@{fa-css-prefix}-stack-1x { line-height: inherit; }
+.@{fa-css-prefix}-stack-2x { font-size: 2em; }
+.@{fa-css-prefix}-inverse { color: @fa-inverse; }
diff --git a/temas/chamitrip/fonts/font-awesome/less/variables.less b/temas/chamitrip/fonts/font-awesome/less/variables.less
new file mode 100644
index 0000000..2b33819
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/less/variables.less
@@ -0,0 +1,744 @@
+// Variables
+// --------------------------
+
+@fa-font-path: "../fonts";
+@fa-font-size-base: 14px;
+@fa-line-height-base: 1;
+//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.6.3/fonts"; // for referencing Bootstrap CDN font files directly
+@fa-css-prefix: fa;
+@fa-version: "4.6.3";
+@fa-border-color: #eee;
+@fa-inverse: #fff;
+@fa-li-width: (30em / 14);
+
+@fa-var-500px: "\f26e";
+@fa-var-adjust: "\f042";
+@fa-var-adn: "\f170";
+@fa-var-align-center: "\f037";
+@fa-var-align-justify: "\f039";
+@fa-var-align-left: "\f036";
+@fa-var-align-right: "\f038";
+@fa-var-amazon: "\f270";
+@fa-var-ambulance: "\f0f9";
+@fa-var-american-sign-language-interpreting: "\f2a3";
+@fa-var-anchor: "\f13d";
+@fa-var-android: "\f17b";
+@fa-var-angellist: "\f209";
+@fa-var-angle-double-down: "\f103";
+@fa-var-angle-double-left: "\f100";
+@fa-var-angle-double-right: "\f101";
+@fa-var-angle-double-up: "\f102";
+@fa-var-angle-down: "\f107";
+@fa-var-angle-left: "\f104";
+@fa-var-angle-right: "\f105";
+@fa-var-angle-up: "\f106";
+@fa-var-apple: "\f179";
+@fa-var-archive: "\f187";
+@fa-var-area-chart: "\f1fe";
+@fa-var-arrow-circle-down: "\f0ab";
+@fa-var-arrow-circle-left: "\f0a8";
+@fa-var-arrow-circle-o-down: "\f01a";
+@fa-var-arrow-circle-o-left: "\f190";
+@fa-var-arrow-circle-o-right: "\f18e";
+@fa-var-arrow-circle-o-up: "\f01b";
+@fa-var-arrow-circle-right: "\f0a9";
+@fa-var-arrow-circle-up: "\f0aa";
+@fa-var-arrow-down: "\f063";
+@fa-var-arrow-left: "\f060";
+@fa-var-arrow-right: "\f061";
+@fa-var-arrow-up: "\f062";
+@fa-var-arrows: "\f047";
+@fa-var-arrows-alt: "\f0b2";
+@fa-var-arrows-h: "\f07e";
+@fa-var-arrows-v: "\f07d";
+@fa-var-asl-interpreting: "\f2a3";
+@fa-var-assistive-listening-systems: "\f2a2";
+@fa-var-asterisk: "\f069";
+@fa-var-at: "\f1fa";
+@fa-var-audio-description: "\f29e";
+@fa-var-automobile: "\f1b9";
+@fa-var-backward: "\f04a";
+@fa-var-balance-scale: "\f24e";
+@fa-var-ban: "\f05e";
+@fa-var-bank: "\f19c";
+@fa-var-bar-chart: "\f080";
+@fa-var-bar-chart-o: "\f080";
+@fa-var-barcode: "\f02a";
+@fa-var-bars: "\f0c9";
+@fa-var-battery-0: "\f244";
+@fa-var-battery-1: "\f243";
+@fa-var-battery-2: "\f242";
+@fa-var-battery-3: "\f241";
+@fa-var-battery-4: "\f240";
+@fa-var-battery-empty: "\f244";
+@fa-var-battery-full: "\f240";
+@fa-var-battery-half: "\f242";
+@fa-var-battery-quarter: "\f243";
+@fa-var-battery-three-quarters: "\f241";
+@fa-var-bed: "\f236";
+@fa-var-beer: "\f0fc";
+@fa-var-behance: "\f1b4";
+@fa-var-behance-square: "\f1b5";
+@fa-var-bell: "\f0f3";
+@fa-var-bell-o: "\f0a2";
+@fa-var-bell-slash: "\f1f6";
+@fa-var-bell-slash-o: "\f1f7";
+@fa-var-bicycle: "\f206";
+@fa-var-binoculars: "\f1e5";
+@fa-var-birthday-cake: "\f1fd";
+@fa-var-bitbucket: "\f171";
+@fa-var-bitbucket-square: "\f172";
+@fa-var-bitcoin: "\f15a";
+@fa-var-black-tie: "\f27e";
+@fa-var-blind: "\f29d";
+@fa-var-bluetooth: "\f293";
+@fa-var-bluetooth-b: "\f294";
+@fa-var-bold: "\f032";
+@fa-var-bolt: "\f0e7";
+@fa-var-bomb: "\f1e2";
+@fa-var-book: "\f02d";
+@fa-var-bookmark: "\f02e";
+@fa-var-bookmark-o: "\f097";
+@fa-var-braille: "\f2a1";
+@fa-var-briefcase: "\f0b1";
+@fa-var-btc: "\f15a";
+@fa-var-bug: "\f188";
+@fa-var-building: "\f1ad";
+@fa-var-building-o: "\f0f7";
+@fa-var-bullhorn: "\f0a1";
+@fa-var-bullseye: "\f140";
+@fa-var-bus: "\f207";
+@fa-var-buysellads: "\f20d";
+@fa-var-cab: "\f1ba";
+@fa-var-calculator: "\f1ec";
+@fa-var-calendar: "\f073";
+@fa-var-calendar-check-o: "\f274";
+@fa-var-calendar-minus-o: "\f272";
+@fa-var-calendar-o: "\f133";
+@fa-var-calendar-plus-o: "\f271";
+@fa-var-calendar-times-o: "\f273";
+@fa-var-camera: "\f030";
+@fa-var-camera-retro: "\f083";
+@fa-var-car: "\f1b9";
+@fa-var-caret-down: "\f0d7";
+@fa-var-caret-left: "\f0d9";
+@fa-var-caret-right: "\f0da";
+@fa-var-caret-square-o-down: "\f150";
+@fa-var-caret-square-o-left: "\f191";
+@fa-var-caret-square-o-right: "\f152";
+@fa-var-caret-square-o-up: "\f151";
+@fa-var-caret-up: "\f0d8";
+@fa-var-cart-arrow-down: "\f218";
+@fa-var-cart-plus: "\f217";
+@fa-var-cc: "\f20a";
+@fa-var-cc-amex: "\f1f3";
+@fa-var-cc-diners-club: "\f24c";
+@fa-var-cc-discover: "\f1f2";
+@fa-var-cc-jcb: "\f24b";
+@fa-var-cc-mastercard: "\f1f1";
+@fa-var-cc-paypal: "\f1f4";
+@fa-var-cc-stripe: "\f1f5";
+@fa-var-cc-visa: "\f1f0";
+@fa-var-certificate: "\f0a3";
+@fa-var-chain: "\f0c1";
+@fa-var-chain-broken: "\f127";
+@fa-var-check: "\f00c";
+@fa-var-check-circle: "\f058";
+@fa-var-check-circle-o: "\f05d";
+@fa-var-check-square: "\f14a";
+@fa-var-check-square-o: "\f046";
+@fa-var-chevron-circle-down: "\f13a";
+@fa-var-chevron-circle-left: "\f137";
+@fa-var-chevron-circle-right: "\f138";
+@fa-var-chevron-circle-up: "\f139";
+@fa-var-chevron-down: "\f078";
+@fa-var-chevron-left: "\f053";
+@fa-var-chevron-right: "\f054";
+@fa-var-chevron-up: "\f077";
+@fa-var-child: "\f1ae";
+@fa-var-chrome: "\f268";
+@fa-var-circle: "\f111";
+@fa-var-circle-o: "\f10c";
+@fa-var-circle-o-notch: "\f1ce";
+@fa-var-circle-thin: "\f1db";
+@fa-var-clipboard: "\f0ea";
+@fa-var-clock-o: "\f017";
+@fa-var-clone: "\f24d";
+@fa-var-close: "\f00d";
+@fa-var-cloud: "\f0c2";
+@fa-var-cloud-download: "\f0ed";
+@fa-var-cloud-upload: "\f0ee";
+@fa-var-cny: "\f157";
+@fa-var-code: "\f121";
+@fa-var-code-fork: "\f126";
+@fa-var-codepen: "\f1cb";
+@fa-var-codiepie: "\f284";
+@fa-var-coffee: "\f0f4";
+@fa-var-cog: "\f013";
+@fa-var-cogs: "\f085";
+@fa-var-columns: "\f0db";
+@fa-var-comment: "\f075";
+@fa-var-comment-o: "\f0e5";
+@fa-var-commenting: "\f27a";
+@fa-var-commenting-o: "\f27b";
+@fa-var-comments: "\f086";
+@fa-var-comments-o: "\f0e6";
+@fa-var-compass: "\f14e";
+@fa-var-compress: "\f066";
+@fa-var-connectdevelop: "\f20e";
+@fa-var-contao: "\f26d";
+@fa-var-copy: "\f0c5";
+@fa-var-copyright: "\f1f9";
+@fa-var-creative-commons: "\f25e";
+@fa-var-credit-card: "\f09d";
+@fa-var-credit-card-alt: "\f283";
+@fa-var-crop: "\f125";
+@fa-var-crosshairs: "\f05b";
+@fa-var-css3: "\f13c";
+@fa-var-cube: "\f1b2";
+@fa-var-cubes: "\f1b3";
+@fa-var-cut: "\f0c4";
+@fa-var-cutlery: "\f0f5";
+@fa-var-dashboard: "\f0e4";
+@fa-var-dashcube: "\f210";
+@fa-var-database: "\f1c0";
+@fa-var-deaf: "\f2a4";
+@fa-var-deafness: "\f2a4";
+@fa-var-dedent: "\f03b";
+@fa-var-delicious: "\f1a5";
+@fa-var-desktop: "\f108";
+@fa-var-deviantart: "\f1bd";
+@fa-var-diamond: "\f219";
+@fa-var-digg: "\f1a6";
+@fa-var-dollar: "\f155";
+@fa-var-dot-circle-o: "\f192";
+@fa-var-download: "\f019";
+@fa-var-dribbble: "\f17d";
+@fa-var-dropbox: "\f16b";
+@fa-var-drupal: "\f1a9";
+@fa-var-edge: "\f282";
+@fa-var-edit: "\f044";
+@fa-var-eject: "\f052";
+@fa-var-ellipsis-h: "\f141";
+@fa-var-ellipsis-v: "\f142";
+@fa-var-empire: "\f1d1";
+@fa-var-envelope: "\f0e0";
+@fa-var-envelope-o: "\f003";
+@fa-var-envelope-square: "\f199";
+@fa-var-envira: "\f299";
+@fa-var-eraser: "\f12d";
+@fa-var-eur: "\f153";
+@fa-var-euro: "\f153";
+@fa-var-exchange: "\f0ec";
+@fa-var-exclamation: "\f12a";
+@fa-var-exclamation-circle: "\f06a";
+@fa-var-exclamation-triangle: "\f071";
+@fa-var-expand: "\f065";
+@fa-var-expeditedssl: "\f23e";
+@fa-var-external-link: "\f08e";
+@fa-var-external-link-square: "\f14c";
+@fa-var-eye: "\f06e";
+@fa-var-eye-slash: "\f070";
+@fa-var-eyedropper: "\f1fb";
+@fa-var-fa: "\f2b4";
+@fa-var-facebook: "\f09a";
+@fa-var-facebook-f: "\f09a";
+@fa-var-facebook-official: "\f230";
+@fa-var-facebook-square: "\f082";
+@fa-var-fast-backward: "\f049";
+@fa-var-fast-forward: "\f050";
+@fa-var-fax: "\f1ac";
+@fa-var-feed: "\f09e";
+@fa-var-female: "\f182";
+@fa-var-fighter-jet: "\f0fb";
+@fa-var-file: "\f15b";
+@fa-var-file-archive-o: "\f1c6";
+@fa-var-file-audio-o: "\f1c7";
+@fa-var-file-code-o: "\f1c9";
+@fa-var-file-excel-o: "\f1c3";
+@fa-var-file-image-o: "\f1c5";
+@fa-var-file-movie-o: "\f1c8";
+@fa-var-file-o: "\f016";
+@fa-var-file-pdf-o: "\f1c1";
+@fa-var-file-photo-o: "\f1c5";
+@fa-var-file-picture-o: "\f1c5";
+@fa-var-file-powerpoint-o: "\f1c4";
+@fa-var-file-sound-o: "\f1c7";
+@fa-var-file-text: "\f15c";
+@fa-var-file-text-o: "\f0f6";
+@fa-var-file-video-o: "\f1c8";
+@fa-var-file-word-o: "\f1c2";
+@fa-var-file-zip-o: "\f1c6";
+@fa-var-files-o: "\f0c5";
+@fa-var-film: "\f008";
+@fa-var-filter: "\f0b0";
+@fa-var-fire: "\f06d";
+@fa-var-fire-extinguisher: "\f134";
+@fa-var-firefox: "\f269";
+@fa-var-first-order: "\f2b0";
+@fa-var-flag: "\f024";
+@fa-var-flag-checkered: "\f11e";
+@fa-var-flag-o: "\f11d";
+@fa-var-flash: "\f0e7";
+@fa-var-flask: "\f0c3";
+@fa-var-flickr: "\f16e";
+@fa-var-floppy-o: "\f0c7";
+@fa-var-folder: "\f07b";
+@fa-var-folder-o: "\f114";
+@fa-var-folder-open: "\f07c";
+@fa-var-folder-open-o: "\f115";
+@fa-var-font: "\f031";
+@fa-var-font-awesome: "\f2b4";
+@fa-var-fonticons: "\f280";
+@fa-var-fort-awesome: "\f286";
+@fa-var-forumbee: "\f211";
+@fa-var-forward: "\f04e";
+@fa-var-foursquare: "\f180";
+@fa-var-frown-o: "\f119";
+@fa-var-futbol-o: "\f1e3";
+@fa-var-gamepad: "\f11b";
+@fa-var-gavel: "\f0e3";
+@fa-var-gbp: "\f154";
+@fa-var-ge: "\f1d1";
+@fa-var-gear: "\f013";
+@fa-var-gears: "\f085";
+@fa-var-genderless: "\f22d";
+@fa-var-get-pocket: "\f265";
+@fa-var-gg: "\f260";
+@fa-var-gg-circle: "\f261";
+@fa-var-gift: "\f06b";
+@fa-var-git: "\f1d3";
+@fa-var-git-square: "\f1d2";
+@fa-var-github: "\f09b";
+@fa-var-github-alt: "\f113";
+@fa-var-github-square: "\f092";
+@fa-var-gitlab: "\f296";
+@fa-var-gittip: "\f184";
+@fa-var-glass: "\f000";
+@fa-var-glide: "\f2a5";
+@fa-var-glide-g: "\f2a6";
+@fa-var-globe: "\f0ac";
+@fa-var-google: "\f1a0";
+@fa-var-google-plus: "\f0d5";
+@fa-var-google-plus-circle: "\f2b3";
+@fa-var-google-plus-official: "\f2b3";
+@fa-var-google-plus-square: "\f0d4";
+@fa-var-google-wallet: "\f1ee";
+@fa-var-graduation-cap: "\f19d";
+@fa-var-gratipay: "\f184";
+@fa-var-group: "\f0c0";
+@fa-var-h-square: "\f0fd";
+@fa-var-hacker-news: "\f1d4";
+@fa-var-hand-grab-o: "\f255";
+@fa-var-hand-lizard-o: "\f258";
+@fa-var-hand-o-down: "\f0a7";
+@fa-var-hand-o-left: "\f0a5";
+@fa-var-hand-o-right: "\f0a4";
+@fa-var-hand-o-up: "\f0a6";
+@fa-var-hand-paper-o: "\f256";
+@fa-var-hand-peace-o: "\f25b";
+@fa-var-hand-pointer-o: "\f25a";
+@fa-var-hand-rock-o: "\f255";
+@fa-var-hand-scissors-o: "\f257";
+@fa-var-hand-spock-o: "\f259";
+@fa-var-hand-stop-o: "\f256";
+@fa-var-hard-of-hearing: "\f2a4";
+@fa-var-hashtag: "\f292";
+@fa-var-hdd-o: "\f0a0";
+@fa-var-header: "\f1dc";
+@fa-var-headphones: "\f025";
+@fa-var-heart: "\f004";
+@fa-var-heart-o: "\f08a";
+@fa-var-heartbeat: "\f21e";
+@fa-var-history: "\f1da";
+@fa-var-home: "\f015";
+@fa-var-hospital-o: "\f0f8";
+@fa-var-hotel: "\f236";
+@fa-var-hourglass: "\f254";
+@fa-var-hourglass-1: "\f251";
+@fa-var-hourglass-2: "\f252";
+@fa-var-hourglass-3: "\f253";
+@fa-var-hourglass-end: "\f253";
+@fa-var-hourglass-half: "\f252";
+@fa-var-hourglass-o: "\f250";
+@fa-var-hourglass-start: "\f251";
+@fa-var-houzz: "\f27c";
+@fa-var-html5: "\f13b";
+@fa-var-i-cursor: "\f246";
+@fa-var-ils: "\f20b";
+@fa-var-image: "\f03e";
+@fa-var-inbox: "\f01c";
+@fa-var-indent: "\f03c";
+@fa-var-industry: "\f275";
+@fa-var-info: "\f129";
+@fa-var-info-circle: "\f05a";
+@fa-var-inr: "\f156";
+@fa-var-instagram: "\f16d";
+@fa-var-institution: "\f19c";
+@fa-var-internet-explorer: "\f26b";
+@fa-var-intersex: "\f224";
+@fa-var-ioxhost: "\f208";
+@fa-var-italic: "\f033";
+@fa-var-joomla: "\f1aa";
+@fa-var-jpy: "\f157";
+@fa-var-jsfiddle: "\f1cc";
+@fa-var-key: "\f084";
+@fa-var-keyboard-o: "\f11c";
+@fa-var-krw: "\f159";
+@fa-var-language: "\f1ab";
+@fa-var-laptop: "\f109";
+@fa-var-lastfm: "\f202";
+@fa-var-lastfm-square: "\f203";
+@fa-var-leaf: "\f06c";
+@fa-var-leanpub: "\f212";
+@fa-var-legal: "\f0e3";
+@fa-var-lemon-o: "\f094";
+@fa-var-level-down: "\f149";
+@fa-var-level-up: "\f148";
+@fa-var-life-bouy: "\f1cd";
+@fa-var-life-buoy: "\f1cd";
+@fa-var-life-ring: "\f1cd";
+@fa-var-life-saver: "\f1cd";
+@fa-var-lightbulb-o: "\f0eb";
+@fa-var-line-chart: "\f201";
+@fa-var-link: "\f0c1";
+@fa-var-linkedin: "\f0e1";
+@fa-var-linkedin-square: "\f08c";
+@fa-var-linux: "\f17c";
+@fa-var-list: "\f03a";
+@fa-var-list-alt: "\f022";
+@fa-var-list-ol: "\f0cb";
+@fa-var-list-ul: "\f0ca";
+@fa-var-location-arrow: "\f124";
+@fa-var-lock: "\f023";
+@fa-var-long-arrow-down: "\f175";
+@fa-var-long-arrow-left: "\f177";
+@fa-var-long-arrow-right: "\f178";
+@fa-var-long-arrow-up: "\f176";
+@fa-var-low-vision: "\f2a8";
+@fa-var-magic: "\f0d0";
+@fa-var-magnet: "\f076";
+@fa-var-mail-forward: "\f064";
+@fa-var-mail-reply: "\f112";
+@fa-var-mail-reply-all: "\f122";
+@fa-var-male: "\f183";
+@fa-var-map: "\f279";
+@fa-var-map-marker: "\f041";
+@fa-var-map-o: "\f278";
+@fa-var-map-pin: "\f276";
+@fa-var-map-signs: "\f277";
+@fa-var-mars: "\f222";
+@fa-var-mars-double: "\f227";
+@fa-var-mars-stroke: "\f229";
+@fa-var-mars-stroke-h: "\f22b";
+@fa-var-mars-stroke-v: "\f22a";
+@fa-var-maxcdn: "\f136";
+@fa-var-meanpath: "\f20c";
+@fa-var-medium: "\f23a";
+@fa-var-medkit: "\f0fa";
+@fa-var-meh-o: "\f11a";
+@fa-var-mercury: "\f223";
+@fa-var-microphone: "\f130";
+@fa-var-microphone-slash: "\f131";
+@fa-var-minus: "\f068";
+@fa-var-minus-circle: "\f056";
+@fa-var-minus-square: "\f146";
+@fa-var-minus-square-o: "\f147";
+@fa-var-mixcloud: "\f289";
+@fa-var-mobile: "\f10b";
+@fa-var-mobile-phone: "\f10b";
+@fa-var-modx: "\f285";
+@fa-var-money: "\f0d6";
+@fa-var-moon-o: "\f186";
+@fa-var-mortar-board: "\f19d";
+@fa-var-motorcycle: "\f21c";
+@fa-var-mouse-pointer: "\f245";
+@fa-var-music: "\f001";
+@fa-var-navicon: "\f0c9";
+@fa-var-neuter: "\f22c";
+@fa-var-newspaper-o: "\f1ea";
+@fa-var-object-group: "\f247";
+@fa-var-object-ungroup: "\f248";
+@fa-var-odnoklassniki: "\f263";
+@fa-var-odnoklassniki-square: "\f264";
+@fa-var-opencart: "\f23d";
+@fa-var-openid: "\f19b";
+@fa-var-opera: "\f26a";
+@fa-var-optin-monster: "\f23c";
+@fa-var-outdent: "\f03b";
+@fa-var-pagelines: "\f18c";
+@fa-var-paint-brush: "\f1fc";
+@fa-var-paper-plane: "\f1d8";
+@fa-var-paper-plane-o: "\f1d9";
+@fa-var-paperclip: "\f0c6";
+@fa-var-paragraph: "\f1dd";
+@fa-var-paste: "\f0ea";
+@fa-var-pause: "\f04c";
+@fa-var-pause-circle: "\f28b";
+@fa-var-pause-circle-o: "\f28c";
+@fa-var-paw: "\f1b0";
+@fa-var-paypal: "\f1ed";
+@fa-var-pencil: "\f040";
+@fa-var-pencil-square: "\f14b";
+@fa-var-pencil-square-o: "\f044";
+@fa-var-percent: "\f295";
+@fa-var-phone: "\f095";
+@fa-var-phone-square: "\f098";
+@fa-var-photo: "\f03e";
+@fa-var-picture-o: "\f03e";
+@fa-var-pie-chart: "\f200";
+@fa-var-pied-piper: "\f2ae";
+@fa-var-pied-piper-alt: "\f1a8";
+@fa-var-pied-piper-pp: "\f1a7";
+@fa-var-pinterest: "\f0d2";
+@fa-var-pinterest-p: "\f231";
+@fa-var-pinterest-square: "\f0d3";
+@fa-var-plane: "\f072";
+@fa-var-play: "\f04b";
+@fa-var-play-circle: "\f144";
+@fa-var-play-circle-o: "\f01d";
+@fa-var-plug: "\f1e6";
+@fa-var-plus: "\f067";
+@fa-var-plus-circle: "\f055";
+@fa-var-plus-square: "\f0fe";
+@fa-var-plus-square-o: "\f196";
+@fa-var-power-off: "\f011";
+@fa-var-print: "\f02f";
+@fa-var-product-hunt: "\f288";
+@fa-var-puzzle-piece: "\f12e";
+@fa-var-qq: "\f1d6";
+@fa-var-qrcode: "\f029";
+@fa-var-question: "\f128";
+@fa-var-question-circle: "\f059";
+@fa-var-question-circle-o: "\f29c";
+@fa-var-quote-left: "\f10d";
+@fa-var-quote-right: "\f10e";
+@fa-var-ra: "\f1d0";
+@fa-var-random: "\f074";
+@fa-var-rebel: "\f1d0";
+@fa-var-recycle: "\f1b8";
+@fa-var-reddit: "\f1a1";
+@fa-var-reddit-alien: "\f281";
+@fa-var-reddit-square: "\f1a2";
+@fa-var-refresh: "\f021";
+@fa-var-registered: "\f25d";
+@fa-var-remove: "\f00d";
+@fa-var-renren: "\f18b";
+@fa-var-reorder: "\f0c9";
+@fa-var-repeat: "\f01e";
+@fa-var-reply: "\f112";
+@fa-var-reply-all: "\f122";
+@fa-var-resistance: "\f1d0";
+@fa-var-retweet: "\f079";
+@fa-var-rmb: "\f157";
+@fa-var-road: "\f018";
+@fa-var-rocket: "\f135";
+@fa-var-rotate-left: "\f0e2";
+@fa-var-rotate-right: "\f01e";
+@fa-var-rouble: "\f158";
+@fa-var-rss: "\f09e";
+@fa-var-rss-square: "\f143";
+@fa-var-rub: "\f158";
+@fa-var-ruble: "\f158";
+@fa-var-rupee: "\f156";
+@fa-var-safari: "\f267";
+@fa-var-save: "\f0c7";
+@fa-var-scissors: "\f0c4";
+@fa-var-scribd: "\f28a";
+@fa-var-search: "\f002";
+@fa-var-search-minus: "\f010";
+@fa-var-search-plus: "\f00e";
+@fa-var-sellsy: "\f213";
+@fa-var-send: "\f1d8";
+@fa-var-send-o: "\f1d9";
+@fa-var-server: "\f233";
+@fa-var-share: "\f064";
+@fa-var-share-alt: "\f1e0";
+@fa-var-share-alt-square: "\f1e1";
+@fa-var-share-square: "\f14d";
+@fa-var-share-square-o: "\f045";
+@fa-var-shekel: "\f20b";
+@fa-var-sheqel: "\f20b";
+@fa-var-shield: "\f132";
+@fa-var-ship: "\f21a";
+@fa-var-shirtsinbulk: "\f214";
+@fa-var-shopping-bag: "\f290";
+@fa-var-shopping-basket: "\f291";
+@fa-var-shopping-cart: "\f07a";
+@fa-var-sign-in: "\f090";
+@fa-var-sign-language: "\f2a7";
+@fa-var-sign-out: "\f08b";
+@fa-var-signal: "\f012";
+@fa-var-signing: "\f2a7";
+@fa-var-simplybuilt: "\f215";
+@fa-var-sitemap: "\f0e8";
+@fa-var-skyatlas: "\f216";
+@fa-var-skype: "\f17e";
+@fa-var-slack: "\f198";
+@fa-var-sliders: "\f1de";
+@fa-var-slideshare: "\f1e7";
+@fa-var-smile-o: "\f118";
+@fa-var-snapchat: "\f2ab";
+@fa-var-snapchat-ghost: "\f2ac";
+@fa-var-snapchat-square: "\f2ad";
+@fa-var-soccer-ball-o: "\f1e3";
+@fa-var-sort: "\f0dc";
+@fa-var-sort-alpha-asc: "\f15d";
+@fa-var-sort-alpha-desc: "\f15e";
+@fa-var-sort-amount-asc: "\f160";
+@fa-var-sort-amount-desc: "\f161";
+@fa-var-sort-asc: "\f0de";
+@fa-var-sort-desc: "\f0dd";
+@fa-var-sort-down: "\f0dd";
+@fa-var-sort-numeric-asc: "\f162";
+@fa-var-sort-numeric-desc: "\f163";
+@fa-var-sort-up: "\f0de";
+@fa-var-soundcloud: "\f1be";
+@fa-var-space-shuttle: "\f197";
+@fa-var-spinner: "\f110";
+@fa-var-spoon: "\f1b1";
+@fa-var-spotify: "\f1bc";
+@fa-var-square: "\f0c8";
+@fa-var-square-o: "\f096";
+@fa-var-stack-exchange: "\f18d";
+@fa-var-stack-overflow: "\f16c";
+@fa-var-star: "\f005";
+@fa-var-star-half: "\f089";
+@fa-var-star-half-empty: "\f123";
+@fa-var-star-half-full: "\f123";
+@fa-var-star-half-o: "\f123";
+@fa-var-star-o: "\f006";
+@fa-var-steam: "\f1b6";
+@fa-var-steam-square: "\f1b7";
+@fa-var-step-backward: "\f048";
+@fa-var-step-forward: "\f051";
+@fa-var-stethoscope: "\f0f1";
+@fa-var-sticky-note: "\f249";
+@fa-var-sticky-note-o: "\f24a";
+@fa-var-stop: "\f04d";
+@fa-var-stop-circle: "\f28d";
+@fa-var-stop-circle-o: "\f28e";
+@fa-var-street-view: "\f21d";
+@fa-var-strikethrough: "\f0cc";
+@fa-var-stumbleupon: "\f1a4";
+@fa-var-stumbleupon-circle: "\f1a3";
+@fa-var-subscript: "\f12c";
+@fa-var-subway: "\f239";
+@fa-var-suitcase: "\f0f2";
+@fa-var-sun-o: "\f185";
+@fa-var-superscript: "\f12b";
+@fa-var-support: "\f1cd";
+@fa-var-table: "\f0ce";
+@fa-var-tablet: "\f10a";
+@fa-var-tachometer: "\f0e4";
+@fa-var-tag: "\f02b";
+@fa-var-tags: "\f02c";
+@fa-var-tasks: "\f0ae";
+@fa-var-taxi: "\f1ba";
+@fa-var-television: "\f26c";
+@fa-var-tencent-weibo: "\f1d5";
+@fa-var-terminal: "\f120";
+@fa-var-text-height: "\f034";
+@fa-var-text-width: "\f035";
+@fa-var-th: "\f00a";
+@fa-var-th-large: "\f009";
+@fa-var-th-list: "\f00b";
+@fa-var-themeisle: "\f2b2";
+@fa-var-thumb-tack: "\f08d";
+@fa-var-thumbs-down: "\f165";
+@fa-var-thumbs-o-down: "\f088";
+@fa-var-thumbs-o-up: "\f087";
+@fa-var-thumbs-up: "\f164";
+@fa-var-ticket: "\f145";
+@fa-var-times: "\f00d";
+@fa-var-times-circle: "\f057";
+@fa-var-times-circle-o: "\f05c";
+@fa-var-tint: "\f043";
+@fa-var-toggle-down: "\f150";
+@fa-var-toggle-left: "\f191";
+@fa-var-toggle-off: "\f204";
+@fa-var-toggle-on: "\f205";
+@fa-var-toggle-right: "\f152";
+@fa-var-toggle-up: "\f151";
+@fa-var-trademark: "\f25c";
+@fa-var-train: "\f238";
+@fa-var-transgender: "\f224";
+@fa-var-transgender-alt: "\f225";
+@fa-var-trash: "\f1f8";
+@fa-var-trash-o: "\f014";
+@fa-var-tree: "\f1bb";
+@fa-var-trello: "\f181";
+@fa-var-tripadvisor: "\f262";
+@fa-var-trophy: "\f091";
+@fa-var-truck: "\f0d1";
+@fa-var-try: "\f195";
+@fa-var-tty: "\f1e4";
+@fa-var-tumblr: "\f173";
+@fa-var-tumblr-square: "\f174";
+@fa-var-turkish-lira: "\f195";
+@fa-var-tv: "\f26c";
+@fa-var-twitch: "\f1e8";
+@fa-var-twitter: "\f099";
+@fa-var-twitter-square: "\f081";
+@fa-var-umbrella: "\f0e9";
+@fa-var-underline: "\f0cd";
+@fa-var-undo: "\f0e2";
+@fa-var-universal-access: "\f29a";
+@fa-var-university: "\f19c";
+@fa-var-unlink: "\f127";
+@fa-var-unlock: "\f09c";
+@fa-var-unlock-alt: "\f13e";
+@fa-var-unsorted: "\f0dc";
+@fa-var-upload: "\f093";
+@fa-var-usb: "\f287";
+@fa-var-usd: "\f155";
+@fa-var-user: "\f007";
+@fa-var-user-md: "\f0f0";
+@fa-var-user-plus: "\f234";
+@fa-var-user-secret: "\f21b";
+@fa-var-user-times: "\f235";
+@fa-var-users: "\f0c0";
+@fa-var-venus: "\f221";
+@fa-var-venus-double: "\f226";
+@fa-var-venus-mars: "\f228";
+@fa-var-viacoin: "\f237";
+@fa-var-viadeo: "\f2a9";
+@fa-var-viadeo-square: "\f2aa";
+@fa-var-video-camera: "\f03d";
+@fa-var-vimeo: "\f27d";
+@fa-var-vimeo-square: "\f194";
+@fa-var-vine: "\f1ca";
+@fa-var-vk: "\f189";
+@fa-var-volume-control-phone: "\f2a0";
+@fa-var-volume-down: "\f027";
+@fa-var-volume-off: "\f026";
+@fa-var-volume-up: "\f028";
+@fa-var-warning: "\f071";
+@fa-var-wechat: "\f1d7";
+@fa-var-weibo: "\f18a";
+@fa-var-weixin: "\f1d7";
+@fa-var-whatsapp: "\f232";
+@fa-var-wheelchair: "\f193";
+@fa-var-wheelchair-alt: "\f29b";
+@fa-var-wifi: "\f1eb";
+@fa-var-wikipedia-w: "\f266";
+@fa-var-windows: "\f17a";
+@fa-var-won: "\f159";
+@fa-var-wordpress: "\f19a";
+@fa-var-wpbeginner: "\f297";
+@fa-var-wpforms: "\f298";
+@fa-var-wrench: "\f0ad";
+@fa-var-xing: "\f168";
+@fa-var-xing-square: "\f169";
+@fa-var-y-combinator: "\f23b";
+@fa-var-y-combinator-square: "\f1d4";
+@fa-var-yahoo: "\f19e";
+@fa-var-yc: "\f23b";
+@fa-var-yc-square: "\f1d4";
+@fa-var-yelp: "\f1e9";
+@fa-var-yen: "\f157";
+@fa-var-yoast: "\f2b1";
+@fa-var-youtube: "\f167";
+@fa-var-youtube-play: "\f16a";
+@fa-var-youtube-square: "\f166";
+
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_animated.scss b/temas/chamitrip/fonts/font-awesome/scss/_animated.scss
new file mode 100644
index 0000000..8a020db
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_animated.scss
@@ -0,0 +1,34 @@
+// Spinning Icons
+// --------------------------
+
+.#{$fa-css-prefix}-spin {
+ -webkit-animation: fa-spin 2s infinite linear;
+ animation: fa-spin 2s infinite linear;
+}
+
+.#{$fa-css-prefix}-pulse {
+ -webkit-animation: fa-spin 1s infinite steps(8);
+ animation: fa-spin 1s infinite steps(8);
+}
+
+@-webkit-keyframes fa-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(359deg);
+ transform: rotate(359deg);
+ }
+}
+
+@keyframes fa-spin {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(359deg);
+ transform: rotate(359deg);
+ }
+}
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_bordered-pulled.scss b/temas/chamitrip/fonts/font-awesome/scss/_bordered-pulled.scss
new file mode 100644
index 0000000..d4b85a0
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_bordered-pulled.scss
@@ -0,0 +1,25 @@
+// Bordered & Pulled
+// -------------------------
+
+.#{$fa-css-prefix}-border {
+ padding: .2em .25em .15em;
+ border: solid .08em $fa-border-color;
+ border-radius: .1em;
+}
+
+.#{$fa-css-prefix}-pull-left { float: left; }
+.#{$fa-css-prefix}-pull-right { float: right; }
+
+.#{$fa-css-prefix} {
+ &.#{$fa-css-prefix}-pull-left { margin-right: .3em; }
+ &.#{$fa-css-prefix}-pull-right { margin-left: .3em; }
+}
+
+/* Deprecated as of 4.4.0 */
+.pull-right { float: right; }
+.pull-left { float: left; }
+
+.#{$fa-css-prefix} {
+ &.pull-left { margin-right: .3em; }
+ &.pull-right { margin-left: .3em; }
+}
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_core.scss b/temas/chamitrip/fonts/font-awesome/scss/_core.scss
new file mode 100644
index 0000000..7425ef8
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_core.scss
@@ -0,0 +1,12 @@
+// Base Class Definition
+// -------------------------
+
+.#{$fa-css-prefix} {
+ display: inline-block;
+ font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
+ font-size: inherit; // can't have font-size inherit on line above, so need to override
+ text-rendering: auto; // optimizelegibility throws things off #1094
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+
+}
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_fixed-width.scss b/temas/chamitrip/fonts/font-awesome/scss/_fixed-width.scss
new file mode 100644
index 0000000..b221c98
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_fixed-width.scss
@@ -0,0 +1,6 @@
+// Fixed Width Icons
+// -------------------------
+.#{$fa-css-prefix}-fw {
+ width: (18em / 14);
+ text-align: center;
+}
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_icons.scss b/temas/chamitrip/fonts/font-awesome/scss/_icons.scss
new file mode 100644
index 0000000..2944344
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_icons.scss
@@ -0,0 +1,733 @@
+/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
+ readers do not read off random characters that represent icons */
+
+.#{$fa-css-prefix}-glass:before { content: $fa-var-glass; }
+.#{$fa-css-prefix}-music:before { content: $fa-var-music; }
+.#{$fa-css-prefix}-search:before { content: $fa-var-search; }
+.#{$fa-css-prefix}-envelope-o:before { content: $fa-var-envelope-o; }
+.#{$fa-css-prefix}-heart:before { content: $fa-var-heart; }
+.#{$fa-css-prefix}-star:before { content: $fa-var-star; }
+.#{$fa-css-prefix}-star-o:before { content: $fa-var-star-o; }
+.#{$fa-css-prefix}-user:before { content: $fa-var-user; }
+.#{$fa-css-prefix}-film:before { content: $fa-var-film; }
+.#{$fa-css-prefix}-th-large:before { content: $fa-var-th-large; }
+.#{$fa-css-prefix}-th:before { content: $fa-var-th; }
+.#{$fa-css-prefix}-th-list:before { content: $fa-var-th-list; }
+.#{$fa-css-prefix}-check:before { content: $fa-var-check; }
+.#{$fa-css-prefix}-remove:before,
+.#{$fa-css-prefix}-close:before,
+.#{$fa-css-prefix}-times:before { content: $fa-var-times; }
+.#{$fa-css-prefix}-search-plus:before { content: $fa-var-search-plus; }
+.#{$fa-css-prefix}-search-minus:before { content: $fa-var-search-minus; }
+.#{$fa-css-prefix}-power-off:before { content: $fa-var-power-off; }
+.#{$fa-css-prefix}-signal:before { content: $fa-var-signal; }
+.#{$fa-css-prefix}-gear:before,
+.#{$fa-css-prefix}-cog:before { content: $fa-var-cog; }
+.#{$fa-css-prefix}-trash-o:before { content: $fa-var-trash-o; }
+.#{$fa-css-prefix}-home:before { content: $fa-var-home; }
+.#{$fa-css-prefix}-file-o:before { content: $fa-var-file-o; }
+.#{$fa-css-prefix}-clock-o:before { content: $fa-var-clock-o; }
+.#{$fa-css-prefix}-road:before { content: $fa-var-road; }
+.#{$fa-css-prefix}-download:before { content: $fa-var-download; }
+.#{$fa-css-prefix}-arrow-circle-o-down:before { content: $fa-var-arrow-circle-o-down; }
+.#{$fa-css-prefix}-arrow-circle-o-up:before { content: $fa-var-arrow-circle-o-up; }
+.#{$fa-css-prefix}-inbox:before { content: $fa-var-inbox; }
+.#{$fa-css-prefix}-play-circle-o:before { content: $fa-var-play-circle-o; }
+.#{$fa-css-prefix}-rotate-right:before,
+.#{$fa-css-prefix}-repeat:before { content: $fa-var-repeat; }
+.#{$fa-css-prefix}-refresh:before { content: $fa-var-refresh; }
+.#{$fa-css-prefix}-list-alt:before { content: $fa-var-list-alt; }
+.#{$fa-css-prefix}-lock:before { content: $fa-var-lock; }
+.#{$fa-css-prefix}-flag:before { content: $fa-var-flag; }
+.#{$fa-css-prefix}-headphones:before { content: $fa-var-headphones; }
+.#{$fa-css-prefix}-volume-off:before { content: $fa-var-volume-off; }
+.#{$fa-css-prefix}-volume-down:before { content: $fa-var-volume-down; }
+.#{$fa-css-prefix}-volume-up:before { content: $fa-var-volume-up; }
+.#{$fa-css-prefix}-qrcode:before { content: $fa-var-qrcode; }
+.#{$fa-css-prefix}-barcode:before { content: $fa-var-barcode; }
+.#{$fa-css-prefix}-tag:before { content: $fa-var-tag; }
+.#{$fa-css-prefix}-tags:before { content: $fa-var-tags; }
+.#{$fa-css-prefix}-book:before { content: $fa-var-book; }
+.#{$fa-css-prefix}-bookmark:before { content: $fa-var-bookmark; }
+.#{$fa-css-prefix}-print:before { content: $fa-var-print; }
+.#{$fa-css-prefix}-camera:before { content: $fa-var-camera; }
+.#{$fa-css-prefix}-font:before { content: $fa-var-font; }
+.#{$fa-css-prefix}-bold:before { content: $fa-var-bold; }
+.#{$fa-css-prefix}-italic:before { content: $fa-var-italic; }
+.#{$fa-css-prefix}-text-height:before { content: $fa-var-text-height; }
+.#{$fa-css-prefix}-text-width:before { content: $fa-var-text-width; }
+.#{$fa-css-prefix}-align-left:before { content: $fa-var-align-left; }
+.#{$fa-css-prefix}-align-center:before { content: $fa-var-align-center; }
+.#{$fa-css-prefix}-align-right:before { content: $fa-var-align-right; }
+.#{$fa-css-prefix}-align-justify:before { content: $fa-var-align-justify; }
+.#{$fa-css-prefix}-list:before { content: $fa-var-list; }
+.#{$fa-css-prefix}-dedent:before,
+.#{$fa-css-prefix}-outdent:before { content: $fa-var-outdent; }
+.#{$fa-css-prefix}-indent:before { content: $fa-var-indent; }
+.#{$fa-css-prefix}-video-camera:before { content: $fa-var-video-camera; }
+.#{$fa-css-prefix}-photo:before,
+.#{$fa-css-prefix}-image:before,
+.#{$fa-css-prefix}-picture-o:before { content: $fa-var-picture-o; }
+.#{$fa-css-prefix}-pencil:before { content: $fa-var-pencil; }
+.#{$fa-css-prefix}-map-marker:before { content: $fa-var-map-marker; }
+.#{$fa-css-prefix}-adjust:before { content: $fa-var-adjust; }
+.#{$fa-css-prefix}-tint:before { content: $fa-var-tint; }
+.#{$fa-css-prefix}-edit:before,
+.#{$fa-css-prefix}-pencil-square-o:before { content: $fa-var-pencil-square-o; }
+.#{$fa-css-prefix}-share-square-o:before { content: $fa-var-share-square-o; }
+.#{$fa-css-prefix}-check-square-o:before { content: $fa-var-check-square-o; }
+.#{$fa-css-prefix}-arrows:before { content: $fa-var-arrows; }
+.#{$fa-css-prefix}-step-backward:before { content: $fa-var-step-backward; }
+.#{$fa-css-prefix}-fast-backward:before { content: $fa-var-fast-backward; }
+.#{$fa-css-prefix}-backward:before { content: $fa-var-backward; }
+.#{$fa-css-prefix}-play:before { content: $fa-var-play; }
+.#{$fa-css-prefix}-pause:before { content: $fa-var-pause; }
+.#{$fa-css-prefix}-stop:before { content: $fa-var-stop; }
+.#{$fa-css-prefix}-forward:before { content: $fa-var-forward; }
+.#{$fa-css-prefix}-fast-forward:before { content: $fa-var-fast-forward; }
+.#{$fa-css-prefix}-step-forward:before { content: $fa-var-step-forward; }
+.#{$fa-css-prefix}-eject:before { content: $fa-var-eject; }
+.#{$fa-css-prefix}-chevron-left:before { content: $fa-var-chevron-left; }
+.#{$fa-css-prefix}-chevron-right:before { content: $fa-var-chevron-right; }
+.#{$fa-css-prefix}-plus-circle:before { content: $fa-var-plus-circle; }
+.#{$fa-css-prefix}-minus-circle:before { content: $fa-var-minus-circle; }
+.#{$fa-css-prefix}-times-circle:before { content: $fa-var-times-circle; }
+.#{$fa-css-prefix}-check-circle:before { content: $fa-var-check-circle; }
+.#{$fa-css-prefix}-question-circle:before { content: $fa-var-question-circle; }
+.#{$fa-css-prefix}-info-circle:before { content: $fa-var-info-circle; }
+.#{$fa-css-prefix}-crosshairs:before { content: $fa-var-crosshairs; }
+.#{$fa-css-prefix}-times-circle-o:before { content: $fa-var-times-circle-o; }
+.#{$fa-css-prefix}-check-circle-o:before { content: $fa-var-check-circle-o; }
+.#{$fa-css-prefix}-ban:before { content: $fa-var-ban; }
+.#{$fa-css-prefix}-arrow-left:before { content: $fa-var-arrow-left; }
+.#{$fa-css-prefix}-arrow-right:before { content: $fa-var-arrow-right; }
+.#{$fa-css-prefix}-arrow-up:before { content: $fa-var-arrow-up; }
+.#{$fa-css-prefix}-arrow-down:before { content: $fa-var-arrow-down; }
+.#{$fa-css-prefix}-mail-forward:before,
+.#{$fa-css-prefix}-share:before { content: $fa-var-share; }
+.#{$fa-css-prefix}-expand:before { content: $fa-var-expand; }
+.#{$fa-css-prefix}-compress:before { content: $fa-var-compress; }
+.#{$fa-css-prefix}-plus:before { content: $fa-var-plus; }
+.#{$fa-css-prefix}-minus:before { content: $fa-var-minus; }
+.#{$fa-css-prefix}-asterisk:before { content: $fa-var-asterisk; }
+.#{$fa-css-prefix}-exclamation-circle:before { content: $fa-var-exclamation-circle; }
+.#{$fa-css-prefix}-gift:before { content: $fa-var-gift; }
+.#{$fa-css-prefix}-leaf:before { content: $fa-var-leaf; }
+.#{$fa-css-prefix}-fire:before { content: $fa-var-fire; }
+.#{$fa-css-prefix}-eye:before { content: $fa-var-eye; }
+.#{$fa-css-prefix}-eye-slash:before { content: $fa-var-eye-slash; }
+.#{$fa-css-prefix}-warning:before,
+.#{$fa-css-prefix}-exclamation-triangle:before { content: $fa-var-exclamation-triangle; }
+.#{$fa-css-prefix}-plane:before { content: $fa-var-plane; }
+.#{$fa-css-prefix}-calendar:before { content: $fa-var-calendar; }
+.#{$fa-css-prefix}-random:before { content: $fa-var-random; }
+.#{$fa-css-prefix}-comment:before { content: $fa-var-comment; }
+.#{$fa-css-prefix}-magnet:before { content: $fa-var-magnet; }
+.#{$fa-css-prefix}-chevron-up:before { content: $fa-var-chevron-up; }
+.#{$fa-css-prefix}-chevron-down:before { content: $fa-var-chevron-down; }
+.#{$fa-css-prefix}-retweet:before { content: $fa-var-retweet; }
+.#{$fa-css-prefix}-shopping-cart:before { content: $fa-var-shopping-cart; }
+.#{$fa-css-prefix}-folder:before { content: $fa-var-folder; }
+.#{$fa-css-prefix}-folder-open:before { content: $fa-var-folder-open; }
+.#{$fa-css-prefix}-arrows-v:before { content: $fa-var-arrows-v; }
+.#{$fa-css-prefix}-arrows-h:before { content: $fa-var-arrows-h; }
+.#{$fa-css-prefix}-bar-chart-o:before,
+.#{$fa-css-prefix}-bar-chart:before { content: $fa-var-bar-chart; }
+.#{$fa-css-prefix}-twitter-square:before { content: $fa-var-twitter-square; }
+.#{$fa-css-prefix}-facebook-square:before { content: $fa-var-facebook-square; }
+.#{$fa-css-prefix}-camera-retro:before { content: $fa-var-camera-retro; }
+.#{$fa-css-prefix}-key:before { content: $fa-var-key; }
+.#{$fa-css-prefix}-gears:before,
+.#{$fa-css-prefix}-cogs:before { content: $fa-var-cogs; }
+.#{$fa-css-prefix}-comments:before { content: $fa-var-comments; }
+.#{$fa-css-prefix}-thumbs-o-up:before { content: $fa-var-thumbs-o-up; }
+.#{$fa-css-prefix}-thumbs-o-down:before { content: $fa-var-thumbs-o-down; }
+.#{$fa-css-prefix}-star-half:before { content: $fa-var-star-half; }
+.#{$fa-css-prefix}-heart-o:before { content: $fa-var-heart-o; }
+.#{$fa-css-prefix}-sign-out:before { content: $fa-var-sign-out; }
+.#{$fa-css-prefix}-linkedin-square:before { content: $fa-var-linkedin-square; }
+.#{$fa-css-prefix}-thumb-tack:before { content: $fa-var-thumb-tack; }
+.#{$fa-css-prefix}-external-link:before { content: $fa-var-external-link; }
+.#{$fa-css-prefix}-sign-in:before { content: $fa-var-sign-in; }
+.#{$fa-css-prefix}-trophy:before { content: $fa-var-trophy; }
+.#{$fa-css-prefix}-github-square:before { content: $fa-var-github-square; }
+.#{$fa-css-prefix}-upload:before { content: $fa-var-upload; }
+.#{$fa-css-prefix}-lemon-o:before { content: $fa-var-lemon-o; }
+.#{$fa-css-prefix}-phone:before { content: $fa-var-phone; }
+.#{$fa-css-prefix}-square-o:before { content: $fa-var-square-o; }
+.#{$fa-css-prefix}-bookmark-o:before { content: $fa-var-bookmark-o; }
+.#{$fa-css-prefix}-phone-square:before { content: $fa-var-phone-square; }
+.#{$fa-css-prefix}-twitter:before { content: $fa-var-twitter; }
+.#{$fa-css-prefix}-facebook-f:before,
+.#{$fa-css-prefix}-facebook:before { content: $fa-var-facebook; }
+.#{$fa-css-prefix}-github:before { content: $fa-var-github; }
+.#{$fa-css-prefix}-unlock:before { content: $fa-var-unlock; }
+.#{$fa-css-prefix}-credit-card:before { content: $fa-var-credit-card; }
+.#{$fa-css-prefix}-feed:before,
+.#{$fa-css-prefix}-rss:before { content: $fa-var-rss; }
+.#{$fa-css-prefix}-hdd-o:before { content: $fa-var-hdd-o; }
+.#{$fa-css-prefix}-bullhorn:before { content: $fa-var-bullhorn; }
+.#{$fa-css-prefix}-bell:before { content: $fa-var-bell; }
+.#{$fa-css-prefix}-certificate:before { content: $fa-var-certificate; }
+.#{$fa-css-prefix}-hand-o-right:before { content: $fa-var-hand-o-right; }
+.#{$fa-css-prefix}-hand-o-left:before { content: $fa-var-hand-o-left; }
+.#{$fa-css-prefix}-hand-o-up:before { content: $fa-var-hand-o-up; }
+.#{$fa-css-prefix}-hand-o-down:before { content: $fa-var-hand-o-down; }
+.#{$fa-css-prefix}-arrow-circle-left:before { content: $fa-var-arrow-circle-left; }
+.#{$fa-css-prefix}-arrow-circle-right:before { content: $fa-var-arrow-circle-right; }
+.#{$fa-css-prefix}-arrow-circle-up:before { content: $fa-var-arrow-circle-up; }
+.#{$fa-css-prefix}-arrow-circle-down:before { content: $fa-var-arrow-circle-down; }
+.#{$fa-css-prefix}-globe:before { content: $fa-var-globe; }
+.#{$fa-css-prefix}-wrench:before { content: $fa-var-wrench; }
+.#{$fa-css-prefix}-tasks:before { content: $fa-var-tasks; }
+.#{$fa-css-prefix}-filter:before { content: $fa-var-filter; }
+.#{$fa-css-prefix}-briefcase:before { content: $fa-var-briefcase; }
+.#{$fa-css-prefix}-arrows-alt:before { content: $fa-var-arrows-alt; }
+.#{$fa-css-prefix}-group:before,
+.#{$fa-css-prefix}-users:before { content: $fa-var-users; }
+.#{$fa-css-prefix}-chain:before,
+.#{$fa-css-prefix}-link:before { content: $fa-var-link; }
+.#{$fa-css-prefix}-cloud:before { content: $fa-var-cloud; }
+.#{$fa-css-prefix}-flask:before { content: $fa-var-flask; }
+.#{$fa-css-prefix}-cut:before,
+.#{$fa-css-prefix}-scissors:before { content: $fa-var-scissors; }
+.#{$fa-css-prefix}-copy:before,
+.#{$fa-css-prefix}-files-o:before { content: $fa-var-files-o; }
+.#{$fa-css-prefix}-paperclip:before { content: $fa-var-paperclip; }
+.#{$fa-css-prefix}-save:before,
+.#{$fa-css-prefix}-floppy-o:before { content: $fa-var-floppy-o; }
+.#{$fa-css-prefix}-square:before { content: $fa-var-square; }
+.#{$fa-css-prefix}-navicon:before,
+.#{$fa-css-prefix}-reorder:before,
+.#{$fa-css-prefix}-bars:before { content: $fa-var-bars; }
+.#{$fa-css-prefix}-list-ul:before { content: $fa-var-list-ul; }
+.#{$fa-css-prefix}-list-ol:before { content: $fa-var-list-ol; }
+.#{$fa-css-prefix}-strikethrough:before { content: $fa-var-strikethrough; }
+.#{$fa-css-prefix}-underline:before { content: $fa-var-underline; }
+.#{$fa-css-prefix}-table:before { content: $fa-var-table; }
+.#{$fa-css-prefix}-magic:before { content: $fa-var-magic; }
+.#{$fa-css-prefix}-truck:before { content: $fa-var-truck; }
+.#{$fa-css-prefix}-pinterest:before { content: $fa-var-pinterest; }
+.#{$fa-css-prefix}-pinterest-square:before { content: $fa-var-pinterest-square; }
+.#{$fa-css-prefix}-google-plus-square:before { content: $fa-var-google-plus-square; }
+.#{$fa-css-prefix}-google-plus:before { content: $fa-var-google-plus; }
+.#{$fa-css-prefix}-money:before { content: $fa-var-money; }
+.#{$fa-css-prefix}-caret-down:before { content: $fa-var-caret-down; }
+.#{$fa-css-prefix}-caret-up:before { content: $fa-var-caret-up; }
+.#{$fa-css-prefix}-caret-left:before { content: $fa-var-caret-left; }
+.#{$fa-css-prefix}-caret-right:before { content: $fa-var-caret-right; }
+.#{$fa-css-prefix}-columns:before { content: $fa-var-columns; }
+.#{$fa-css-prefix}-unsorted:before,
+.#{$fa-css-prefix}-sort:before { content: $fa-var-sort; }
+.#{$fa-css-prefix}-sort-down:before,
+.#{$fa-css-prefix}-sort-desc:before { content: $fa-var-sort-desc; }
+.#{$fa-css-prefix}-sort-up:before,
+.#{$fa-css-prefix}-sort-asc:before { content: $fa-var-sort-asc; }
+.#{$fa-css-prefix}-envelope:before { content: $fa-var-envelope; }
+.#{$fa-css-prefix}-linkedin:before { content: $fa-var-linkedin; }
+.#{$fa-css-prefix}-rotate-left:before,
+.#{$fa-css-prefix}-undo:before { content: $fa-var-undo; }
+.#{$fa-css-prefix}-legal:before,
+.#{$fa-css-prefix}-gavel:before { content: $fa-var-gavel; }
+.#{$fa-css-prefix}-dashboard:before,
+.#{$fa-css-prefix}-tachometer:before { content: $fa-var-tachometer; }
+.#{$fa-css-prefix}-comment-o:before { content: $fa-var-comment-o; }
+.#{$fa-css-prefix}-comments-o:before { content: $fa-var-comments-o; }
+.#{$fa-css-prefix}-flash:before,
+.#{$fa-css-prefix}-bolt:before { content: $fa-var-bolt; }
+.#{$fa-css-prefix}-sitemap:before { content: $fa-var-sitemap; }
+.#{$fa-css-prefix}-umbrella:before { content: $fa-var-umbrella; }
+.#{$fa-css-prefix}-paste:before,
+.#{$fa-css-prefix}-clipboard:before { content: $fa-var-clipboard; }
+.#{$fa-css-prefix}-lightbulb-o:before { content: $fa-var-lightbulb-o; }
+.#{$fa-css-prefix}-exchange:before { content: $fa-var-exchange; }
+.#{$fa-css-prefix}-cloud-download:before { content: $fa-var-cloud-download; }
+.#{$fa-css-prefix}-cloud-upload:before { content: $fa-var-cloud-upload; }
+.#{$fa-css-prefix}-user-md:before { content: $fa-var-user-md; }
+.#{$fa-css-prefix}-stethoscope:before { content: $fa-var-stethoscope; }
+.#{$fa-css-prefix}-suitcase:before { content: $fa-var-suitcase; }
+.#{$fa-css-prefix}-bell-o:before { content: $fa-var-bell-o; }
+.#{$fa-css-prefix}-coffee:before { content: $fa-var-coffee; }
+.#{$fa-css-prefix}-cutlery:before { content: $fa-var-cutlery; }
+.#{$fa-css-prefix}-file-text-o:before { content: $fa-var-file-text-o; }
+.#{$fa-css-prefix}-building-o:before { content: $fa-var-building-o; }
+.#{$fa-css-prefix}-hospital-o:before { content: $fa-var-hospital-o; }
+.#{$fa-css-prefix}-ambulance:before { content: $fa-var-ambulance; }
+.#{$fa-css-prefix}-medkit:before { content: $fa-var-medkit; }
+.#{$fa-css-prefix}-fighter-jet:before { content: $fa-var-fighter-jet; }
+.#{$fa-css-prefix}-beer:before { content: $fa-var-beer; }
+.#{$fa-css-prefix}-h-square:before { content: $fa-var-h-square; }
+.#{$fa-css-prefix}-plus-square:before { content: $fa-var-plus-square; }
+.#{$fa-css-prefix}-angle-double-left:before { content: $fa-var-angle-double-left; }
+.#{$fa-css-prefix}-angle-double-right:before { content: $fa-var-angle-double-right; }
+.#{$fa-css-prefix}-angle-double-up:before { content: $fa-var-angle-double-up; }
+.#{$fa-css-prefix}-angle-double-down:before { content: $fa-var-angle-double-down; }
+.#{$fa-css-prefix}-angle-left:before { content: $fa-var-angle-left; }
+.#{$fa-css-prefix}-angle-right:before { content: $fa-var-angle-right; }
+.#{$fa-css-prefix}-angle-up:before { content: $fa-var-angle-up; }
+.#{$fa-css-prefix}-angle-down:before { content: $fa-var-angle-down; }
+.#{$fa-css-prefix}-desktop:before { content: $fa-var-desktop; }
+.#{$fa-css-prefix}-laptop:before { content: $fa-var-laptop; }
+.#{$fa-css-prefix}-tablet:before { content: $fa-var-tablet; }
+.#{$fa-css-prefix}-mobile-phone:before,
+.#{$fa-css-prefix}-mobile:before { content: $fa-var-mobile; }
+.#{$fa-css-prefix}-circle-o:before { content: $fa-var-circle-o; }
+.#{$fa-css-prefix}-quote-left:before { content: $fa-var-quote-left; }
+.#{$fa-css-prefix}-quote-right:before { content: $fa-var-quote-right; }
+.#{$fa-css-prefix}-spinner:before { content: $fa-var-spinner; }
+.#{$fa-css-prefix}-circle:before { content: $fa-var-circle; }
+.#{$fa-css-prefix}-mail-reply:before,
+.#{$fa-css-prefix}-reply:before { content: $fa-var-reply; }
+.#{$fa-css-prefix}-github-alt:before { content: $fa-var-github-alt; }
+.#{$fa-css-prefix}-folder-o:before { content: $fa-var-folder-o; }
+.#{$fa-css-prefix}-folder-open-o:before { content: $fa-var-folder-open-o; }
+.#{$fa-css-prefix}-smile-o:before { content: $fa-var-smile-o; }
+.#{$fa-css-prefix}-frown-o:before { content: $fa-var-frown-o; }
+.#{$fa-css-prefix}-meh-o:before { content: $fa-var-meh-o; }
+.#{$fa-css-prefix}-gamepad:before { content: $fa-var-gamepad; }
+.#{$fa-css-prefix}-keyboard-o:before { content: $fa-var-keyboard-o; }
+.#{$fa-css-prefix}-flag-o:before { content: $fa-var-flag-o; }
+.#{$fa-css-prefix}-flag-checkered:before { content: $fa-var-flag-checkered; }
+.#{$fa-css-prefix}-terminal:before { content: $fa-var-terminal; }
+.#{$fa-css-prefix}-code:before { content: $fa-var-code; }
+.#{$fa-css-prefix}-mail-reply-all:before,
+.#{$fa-css-prefix}-reply-all:before { content: $fa-var-reply-all; }
+.#{$fa-css-prefix}-star-half-empty:before,
+.#{$fa-css-prefix}-star-half-full:before,
+.#{$fa-css-prefix}-star-half-o:before { content: $fa-var-star-half-o; }
+.#{$fa-css-prefix}-location-arrow:before { content: $fa-var-location-arrow; }
+.#{$fa-css-prefix}-crop:before { content: $fa-var-crop; }
+.#{$fa-css-prefix}-code-fork:before { content: $fa-var-code-fork; }
+.#{$fa-css-prefix}-unlink:before,
+.#{$fa-css-prefix}-chain-broken:before { content: $fa-var-chain-broken; }
+.#{$fa-css-prefix}-question:before { content: $fa-var-question; }
+.#{$fa-css-prefix}-info:before { content: $fa-var-info; }
+.#{$fa-css-prefix}-exclamation:before { content: $fa-var-exclamation; }
+.#{$fa-css-prefix}-superscript:before { content: $fa-var-superscript; }
+.#{$fa-css-prefix}-subscript:before { content: $fa-var-subscript; }
+.#{$fa-css-prefix}-eraser:before { content: $fa-var-eraser; }
+.#{$fa-css-prefix}-puzzle-piece:before { content: $fa-var-puzzle-piece; }
+.#{$fa-css-prefix}-microphone:before { content: $fa-var-microphone; }
+.#{$fa-css-prefix}-microphone-slash:before { content: $fa-var-microphone-slash; }
+.#{$fa-css-prefix}-shield:before { content: $fa-var-shield; }
+.#{$fa-css-prefix}-calendar-o:before { content: $fa-var-calendar-o; }
+.#{$fa-css-prefix}-fire-extinguisher:before { content: $fa-var-fire-extinguisher; }
+.#{$fa-css-prefix}-rocket:before { content: $fa-var-rocket; }
+.#{$fa-css-prefix}-maxcdn:before { content: $fa-var-maxcdn; }
+.#{$fa-css-prefix}-chevron-circle-left:before { content: $fa-var-chevron-circle-left; }
+.#{$fa-css-prefix}-chevron-circle-right:before { content: $fa-var-chevron-circle-right; }
+.#{$fa-css-prefix}-chevron-circle-up:before { content: $fa-var-chevron-circle-up; }
+.#{$fa-css-prefix}-chevron-circle-down:before { content: $fa-var-chevron-circle-down; }
+.#{$fa-css-prefix}-html5:before { content: $fa-var-html5; }
+.#{$fa-css-prefix}-css3:before { content: $fa-var-css3; }
+.#{$fa-css-prefix}-anchor:before { content: $fa-var-anchor; }
+.#{$fa-css-prefix}-unlock-alt:before { content: $fa-var-unlock-alt; }
+.#{$fa-css-prefix}-bullseye:before { content: $fa-var-bullseye; }
+.#{$fa-css-prefix}-ellipsis-h:before { content: $fa-var-ellipsis-h; }
+.#{$fa-css-prefix}-ellipsis-v:before { content: $fa-var-ellipsis-v; }
+.#{$fa-css-prefix}-rss-square:before { content: $fa-var-rss-square; }
+.#{$fa-css-prefix}-play-circle:before { content: $fa-var-play-circle; }
+.#{$fa-css-prefix}-ticket:before { content: $fa-var-ticket; }
+.#{$fa-css-prefix}-minus-square:before { content: $fa-var-minus-square; }
+.#{$fa-css-prefix}-minus-square-o:before { content: $fa-var-minus-square-o; }
+.#{$fa-css-prefix}-level-up:before { content: $fa-var-level-up; }
+.#{$fa-css-prefix}-level-down:before { content: $fa-var-level-down; }
+.#{$fa-css-prefix}-check-square:before { content: $fa-var-check-square; }
+.#{$fa-css-prefix}-pencil-square:before { content: $fa-var-pencil-square; }
+.#{$fa-css-prefix}-external-link-square:before { content: $fa-var-external-link-square; }
+.#{$fa-css-prefix}-share-square:before { content: $fa-var-share-square; }
+.#{$fa-css-prefix}-compass:before { content: $fa-var-compass; }
+.#{$fa-css-prefix}-toggle-down:before,
+.#{$fa-css-prefix}-caret-square-o-down:before { content: $fa-var-caret-square-o-down; }
+.#{$fa-css-prefix}-toggle-up:before,
+.#{$fa-css-prefix}-caret-square-o-up:before { content: $fa-var-caret-square-o-up; }
+.#{$fa-css-prefix}-toggle-right:before,
+.#{$fa-css-prefix}-caret-square-o-right:before { content: $fa-var-caret-square-o-right; }
+.#{$fa-css-prefix}-euro:before,
+.#{$fa-css-prefix}-eur:before { content: $fa-var-eur; }
+.#{$fa-css-prefix}-gbp:before { content: $fa-var-gbp; }
+.#{$fa-css-prefix}-dollar:before,
+.#{$fa-css-prefix}-usd:before { content: $fa-var-usd; }
+.#{$fa-css-prefix}-rupee:before,
+.#{$fa-css-prefix}-inr:before { content: $fa-var-inr; }
+.#{$fa-css-prefix}-cny:before,
+.#{$fa-css-prefix}-rmb:before,
+.#{$fa-css-prefix}-yen:before,
+.#{$fa-css-prefix}-jpy:before { content: $fa-var-jpy; }
+.#{$fa-css-prefix}-ruble:before,
+.#{$fa-css-prefix}-rouble:before,
+.#{$fa-css-prefix}-rub:before { content: $fa-var-rub; }
+.#{$fa-css-prefix}-won:before,
+.#{$fa-css-prefix}-krw:before { content: $fa-var-krw; }
+.#{$fa-css-prefix}-bitcoin:before,
+.#{$fa-css-prefix}-btc:before { content: $fa-var-btc; }
+.#{$fa-css-prefix}-file:before { content: $fa-var-file; }
+.#{$fa-css-prefix}-file-text:before { content: $fa-var-file-text; }
+.#{$fa-css-prefix}-sort-alpha-asc:before { content: $fa-var-sort-alpha-asc; }
+.#{$fa-css-prefix}-sort-alpha-desc:before { content: $fa-var-sort-alpha-desc; }
+.#{$fa-css-prefix}-sort-amount-asc:before { content: $fa-var-sort-amount-asc; }
+.#{$fa-css-prefix}-sort-amount-desc:before { content: $fa-var-sort-amount-desc; }
+.#{$fa-css-prefix}-sort-numeric-asc:before { content: $fa-var-sort-numeric-asc; }
+.#{$fa-css-prefix}-sort-numeric-desc:before { content: $fa-var-sort-numeric-desc; }
+.#{$fa-css-prefix}-thumbs-up:before { content: $fa-var-thumbs-up; }
+.#{$fa-css-prefix}-thumbs-down:before { content: $fa-var-thumbs-down; }
+.#{$fa-css-prefix}-youtube-square:before { content: $fa-var-youtube-square; }
+.#{$fa-css-prefix}-youtube:before { content: $fa-var-youtube; }
+.#{$fa-css-prefix}-xing:before { content: $fa-var-xing; }
+.#{$fa-css-prefix}-xing-square:before { content: $fa-var-xing-square; }
+.#{$fa-css-prefix}-youtube-play:before { content: $fa-var-youtube-play; }
+.#{$fa-css-prefix}-dropbox:before { content: $fa-var-dropbox; }
+.#{$fa-css-prefix}-stack-overflow:before { content: $fa-var-stack-overflow; }
+.#{$fa-css-prefix}-instagram:before { content: $fa-var-instagram; }
+.#{$fa-css-prefix}-flickr:before { content: $fa-var-flickr; }
+.#{$fa-css-prefix}-adn:before { content: $fa-var-adn; }
+.#{$fa-css-prefix}-bitbucket:before { content: $fa-var-bitbucket; }
+.#{$fa-css-prefix}-bitbucket-square:before { content: $fa-var-bitbucket-square; }
+.#{$fa-css-prefix}-tumblr:before { content: $fa-var-tumblr; }
+.#{$fa-css-prefix}-tumblr-square:before { content: $fa-var-tumblr-square; }
+.#{$fa-css-prefix}-long-arrow-down:before { content: $fa-var-long-arrow-down; }
+.#{$fa-css-prefix}-long-arrow-up:before { content: $fa-var-long-arrow-up; }
+.#{$fa-css-prefix}-long-arrow-left:before { content: $fa-var-long-arrow-left; }
+.#{$fa-css-prefix}-long-arrow-right:before { content: $fa-var-long-arrow-right; }
+.#{$fa-css-prefix}-apple:before { content: $fa-var-apple; }
+.#{$fa-css-prefix}-windows:before { content: $fa-var-windows; }
+.#{$fa-css-prefix}-android:before { content: $fa-var-android; }
+.#{$fa-css-prefix}-linux:before { content: $fa-var-linux; }
+.#{$fa-css-prefix}-dribbble:before { content: $fa-var-dribbble; }
+.#{$fa-css-prefix}-skype:before { content: $fa-var-skype; }
+.#{$fa-css-prefix}-foursquare:before { content: $fa-var-foursquare; }
+.#{$fa-css-prefix}-trello:before { content: $fa-var-trello; }
+.#{$fa-css-prefix}-female:before { content: $fa-var-female; }
+.#{$fa-css-prefix}-male:before { content: $fa-var-male; }
+.#{$fa-css-prefix}-gittip:before,
+.#{$fa-css-prefix}-gratipay:before { content: $fa-var-gratipay; }
+.#{$fa-css-prefix}-sun-o:before { content: $fa-var-sun-o; }
+.#{$fa-css-prefix}-moon-o:before { content: $fa-var-moon-o; }
+.#{$fa-css-prefix}-archive:before { content: $fa-var-archive; }
+.#{$fa-css-prefix}-bug:before { content: $fa-var-bug; }
+.#{$fa-css-prefix}-vk:before { content: $fa-var-vk; }
+.#{$fa-css-prefix}-weibo:before { content: $fa-var-weibo; }
+.#{$fa-css-prefix}-renren:before { content: $fa-var-renren; }
+.#{$fa-css-prefix}-pagelines:before { content: $fa-var-pagelines; }
+.#{$fa-css-prefix}-stack-exchange:before { content: $fa-var-stack-exchange; }
+.#{$fa-css-prefix}-arrow-circle-o-right:before { content: $fa-var-arrow-circle-o-right; }
+.#{$fa-css-prefix}-arrow-circle-o-left:before { content: $fa-var-arrow-circle-o-left; }
+.#{$fa-css-prefix}-toggle-left:before,
+.#{$fa-css-prefix}-caret-square-o-left:before { content: $fa-var-caret-square-o-left; }
+.#{$fa-css-prefix}-dot-circle-o:before { content: $fa-var-dot-circle-o; }
+.#{$fa-css-prefix}-wheelchair:before { content: $fa-var-wheelchair; }
+.#{$fa-css-prefix}-vimeo-square:before { content: $fa-var-vimeo-square; }
+.#{$fa-css-prefix}-turkish-lira:before,
+.#{$fa-css-prefix}-try:before { content: $fa-var-try; }
+.#{$fa-css-prefix}-plus-square-o:before { content: $fa-var-plus-square-o; }
+.#{$fa-css-prefix}-space-shuttle:before { content: $fa-var-space-shuttle; }
+.#{$fa-css-prefix}-slack:before { content: $fa-var-slack; }
+.#{$fa-css-prefix}-envelope-square:before { content: $fa-var-envelope-square; }
+.#{$fa-css-prefix}-wordpress:before { content: $fa-var-wordpress; }
+.#{$fa-css-prefix}-openid:before { content: $fa-var-openid; }
+.#{$fa-css-prefix}-institution:before,
+.#{$fa-css-prefix}-bank:before,
+.#{$fa-css-prefix}-university:before { content: $fa-var-university; }
+.#{$fa-css-prefix}-mortar-board:before,
+.#{$fa-css-prefix}-graduation-cap:before { content: $fa-var-graduation-cap; }
+.#{$fa-css-prefix}-yahoo:before { content: $fa-var-yahoo; }
+.#{$fa-css-prefix}-google:before { content: $fa-var-google; }
+.#{$fa-css-prefix}-reddit:before { content: $fa-var-reddit; }
+.#{$fa-css-prefix}-reddit-square:before { content: $fa-var-reddit-square; }
+.#{$fa-css-prefix}-stumbleupon-circle:before { content: $fa-var-stumbleupon-circle; }
+.#{$fa-css-prefix}-stumbleupon:before { content: $fa-var-stumbleupon; }
+.#{$fa-css-prefix}-delicious:before { content: $fa-var-delicious; }
+.#{$fa-css-prefix}-digg:before { content: $fa-var-digg; }
+.#{$fa-css-prefix}-pied-piper-pp:before { content: $fa-var-pied-piper-pp; }
+.#{$fa-css-prefix}-pied-piper-alt:before { content: $fa-var-pied-piper-alt; }
+.#{$fa-css-prefix}-drupal:before { content: $fa-var-drupal; }
+.#{$fa-css-prefix}-joomla:before { content: $fa-var-joomla; }
+.#{$fa-css-prefix}-language:before { content: $fa-var-language; }
+.#{$fa-css-prefix}-fax:before { content: $fa-var-fax; }
+.#{$fa-css-prefix}-building:before { content: $fa-var-building; }
+.#{$fa-css-prefix}-child:before { content: $fa-var-child; }
+.#{$fa-css-prefix}-paw:before { content: $fa-var-paw; }
+.#{$fa-css-prefix}-spoon:before { content: $fa-var-spoon; }
+.#{$fa-css-prefix}-cube:before { content: $fa-var-cube; }
+.#{$fa-css-prefix}-cubes:before { content: $fa-var-cubes; }
+.#{$fa-css-prefix}-behance:before { content: $fa-var-behance; }
+.#{$fa-css-prefix}-behance-square:before { content: $fa-var-behance-square; }
+.#{$fa-css-prefix}-steam:before { content: $fa-var-steam; }
+.#{$fa-css-prefix}-steam-square:before { content: $fa-var-steam-square; }
+.#{$fa-css-prefix}-recycle:before { content: $fa-var-recycle; }
+.#{$fa-css-prefix}-automobile:before,
+.#{$fa-css-prefix}-car:before { content: $fa-var-car; }
+.#{$fa-css-prefix}-cab:before,
+.#{$fa-css-prefix}-taxi:before { content: $fa-var-taxi; }
+.#{$fa-css-prefix}-tree:before { content: $fa-var-tree; }
+.#{$fa-css-prefix}-spotify:before { content: $fa-var-spotify; }
+.#{$fa-css-prefix}-deviantart:before { content: $fa-var-deviantart; }
+.#{$fa-css-prefix}-soundcloud:before { content: $fa-var-soundcloud; }
+.#{$fa-css-prefix}-database:before { content: $fa-var-database; }
+.#{$fa-css-prefix}-file-pdf-o:before { content: $fa-var-file-pdf-o; }
+.#{$fa-css-prefix}-file-word-o:before { content: $fa-var-file-word-o; }
+.#{$fa-css-prefix}-file-excel-o:before { content: $fa-var-file-excel-o; }
+.#{$fa-css-prefix}-file-powerpoint-o:before { content: $fa-var-file-powerpoint-o; }
+.#{$fa-css-prefix}-file-photo-o:before,
+.#{$fa-css-prefix}-file-picture-o:before,
+.#{$fa-css-prefix}-file-image-o:before { content: $fa-var-file-image-o; }
+.#{$fa-css-prefix}-file-zip-o:before,
+.#{$fa-css-prefix}-file-archive-o:before { content: $fa-var-file-archive-o; }
+.#{$fa-css-prefix}-file-sound-o:before,
+.#{$fa-css-prefix}-file-audio-o:before { content: $fa-var-file-audio-o; }
+.#{$fa-css-prefix}-file-movie-o:before,
+.#{$fa-css-prefix}-file-video-o:before { content: $fa-var-file-video-o; }
+.#{$fa-css-prefix}-file-code-o:before { content: $fa-var-file-code-o; }
+.#{$fa-css-prefix}-vine:before { content: $fa-var-vine; }
+.#{$fa-css-prefix}-codepen:before { content: $fa-var-codepen; }
+.#{$fa-css-prefix}-jsfiddle:before { content: $fa-var-jsfiddle; }
+.#{$fa-css-prefix}-life-bouy:before,
+.#{$fa-css-prefix}-life-buoy:before,
+.#{$fa-css-prefix}-life-saver:before,
+.#{$fa-css-prefix}-support:before,
+.#{$fa-css-prefix}-life-ring:before { content: $fa-var-life-ring; }
+.#{$fa-css-prefix}-circle-o-notch:before { content: $fa-var-circle-o-notch; }
+.#{$fa-css-prefix}-ra:before,
+.#{$fa-css-prefix}-resistance:before,
+.#{$fa-css-prefix}-rebel:before { content: $fa-var-rebel; }
+.#{$fa-css-prefix}-ge:before,
+.#{$fa-css-prefix}-empire:before { content: $fa-var-empire; }
+.#{$fa-css-prefix}-git-square:before { content: $fa-var-git-square; }
+.#{$fa-css-prefix}-git:before { content: $fa-var-git; }
+.#{$fa-css-prefix}-y-combinator-square:before,
+.#{$fa-css-prefix}-yc-square:before,
+.#{$fa-css-prefix}-hacker-news:before { content: $fa-var-hacker-news; }
+.#{$fa-css-prefix}-tencent-weibo:before { content: $fa-var-tencent-weibo; }
+.#{$fa-css-prefix}-qq:before { content: $fa-var-qq; }
+.#{$fa-css-prefix}-wechat:before,
+.#{$fa-css-prefix}-weixin:before { content: $fa-var-weixin; }
+.#{$fa-css-prefix}-send:before,
+.#{$fa-css-prefix}-paper-plane:before { content: $fa-var-paper-plane; }
+.#{$fa-css-prefix}-send-o:before,
+.#{$fa-css-prefix}-paper-plane-o:before { content: $fa-var-paper-plane-o; }
+.#{$fa-css-prefix}-history:before { content: $fa-var-history; }
+.#{$fa-css-prefix}-circle-thin:before { content: $fa-var-circle-thin; }
+.#{$fa-css-prefix}-header:before { content: $fa-var-header; }
+.#{$fa-css-prefix}-paragraph:before { content: $fa-var-paragraph; }
+.#{$fa-css-prefix}-sliders:before { content: $fa-var-sliders; }
+.#{$fa-css-prefix}-share-alt:before { content: $fa-var-share-alt; }
+.#{$fa-css-prefix}-share-alt-square:before { content: $fa-var-share-alt-square; }
+.#{$fa-css-prefix}-bomb:before { content: $fa-var-bomb; }
+.#{$fa-css-prefix}-soccer-ball-o:before,
+.#{$fa-css-prefix}-futbol-o:before { content: $fa-var-futbol-o; }
+.#{$fa-css-prefix}-tty:before { content: $fa-var-tty; }
+.#{$fa-css-prefix}-binoculars:before { content: $fa-var-binoculars; }
+.#{$fa-css-prefix}-plug:before { content: $fa-var-plug; }
+.#{$fa-css-prefix}-slideshare:before { content: $fa-var-slideshare; }
+.#{$fa-css-prefix}-twitch:before { content: $fa-var-twitch; }
+.#{$fa-css-prefix}-yelp:before { content: $fa-var-yelp; }
+.#{$fa-css-prefix}-newspaper-o:before { content: $fa-var-newspaper-o; }
+.#{$fa-css-prefix}-wifi:before { content: $fa-var-wifi; }
+.#{$fa-css-prefix}-calculator:before { content: $fa-var-calculator; }
+.#{$fa-css-prefix}-paypal:before { content: $fa-var-paypal; }
+.#{$fa-css-prefix}-google-wallet:before { content: $fa-var-google-wallet; }
+.#{$fa-css-prefix}-cc-visa:before { content: $fa-var-cc-visa; }
+.#{$fa-css-prefix}-cc-mastercard:before { content: $fa-var-cc-mastercard; }
+.#{$fa-css-prefix}-cc-discover:before { content: $fa-var-cc-discover; }
+.#{$fa-css-prefix}-cc-amex:before { content: $fa-var-cc-amex; }
+.#{$fa-css-prefix}-cc-paypal:before { content: $fa-var-cc-paypal; }
+.#{$fa-css-prefix}-cc-stripe:before { content: $fa-var-cc-stripe; }
+.#{$fa-css-prefix}-bell-slash:before { content: $fa-var-bell-slash; }
+.#{$fa-css-prefix}-bell-slash-o:before { content: $fa-var-bell-slash-o; }
+.#{$fa-css-prefix}-trash:before { content: $fa-var-trash; }
+.#{$fa-css-prefix}-copyright:before { content: $fa-var-copyright; }
+.#{$fa-css-prefix}-at:before { content: $fa-var-at; }
+.#{$fa-css-prefix}-eyedropper:before { content: $fa-var-eyedropper; }
+.#{$fa-css-prefix}-paint-brush:before { content: $fa-var-paint-brush; }
+.#{$fa-css-prefix}-birthday-cake:before { content: $fa-var-birthday-cake; }
+.#{$fa-css-prefix}-area-chart:before { content: $fa-var-area-chart; }
+.#{$fa-css-prefix}-pie-chart:before { content: $fa-var-pie-chart; }
+.#{$fa-css-prefix}-line-chart:before { content: $fa-var-line-chart; }
+.#{$fa-css-prefix}-lastfm:before { content: $fa-var-lastfm; }
+.#{$fa-css-prefix}-lastfm-square:before { content: $fa-var-lastfm-square; }
+.#{$fa-css-prefix}-toggle-off:before { content: $fa-var-toggle-off; }
+.#{$fa-css-prefix}-toggle-on:before { content: $fa-var-toggle-on; }
+.#{$fa-css-prefix}-bicycle:before { content: $fa-var-bicycle; }
+.#{$fa-css-prefix}-bus:before { content: $fa-var-bus; }
+.#{$fa-css-prefix}-ioxhost:before { content: $fa-var-ioxhost; }
+.#{$fa-css-prefix}-angellist:before { content: $fa-var-angellist; }
+.#{$fa-css-prefix}-cc:before { content: $fa-var-cc; }
+.#{$fa-css-prefix}-shekel:before,
+.#{$fa-css-prefix}-sheqel:before,
+.#{$fa-css-prefix}-ils:before { content: $fa-var-ils; }
+.#{$fa-css-prefix}-meanpath:before { content: $fa-var-meanpath; }
+.#{$fa-css-prefix}-buysellads:before { content: $fa-var-buysellads; }
+.#{$fa-css-prefix}-connectdevelop:before { content: $fa-var-connectdevelop; }
+.#{$fa-css-prefix}-dashcube:before { content: $fa-var-dashcube; }
+.#{$fa-css-prefix}-forumbee:before { content: $fa-var-forumbee; }
+.#{$fa-css-prefix}-leanpub:before { content: $fa-var-leanpub; }
+.#{$fa-css-prefix}-sellsy:before { content: $fa-var-sellsy; }
+.#{$fa-css-prefix}-shirtsinbulk:before { content: $fa-var-shirtsinbulk; }
+.#{$fa-css-prefix}-simplybuilt:before { content: $fa-var-simplybuilt; }
+.#{$fa-css-prefix}-skyatlas:before { content: $fa-var-skyatlas; }
+.#{$fa-css-prefix}-cart-plus:before { content: $fa-var-cart-plus; }
+.#{$fa-css-prefix}-cart-arrow-down:before { content: $fa-var-cart-arrow-down; }
+.#{$fa-css-prefix}-diamond:before { content: $fa-var-diamond; }
+.#{$fa-css-prefix}-ship:before { content: $fa-var-ship; }
+.#{$fa-css-prefix}-user-secret:before { content: $fa-var-user-secret; }
+.#{$fa-css-prefix}-motorcycle:before { content: $fa-var-motorcycle; }
+.#{$fa-css-prefix}-street-view:before { content: $fa-var-street-view; }
+.#{$fa-css-prefix}-heartbeat:before { content: $fa-var-heartbeat; }
+.#{$fa-css-prefix}-venus:before { content: $fa-var-venus; }
+.#{$fa-css-prefix}-mars:before { content: $fa-var-mars; }
+.#{$fa-css-prefix}-mercury:before { content: $fa-var-mercury; }
+.#{$fa-css-prefix}-intersex:before,
+.#{$fa-css-prefix}-transgender:before { content: $fa-var-transgender; }
+.#{$fa-css-prefix}-transgender-alt:before { content: $fa-var-transgender-alt; }
+.#{$fa-css-prefix}-venus-double:before { content: $fa-var-venus-double; }
+.#{$fa-css-prefix}-mars-double:before { content: $fa-var-mars-double; }
+.#{$fa-css-prefix}-venus-mars:before { content: $fa-var-venus-mars; }
+.#{$fa-css-prefix}-mars-stroke:before { content: $fa-var-mars-stroke; }
+.#{$fa-css-prefix}-mars-stroke-v:before { content: $fa-var-mars-stroke-v; }
+.#{$fa-css-prefix}-mars-stroke-h:before { content: $fa-var-mars-stroke-h; }
+.#{$fa-css-prefix}-neuter:before { content: $fa-var-neuter; }
+.#{$fa-css-prefix}-genderless:before { content: $fa-var-genderless; }
+.#{$fa-css-prefix}-facebook-official:before { content: $fa-var-facebook-official; }
+.#{$fa-css-prefix}-pinterest-p:before { content: $fa-var-pinterest-p; }
+.#{$fa-css-prefix}-whatsapp:before { content: $fa-var-whatsapp; }
+.#{$fa-css-prefix}-server:before { content: $fa-var-server; }
+.#{$fa-css-prefix}-user-plus:before { content: $fa-var-user-plus; }
+.#{$fa-css-prefix}-user-times:before { content: $fa-var-user-times; }
+.#{$fa-css-prefix}-hotel:before,
+.#{$fa-css-prefix}-bed:before { content: $fa-var-bed; }
+.#{$fa-css-prefix}-viacoin:before { content: $fa-var-viacoin; }
+.#{$fa-css-prefix}-train:before { content: $fa-var-train; }
+.#{$fa-css-prefix}-subway:before { content: $fa-var-subway; }
+.#{$fa-css-prefix}-medium:before { content: $fa-var-medium; }
+.#{$fa-css-prefix}-yc:before,
+.#{$fa-css-prefix}-y-combinator:before { content: $fa-var-y-combinator; }
+.#{$fa-css-prefix}-optin-monster:before { content: $fa-var-optin-monster; }
+.#{$fa-css-prefix}-opencart:before { content: $fa-var-opencart; }
+.#{$fa-css-prefix}-expeditedssl:before { content: $fa-var-expeditedssl; }
+.#{$fa-css-prefix}-battery-4:before,
+.#{$fa-css-prefix}-battery-full:before { content: $fa-var-battery-full; }
+.#{$fa-css-prefix}-battery-3:before,
+.#{$fa-css-prefix}-battery-three-quarters:before { content: $fa-var-battery-three-quarters; }
+.#{$fa-css-prefix}-battery-2:before,
+.#{$fa-css-prefix}-battery-half:before { content: $fa-var-battery-half; }
+.#{$fa-css-prefix}-battery-1:before,
+.#{$fa-css-prefix}-battery-quarter:before { content: $fa-var-battery-quarter; }
+.#{$fa-css-prefix}-battery-0:before,
+.#{$fa-css-prefix}-battery-empty:before { content: $fa-var-battery-empty; }
+.#{$fa-css-prefix}-mouse-pointer:before { content: $fa-var-mouse-pointer; }
+.#{$fa-css-prefix}-i-cursor:before { content: $fa-var-i-cursor; }
+.#{$fa-css-prefix}-object-group:before { content: $fa-var-object-group; }
+.#{$fa-css-prefix}-object-ungroup:before { content: $fa-var-object-ungroup; }
+.#{$fa-css-prefix}-sticky-note:before { content: $fa-var-sticky-note; }
+.#{$fa-css-prefix}-sticky-note-o:before { content: $fa-var-sticky-note-o; }
+.#{$fa-css-prefix}-cc-jcb:before { content: $fa-var-cc-jcb; }
+.#{$fa-css-prefix}-cc-diners-club:before { content: $fa-var-cc-diners-club; }
+.#{$fa-css-prefix}-clone:before { content: $fa-var-clone; }
+.#{$fa-css-prefix}-balance-scale:before { content: $fa-var-balance-scale; }
+.#{$fa-css-prefix}-hourglass-o:before { content: $fa-var-hourglass-o; }
+.#{$fa-css-prefix}-hourglass-1:before,
+.#{$fa-css-prefix}-hourglass-start:before { content: $fa-var-hourglass-start; }
+.#{$fa-css-prefix}-hourglass-2:before,
+.#{$fa-css-prefix}-hourglass-half:before { content: $fa-var-hourglass-half; }
+.#{$fa-css-prefix}-hourglass-3:before,
+.#{$fa-css-prefix}-hourglass-end:before { content: $fa-var-hourglass-end; }
+.#{$fa-css-prefix}-hourglass:before { content: $fa-var-hourglass; }
+.#{$fa-css-prefix}-hand-grab-o:before,
+.#{$fa-css-prefix}-hand-rock-o:before { content: $fa-var-hand-rock-o; }
+.#{$fa-css-prefix}-hand-stop-o:before,
+.#{$fa-css-prefix}-hand-paper-o:before { content: $fa-var-hand-paper-o; }
+.#{$fa-css-prefix}-hand-scissors-o:before { content: $fa-var-hand-scissors-o; }
+.#{$fa-css-prefix}-hand-lizard-o:before { content: $fa-var-hand-lizard-o; }
+.#{$fa-css-prefix}-hand-spock-o:before { content: $fa-var-hand-spock-o; }
+.#{$fa-css-prefix}-hand-pointer-o:before { content: $fa-var-hand-pointer-o; }
+.#{$fa-css-prefix}-hand-peace-o:before { content: $fa-var-hand-peace-o; }
+.#{$fa-css-prefix}-trademark:before { content: $fa-var-trademark; }
+.#{$fa-css-prefix}-registered:before { content: $fa-var-registered; }
+.#{$fa-css-prefix}-creative-commons:before { content: $fa-var-creative-commons; }
+.#{$fa-css-prefix}-gg:before { content: $fa-var-gg; }
+.#{$fa-css-prefix}-gg-circle:before { content: $fa-var-gg-circle; }
+.#{$fa-css-prefix}-tripadvisor:before { content: $fa-var-tripadvisor; }
+.#{$fa-css-prefix}-odnoklassniki:before { content: $fa-var-odnoklassniki; }
+.#{$fa-css-prefix}-odnoklassniki-square:before { content: $fa-var-odnoklassniki-square; }
+.#{$fa-css-prefix}-get-pocket:before { content: $fa-var-get-pocket; }
+.#{$fa-css-prefix}-wikipedia-w:before { content: $fa-var-wikipedia-w; }
+.#{$fa-css-prefix}-safari:before { content: $fa-var-safari; }
+.#{$fa-css-prefix}-chrome:before { content: $fa-var-chrome; }
+.#{$fa-css-prefix}-firefox:before { content: $fa-var-firefox; }
+.#{$fa-css-prefix}-opera:before { content: $fa-var-opera; }
+.#{$fa-css-prefix}-internet-explorer:before { content: $fa-var-internet-explorer; }
+.#{$fa-css-prefix}-tv:before,
+.#{$fa-css-prefix}-television:before { content: $fa-var-television; }
+.#{$fa-css-prefix}-contao:before { content: $fa-var-contao; }
+.#{$fa-css-prefix}-500px:before { content: $fa-var-500px; }
+.#{$fa-css-prefix}-amazon:before { content: $fa-var-amazon; }
+.#{$fa-css-prefix}-calendar-plus-o:before { content: $fa-var-calendar-plus-o; }
+.#{$fa-css-prefix}-calendar-minus-o:before { content: $fa-var-calendar-minus-o; }
+.#{$fa-css-prefix}-calendar-times-o:before { content: $fa-var-calendar-times-o; }
+.#{$fa-css-prefix}-calendar-check-o:before { content: $fa-var-calendar-check-o; }
+.#{$fa-css-prefix}-industry:before { content: $fa-var-industry; }
+.#{$fa-css-prefix}-map-pin:before { content: $fa-var-map-pin; }
+.#{$fa-css-prefix}-map-signs:before { content: $fa-var-map-signs; }
+.#{$fa-css-prefix}-map-o:before { content: $fa-var-map-o; }
+.#{$fa-css-prefix}-map:before { content: $fa-var-map; }
+.#{$fa-css-prefix}-commenting:before { content: $fa-var-commenting; }
+.#{$fa-css-prefix}-commenting-o:before { content: $fa-var-commenting-o; }
+.#{$fa-css-prefix}-houzz:before { content: $fa-var-houzz; }
+.#{$fa-css-prefix}-vimeo:before { content: $fa-var-vimeo; }
+.#{$fa-css-prefix}-black-tie:before { content: $fa-var-black-tie; }
+.#{$fa-css-prefix}-fonticons:before { content: $fa-var-fonticons; }
+.#{$fa-css-prefix}-reddit-alien:before { content: $fa-var-reddit-alien; }
+.#{$fa-css-prefix}-edge:before { content: $fa-var-edge; }
+.#{$fa-css-prefix}-credit-card-alt:before { content: $fa-var-credit-card-alt; }
+.#{$fa-css-prefix}-codiepie:before { content: $fa-var-codiepie; }
+.#{$fa-css-prefix}-modx:before { content: $fa-var-modx; }
+.#{$fa-css-prefix}-fort-awesome:before { content: $fa-var-fort-awesome; }
+.#{$fa-css-prefix}-usb:before { content: $fa-var-usb; }
+.#{$fa-css-prefix}-product-hunt:before { content: $fa-var-product-hunt; }
+.#{$fa-css-prefix}-mixcloud:before { content: $fa-var-mixcloud; }
+.#{$fa-css-prefix}-scribd:before { content: $fa-var-scribd; }
+.#{$fa-css-prefix}-pause-circle:before { content: $fa-var-pause-circle; }
+.#{$fa-css-prefix}-pause-circle-o:before { content: $fa-var-pause-circle-o; }
+.#{$fa-css-prefix}-stop-circle:before { content: $fa-var-stop-circle; }
+.#{$fa-css-prefix}-stop-circle-o:before { content: $fa-var-stop-circle-o; }
+.#{$fa-css-prefix}-shopping-bag:before { content: $fa-var-shopping-bag; }
+.#{$fa-css-prefix}-shopping-basket:before { content: $fa-var-shopping-basket; }
+.#{$fa-css-prefix}-hashtag:before { content: $fa-var-hashtag; }
+.#{$fa-css-prefix}-bluetooth:before { content: $fa-var-bluetooth; }
+.#{$fa-css-prefix}-bluetooth-b:before { content: $fa-var-bluetooth-b; }
+.#{$fa-css-prefix}-percent:before { content: $fa-var-percent; }
+.#{$fa-css-prefix}-gitlab:before { content: $fa-var-gitlab; }
+.#{$fa-css-prefix}-wpbeginner:before { content: $fa-var-wpbeginner; }
+.#{$fa-css-prefix}-wpforms:before { content: $fa-var-wpforms; }
+.#{$fa-css-prefix}-envira:before { content: $fa-var-envira; }
+.#{$fa-css-prefix}-universal-access:before { content: $fa-var-universal-access; }
+.#{$fa-css-prefix}-wheelchair-alt:before { content: $fa-var-wheelchair-alt; }
+.#{$fa-css-prefix}-question-circle-o:before { content: $fa-var-question-circle-o; }
+.#{$fa-css-prefix}-blind:before { content: $fa-var-blind; }
+.#{$fa-css-prefix}-audio-description:before { content: $fa-var-audio-description; }
+.#{$fa-css-prefix}-volume-control-phone:before { content: $fa-var-volume-control-phone; }
+.#{$fa-css-prefix}-braille:before { content: $fa-var-braille; }
+.#{$fa-css-prefix}-assistive-listening-systems:before { content: $fa-var-assistive-listening-systems; }
+.#{$fa-css-prefix}-asl-interpreting:before,
+.#{$fa-css-prefix}-american-sign-language-interpreting:before { content: $fa-var-american-sign-language-interpreting; }
+.#{$fa-css-prefix}-deafness:before,
+.#{$fa-css-prefix}-hard-of-hearing:before,
+.#{$fa-css-prefix}-deaf:before { content: $fa-var-deaf; }
+.#{$fa-css-prefix}-glide:before { content: $fa-var-glide; }
+.#{$fa-css-prefix}-glide-g:before { content: $fa-var-glide-g; }
+.#{$fa-css-prefix}-signing:before,
+.#{$fa-css-prefix}-sign-language:before { content: $fa-var-sign-language; }
+.#{$fa-css-prefix}-low-vision:before { content: $fa-var-low-vision; }
+.#{$fa-css-prefix}-viadeo:before { content: $fa-var-viadeo; }
+.#{$fa-css-prefix}-viadeo-square:before { content: $fa-var-viadeo-square; }
+.#{$fa-css-prefix}-snapchat:before { content: $fa-var-snapchat; }
+.#{$fa-css-prefix}-snapchat-ghost:before { content: $fa-var-snapchat-ghost; }
+.#{$fa-css-prefix}-snapchat-square:before { content: $fa-var-snapchat-square; }
+.#{$fa-css-prefix}-pied-piper:before { content: $fa-var-pied-piper; }
+.#{$fa-css-prefix}-first-order:before { content: $fa-var-first-order; }
+.#{$fa-css-prefix}-yoast:before { content: $fa-var-yoast; }
+.#{$fa-css-prefix}-themeisle:before { content: $fa-var-themeisle; }
+.#{$fa-css-prefix}-google-plus-circle:before,
+.#{$fa-css-prefix}-google-plus-official:before { content: $fa-var-google-plus-official; }
+.#{$fa-css-prefix}-fa:before,
+.#{$fa-css-prefix}-font-awesome:before { content: $fa-var-font-awesome; }
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_larger.scss b/temas/chamitrip/fonts/font-awesome/scss/_larger.scss
new file mode 100644
index 0000000..41e9a81
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_larger.scss
@@ -0,0 +1,13 @@
+// Icon Sizes
+// -------------------------
+
+/* makes the font 33% larger relative to the icon container */
+.#{$fa-css-prefix}-lg {
+ font-size: (4em / 3);
+ line-height: (3em / 4);
+ vertical-align: -15%;
+}
+.#{$fa-css-prefix}-2x { font-size: 2em; }
+.#{$fa-css-prefix}-3x { font-size: 3em; }
+.#{$fa-css-prefix}-4x { font-size: 4em; }
+.#{$fa-css-prefix}-5x { font-size: 5em; }
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_list.scss b/temas/chamitrip/fonts/font-awesome/scss/_list.scss
new file mode 100644
index 0000000..7d1e4d5
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_list.scss
@@ -0,0 +1,19 @@
+// List Icons
+// -------------------------
+
+.#{$fa-css-prefix}-ul {
+ padding-left: 0;
+ margin-left: $fa-li-width;
+ list-style-type: none;
+ > li { position: relative; }
+}
+.#{$fa-css-prefix}-li {
+ position: absolute;
+ left: -$fa-li-width;
+ width: $fa-li-width;
+ top: (2em / 14);
+ text-align: center;
+ &.#{$fa-css-prefix}-lg {
+ left: -$fa-li-width + (4em / 14);
+ }
+}
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_mixins.scss b/temas/chamitrip/fonts/font-awesome/scss/_mixins.scss
new file mode 100644
index 0000000..c3bbd57
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_mixins.scss
@@ -0,0 +1,60 @@
+// Mixins
+// --------------------------
+
+@mixin fa-icon() {
+ display: inline-block;
+ font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
+ font-size: inherit; // can't have font-size inherit on line above, so need to override
+ text-rendering: auto; // optimizelegibility throws things off #1094
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+
+}
+
+@mixin fa-icon-rotate($degrees, $rotation) {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})";
+ -webkit-transform: rotate($degrees);
+ -ms-transform: rotate($degrees);
+ transform: rotate($degrees);
+}
+
+@mixin fa-icon-flip($horiz, $vert, $rotation) {
+ -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)";
+ -webkit-transform: scale($horiz, $vert);
+ -ms-transform: scale($horiz, $vert);
+ transform: scale($horiz, $vert);
+}
+
+
+// Only display content to screen readers. A la Bootstrap 4.
+//
+// See: http://a11yproject.com/posts/how-to-hide-content/
+
+@mixin sr-only {
+ position: absolute;
+ width: 1px;
+ height: 1px;
+ padding: 0;
+ margin: -1px;
+ overflow: hidden;
+ clip: rect(0,0,0,0);
+ border: 0;
+}
+
+// Use in conjunction with .sr-only to only display content when it's focused.
+//
+// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
+//
+// Credit: HTML5 Boilerplate
+
+@mixin sr-only-focusable {
+ &:active,
+ &:focus {
+ position: static;
+ width: auto;
+ height: auto;
+ margin: 0;
+ overflow: visible;
+ clip: auto;
+ }
+}
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_path.scss b/temas/chamitrip/fonts/font-awesome/scss/_path.scss
new file mode 100644
index 0000000..bb457c2
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_path.scss
@@ -0,0 +1,15 @@
+/* FONT PATH
+ * -------------------------- */
+
+@font-face {
+ font-family: 'FontAwesome';
+ src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}');
+ src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'),
+ url('#{$fa-font-path}/fontawesome-webfont.woff2?v=#{$fa-version}') format('woff2'),
+ url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'),
+ url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'),
+ url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg');
+// src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts
+ font-weight: normal;
+ font-style: normal;
+}
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_rotated-flipped.scss b/temas/chamitrip/fonts/font-awesome/scss/_rotated-flipped.scss
new file mode 100644
index 0000000..a3558fd
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_rotated-flipped.scss
@@ -0,0 +1,20 @@
+// Rotated & Flipped Icons
+// -------------------------
+
+.#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); }
+.#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); }
+.#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); }
+
+.#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); }
+.#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); }
+
+// Hook for IE8-9
+// -------------------------
+
+:root .#{$fa-css-prefix}-rotate-90,
+:root .#{$fa-css-prefix}-rotate-180,
+:root .#{$fa-css-prefix}-rotate-270,
+:root .#{$fa-css-prefix}-flip-horizontal,
+:root .#{$fa-css-prefix}-flip-vertical {
+ filter: none;
+}
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_screen-reader.scss b/temas/chamitrip/fonts/font-awesome/scss/_screen-reader.scss
new file mode 100644
index 0000000..637426f
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_screen-reader.scss
@@ -0,0 +1,5 @@
+// Screen Readers
+// -------------------------
+
+.sr-only { @include sr-only(); }
+.sr-only-focusable { @include sr-only-focusable(); }
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_stacked.scss b/temas/chamitrip/fonts/font-awesome/scss/_stacked.scss
new file mode 100644
index 0000000..aef7403
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_stacked.scss
@@ -0,0 +1,20 @@
+// Stacked Icons
+// -------------------------
+
+.#{$fa-css-prefix}-stack {
+ position: relative;
+ display: inline-block;
+ width: 2em;
+ height: 2em;
+ line-height: 2em;
+ vertical-align: middle;
+}
+.#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x {
+ position: absolute;
+ left: 0;
+ width: 100%;
+ text-align: center;
+}
+.#{$fa-css-prefix}-stack-1x { line-height: inherit; }
+.#{$fa-css-prefix}-stack-2x { font-size: 2em; }
+.#{$fa-css-prefix}-inverse { color: $fa-inverse; }
diff --git a/temas/chamitrip/fonts/font-awesome/scss/_variables.scss b/temas/chamitrip/fonts/font-awesome/scss/_variables.scss
new file mode 100644
index 0000000..a5a89ef
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/_variables.scss
@@ -0,0 +1,744 @@
+// Variables
+// --------------------------
+
+$fa-font-path: "../fonts" !default;
+$fa-font-size-base: 14px !default;
+$fa-line-height-base: 1 !default;
+//$fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.6.3/fonts" !default; // for referencing Bootstrap CDN font files directly
+$fa-css-prefix: fa !default;
+$fa-version: "4.6.3" !default;
+$fa-border-color: #eee !default;
+$fa-inverse: #fff !default;
+$fa-li-width: (30em / 14) !default;
+
+$fa-var-500px: "\f26e";
+$fa-var-adjust: "\f042";
+$fa-var-adn: "\f170";
+$fa-var-align-center: "\f037";
+$fa-var-align-justify: "\f039";
+$fa-var-align-left: "\f036";
+$fa-var-align-right: "\f038";
+$fa-var-amazon: "\f270";
+$fa-var-ambulance: "\f0f9";
+$fa-var-american-sign-language-interpreting: "\f2a3";
+$fa-var-anchor: "\f13d";
+$fa-var-android: "\f17b";
+$fa-var-angellist: "\f209";
+$fa-var-angle-double-down: "\f103";
+$fa-var-angle-double-left: "\f100";
+$fa-var-angle-double-right: "\f101";
+$fa-var-angle-double-up: "\f102";
+$fa-var-angle-down: "\f107";
+$fa-var-angle-left: "\f104";
+$fa-var-angle-right: "\f105";
+$fa-var-angle-up: "\f106";
+$fa-var-apple: "\f179";
+$fa-var-archive: "\f187";
+$fa-var-area-chart: "\f1fe";
+$fa-var-arrow-circle-down: "\f0ab";
+$fa-var-arrow-circle-left: "\f0a8";
+$fa-var-arrow-circle-o-down: "\f01a";
+$fa-var-arrow-circle-o-left: "\f190";
+$fa-var-arrow-circle-o-right: "\f18e";
+$fa-var-arrow-circle-o-up: "\f01b";
+$fa-var-arrow-circle-right: "\f0a9";
+$fa-var-arrow-circle-up: "\f0aa";
+$fa-var-arrow-down: "\f063";
+$fa-var-arrow-left: "\f060";
+$fa-var-arrow-right: "\f061";
+$fa-var-arrow-up: "\f062";
+$fa-var-arrows: "\f047";
+$fa-var-arrows-alt: "\f0b2";
+$fa-var-arrows-h: "\f07e";
+$fa-var-arrows-v: "\f07d";
+$fa-var-asl-interpreting: "\f2a3";
+$fa-var-assistive-listening-systems: "\f2a2";
+$fa-var-asterisk: "\f069";
+$fa-var-at: "\f1fa";
+$fa-var-audio-description: "\f29e";
+$fa-var-automobile: "\f1b9";
+$fa-var-backward: "\f04a";
+$fa-var-balance-scale: "\f24e";
+$fa-var-ban: "\f05e";
+$fa-var-bank: "\f19c";
+$fa-var-bar-chart: "\f080";
+$fa-var-bar-chart-o: "\f080";
+$fa-var-barcode: "\f02a";
+$fa-var-bars: "\f0c9";
+$fa-var-battery-0: "\f244";
+$fa-var-battery-1: "\f243";
+$fa-var-battery-2: "\f242";
+$fa-var-battery-3: "\f241";
+$fa-var-battery-4: "\f240";
+$fa-var-battery-empty: "\f244";
+$fa-var-battery-full: "\f240";
+$fa-var-battery-half: "\f242";
+$fa-var-battery-quarter: "\f243";
+$fa-var-battery-three-quarters: "\f241";
+$fa-var-bed: "\f236";
+$fa-var-beer: "\f0fc";
+$fa-var-behance: "\f1b4";
+$fa-var-behance-square: "\f1b5";
+$fa-var-bell: "\f0f3";
+$fa-var-bell-o: "\f0a2";
+$fa-var-bell-slash: "\f1f6";
+$fa-var-bell-slash-o: "\f1f7";
+$fa-var-bicycle: "\f206";
+$fa-var-binoculars: "\f1e5";
+$fa-var-birthday-cake: "\f1fd";
+$fa-var-bitbucket: "\f171";
+$fa-var-bitbucket-square: "\f172";
+$fa-var-bitcoin: "\f15a";
+$fa-var-black-tie: "\f27e";
+$fa-var-blind: "\f29d";
+$fa-var-bluetooth: "\f293";
+$fa-var-bluetooth-b: "\f294";
+$fa-var-bold: "\f032";
+$fa-var-bolt: "\f0e7";
+$fa-var-bomb: "\f1e2";
+$fa-var-book: "\f02d";
+$fa-var-bookmark: "\f02e";
+$fa-var-bookmark-o: "\f097";
+$fa-var-braille: "\f2a1";
+$fa-var-briefcase: "\f0b1";
+$fa-var-btc: "\f15a";
+$fa-var-bug: "\f188";
+$fa-var-building: "\f1ad";
+$fa-var-building-o: "\f0f7";
+$fa-var-bullhorn: "\f0a1";
+$fa-var-bullseye: "\f140";
+$fa-var-bus: "\f207";
+$fa-var-buysellads: "\f20d";
+$fa-var-cab: "\f1ba";
+$fa-var-calculator: "\f1ec";
+$fa-var-calendar: "\f073";
+$fa-var-calendar-check-o: "\f274";
+$fa-var-calendar-minus-o: "\f272";
+$fa-var-calendar-o: "\f133";
+$fa-var-calendar-plus-o: "\f271";
+$fa-var-calendar-times-o: "\f273";
+$fa-var-camera: "\f030";
+$fa-var-camera-retro: "\f083";
+$fa-var-car: "\f1b9";
+$fa-var-caret-down: "\f0d7";
+$fa-var-caret-left: "\f0d9";
+$fa-var-caret-right: "\f0da";
+$fa-var-caret-square-o-down: "\f150";
+$fa-var-caret-square-o-left: "\f191";
+$fa-var-caret-square-o-right: "\f152";
+$fa-var-caret-square-o-up: "\f151";
+$fa-var-caret-up: "\f0d8";
+$fa-var-cart-arrow-down: "\f218";
+$fa-var-cart-plus: "\f217";
+$fa-var-cc: "\f20a";
+$fa-var-cc-amex: "\f1f3";
+$fa-var-cc-diners-club: "\f24c";
+$fa-var-cc-discover: "\f1f2";
+$fa-var-cc-jcb: "\f24b";
+$fa-var-cc-mastercard: "\f1f1";
+$fa-var-cc-paypal: "\f1f4";
+$fa-var-cc-stripe: "\f1f5";
+$fa-var-cc-visa: "\f1f0";
+$fa-var-certificate: "\f0a3";
+$fa-var-chain: "\f0c1";
+$fa-var-chain-broken: "\f127";
+$fa-var-check: "\f00c";
+$fa-var-check-circle: "\f058";
+$fa-var-check-circle-o: "\f05d";
+$fa-var-check-square: "\f14a";
+$fa-var-check-square-o: "\f046";
+$fa-var-chevron-circle-down: "\f13a";
+$fa-var-chevron-circle-left: "\f137";
+$fa-var-chevron-circle-right: "\f138";
+$fa-var-chevron-circle-up: "\f139";
+$fa-var-chevron-down: "\f078";
+$fa-var-chevron-left: "\f053";
+$fa-var-chevron-right: "\f054";
+$fa-var-chevron-up: "\f077";
+$fa-var-child: "\f1ae";
+$fa-var-chrome: "\f268";
+$fa-var-circle: "\f111";
+$fa-var-circle-o: "\f10c";
+$fa-var-circle-o-notch: "\f1ce";
+$fa-var-circle-thin: "\f1db";
+$fa-var-clipboard: "\f0ea";
+$fa-var-clock-o: "\f017";
+$fa-var-clone: "\f24d";
+$fa-var-close: "\f00d";
+$fa-var-cloud: "\f0c2";
+$fa-var-cloud-download: "\f0ed";
+$fa-var-cloud-upload: "\f0ee";
+$fa-var-cny: "\f157";
+$fa-var-code: "\f121";
+$fa-var-code-fork: "\f126";
+$fa-var-codepen: "\f1cb";
+$fa-var-codiepie: "\f284";
+$fa-var-coffee: "\f0f4";
+$fa-var-cog: "\f013";
+$fa-var-cogs: "\f085";
+$fa-var-columns: "\f0db";
+$fa-var-comment: "\f075";
+$fa-var-comment-o: "\f0e5";
+$fa-var-commenting: "\f27a";
+$fa-var-commenting-o: "\f27b";
+$fa-var-comments: "\f086";
+$fa-var-comments-o: "\f0e6";
+$fa-var-compass: "\f14e";
+$fa-var-compress: "\f066";
+$fa-var-connectdevelop: "\f20e";
+$fa-var-contao: "\f26d";
+$fa-var-copy: "\f0c5";
+$fa-var-copyright: "\f1f9";
+$fa-var-creative-commons: "\f25e";
+$fa-var-credit-card: "\f09d";
+$fa-var-credit-card-alt: "\f283";
+$fa-var-crop: "\f125";
+$fa-var-crosshairs: "\f05b";
+$fa-var-css3: "\f13c";
+$fa-var-cube: "\f1b2";
+$fa-var-cubes: "\f1b3";
+$fa-var-cut: "\f0c4";
+$fa-var-cutlery: "\f0f5";
+$fa-var-dashboard: "\f0e4";
+$fa-var-dashcube: "\f210";
+$fa-var-database: "\f1c0";
+$fa-var-deaf: "\f2a4";
+$fa-var-deafness: "\f2a4";
+$fa-var-dedent: "\f03b";
+$fa-var-delicious: "\f1a5";
+$fa-var-desktop: "\f108";
+$fa-var-deviantart: "\f1bd";
+$fa-var-diamond: "\f219";
+$fa-var-digg: "\f1a6";
+$fa-var-dollar: "\f155";
+$fa-var-dot-circle-o: "\f192";
+$fa-var-download: "\f019";
+$fa-var-dribbble: "\f17d";
+$fa-var-dropbox: "\f16b";
+$fa-var-drupal: "\f1a9";
+$fa-var-edge: "\f282";
+$fa-var-edit: "\f044";
+$fa-var-eject: "\f052";
+$fa-var-ellipsis-h: "\f141";
+$fa-var-ellipsis-v: "\f142";
+$fa-var-empire: "\f1d1";
+$fa-var-envelope: "\f0e0";
+$fa-var-envelope-o: "\f003";
+$fa-var-envelope-square: "\f199";
+$fa-var-envira: "\f299";
+$fa-var-eraser: "\f12d";
+$fa-var-eur: "\f153";
+$fa-var-euro: "\f153";
+$fa-var-exchange: "\f0ec";
+$fa-var-exclamation: "\f12a";
+$fa-var-exclamation-circle: "\f06a";
+$fa-var-exclamation-triangle: "\f071";
+$fa-var-expand: "\f065";
+$fa-var-expeditedssl: "\f23e";
+$fa-var-external-link: "\f08e";
+$fa-var-external-link-square: "\f14c";
+$fa-var-eye: "\f06e";
+$fa-var-eye-slash: "\f070";
+$fa-var-eyedropper: "\f1fb";
+$fa-var-fa: "\f2b4";
+$fa-var-facebook: "\f09a";
+$fa-var-facebook-f: "\f09a";
+$fa-var-facebook-official: "\f230";
+$fa-var-facebook-square: "\f082";
+$fa-var-fast-backward: "\f049";
+$fa-var-fast-forward: "\f050";
+$fa-var-fax: "\f1ac";
+$fa-var-feed: "\f09e";
+$fa-var-female: "\f182";
+$fa-var-fighter-jet: "\f0fb";
+$fa-var-file: "\f15b";
+$fa-var-file-archive-o: "\f1c6";
+$fa-var-file-audio-o: "\f1c7";
+$fa-var-file-code-o: "\f1c9";
+$fa-var-file-excel-o: "\f1c3";
+$fa-var-file-image-o: "\f1c5";
+$fa-var-file-movie-o: "\f1c8";
+$fa-var-file-o: "\f016";
+$fa-var-file-pdf-o: "\f1c1";
+$fa-var-file-photo-o: "\f1c5";
+$fa-var-file-picture-o: "\f1c5";
+$fa-var-file-powerpoint-o: "\f1c4";
+$fa-var-file-sound-o: "\f1c7";
+$fa-var-file-text: "\f15c";
+$fa-var-file-text-o: "\f0f6";
+$fa-var-file-video-o: "\f1c8";
+$fa-var-file-word-o: "\f1c2";
+$fa-var-file-zip-o: "\f1c6";
+$fa-var-files-o: "\f0c5";
+$fa-var-film: "\f008";
+$fa-var-filter: "\f0b0";
+$fa-var-fire: "\f06d";
+$fa-var-fire-extinguisher: "\f134";
+$fa-var-firefox: "\f269";
+$fa-var-first-order: "\f2b0";
+$fa-var-flag: "\f024";
+$fa-var-flag-checkered: "\f11e";
+$fa-var-flag-o: "\f11d";
+$fa-var-flash: "\f0e7";
+$fa-var-flask: "\f0c3";
+$fa-var-flickr: "\f16e";
+$fa-var-floppy-o: "\f0c7";
+$fa-var-folder: "\f07b";
+$fa-var-folder-o: "\f114";
+$fa-var-folder-open: "\f07c";
+$fa-var-folder-open-o: "\f115";
+$fa-var-font: "\f031";
+$fa-var-font-awesome: "\f2b4";
+$fa-var-fonticons: "\f280";
+$fa-var-fort-awesome: "\f286";
+$fa-var-forumbee: "\f211";
+$fa-var-forward: "\f04e";
+$fa-var-foursquare: "\f180";
+$fa-var-frown-o: "\f119";
+$fa-var-futbol-o: "\f1e3";
+$fa-var-gamepad: "\f11b";
+$fa-var-gavel: "\f0e3";
+$fa-var-gbp: "\f154";
+$fa-var-ge: "\f1d1";
+$fa-var-gear: "\f013";
+$fa-var-gears: "\f085";
+$fa-var-genderless: "\f22d";
+$fa-var-get-pocket: "\f265";
+$fa-var-gg: "\f260";
+$fa-var-gg-circle: "\f261";
+$fa-var-gift: "\f06b";
+$fa-var-git: "\f1d3";
+$fa-var-git-square: "\f1d2";
+$fa-var-github: "\f09b";
+$fa-var-github-alt: "\f113";
+$fa-var-github-square: "\f092";
+$fa-var-gitlab: "\f296";
+$fa-var-gittip: "\f184";
+$fa-var-glass: "\f000";
+$fa-var-glide: "\f2a5";
+$fa-var-glide-g: "\f2a6";
+$fa-var-globe: "\f0ac";
+$fa-var-google: "\f1a0";
+$fa-var-google-plus: "\f0d5";
+$fa-var-google-plus-circle: "\f2b3";
+$fa-var-google-plus-official: "\f2b3";
+$fa-var-google-plus-square: "\f0d4";
+$fa-var-google-wallet: "\f1ee";
+$fa-var-graduation-cap: "\f19d";
+$fa-var-gratipay: "\f184";
+$fa-var-group: "\f0c0";
+$fa-var-h-square: "\f0fd";
+$fa-var-hacker-news: "\f1d4";
+$fa-var-hand-grab-o: "\f255";
+$fa-var-hand-lizard-o: "\f258";
+$fa-var-hand-o-down: "\f0a7";
+$fa-var-hand-o-left: "\f0a5";
+$fa-var-hand-o-right: "\f0a4";
+$fa-var-hand-o-up: "\f0a6";
+$fa-var-hand-paper-o: "\f256";
+$fa-var-hand-peace-o: "\f25b";
+$fa-var-hand-pointer-o: "\f25a";
+$fa-var-hand-rock-o: "\f255";
+$fa-var-hand-scissors-o: "\f257";
+$fa-var-hand-spock-o: "\f259";
+$fa-var-hand-stop-o: "\f256";
+$fa-var-hard-of-hearing: "\f2a4";
+$fa-var-hashtag: "\f292";
+$fa-var-hdd-o: "\f0a0";
+$fa-var-header: "\f1dc";
+$fa-var-headphones: "\f025";
+$fa-var-heart: "\f004";
+$fa-var-heart-o: "\f08a";
+$fa-var-heartbeat: "\f21e";
+$fa-var-history: "\f1da";
+$fa-var-home: "\f015";
+$fa-var-hospital-o: "\f0f8";
+$fa-var-hotel: "\f236";
+$fa-var-hourglass: "\f254";
+$fa-var-hourglass-1: "\f251";
+$fa-var-hourglass-2: "\f252";
+$fa-var-hourglass-3: "\f253";
+$fa-var-hourglass-end: "\f253";
+$fa-var-hourglass-half: "\f252";
+$fa-var-hourglass-o: "\f250";
+$fa-var-hourglass-start: "\f251";
+$fa-var-houzz: "\f27c";
+$fa-var-html5: "\f13b";
+$fa-var-i-cursor: "\f246";
+$fa-var-ils: "\f20b";
+$fa-var-image: "\f03e";
+$fa-var-inbox: "\f01c";
+$fa-var-indent: "\f03c";
+$fa-var-industry: "\f275";
+$fa-var-info: "\f129";
+$fa-var-info-circle: "\f05a";
+$fa-var-inr: "\f156";
+$fa-var-instagram: "\f16d";
+$fa-var-institution: "\f19c";
+$fa-var-internet-explorer: "\f26b";
+$fa-var-intersex: "\f224";
+$fa-var-ioxhost: "\f208";
+$fa-var-italic: "\f033";
+$fa-var-joomla: "\f1aa";
+$fa-var-jpy: "\f157";
+$fa-var-jsfiddle: "\f1cc";
+$fa-var-key: "\f084";
+$fa-var-keyboard-o: "\f11c";
+$fa-var-krw: "\f159";
+$fa-var-language: "\f1ab";
+$fa-var-laptop: "\f109";
+$fa-var-lastfm: "\f202";
+$fa-var-lastfm-square: "\f203";
+$fa-var-leaf: "\f06c";
+$fa-var-leanpub: "\f212";
+$fa-var-legal: "\f0e3";
+$fa-var-lemon-o: "\f094";
+$fa-var-level-down: "\f149";
+$fa-var-level-up: "\f148";
+$fa-var-life-bouy: "\f1cd";
+$fa-var-life-buoy: "\f1cd";
+$fa-var-life-ring: "\f1cd";
+$fa-var-life-saver: "\f1cd";
+$fa-var-lightbulb-o: "\f0eb";
+$fa-var-line-chart: "\f201";
+$fa-var-link: "\f0c1";
+$fa-var-linkedin: "\f0e1";
+$fa-var-linkedin-square: "\f08c";
+$fa-var-linux: "\f17c";
+$fa-var-list: "\f03a";
+$fa-var-list-alt: "\f022";
+$fa-var-list-ol: "\f0cb";
+$fa-var-list-ul: "\f0ca";
+$fa-var-location-arrow: "\f124";
+$fa-var-lock: "\f023";
+$fa-var-long-arrow-down: "\f175";
+$fa-var-long-arrow-left: "\f177";
+$fa-var-long-arrow-right: "\f178";
+$fa-var-long-arrow-up: "\f176";
+$fa-var-low-vision: "\f2a8";
+$fa-var-magic: "\f0d0";
+$fa-var-magnet: "\f076";
+$fa-var-mail-forward: "\f064";
+$fa-var-mail-reply: "\f112";
+$fa-var-mail-reply-all: "\f122";
+$fa-var-male: "\f183";
+$fa-var-map: "\f279";
+$fa-var-map-marker: "\f041";
+$fa-var-map-o: "\f278";
+$fa-var-map-pin: "\f276";
+$fa-var-map-signs: "\f277";
+$fa-var-mars: "\f222";
+$fa-var-mars-double: "\f227";
+$fa-var-mars-stroke: "\f229";
+$fa-var-mars-stroke-h: "\f22b";
+$fa-var-mars-stroke-v: "\f22a";
+$fa-var-maxcdn: "\f136";
+$fa-var-meanpath: "\f20c";
+$fa-var-medium: "\f23a";
+$fa-var-medkit: "\f0fa";
+$fa-var-meh-o: "\f11a";
+$fa-var-mercury: "\f223";
+$fa-var-microphone: "\f130";
+$fa-var-microphone-slash: "\f131";
+$fa-var-minus: "\f068";
+$fa-var-minus-circle: "\f056";
+$fa-var-minus-square: "\f146";
+$fa-var-minus-square-o: "\f147";
+$fa-var-mixcloud: "\f289";
+$fa-var-mobile: "\f10b";
+$fa-var-mobile-phone: "\f10b";
+$fa-var-modx: "\f285";
+$fa-var-money: "\f0d6";
+$fa-var-moon-o: "\f186";
+$fa-var-mortar-board: "\f19d";
+$fa-var-motorcycle: "\f21c";
+$fa-var-mouse-pointer: "\f245";
+$fa-var-music: "\f001";
+$fa-var-navicon: "\f0c9";
+$fa-var-neuter: "\f22c";
+$fa-var-newspaper-o: "\f1ea";
+$fa-var-object-group: "\f247";
+$fa-var-object-ungroup: "\f248";
+$fa-var-odnoklassniki: "\f263";
+$fa-var-odnoklassniki-square: "\f264";
+$fa-var-opencart: "\f23d";
+$fa-var-openid: "\f19b";
+$fa-var-opera: "\f26a";
+$fa-var-optin-monster: "\f23c";
+$fa-var-outdent: "\f03b";
+$fa-var-pagelines: "\f18c";
+$fa-var-paint-brush: "\f1fc";
+$fa-var-paper-plane: "\f1d8";
+$fa-var-paper-plane-o: "\f1d9";
+$fa-var-paperclip: "\f0c6";
+$fa-var-paragraph: "\f1dd";
+$fa-var-paste: "\f0ea";
+$fa-var-pause: "\f04c";
+$fa-var-pause-circle: "\f28b";
+$fa-var-pause-circle-o: "\f28c";
+$fa-var-paw: "\f1b0";
+$fa-var-paypal: "\f1ed";
+$fa-var-pencil: "\f040";
+$fa-var-pencil-square: "\f14b";
+$fa-var-pencil-square-o: "\f044";
+$fa-var-percent: "\f295";
+$fa-var-phone: "\f095";
+$fa-var-phone-square: "\f098";
+$fa-var-photo: "\f03e";
+$fa-var-picture-o: "\f03e";
+$fa-var-pie-chart: "\f200";
+$fa-var-pied-piper: "\f2ae";
+$fa-var-pied-piper-alt: "\f1a8";
+$fa-var-pied-piper-pp: "\f1a7";
+$fa-var-pinterest: "\f0d2";
+$fa-var-pinterest-p: "\f231";
+$fa-var-pinterest-square: "\f0d3";
+$fa-var-plane: "\f072";
+$fa-var-play: "\f04b";
+$fa-var-play-circle: "\f144";
+$fa-var-play-circle-o: "\f01d";
+$fa-var-plug: "\f1e6";
+$fa-var-plus: "\f067";
+$fa-var-plus-circle: "\f055";
+$fa-var-plus-square: "\f0fe";
+$fa-var-plus-square-o: "\f196";
+$fa-var-power-off: "\f011";
+$fa-var-print: "\f02f";
+$fa-var-product-hunt: "\f288";
+$fa-var-puzzle-piece: "\f12e";
+$fa-var-qq: "\f1d6";
+$fa-var-qrcode: "\f029";
+$fa-var-question: "\f128";
+$fa-var-question-circle: "\f059";
+$fa-var-question-circle-o: "\f29c";
+$fa-var-quote-left: "\f10d";
+$fa-var-quote-right: "\f10e";
+$fa-var-ra: "\f1d0";
+$fa-var-random: "\f074";
+$fa-var-rebel: "\f1d0";
+$fa-var-recycle: "\f1b8";
+$fa-var-reddit: "\f1a1";
+$fa-var-reddit-alien: "\f281";
+$fa-var-reddit-square: "\f1a2";
+$fa-var-refresh: "\f021";
+$fa-var-registered: "\f25d";
+$fa-var-remove: "\f00d";
+$fa-var-renren: "\f18b";
+$fa-var-reorder: "\f0c9";
+$fa-var-repeat: "\f01e";
+$fa-var-reply: "\f112";
+$fa-var-reply-all: "\f122";
+$fa-var-resistance: "\f1d0";
+$fa-var-retweet: "\f079";
+$fa-var-rmb: "\f157";
+$fa-var-road: "\f018";
+$fa-var-rocket: "\f135";
+$fa-var-rotate-left: "\f0e2";
+$fa-var-rotate-right: "\f01e";
+$fa-var-rouble: "\f158";
+$fa-var-rss: "\f09e";
+$fa-var-rss-square: "\f143";
+$fa-var-rub: "\f158";
+$fa-var-ruble: "\f158";
+$fa-var-rupee: "\f156";
+$fa-var-safari: "\f267";
+$fa-var-save: "\f0c7";
+$fa-var-scissors: "\f0c4";
+$fa-var-scribd: "\f28a";
+$fa-var-search: "\f002";
+$fa-var-search-minus: "\f010";
+$fa-var-search-plus: "\f00e";
+$fa-var-sellsy: "\f213";
+$fa-var-send: "\f1d8";
+$fa-var-send-o: "\f1d9";
+$fa-var-server: "\f233";
+$fa-var-share: "\f064";
+$fa-var-share-alt: "\f1e0";
+$fa-var-share-alt-square: "\f1e1";
+$fa-var-share-square: "\f14d";
+$fa-var-share-square-o: "\f045";
+$fa-var-shekel: "\f20b";
+$fa-var-sheqel: "\f20b";
+$fa-var-shield: "\f132";
+$fa-var-ship: "\f21a";
+$fa-var-shirtsinbulk: "\f214";
+$fa-var-shopping-bag: "\f290";
+$fa-var-shopping-basket: "\f291";
+$fa-var-shopping-cart: "\f07a";
+$fa-var-sign-in: "\f090";
+$fa-var-sign-language: "\f2a7";
+$fa-var-sign-out: "\f08b";
+$fa-var-signal: "\f012";
+$fa-var-signing: "\f2a7";
+$fa-var-simplybuilt: "\f215";
+$fa-var-sitemap: "\f0e8";
+$fa-var-skyatlas: "\f216";
+$fa-var-skype: "\f17e";
+$fa-var-slack: "\f198";
+$fa-var-sliders: "\f1de";
+$fa-var-slideshare: "\f1e7";
+$fa-var-smile-o: "\f118";
+$fa-var-snapchat: "\f2ab";
+$fa-var-snapchat-ghost: "\f2ac";
+$fa-var-snapchat-square: "\f2ad";
+$fa-var-soccer-ball-o: "\f1e3";
+$fa-var-sort: "\f0dc";
+$fa-var-sort-alpha-asc: "\f15d";
+$fa-var-sort-alpha-desc: "\f15e";
+$fa-var-sort-amount-asc: "\f160";
+$fa-var-sort-amount-desc: "\f161";
+$fa-var-sort-asc: "\f0de";
+$fa-var-sort-desc: "\f0dd";
+$fa-var-sort-down: "\f0dd";
+$fa-var-sort-numeric-asc: "\f162";
+$fa-var-sort-numeric-desc: "\f163";
+$fa-var-sort-up: "\f0de";
+$fa-var-soundcloud: "\f1be";
+$fa-var-space-shuttle: "\f197";
+$fa-var-spinner: "\f110";
+$fa-var-spoon: "\f1b1";
+$fa-var-spotify: "\f1bc";
+$fa-var-square: "\f0c8";
+$fa-var-square-o: "\f096";
+$fa-var-stack-exchange: "\f18d";
+$fa-var-stack-overflow: "\f16c";
+$fa-var-star: "\f005";
+$fa-var-star-half: "\f089";
+$fa-var-star-half-empty: "\f123";
+$fa-var-star-half-full: "\f123";
+$fa-var-star-half-o: "\f123";
+$fa-var-star-o: "\f006";
+$fa-var-steam: "\f1b6";
+$fa-var-steam-square: "\f1b7";
+$fa-var-step-backward: "\f048";
+$fa-var-step-forward: "\f051";
+$fa-var-stethoscope: "\f0f1";
+$fa-var-sticky-note: "\f249";
+$fa-var-sticky-note-o: "\f24a";
+$fa-var-stop: "\f04d";
+$fa-var-stop-circle: "\f28d";
+$fa-var-stop-circle-o: "\f28e";
+$fa-var-street-view: "\f21d";
+$fa-var-strikethrough: "\f0cc";
+$fa-var-stumbleupon: "\f1a4";
+$fa-var-stumbleupon-circle: "\f1a3";
+$fa-var-subscript: "\f12c";
+$fa-var-subway: "\f239";
+$fa-var-suitcase: "\f0f2";
+$fa-var-sun-o: "\f185";
+$fa-var-superscript: "\f12b";
+$fa-var-support: "\f1cd";
+$fa-var-table: "\f0ce";
+$fa-var-tablet: "\f10a";
+$fa-var-tachometer: "\f0e4";
+$fa-var-tag: "\f02b";
+$fa-var-tags: "\f02c";
+$fa-var-tasks: "\f0ae";
+$fa-var-taxi: "\f1ba";
+$fa-var-television: "\f26c";
+$fa-var-tencent-weibo: "\f1d5";
+$fa-var-terminal: "\f120";
+$fa-var-text-height: "\f034";
+$fa-var-text-width: "\f035";
+$fa-var-th: "\f00a";
+$fa-var-th-large: "\f009";
+$fa-var-th-list: "\f00b";
+$fa-var-themeisle: "\f2b2";
+$fa-var-thumb-tack: "\f08d";
+$fa-var-thumbs-down: "\f165";
+$fa-var-thumbs-o-down: "\f088";
+$fa-var-thumbs-o-up: "\f087";
+$fa-var-thumbs-up: "\f164";
+$fa-var-ticket: "\f145";
+$fa-var-times: "\f00d";
+$fa-var-times-circle: "\f057";
+$fa-var-times-circle-o: "\f05c";
+$fa-var-tint: "\f043";
+$fa-var-toggle-down: "\f150";
+$fa-var-toggle-left: "\f191";
+$fa-var-toggle-off: "\f204";
+$fa-var-toggle-on: "\f205";
+$fa-var-toggle-right: "\f152";
+$fa-var-toggle-up: "\f151";
+$fa-var-trademark: "\f25c";
+$fa-var-train: "\f238";
+$fa-var-transgender: "\f224";
+$fa-var-transgender-alt: "\f225";
+$fa-var-trash: "\f1f8";
+$fa-var-trash-o: "\f014";
+$fa-var-tree: "\f1bb";
+$fa-var-trello: "\f181";
+$fa-var-tripadvisor: "\f262";
+$fa-var-trophy: "\f091";
+$fa-var-truck: "\f0d1";
+$fa-var-try: "\f195";
+$fa-var-tty: "\f1e4";
+$fa-var-tumblr: "\f173";
+$fa-var-tumblr-square: "\f174";
+$fa-var-turkish-lira: "\f195";
+$fa-var-tv: "\f26c";
+$fa-var-twitch: "\f1e8";
+$fa-var-twitter: "\f099";
+$fa-var-twitter-square: "\f081";
+$fa-var-umbrella: "\f0e9";
+$fa-var-underline: "\f0cd";
+$fa-var-undo: "\f0e2";
+$fa-var-universal-access: "\f29a";
+$fa-var-university: "\f19c";
+$fa-var-unlink: "\f127";
+$fa-var-unlock: "\f09c";
+$fa-var-unlock-alt: "\f13e";
+$fa-var-unsorted: "\f0dc";
+$fa-var-upload: "\f093";
+$fa-var-usb: "\f287";
+$fa-var-usd: "\f155";
+$fa-var-user: "\f007";
+$fa-var-user-md: "\f0f0";
+$fa-var-user-plus: "\f234";
+$fa-var-user-secret: "\f21b";
+$fa-var-user-times: "\f235";
+$fa-var-users: "\f0c0";
+$fa-var-venus: "\f221";
+$fa-var-venus-double: "\f226";
+$fa-var-venus-mars: "\f228";
+$fa-var-viacoin: "\f237";
+$fa-var-viadeo: "\f2a9";
+$fa-var-viadeo-square: "\f2aa";
+$fa-var-video-camera: "\f03d";
+$fa-var-vimeo: "\f27d";
+$fa-var-vimeo-square: "\f194";
+$fa-var-vine: "\f1ca";
+$fa-var-vk: "\f189";
+$fa-var-volume-control-phone: "\f2a0";
+$fa-var-volume-down: "\f027";
+$fa-var-volume-off: "\f026";
+$fa-var-volume-up: "\f028";
+$fa-var-warning: "\f071";
+$fa-var-wechat: "\f1d7";
+$fa-var-weibo: "\f18a";
+$fa-var-weixin: "\f1d7";
+$fa-var-whatsapp: "\f232";
+$fa-var-wheelchair: "\f193";
+$fa-var-wheelchair-alt: "\f29b";
+$fa-var-wifi: "\f1eb";
+$fa-var-wikipedia-w: "\f266";
+$fa-var-windows: "\f17a";
+$fa-var-won: "\f159";
+$fa-var-wordpress: "\f19a";
+$fa-var-wpbeginner: "\f297";
+$fa-var-wpforms: "\f298";
+$fa-var-wrench: "\f0ad";
+$fa-var-xing: "\f168";
+$fa-var-xing-square: "\f169";
+$fa-var-y-combinator: "\f23b";
+$fa-var-y-combinator-square: "\f1d4";
+$fa-var-yahoo: "\f19e";
+$fa-var-yc: "\f23b";
+$fa-var-yc-square: "\f1d4";
+$fa-var-yelp: "\f1e9";
+$fa-var-yen: "\f157";
+$fa-var-yoast: "\f2b1";
+$fa-var-youtube: "\f167";
+$fa-var-youtube-play: "\f16a";
+$fa-var-youtube-square: "\f166";
+
diff --git a/temas/chamitrip/fonts/font-awesome/scss/font-awesome.scss b/temas/chamitrip/fonts/font-awesome/scss/font-awesome.scss
new file mode 100644
index 0000000..2308b14
--- /dev/null
+++ b/temas/chamitrip/fonts/font-awesome/scss/font-awesome.scss
@@ -0,0 +1,18 @@
+/*!
+ * Font Awesome 4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
+ * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
+ */
+
+@import "variables";
+@import "mixins";
+@import "path";
+@import "core";
+@import "larger";
+@import "fixed-width";
+@import "list";
+@import "bordered-pulled";
+@import "animated";
+@import "rotated-flipped";
+@import "stacked";
+@import "icons";
+@import "screen-reader";
diff --git a/temas/chamitrip/img/portfolio/cabin.png b/temas/chamitrip/img/portfolio/cabin.png
new file mode 100644
index 0000000..c64c59e
Binary files /dev/null and b/temas/chamitrip/img/portfolio/cabin.png differ
diff --git a/temas/chamitrip/img/portfolio/cake.png b/temas/chamitrip/img/portfolio/cake.png
new file mode 100644
index 0000000..a16c3fe
Binary files /dev/null and b/temas/chamitrip/img/portfolio/cake.png differ
diff --git a/temas/chamitrip/img/portfolio/circus.png b/temas/chamitrip/img/portfolio/circus.png
new file mode 100644
index 0000000..b3f5142
Binary files /dev/null and b/temas/chamitrip/img/portfolio/circus.png differ
diff --git a/temas/chamitrip/img/portfolio/game.png b/temas/chamitrip/img/portfolio/game.png
new file mode 100644
index 0000000..85420e8
Binary files /dev/null and b/temas/chamitrip/img/portfolio/game.png differ
diff --git a/temas/chamitrip/img/portfolio/safe.png b/temas/chamitrip/img/portfolio/safe.png
new file mode 100644
index 0000000..445942c
Binary files /dev/null and b/temas/chamitrip/img/portfolio/safe.png differ
diff --git a/temas/chamitrip/img/portfolio/submarine.png b/temas/chamitrip/img/portfolio/submarine.png
new file mode 100644
index 0000000..6711d6e
Binary files /dev/null and b/temas/chamitrip/img/portfolio/submarine.png differ
diff --git a/temas/chamitrip/img/profile.png b/temas/chamitrip/img/profile.png
new file mode 100644
index 0000000..9799a6a
Binary files /dev/null and b/temas/chamitrip/img/profile.png differ
diff --git a/temas/chamitrip/index.php b/temas/chamitrip/index.php
new file mode 100644
index 0000000..8d1c8b6
--- /dev/null
+++ b/temas/chamitrip/index.php
@@ -0,0 +1 @@
+
diff --git a/temas/chamitrip/js/contact_me.js b/temas/chamitrip/js/contact_me.js
new file mode 100644
index 0000000..11772b4
--- /dev/null
+++ b/temas/chamitrip/js/contact_me.js
@@ -0,0 +1,73 @@
+$(function() {
+
+ $("#contactForm input,#contactForm textarea").jqBootstrapValidation({
+ preventSubmit: true,
+ submitError: function($form, event, errors) {
+ // additional error messages or events
+ },
+ submitSuccess: function($form, event) {
+ // Prevent spam click and default submit behaviour
+ $("#btnSubmit").attr("disabled", true);
+ event.preventDefault();
+
+ // get values from FORM
+ var name = $("input#name").val();
+ var email = $("input#email").val();
+ var phone = $("input#phone").val();
+ var message = $("textarea#message").val();
+ var firstName = name; // For Success/Failure Message
+ // Check for white space in name for Success/Fail message
+ if (firstName.indexOf(' ') >= 0) {
+ firstName = name.split(' ').slice(0, -1).join(' ');
+ }
+ $.ajax({
+ url: "././mail/contact_me.php",
+ type: "POST",
+ data: {
+ name: name,
+ phone: phone,
+ email: email,
+ message: message
+ },
+ cache: false,
+ success: function() {
+ // Enable button & show success message
+ $("#btnSubmit").attr("disabled", false);
+ $('#success').html("");
+ $('#success > .alert-success').html("×")
+ .append(" ");
+ $('#success > .alert-success')
+ .append("Your message has been sent. ");
+ $('#success > .alert-success')
+ .append('
');
+
+ //clear all fields
+ $('#contactForm').trigger("reset");
+ },
+ error: function() {
+ // Fail message
+ $('#success').html("");
+ $('#success > .alert-danger').html("×")
+ .append(" ");
+ $('#success > .alert-danger').append("Sorry " + firstName + ", it seems that my mail server is not responding. Please try again later!");
+ $('#success > .alert-danger').append('
');
+ //clear all fields
+ $('#contactForm').trigger("reset");
+ },
+ });
+ },
+ filter: function() {
+ return $(this).is(":visible");
+ },
+ });
+
+ $("a[data-toggle=\"tab\"]").click(function(e) {
+ e.preventDefault();
+ $(this).tab("show");
+ });
+});
+
+// When clicking on Full hide fail/success boxes
+$('#name').focus(function() {
+ $('#success').html('');
+});
diff --git a/temas/chamitrip/js/freelancer.js b/temas/chamitrip/js/freelancer.js
new file mode 100644
index 0000000..47671b2
--- /dev/null
+++ b/temas/chamitrip/js/freelancer.js
@@ -0,0 +1,47 @@
+// Freelancer Theme JavaScript
+
+(function($) {
+ "use strict"; // Start of use strict
+
+ $.material.init();
+
+ // jQuery for page scrolling feature - requires jQuery Easing plugin
+ $('.page-scroll a').bind('click', function(event) {
+ var $anchor = $(this);
+ $('html, body').stop().animate({
+ scrollTop: ($($anchor.attr('href')).offset().top - 50)
+ }, 1250, 'easeInOutExpo');
+ event.preventDefault();
+ });
+
+ // Highlight the top nav as scrolling occurs
+ $('body').scrollspy({
+ target: '.navbar-fixed-top',
+ offset: 51
+ });
+
+ // Closes the Responsive Menu on Menu Item Click
+ $('.navbar-collapse ul li a').click(function(){
+ $('.navbar-toggle:visible').click();
+ });
+
+ // Offset for Main Navigation
+ var r =$('#mainNav').affix({
+ offset: {
+ top: 100
+ }
+ });
+ console.log( r );
+
+ // Floating label headings for the contact form
+ $(function() {
+ $("body").on("input propertychange", ".floating-label-form-group", function(e) {
+ $(this).toggleClass("floating-label-form-group-with-value", !!$(e.target).val());
+ }).on("focus", ".floating-label-form-group", function() {
+ $(this).addClass("floating-label-form-group-with-focus");
+ }).on("blur", ".floating-label-form-group", function() {
+ $(this).removeClass("floating-label-form-group-with-focus");
+ });
+ });
+
+})(jQuery); // End of use strict
diff --git a/temas/chamitrip/js/freelancer.min.js b/temas/chamitrip/js/freelancer.min.js
new file mode 100644
index 0000000..ea28387
--- /dev/null
+++ b/temas/chamitrip/js/freelancer.min.js
@@ -0,0 +1,6 @@
+/*!
+ * Start Bootstrap - Freelancer v3.3.7+1 (http://startbootstrap.com/template-overviews/freelancer)
+ * Copyright 2013-2016 Start Bootstrap
+ * Licensed under MIT (https://github.com/BlackrockDigital/startbootstrap/blob/gh-pages/LICENSE)
+ */
+!function(o){"use strict";o.material.init();o(".page-scroll a").bind("click",function(t){var l=o(this);o("html, body").stop().animate({scrollTop:o(l.attr("href")).offset().top-50},1250,"easeInOutExpo"),t.preventDefault()}),o("body").scrollspy({target:".navbar-fixed-top",offset:51}),o(".navbar-collapse ul li a").click(function(){o(".navbar-toggle:visible").click()}),o("#mainNav").affix({offset:{top:100}}),o(function(){o("body").on("input propertychange",".floating-label-form-group",function(t){o(this).toggleClass("floating-label-form-group-with-value",!!o(t.target).val())}).on("focus",".floating-label-form-group",function(){o(this).addClass("floating-label-form-group-with-focus")}).on("blur",".floating-label-form-group",function(){o(this).removeClass("floating-label-form-group-with-focus")})})}(jQuery);
\ No newline at end of file
diff --git a/temas/chamitrip/js/jqBootstrapValidation.js b/temas/chamitrip/js/jqBootstrapValidation.js
new file mode 100644
index 0000000..29cbb08
--- /dev/null
+++ b/temas/chamitrip/js/jqBootstrapValidation.js
@@ -0,0 +1,912 @@
+/* jqBootstrapValidation
+ * A plugin for automating validation on Twitter Bootstrap formatted forms.
+ *
+ * v1.3.6
+ *
+ * License: MIT - see LICENSE file
+ *
+ * http://ReactiveRaven.github.com/jqBootstrapValidation/
+ */
+
+(function( $ ){
+
+ var createdElements = [];
+
+ var defaults = {
+ options: {
+ prependExistingHelpBlock: false,
+ sniffHtml: true, // sniff for 'required', 'maxlength', etc
+ preventSubmit: true, // stop the form submit event from firing if validation fails
+ submitError: false, // function called if there is an error when trying to submit
+ submitSuccess: false, // function called just before a successful submit event is sent to the server
+ semanticallyStrict: false, // set to true to tidy up generated HTML output
+ autoAdd: {
+ helpBlocks: true
+ },
+ filter: function () {
+ // return $(this).is(":visible"); // only validate elements you can see
+ return true; // validate everything
+ }
+ },
+ methods: {
+ init : function( options ) {
+
+ var settings = $.extend(true, {}, defaults);
+
+ settings.options = $.extend(true, settings.options, options);
+
+ var $siblingElements = this;
+
+ var uniqueForms = $.unique(
+ $siblingElements.map( function () {
+ return $(this).parents("form")[0];
+ }).toArray()
+ );
+
+ $(uniqueForms).bind("submit", function (e) {
+ var $form = $(this);
+ var warningsFound = 0;
+ var $inputs = $form.find("input,textarea,select").not("[type=submit],[type=image]").filter(settings.options.filter);
+ $inputs.trigger("submit.validation").trigger("validationLostFocus.validation");
+
+ $inputs.each(function (i, el) {
+ var $this = $(el),
+ $controlGroup = $this.parents(".control-group").first();
+ if (
+ $controlGroup.hasClass("warning")
+ ) {
+ $controlGroup.removeClass("warning").addClass("error");
+ warningsFound++;
+ }
+ });
+
+ $inputs.trigger("validationLostFocus.validation");
+
+ if (warningsFound) {
+ if (settings.options.preventSubmit) {
+ e.preventDefault();
+ }
+ $form.addClass("error");
+ if ($.isFunction(settings.options.submitError)) {
+ settings.options.submitError($form, e, $inputs.jqBootstrapValidation("collectErrors", true));
+ }
+ } else {
+ $form.removeClass("error");
+ if ($.isFunction(settings.options.submitSuccess)) {
+ settings.options.submitSuccess($form, e);
+ }
+ }
+ });
+
+ return this.each(function(){
+
+ // Get references to everything we're interested in
+ var $this = $(this),
+ $controlGroup = $this.parents(".control-group").first(),
+ $helpBlock = $controlGroup.find(".help-block").first(),
+ $form = $this.parents("form").first(),
+ validatorNames = [];
+
+ // create message container if not exists
+ if (!$helpBlock.length && settings.options.autoAdd && settings.options.autoAdd.helpBlocks) {
+ $helpBlock = $('
');
+ $controlGroup.find('.controls').append($helpBlock);
+ createdElements.push($helpBlock[0]);
+ }
+
+ // =============================================================
+ // SNIFF HTML FOR VALIDATORS
+ // =============================================================
+
+ // *snort sniff snuffle*
+
+ if (settings.options.sniffHtml) {
+ var message = "";
+ // ---------------------------------------------------------
+ // PATTERN
+ // ---------------------------------------------------------
+ if ($this.attr("pattern") !== undefined) {
+ message = "Not in the expected format";
+ if ($this.data("validationPatternMessage")) {
+ message = $this.data("validationPatternMessage");
+ }
+ $this.data("validationPatternMessage", message);
+ $this.data("validationPatternRegex", $this.attr("pattern"));
+ }
+ // ---------------------------------------------------------
+ // MAX
+ // ---------------------------------------------------------
+ if ($this.attr("max") !== undefined || $this.attr("aria-valuemax") !== undefined) {
+ var max = ($this.attr("max") !== undefined ? $this.attr("max") : $this.attr("aria-valuemax"));
+ message = "Too high: Maximum of '" + max + "'";
+ if ($this.data("validationMaxMessage")) {
+ message = $this.data("validationMaxMessage");
+ }
+ $this.data("validationMaxMessage", message);
+ $this.data("validationMaxMax", max);
+ }
+ // ---------------------------------------------------------
+ // MIN
+ // ---------------------------------------------------------
+ if ($this.attr("min") !== undefined || $this.attr("aria-valuemin") !== undefined) {
+ var min = ($this.attr("min") !== undefined ? $this.attr("min") : $this.attr("aria-valuemin"));
+ message = "Too low: Minimum of '" + min + "'";
+ if ($this.data("validationMinMessage")) {
+ message = $this.data("validationMinMessage");
+ }
+ $this.data("validationMinMessage", message);
+ $this.data("validationMinMin", min);
+ }
+ // ---------------------------------------------------------
+ // MAXLENGTH
+ // ---------------------------------------------------------
+ if ($this.attr("maxlength") !== undefined) {
+ message = "Too long: Maximum of '" + $this.attr("maxlength") + "' characters";
+ if ($this.data("validationMaxlengthMessage")) {
+ message = $this.data("validationMaxlengthMessage");
+ }
+ $this.data("validationMaxlengthMessage", message);
+ $this.data("validationMaxlengthMaxlength", $this.attr("maxlength"));
+ }
+ // ---------------------------------------------------------
+ // MINLENGTH
+ // ---------------------------------------------------------
+ if ($this.attr("minlength") !== undefined) {
+ message = "Too short: Minimum of '" + $this.attr("minlength") + "' characters";
+ if ($this.data("validationMinlengthMessage")) {
+ message = $this.data("validationMinlengthMessage");
+ }
+ $this.data("validationMinlengthMessage", message);
+ $this.data("validationMinlengthMinlength", $this.attr("minlength"));
+ }
+ // ---------------------------------------------------------
+ // REQUIRED
+ // ---------------------------------------------------------
+ if ($this.attr("required") !== undefined || $this.attr("aria-required") !== undefined) {
+ message = settings.builtInValidators.required.message;
+ if ($this.data("validationRequiredMessage")) {
+ message = $this.data("validationRequiredMessage");
+ }
+ $this.data("validationRequiredMessage", message);
+ }
+ // ---------------------------------------------------------
+ // NUMBER
+ // ---------------------------------------------------------
+ if ($this.attr("type") !== undefined && $this.attr("type").toLowerCase() === "number") {
+ message = settings.builtInValidators.number.message;
+ if ($this.data("validationNumberMessage")) {
+ message = $this.data("validationNumberMessage");
+ }
+ $this.data("validationNumberMessage", message);
+ }
+ // ---------------------------------------------------------
+ // EMAIL
+ // ---------------------------------------------------------
+ if ($this.attr("type") !== undefined && $this.attr("type").toLowerCase() === "email") {
+ message = "Not a valid email address";
+ if ($this.data("validationValidemailMessage")) {
+ message = $this.data("validationValidemailMessage");
+ } else if ($this.data("validationEmailMessage")) {
+ message = $this.data("validationEmailMessage");
+ }
+ $this.data("validationValidemailMessage", message);
+ }
+ // ---------------------------------------------------------
+ // MINCHECKED
+ // ---------------------------------------------------------
+ if ($this.attr("minchecked") !== undefined) {
+ message = "Not enough options checked; Minimum of '" + $this.attr("minchecked") + "' required";
+ if ($this.data("validationMincheckedMessage")) {
+ message = $this.data("validationMincheckedMessage");
+ }
+ $this.data("validationMincheckedMessage", message);
+ $this.data("validationMincheckedMinchecked", $this.attr("minchecked"));
+ }
+ // ---------------------------------------------------------
+ // MAXCHECKED
+ // ---------------------------------------------------------
+ if ($this.attr("maxchecked") !== undefined) {
+ message = "Too many options checked; Maximum of '" + $this.attr("maxchecked") + "' required";
+ if ($this.data("validationMaxcheckedMessage")) {
+ message = $this.data("validationMaxcheckedMessage");
+ }
+ $this.data("validationMaxcheckedMessage", message);
+ $this.data("validationMaxcheckedMaxchecked", $this.attr("maxchecked"));
+ }
+ }
+
+ // =============================================================
+ // COLLECT VALIDATOR NAMES
+ // =============================================================
+
+ // Get named validators
+ if ($this.data("validation") !== undefined) {
+ validatorNames = $this.data("validation").split(",");
+ }
+
+ // Get extra ones defined on the element's data attributes
+ $.each($this.data(), function (i, el) {
+ var parts = i.replace(/([A-Z])/g, ",$1").split(",");
+ if (parts[0] === "validation" && parts[1]) {
+ validatorNames.push(parts[1]);
+ }
+ });
+
+ // =============================================================
+ // NORMALISE VALIDATOR NAMES
+ // =============================================================
+
+ var validatorNamesToInspect = validatorNames;
+ var newValidatorNamesToInspect = [];
+
+ do // repeatedly expand 'shortcut' validators into their real validators
+ {
+ // Uppercase only the first letter of each name
+ $.each(validatorNames, function (i, el) {
+ validatorNames[i] = formatValidatorName(el);
+ });
+
+ // Remove duplicate validator names
+ validatorNames = $.unique(validatorNames);
+
+ // Pull out the new validator names from each shortcut
+ newValidatorNamesToInspect = [];
+ $.each(validatorNamesToInspect, function(i, el) {
+ if ($this.data("validation" + el + "Shortcut") !== undefined) {
+ // Are these custom validators?
+ // Pull them out!
+ $.each($this.data("validation" + el + "Shortcut").split(","), function(i2, el2) {
+ newValidatorNamesToInspect.push(el2);
+ });
+ } else if (settings.builtInValidators[el.toLowerCase()]) {
+ // Is this a recognised built-in?
+ // Pull it out!
+ var validator = settings.builtInValidators[el.toLowerCase()];
+ if (validator.type.toLowerCase() === "shortcut") {
+ $.each(validator.shortcut.split(","), function (i, el) {
+ el = formatValidatorName(el);
+ newValidatorNamesToInspect.push(el);
+ validatorNames.push(el);
+ });
+ }
+ }
+ });
+
+ validatorNamesToInspect = newValidatorNamesToInspect;
+
+ } while (validatorNamesToInspect.length > 0)
+
+ // =============================================================
+ // SET UP VALIDATOR ARRAYS
+ // =============================================================
+
+ var validators = {};
+
+ $.each(validatorNames, function (i, el) {
+ // Set up the 'override' message
+ var message = $this.data("validation" + el + "Message");
+ var hasOverrideMessage = (message !== undefined);
+ var foundValidator = false;
+ message =
+ (
+ message
+ ? message
+ : "'" + el + "' validation failed "
+ )
+ ;
+
+ $.each(
+ settings.validatorTypes,
+ function (validatorType, validatorTemplate) {
+ if (validators[validatorType] === undefined) {
+ validators[validatorType] = [];
+ }
+ if (!foundValidator && $this.data("validation" + el + formatValidatorName(validatorTemplate.name)) !== undefined) {
+ validators[validatorType].push(
+ $.extend(
+ true,
+ {
+ name: formatValidatorName(validatorTemplate.name),
+ message: message
+ },
+ validatorTemplate.init($this, el)
+ )
+ );
+ foundValidator = true;
+ }
+ }
+ );
+
+ if (!foundValidator && settings.builtInValidators[el.toLowerCase()]) {
+
+ var validator = $.extend(true, {}, settings.builtInValidators[el.toLowerCase()]);
+ if (hasOverrideMessage) {
+ validator.message = message;
+ }
+ var validatorType = validator.type.toLowerCase();
+
+ if (validatorType === "shortcut") {
+ foundValidator = true;
+ } else {
+ $.each(
+ settings.validatorTypes,
+ function (validatorTemplateType, validatorTemplate) {
+ if (validators[validatorTemplateType] === undefined) {
+ validators[validatorTemplateType] = [];
+ }
+ if (!foundValidator && validatorType === validatorTemplateType.toLowerCase()) {
+ $this.data("validation" + el + formatValidatorName(validatorTemplate.name), validator[validatorTemplate.name.toLowerCase()]);
+ validators[validatorType].push(
+ $.extend(
+ validator,
+ validatorTemplate.init($this, el)
+ )
+ );
+ foundValidator = true;
+ }
+ }
+ );
+ }
+ }
+
+ if (! foundValidator) {
+ $.error("Cannot find validation info for '" + el + "'");
+ }
+ });
+
+ // =============================================================
+ // STORE FALLBACK VALUES
+ // =============================================================
+
+ $helpBlock.data(
+ "original-contents",
+ (
+ $helpBlock.data("original-contents")
+ ? $helpBlock.data("original-contents")
+ : $helpBlock.html()
+ )
+ );
+
+ $helpBlock.data(
+ "original-role",
+ (
+ $helpBlock.data("original-role")
+ ? $helpBlock.data("original-role")
+ : $helpBlock.attr("role")
+ )
+ );
+
+ $controlGroup.data(
+ "original-classes",
+ (
+ $controlGroup.data("original-clases")
+ ? $controlGroup.data("original-classes")
+ : $controlGroup.attr("class")
+ )
+ );
+
+ $this.data(
+ "original-aria-invalid",
+ (
+ $this.data("original-aria-invalid")
+ ? $this.data("original-aria-invalid")
+ : $this.attr("aria-invalid")
+ )
+ );
+
+ // =============================================================
+ // VALIDATION
+ // =============================================================
+
+ $this.bind(
+ "validation.validation",
+ function (event, params) {
+
+ var value = getValue($this);
+
+ // Get a list of the errors to apply
+ var errorsFound = [];
+
+ $.each(validators, function (validatorType, validatorTypeArray) {
+ if (value || value.length || (params && params.includeEmpty) || (!!settings.validatorTypes[validatorType].blockSubmit && params && !!params.submitting)) {
+ $.each(validatorTypeArray, function (i, validator) {
+ if (settings.validatorTypes[validatorType].validate($this, value, validator)) {
+ errorsFound.push(validator.message);
+ }
+ });
+ }
+ });
+
+ return errorsFound;
+ }
+ );
+
+ $this.bind(
+ "getValidators.validation",
+ function () {
+ return validators;
+ }
+ );
+
+ // =============================================================
+ // WATCH FOR CHANGES
+ // =============================================================
+ $this.bind(
+ "submit.validation",
+ function () {
+ return $this.triggerHandler("change.validation", {submitting: true});
+ }
+ );
+ $this.bind(
+ [
+ "keyup",
+ "focus",
+ "blur",
+ "click",
+ "keydown",
+ "keypress",
+ "change"
+ ].join(".validation ") + ".validation",
+ function (e, params) {
+
+ var value = getValue($this);
+
+ var errorsFound = [];
+
+ $controlGroup.find("input,textarea,select").each(function (i, el) {
+ var oldCount = errorsFound.length;
+ $.each($(el).triggerHandler("validation.validation", params), function (j, message) {
+ errorsFound.push(message);
+ });
+ if (errorsFound.length > oldCount) {
+ $(el).attr("aria-invalid", "true");
+ } else {
+ var original = $this.data("original-aria-invalid");
+ $(el).attr("aria-invalid", (original !== undefined ? original : false));
+ }
+ });
+
+ $form.find("input,select,textarea").not($this).not("[name=\"" + $this.attr("name") + "\"]").trigger("validationLostFocus.validation");
+
+ errorsFound = $.unique(errorsFound.sort());
+
+ // Were there any errors?
+ if (errorsFound.length) {
+ // Better flag it up as a warning.
+ $controlGroup.removeClass("success error").addClass("warning");
+
+ // How many errors did we find?
+ if (settings.options.semanticallyStrict && errorsFound.length === 1) {
+ // Only one? Being strict? Just output it.
+ $helpBlock.html(errorsFound[0] +
+ ( settings.options.prependExistingHelpBlock ? $helpBlock.data("original-contents") : "" ));
+ } else {
+ // Multiple? Being sloppy? Glue them together into an UL.
+ $helpBlock.html("" + errorsFound.join(" ") + " " +
+ ( settings.options.prependExistingHelpBlock ? $helpBlock.data("original-contents") : "" ));
+ }
+ } else {
+ $controlGroup.removeClass("warning error success");
+ if (value.length > 0) {
+ $controlGroup.addClass("success");
+ }
+ $helpBlock.html($helpBlock.data("original-contents"));
+ }
+
+ if (e.type === "blur") {
+ $controlGroup.removeClass("success");
+ }
+ }
+ );
+ $this.bind("validationLostFocus.validation", function () {
+ $controlGroup.removeClass("success");
+ });
+ });
+ },
+ destroy : function( ) {
+
+ return this.each(
+ function() {
+
+ var
+ $this = $(this),
+ $controlGroup = $this.parents(".control-group").first(),
+ $helpBlock = $controlGroup.find(".help-block").first();
+
+ // remove our events
+ $this.unbind('.validation'); // events are namespaced.
+ // reset help text
+ $helpBlock.html($helpBlock.data("original-contents"));
+ // reset classes
+ $controlGroup.attr("class", $controlGroup.data("original-classes"));
+ // reset aria
+ $this.attr("aria-invalid", $this.data("original-aria-invalid"));
+ // reset role
+ $helpBlock.attr("role", $this.data("original-role"));
+ // remove all elements we created
+ if (createdElements.indexOf($helpBlock[0]) > -1) {
+ $helpBlock.remove();
+ }
+
+ }
+ );
+
+ },
+ collectErrors : function(includeEmpty) {
+
+ var errorMessages = {};
+ this.each(function (i, el) {
+ var $el = $(el);
+ var name = $el.attr("name");
+ var errors = $el.triggerHandler("validation.validation", {includeEmpty: true});
+ errorMessages[name] = $.extend(true, errors, errorMessages[name]);
+ });
+
+ $.each(errorMessages, function (i, el) {
+ if (el.length === 0) {
+ delete errorMessages[i];
+ }
+ });
+
+ return errorMessages;
+
+ },
+ hasErrors: function() {
+
+ var errorMessages = [];
+
+ this.each(function (i, el) {
+ errorMessages = errorMessages.concat(
+ $(el).triggerHandler("getValidators.validation") ? $(el).triggerHandler("validation.validation", {submitting: true}) : []
+ );
+ });
+
+ return (errorMessages.length > 0);
+ },
+ override : function (newDefaults) {
+ defaults = $.extend(true, defaults, newDefaults);
+ }
+ },
+ validatorTypes: {
+ callback: {
+ name: "callback",
+ init: function ($this, name) {
+ return {
+ validatorName: name,
+ callback: $this.data("validation" + name + "Callback"),
+ lastValue: $this.val(),
+ lastValid: true,
+ lastFinished: true
+ };
+ },
+ validate: function ($this, value, validator) {
+ if (validator.lastValue === value && validator.lastFinished) {
+ return !validator.lastValid;
+ }
+
+ if (validator.lastFinished === true)
+ {
+ validator.lastValue = value;
+ validator.lastValid = true;
+ validator.lastFinished = false;
+
+ var rrjqbvValidator = validator;
+ var rrjqbvThis = $this;
+ executeFunctionByName(
+ validator.callback,
+ window,
+ $this,
+ value,
+ function (data) {
+ if (rrjqbvValidator.lastValue === data.value) {
+ rrjqbvValidator.lastValid = data.valid;
+ if (data.message) {
+ rrjqbvValidator.message = data.message;
+ }
+ rrjqbvValidator.lastFinished = true;
+ rrjqbvThis.data("validation" + rrjqbvValidator.validatorName + "Message", rrjqbvValidator.message);
+ // Timeout is set to avoid problems with the events being considered 'already fired'
+ setTimeout(function () {
+ rrjqbvThis.trigger("change.validation");
+ }, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
+ }
+ }
+ );
+ }
+
+ return false;
+
+ }
+ },
+ ajax: {
+ name: "ajax",
+ init: function ($this, name) {
+ return {
+ validatorName: name,
+ url: $this.data("validation" + name + "Ajax"),
+ lastValue: $this.val(),
+ lastValid: true,
+ lastFinished: true
+ };
+ },
+ validate: function ($this, value, validator) {
+ if (""+validator.lastValue === ""+value && validator.lastFinished === true) {
+ return validator.lastValid === false;
+ }
+
+ if (validator.lastFinished === true)
+ {
+ validator.lastValue = value;
+ validator.lastValid = true;
+ validator.lastFinished = false;
+ $.ajax({
+ url: validator.url,
+ data: "value=" + value + "&field=" + $this.attr("name"),
+ dataType: "json",
+ success: function (data) {
+ if (""+validator.lastValue === ""+data.value) {
+ validator.lastValid = !!(data.valid);
+ if (data.message) {
+ validator.message = data.message;
+ }
+ validator.lastFinished = true;
+ $this.data("validation" + validator.validatorName + "Message", validator.message);
+ // Timeout is set to avoid problems with the events being considered 'already fired'
+ setTimeout(function () {
+ $this.trigger("change.validation");
+ }, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
+ }
+ },
+ failure: function () {
+ validator.lastValid = true;
+ validator.message = "ajax call failed";
+ validator.lastFinished = true;
+ $this.data("validation" + validator.validatorName + "Message", validator.message);
+ // Timeout is set to avoid problems with the events being considered 'already fired'
+ setTimeout(function () {
+ $this.trigger("change.validation");
+ }, 1); // doesn't need a long timeout, just long enough for the event bubble to burst
+ }
+ });
+ }
+
+ return false;
+
+ }
+ },
+ regex: {
+ name: "regex",
+ init: function ($this, name) {
+ return {regex: regexFromString($this.data("validation" + name + "Regex"))};
+ },
+ validate: function ($this, value, validator) {
+ return (!validator.regex.test(value) && ! validator.negative)
+ || (validator.regex.test(value) && validator.negative);
+ }
+ },
+ required: {
+ name: "required",
+ init: function ($this, name) {
+ return {};
+ },
+ validate: function ($this, value, validator) {
+ return !!(value.length === 0 && ! validator.negative)
+ || !!(value.length > 0 && validator.negative);
+ },
+ blockSubmit: true
+ },
+ match: {
+ name: "match",
+ init: function ($this, name) {
+ var element = $this.parents("form").first().find("[name=\"" + $this.data("validation" + name + "Match") + "\"]").first();
+ element.bind("validation.validation", function () {
+ $this.trigger("change.validation", {submitting: true});
+ });
+ return {"element": element};
+ },
+ validate: function ($this, value, validator) {
+ return (value !== validator.element.val() && ! validator.negative)
+ || (value === validator.element.val() && validator.negative);
+ },
+ blockSubmit: true
+ },
+ max: {
+ name: "max",
+ init: function ($this, name) {
+ return {max: $this.data("validation" + name + "Max")};
+ },
+ validate: function ($this, value, validator) {
+ return (parseFloat(value, 10) > parseFloat(validator.max, 10) && ! validator.negative)
+ || (parseFloat(value, 10) <= parseFloat(validator.max, 10) && validator.negative);
+ }
+ },
+ min: {
+ name: "min",
+ init: function ($this, name) {
+ return {min: $this.data("validation" + name + "Min")};
+ },
+ validate: function ($this, value, validator) {
+ return (parseFloat(value) < parseFloat(validator.min) && ! validator.negative)
+ || (parseFloat(value) >= parseFloat(validator.min) && validator.negative);
+ }
+ },
+ maxlength: {
+ name: "maxlength",
+ init: function ($this, name) {
+ return {maxlength: $this.data("validation" + name + "Maxlength")};
+ },
+ validate: function ($this, value, validator) {
+ return ((value.length > validator.maxlength) && ! validator.negative)
+ || ((value.length <= validator.maxlength) && validator.negative);
+ }
+ },
+ minlength: {
+ name: "minlength",
+ init: function ($this, name) {
+ return {minlength: $this.data("validation" + name + "Minlength")};
+ },
+ validate: function ($this, value, validator) {
+ return ((value.length < validator.minlength) && ! validator.negative)
+ || ((value.length >= validator.minlength) && validator.negative);
+ }
+ },
+ maxchecked: {
+ name: "maxchecked",
+ init: function ($this, name) {
+ var elements = $this.parents("form").first().find("[name=\"" + $this.attr("name") + "\"]");
+ elements.bind("click.validation", function () {
+ $this.trigger("change.validation", {includeEmpty: true});
+ });
+ return {maxchecked: $this.data("validation" + name + "Maxchecked"), elements: elements};
+ },
+ validate: function ($this, value, validator) {
+ return (validator.elements.filter(":checked").length > validator.maxchecked && ! validator.negative)
+ || (validator.elements.filter(":checked").length <= validator.maxchecked && validator.negative);
+ },
+ blockSubmit: true
+ },
+ minchecked: {
+ name: "minchecked",
+ init: function ($this, name) {
+ var elements = $this.parents("form").first().find("[name=\"" + $this.attr("name") + "\"]");
+ elements.bind("click.validation", function () {
+ $this.trigger("change.validation", {includeEmpty: true});
+ });
+ return {minchecked: $this.data("validation" + name + "Minchecked"), elements: elements};
+ },
+ validate: function ($this, value, validator) {
+ return (validator.elements.filter(":checked").length < validator.minchecked && ! validator.negative)
+ || (validator.elements.filter(":checked").length >= validator.minchecked && validator.negative);
+ },
+ blockSubmit: true
+ }
+ },
+ builtInValidators: {
+ email: {
+ name: "Email",
+ type: "shortcut",
+ shortcut: "validemail"
+ },
+ validemail: {
+ name: "Validemail",
+ type: "regex",
+ regex: "[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\.[A-Za-z]{2,4}",
+ message: "Not a valid email address"
+ },
+ passwordagain: {
+ name: "Passwordagain",
+ type: "match",
+ match: "password",
+ message: "Does not match the given password"
+ },
+ positive: {
+ name: "Positive",
+ type: "shortcut",
+ shortcut: "number,positivenumber"
+ },
+ negative: {
+ name: "Negative",
+ type: "shortcut",
+ shortcut: "number,negativenumber"
+ },
+ number: {
+ name: "Number",
+ type: "regex",
+ regex: "([+-]?\\\d+(\\\.\\\d*)?([eE][+-]?[0-9]+)?)?",
+ message: "Must be a number"
+ },
+ integer: {
+ name: "Integer",
+ type: "regex",
+ regex: "[+-]?\\\d+",
+ message: "No decimal places allowed"
+ },
+ positivenumber: {
+ name: "Positivenumber",
+ type: "min",
+ min: 0,
+ message: "Must be a positive number"
+ },
+ negativenumber: {
+ name: "Negativenumber",
+ type: "max",
+ max: 0,
+ message: "Must be a negative number"
+ },
+ required: {
+ name: "Required",
+ type: "required",
+ message: "This is required"
+ },
+ checkone: {
+ name: "Checkone",
+ type: "minchecked",
+ minchecked: 1,
+ message: "Check at least one option"
+ }
+ }
+ };
+
+ var formatValidatorName = function (name) {
+ return name
+ .toLowerCase()
+ .replace(
+ /(^|\s)([a-z])/g ,
+ function(m,p1,p2) {
+ return p1+p2.toUpperCase();
+ }
+ )
+ ;
+ };
+
+ var getValue = function ($this) {
+ // Extract the value we're talking about
+ var value = $this.val();
+ var type = $this.attr("type");
+ if (type === "checkbox") {
+ value = ($this.is(":checked") ? value : "");
+ }
+ if (type === "radio") {
+ value = ($('input[name="' + $this.attr("name") + '"]:checked').length > 0 ? value : "");
+ }
+ return value;
+ };
+
+ function regexFromString(inputstring) {
+ return new RegExp("^" + inputstring + "$");
+ }
+
+ /**
+ * Thanks to Jason Bunting via StackOverflow.com
+ *
+ * http://stackoverflow.com/questions/359788/how-to-execute-a-javascript-function-when-i-have-its-name-as-a-string#answer-359910
+ * Short link: http://tinyurl.com/executeFunctionByName
+ **/
+ function executeFunctionByName(functionName, context /*, args*/) {
+ var args = Array.prototype.slice.call(arguments).splice(2);
+ var namespaces = functionName.split(".");
+ var func = namespaces.pop();
+ for(var i = 0; i < namespaces.length; i++) {
+ context = context[namespaces[i]];
+ }
+ return context[func].apply(this, args);
+ }
+
+ $.fn.jqBootstrapValidation = function( method ) {
+
+ if ( defaults.methods[method] ) {
+ return defaults.methods[method].apply( this, Array.prototype.slice.call( arguments, 1 ));
+ } else if ( typeof method === 'object' || ! method ) {
+ return defaults.methods.init.apply( this, arguments );
+ } else {
+ $.error( 'Method ' + method + ' does not exist on jQuery.jqBootstrapValidation' );
+ return null;
+ }
+
+ };
+
+ $.jqBootstrapValidation = function (options) {
+ $(":input").not("[type=image],[type=submit]").jqBootstrapValidation.apply(this,arguments);
+ };
+
+})( jQuery );
diff --git a/temas/chamitrip/pie b/temas/chamitrip/pie
new file mode 100644
index 0000000..f0a9ba1
--- /dev/null
+++ b/temas/chamitrip/pie
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+