Csca
Csca
Csca
#popup {
visibility: hidden;
opacity: 0;
margin-top: -300px;
}*
#popup:target {
visibility:visible;
opacity: 1;
background-color: rgba(0,0,0,0.8);
position: fixed;
top:0;
left:0;
right:0;
bottom:0;
margin:0;
z-index: 999;
transition:all 1s;
}*
.popup-contenedor {
position: relative;
margin:7% auto;
padding:30px 50px;
background-color: #fafafa;
color:#333;
border-radius: 3px;
width:60%;
height: 60%;
}
a.popup-cerrar {
position: absolute;
top:3px;
right:3px;
background-color: #333;
padding:7px 10px;
font-size: 20px;
text-decoration: none;
line-height: 1;
color:#fff;
}
.popup-contenedor h1{
text-align: center;
}
a.popup-link{
border:1px solid #0D333D;
color: #0D333D;
background: #DFF1F2;
padding: 1%;
border-radius: 5%;
display:scroll;
position:fixed;
bottom:10%;
right:2%;
}
.titulo{
text-align: center;
padding:5%;
font-weight: 900;
}
.multiform h4{
border: 1px solid #0D333D;
text-align: center;
display: inline-block;
margin-left: 15%;
border-radius: 100%;
padding-top: 20px;
padding-bottom: 20px;
padding: 2% 1% 2% 1%;
background: #DFF1F2;
width: 7%;
color: #0D333D;
}
.multiform{
display: inline;
}
.barra_progreso {
width: 100%; /* Full width */
background-color: #ddd; /* Grey background */
}
.progreso {
text-align: right; /* Right-align text */
padding-top: 10px; /* Add top padding */
padding-bottom: 10px; /* Add bottom padding */
color: white; /* White text color */
}
.multipage-controls-list #edit-actions {
float: left; /* LTR */
}
.multipage-button {
margin-bottom: 1em;
margin-top: 0;
float: left; /* LTR */
line-height: 36px;
}
.multipage-button a {
padding-top: 10px;
}
.multipage-counter {
float: right; /* LTR */
margin-right: 5px; /* LTR */
height: 0;
position: relative;
top: 1.8em;
line-height: 30px;
font: 12px arial,sans-serif;
font-weight: bold;
color:#666;
}
a.multipage-link-previous {
font: 12px arial,sans-serif;
font-weight: bold;
color:#666;
-webkit-transition: color 218ms;
-moz-transition: color 218ms;
-o-transition: color 218ms;
transition: color 218ms;
}
a.multipage-link-previous:hover {
text-decoration:none;
color: #333;
}
.multipage-controls-list input.form-submit {
background:none;
border: none;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border: 1px solid rgba(0, 0, 0, 0.1);
font: 12px arial,sans-serif;
font-weight: bold;
color: #666;
text-shadow: 0 1px 0 white;
padding: 7px 12px;
background: -webkit-gradient(linear,0% 40%,0%
70%,from(whiteSmoke),to(#F1F1F1));
-o-transition: border-top-color 0.218s,border-right-color
0.218s,border-bottom-color 0.218s,border-left-color .218s;
-webkit-transition: border-color .218s;
}
.multipage-controls-list input.form-submit:hover {
color:#333;
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
border-color: #939393;
}
.multipage-controls-list input.form-submit:active {
background: -webkit-gradient(linear,0% 40%,0%
70%,from(#F1F1F1),to(whiteSmoke));
}
.multipage-controls-list input#edit-submit {
background: #4D90FE; /* for non-css3 browsers */
background-image: #4D90FE; /* for non-css3 browsers */
background-image: -o-linear-gradient(top,#4d90fe,#4787ed);
filter:
progid:DXImageTransform.Microsoft.gradient(startColorstr='#4D90FE',
endColorstr='#4787ED'); /* for IE */
background: -webkit-gradient(linear, center top, center bottom,
from(#4D90FE), to(#4787ED)); /* for webkit browsers */
background: -moz-linear-gradient(center top, #4D90FE, #4787ED); /*
for firefox 3.6+ */
color: white;
text-shadow: none;
text-transform: uppercase;
min-width: 79px;
}
.multipage-controls-list input#edit-submit:hover {
background-image: -moz-linear-gradient(top,#4d90fe,#357ae8);
background-image: -o-linear-gradient(top,#4d90fe,#357ae8);
background-image: -webkit-gradient(linear,left top,left
bottom,from(#4d90fe),to(#357ae8));
color: white;
text-shadow: none;
box-shadow: 0 1px 1px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.multipage-controls-list input#edit-submit:active {
background: #4D90FE;
border-color: #2F5BB7;
}
.multipage-controls-list input#edit-delete {
background-image: -moz-linear-gradient(top,#dd4b39,#d14836);
background-image: -o-linear-gradient(top,#dd4b39,#d14836);
background-image: -webkit-gradient(linear,left top,left
bottom,from(#dd4b39),to(#d14836));
text-shadow: 0 1px rgba(0, 0, 0, 0.1);
border: 1px solid transparent;
color: white;
text-shadow: none;
.multipage-controls-list input#edit-delete:hover {
background-image: -moz-linear-gradient(top,#dd4b39,#c53727);
background-image: -o-linear-gradient(top,#dd4b39,#c53727);
background-image: -webkit-gradient(linear,left top,left
bottom,from(#dd4b39),to(#c53727));
border: 1px solid #B0281A!important;
border-bottom: 1px solid #AF301F!important;
box-shadow: 0 1px 1px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
color: white;
}
.multipage-controls-list input#edit-delete:active {
background-image: -moz-linear-gradient(top,#dd4b39,#b0281a);
background-image: -o-linear-gradient(top,#dd4b39,#b0281a);
background-image: -webkit-gradient(linear,left top,left
bottom,from(#dd4b39),to(#b0281a));
border: 1px solid #992A1b!important;
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.tree ul {
padding-top: 20px; position: relative;
.tree li {
float: left;
text-align: center;
list-style-type: none;
position: relative;
padding: 20px 5px 0 5px;
color: #0D333D;
font-family: arial, verdana, tahoma;
font-size: 15px;
display: inline-block;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
#block-dkan-sitewide-dkan-sitewide-search-bar{
display:none!important;
}
.opciones-adm-sima{
padding:0rem 0;
}
.elemento-adm-sima {
text-align:center;
padding:5rem 0;
}
.herramientas_app p{
margin:0 10% 0;
text-align:justify;
}
.herramientas_app img{
padding:0 25% 0;
}
.btn-adm{
color:#ffffff;
background-color:rgb(29, 116, 146);
}
.btn-descarga{
margin-top: 10px;
background-color:rgb(29, 116, 146);
width:100%;
}
.btn-descarga img{
height:3em;
}
.barra_busqueda{
padding: 20px 0 20px 0;
}
.tabla *{
text-align:center;
}
.btn-sima{
background-color: rgba(61, 103, 118, 0.6) !important;
width: 40vw;
}
.btn-sima:hover{
background-color: rgba(61, 103, 118, 1) !important;
}
.tabla thead,.tabla td,.tabla tr ,.tabla tr td ,.tabla th,.tabla >
thead > tr > th{
border-style:solid !important;
border-color: white !important;
border-width: 1em !important;
}
.tabla td img{
/*width: auto;*/
height: 10%;
padding: 30%;
}
.tabla th img{
width: 99%;
height: 15vw;
max-height: 10em;
}
.tabla tbody{
background-color:#DFF1F3;
}
.table thead{
background-color: #fff;
width: 30%;
height: 70%;
}
.tabla td:first-child{
width: 10em;
background-color: #30798C;
color:#fff;
height:10em;
vertical-align:middle;
text-align:left;
}
.rol{
background-color: #f3f3f3;
.rol_blanco{
background-color: #fff;
}
.radix-layouts-sidebar{
display:none;
}
.img_celular{
transform 1.2s;
}
.img_celular:hover {
transform: scale(1.2); /* (150% zoom - Note: if the zoom is too large,
it will go outside of the viewport) */
}
.contactenos {
padding-top: 1%;
}
.titulo_app{
padding-top: 1%;
}
.btn_p_frecuentes{
background-color: rgba(61, 103, 118, 0.6);
border: none;
color: #FFFFFF;
text-align: center;
margin: 3%;
/* height: 5em;*/
vertical-align: middle;
width:70vw;
font-size:2em;
width: 20%;
}
.btn_p_frecuentes a:visited{
color:#ffffff;
}
.preguntas_frecuentes{
/* Location of the image */
background-image:
url(/profiles/dss_magdalena/modules/dss_magdalena/dss_interface/images
/elementos_index/18-imagen_banner.jpg);
/* Background image is centered vertically and horizontally at all
times */
/* Background image is centered vertically and horizontally at all
times */
background-position: center center;
/* Background image doesn't tile */
background-repeat: no-repeat;
/* Background image is fixed in the viewport so that it doesn't move
when
the content's height is greater than the image's height
*/
/* background-attachment: fixed;*/
/* This is what makes the background image rescale based
on the container's size*/
background-size: cover;
/* Set a background color that will be displayed
while the background image is loading */
background-color: #464646;
7 text-align:center;
height:10em;
.elementos_app{
margin:0 15%;
padding:1em;
}
.contactenos{
min-height:13em;
max-height:13em;
*/
/* background-attachment: fixed;*/
/* This is what makes the background image rescale based
on the container's size*/
background-size: cover;
/* Set a background color that will be displayed
while the background image is loading */
background-color: #464646;
color:#ffffff;
.frases{
/* min-height:13em;
max-height:13em;
*/
/* Location of the image */
background-image:
url(/profiles/dss_magdalena/modules/dss_magdalena/dss_interface/images
/elementos_index/17-imagen_banner.jpg);
/* Background image is centered vertically and horizontally at all
times */
*/
/* background-attachment: fixed;*/
/* This is what makes the background image rescale based
on the container's size*/
background-size: cover;
/* Set a background color that will be displayed
while the background image is loading */
background-color: #464646;
color:#ffffff;
.app_movil{
/* Location of the image */
background-image:
url(/profiles/dss_magdalena/modules/dss_magdalena/dss_interface/images
/elementos_index/24-imagen.jpg);
/* Background image is centered vertically and horizontally at all
times */
background-size: cover;
/* Set a background color that will be displayed
while the background image is loading */
background-color: #464646;
}
.frases{
*/
/* background-attachment: fixed;*/
/* This is what makes the background image rescale based
on the container's size*/
background-size: cover;
/* Set a background color that will be displayed
while the background image is loading */
background-color: #464646;
color:#ffffff;
}
.frases .view-content{
/* padding: 3% 10% 3% 10%;*/
}
.titulo_servicios_rol{
text-align: center;
padding-top: 1%;
}
h1{
color:#105659;
font:'open sans';
}
h2{
color:#105659;
font:'open sans';
}
h3{
color:#105659;
font:'open sans';
}
.main .panel-pane {
margin-bottom: 0em;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{
z-index:0;
}
.contenedor-img-capa{
/*width: 300px;
height: 200px;
float: left;
*/
overflow: hidden;
/*position: relative;*/
text-align: center;
cursor: default;
background: #fff;
margin: 0 20% 0;
min-width: 300px;
}
.contenedor-img-capa img{
width:100%;
}
.contenedor-img-capa p{
padding: 0 10% 0;
}
.lista_capas{
text-align:center;
padding-top:0em;
padding-bottom:1em;
}
.titulo_capas{
text-align: center;
padding-top: 1%;
}
.capas_sima {
/* Location of the image */
background-image:
url(/profiles/dss_magdalena/modules/dss_magdalena/dss_interface/images
/elementos_index/05-pescador.jpg);
/* Background image is centered vertically and horizontally at all
times */
*/
/* background-attachment: fixed;*/
/* This is what makes the background image rescale based
on the container's size */
background-size: cover;
#block-dss-interface-sima-games{
background-color:#fff;
margin:0 5% 0;
padding-bottom:1.5em;
}
#block-dss-interface-sima-games h2{
text-align:center;
text-transform:uppercase;
#bienvenidosima {
background: #436d81; /* fallback for old browsers */
background: -webkit-linear-gradient(to top,#436d81, #E4E5E6 ); /*
Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to top, #436d81,#E4E5E6 ); /* W3C, IE
10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
background-image:
url(/profiles/dss_magdalena/modules/dss_magdalena/dss_interface/images
/elementos_index/28-Bienvenidos.jpg);
*/
/* background-attachment: fixed;*/
/* This is what makes the background image rescale based
on the container's size */
background-size: cover;
#cuadro1{
text-align:center;
}
#cuadro1 img{
width:100%;
height:60%;
/*padding-bottom: 3em;*/
}
#cuadro1 *{
-webkit-transition: transform 2s ease;
-moz-transition: transform 2s ease;
-ms-transition: transform 2s ease;
-o-transition: transform 2s ease;
transition: transform 2s ease;
margin-bottom: 1em;
.partes_sima{
position: relative;
display: inline-block;
text-align: center;
background-color: rgba(61, 103, 118, 0.6);
margin-bottom: 3em;
}
.centrado{
position: absolute;
top: 60%;
color:#fff;
font-size:1em;
text-align:justify;
margin:0 10% 0;
}
#modelos_en_sima {
/* Location of the image */
background-image: url(http://test.sima-
magdalena.co/profiles/dss_magdalena/modules/dss_magdalena/dss_interfac
e/images/elementos_index/09-mapa.jpg);
*/
/* background-attachment: fixed;*/
/* This is what makes the background image rescale based
on the container's size */
background-size: cover;
.modelo{
text-align:center;
background-color:#f0f0f0;
padding: 1em 0em 1em;
}
.lista_modelos {
/*padding-left: 15vw;
padding-right: 10vw;*/
padding-top: 1em;
}
.lista_modelos:nth-child(2){
padding-left: 10vw;
padding-right: 10vw;
padding-top: 1em;
}
.lista_modelos{
padding: 0 5% 0 !important;
}
}
@media only screen and (max-width: 760px) {
.contenedor-img-capa {
margin:0px 0% 0px auto !important
}
#modelos_en_sima {
/* Location of the image */
background-image:
url(/profiles/dss_magdalena/modules/dss_magdalena/dss_interface/images
/elementos_index/09-mapa.jpg);
/* Background image is centered vertically and horizontally at all
times */
/*background-position: center center;*/
*/
/* background-attachment: fixed;*/
/* This is what makes the background image rescale based
on the container's size */
background-size: cover;
}
.partes_sima:hover img{
transform: translateX( -1px ) rotateY( 180deg ); /* ALSO EXTRA
TRANSFORM PROPERTIES ADDED FOR COMPATIBILITY*/
-ms-transform: translateX( -1px ) rotateY(180deg); /* IE 9 */
-webkit-transform: translateX( -1px ) rotateY(180deg); /*
Chrome, Safari, Opera */
}
/* efecto de flash
.partes_sima:hover img {
opacity: 1;
-webkit-animation: flash 1.5s;
animation: flash 1.5s;
}
@-webkit-keyframes flash {
0% {
opacity: .4;
}
100% {
opacity: 1;
}
}
@keyframes flash {
0% {
opacity: .4;
}
100% {
opacity: 1;
}
}
*/
/*
Efectos modelos
*/
/*Estilos Base*/
.contenedor-img {
/*width: 300px;
height: 200px;*/
float: left;
overflow: hidden;
position: relative;
text-align: center;
cursor: default;
background: #fff;
}
.contenedor-img .mascara,.contenedor-img .contenido {
/*width: 300px;*/
height: 100%;
position: absolute;
overflow: hidden;
top: 0;
left: 0
}
.contenedor-img img {
display: block;
position: relative;
}
.contenedor-img h2 {
text-transform: uppercase;
color: #fff;
text-align: center;
position: relative;
font-size: 17px;
padding: 10px;
background: rgba(0, 0, 0, 0.9);
margin: 20px 0 0 0
}
.contenedor-img p {
position: relative;
color: #fff;
padding: 0px 0px 0px;
text-align: center
}
.contenedor-img a.link {
display: inline-block;
text-decoration: none;
padding: 0px 20px;
background: #222;
color: #fff;
text-transform: uppercase;
box-shadow: 0 0 1px #000
}
.contenedor-img a.link:hover {
box-shadow: 0 0 5px #000
}
/*Ejemplo 1*/
.ejemplo-1 img {
transition: all 0.2s linear;
linear;
min-width: 200px;
}
.ejemplo-1 .mascara {
opacity: 0;
background-color: rgba(182, 216, 224, 0.8);
transition: all 0.3s ease-in-out;
}
.ejemplo-1 h2 {
transform: translateX(-200px);/*Desplazamos a la izquierda*/
opacity: 0;
transition: all 0.7s ease-in-out;
}
.ejemplo-1 p {
margin:20px;
color:#FFFFFF;
transform: translateX(200px);/*Desplazamos a la derecha*/
opacity: 0;
transition: all 0.4s linear;
}
.ejemplo-1 a.link{
opacity: 0;
transition: all 0.4s ease-in-out;
transform: translateY(100px)/*Desplazamos para abajo*/
}
.ejemplo-1:hover img {
transform: scale(1.2);/*Damos un ligero zoom a la imagen*/
}
.ejemplo-1:hover .mascara {
opacity: 0.9;
background-color: #104659;
}
.ejemplo-1:hover h2,
.ejemplo-1:hover p,
.ejemplo-1:hover a.link {
opacity: 1;
transform: translateX(0px);/*Regresamos a las posiciones originales*/
}
.ejemplo-1:hover p {
transition-delay: 0.1s;
}
.ejemplo-1:hover a.link {
transition-delay: 0.2s; /*Aplicamos un pequeño retardo para que se
muestre al final*/
transform: translateY(0px);
}
.Logos{
align-content: center;
text-align: center;
background: #ffffff;
}
.Logos img{
width: 90%;
/*height: 90px;*/
}
.btn_p_frecuentes.btn-sima.btn.btn-lg.btn-primary{
height: 50px;
font-size: 25px;
width: 20vw;
}
.btn-sima.btn.btn-lg.btn-primary{
height: 50px;
font-size: 25px;
width: 20vw;
}
.field-content{
height: 100px;
width: 99vw !important;
margin-top: 3em;
font-size: 23px;
}
.view-header{
background: #104659;
}
Multipage.js
(function ($) {
$( document ).ready(function() {
/*var id = $(this).attr("datos basicos");
console.log(id);*/
tipoForm = document.getElementById("seleccion de escenario");
tipoForm1 = document.getElementById("selección hidroenergía");
tipoForm2 = document.getElementById("selección clima");
if (tipoForm1 == undefined && tipoForm2 == undefined ){
document.getElementById("datos basicos").innerHTML = "Paso 1";
document.getElementById("datos basicos").style.backgroundColor =
"#104659";
document.getElementById("datos basicos").style.color =
"#DFF1F2";
document.getElementById("seleccion de escenario").innerHTML =
"Paso 2";
document.getElementById("seleccion de plan integral").innerHTML
= "Paso 3";
document.getElementById("Datos finales").innerHTML = "Paso 4";
document.getElementById("paso1M").style.backgroundColor =
"#104659";
document.getElementById("paso1M").style.color = "#DFF1F2";
}
if (tipoForm == undefined && tipoForm2 == undefined){
document.getElementById("datos basicos").innerHTML = "Paso 1";
document.getElementById("datos basicos").style.backgroundColor =
"#104659";
document.getElementById("datos basicos").style.color =
"#DFF1F2";
document.getElementById("multiformid").style.marginLeft = "-
15%";
document.getElementById("selección hidroenergía").innerHTML =
"paso 2 ";
document.getElementById("selección uso del suelo").innerHTML =
"paso 3 ";
document.getElementById("selección humedales").innerHTML = "paso
4 ";
document.getElementById("datos finales").innerHTML = "paso 5 ";
}
if(tipoForm == undefined && tipoForm1 == undefined){
document.getElementById("selección clima").innerHTML = "Paso 1";
document.getElementById("selección clima").style.backgroundColor
= "#104659";
document.getElementById("selección clima").style.color =
"#DFF1F2";
document.getElementById("selección energía").innerHTML = "paso 2
";
document.getElementById("selección población").innerHTML = "paso
3 ";
document.getElementById("datos finales").innerHTML = "paso 4 ";
}
});
/**
* This script transforms a set of wrappers into a stack of
multipage pages.
* Another pane can be entered by clicking next/previous.
*
*/
Drupal.behaviors.MultiPage = {
attach: function (context) {
$('.multipage-panes', context).once('multipage', function () {
$controls.append(multipageControl.item);
$(this)
.addClass('multipage-pane')
.data('multipageControl', multipageControl);
if (this.id == focusID) {
paneWithFocus = $(this);
}
});
/**
* The multipagePane object represents a single div as a page.
*
* @param settings
* An object with the following keys:
* - title: The name of the tab.
* - wrapper: The jQuery object of the <div> that is the tab pane.
*/
var paso=1;
function siguientePagina(e){
if (tipoForm1 == undefined && tipoForm2 == undefined){
if ( paso == 1 ){
document.getElementById("datos basicos").style.backgroundColor
= "#104659";
}
if ( paso == 2 ){
document.getElementById("datos basicos").style.backgroundColor
= "#2ca13a";
document.getElementById("datos basicos").innerHTML = "✓";
document.getElementById("datos basicos").style.color =
"#DFF1F2";
document.getElementById("seleccion de
escenario").style.backgroundColor = "#104659";
document.getElementById("seleccion de escenario").style.color
= "#DFF1F2";
document.getElementById("paso1M").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M").style.backgroundColor =
"#104659";
document.getElementById("paso2M").style.color = "#DFF1F2";
}
if ( paso == 3 ){
document.getElementById("seleccion de
escenario").style.backgroundColor = "#2ca13a";
document.getElementById("seleccion de escenario").innerHTML =
"✓";
document.getElementById("seleccion de plan
integral").style.backgroundColor = "#104659";
document.getElementById("seleccion de plan
integral").style.color = "#DFF1F2";
document.getElementById("paso2M").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M1").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M1").style.color = "#DFF1F2";
document.getElementById("paso2M2").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M2").style.color = "#DFF1F2";
document.getElementById("paso2M3").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M3").style.color = "#DFF1F2";
document.getElementById("paso3M").style.backgroundColor =
"#104659";
document.getElementById("paso3M").style.color = "#DFF1F2";
}
if ( paso == 4 ){
document.getElementById("seleccion de plan
integral").style.backgroundColor = "#2ca13a";
document.getElementById("seleccion de plan
integral").innerHTML = "✓";
document.getElementById("Datos finales").style.backgroundColor
= "#104659";
document.getElementById("Datos finales").style.color =
"#DFF1F2";
document.getElementById("paso3M").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M1").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M1").style.color = "#DFF1F2";
document.getElementById("paso3M2").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M2").style.color = "#DFF1F2";
document.getElementById("paso3M3").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M3").style.color = "#DFF1F2";
}
}
if (tipoForm == undefined && tipoForm2 == undefined){
if ( paso == 1 ){
document.getElementById("datos basicos").style.backgroundColor
= "#104659";
}
if ( paso == 2 ){
document.getElementById("datos basicos").style.backgroundColor
= "#2ca13a";
document.getElementById("datos basicos").innerHTML = "✓";
document.getElementById("datos basicos").style.color =
"#DFF1F2";
document.getElementById("selección
hidroenergía").style.backgroundColor = "#104659";
document.getElementById("selección hidroenergía").style.color
= "#DFF1F2";
document.getElementById("paso3M1").style.backgroundColor =
"#104659";
document.getElementById("paso3M1").style.color = "#DFF1F2";
}
if ( paso == 3 ){
document.getElementById("selección
hidroenergía").style.backgroundColor = "#2ca13a";
document.getElementById("selección hidroenergía").innerHTML =
"✓";
document.getElementById("selección uso del
suelo").style.backgroundColor = "#104659";
document.getElementById("selección uso del suelo").style.color
= "#DFF1F2";
document.getElementById("paso3M1").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M2").style.backgroundColor =
"#104659";
document.getElementById("paso3M2").style.color = "#DFF1F2";
}
if ( paso == 4 ){
document.getElementById("selección uso del
suelo").style.backgroundColor = "#2ca13a";
document.getElementById("selección uso del suelo").innerHTML =
"✓";
document.getElementById("selección
humedales").style.backgroundColor = "#104659";
document.getElementById("selección humedales").style.color =
"#DFF1F2";
document.getElementById("paso3M2").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M3").style.backgroundColor =
"#104659";
document.getElementById("paso3M3").style.color = "#DFF1F2";
}
if ( paso == 5 ){
document.getElementById("selección
humedales").style.backgroundColor = "#2ca13a";
document.getElementById("selección humedales").innerHTML =
"✓";
document.getElementById("datos finales").style.backgroundColor
= "#104659";
document.getElementById("datos finales").style.color =
"#DFF1F2";
}
}
if (tipoForm == undefined && tipoForm1 == undefined){
if ( paso == 1 ){
document.getElementById("selección
clima").style.backgroundColor = "#104659";
}
if ( paso == 2 ){
document.getElementById("selección
clima").style.backgroundColor = "#2ca13a";
document.getElementById("selección clima").innerHTML = "✓";
document.getElementById("selección clima").style.color =
"#DFF1F2";
document.getElementById("selección
energía").style.backgroundColor = "#104659";
document.getElementById("selección energía").style.color =
"#DFF1F2";
document.getElementById("paso2M1").style.backgroundColor =
"#104659";
document.getElementById("paso2M1").style.color = "#DFF1F2";
}
if ( paso == 3 ){
document.getElementById("selección
energía").style.backgroundColor = "#2ca13a";
document.getElementById("selección energía").innerHTML = "✓";
document.getElementById("selección
población").style.backgroundColor = "#104659";
document.getElementById("selección población").style.color =
"#DFF1F2";
document.getElementById("paso2M1").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M2").style.backgroundColor =
"#104659";
document.getElementById("paso2M2").style.color = "#DFF1F2";
}
if ( paso == 4 ){
document.getElementById("selección
población").style.backgroundColor = "#2ca13a";
document.getElementById("selección población").innerHTML =
"✓";
document.getElementById("datos finales").style.backgroundColor
= "#104659";
document.getElementById("datos finales").style.color =
"#DFF1F2";
document.getElementById("paso2M2").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M3").style.backgroundColor =
"#104659";
document.getElementById("paso2M3").style.color = "#DFF1F2";
}
}
};
function retrocederPaso(e){
if (tipoForm1 == undefined && tipoForm2 == undefined){
if ( paso == 1 ){
document.getElementById("datos basicos").style.backgroundColor
= "#104659";
document.getElementById("datos basicos").innerHTML = "Paso 1";
document.getElementById("seleccion de
escenario").style.backgroundColor = "#DFF1F2";
document.getElementById("seleccion de escenario").innerHTML =
"Paso 2";
document.getElementById("seleccion de escenario").style.color
= "#0D333D";
document.getElementById("paso1M").style.backgroundColor =
"#104659";
document.getElementById("paso2M").style.backgroundColor =
"#FFF";
document.getElementById("paso2M").style.color = "#104659";
}
if ( paso == 2 ){
document.getElementById("seleccion de
escenario").style.backgroundColor = "#104659";
document.getElementById("seleccion de escenario").innerHTML =
"Paso 2";
document.getElementById("seleccion de plan
integral").style.backgroundColor = "#DFF1F2";
document.getElementById("seleccion de plan
integral").style.color = "#0D333D";
document.getElementById("seleccion de plan
integral").innerHTML = "Paso 3";
document.getElementById("paso2M").style.backgroundColor =
"#104659";
document.getElementById("paso3M").style.backgroundColor =
"#FFF";
document.getElementById("paso3M").style.color = "#104659";
document.getElementById("paso2M1").style.backgroundColor =
"#FFF";
document.getElementById("paso2M1").style.color = "#104659";
document.getElementById("paso2M2").style.backgroundColor =
"#FFF";
document.getElementById("paso2M2").style.color = "#104659";
document.getElementById("paso2M3").style.backgroundColor =
"#FFF";
document.getElementById("paso2M3").style.color = "#104659";
}
if ( paso == 3 ){
document.getElementById("seleccion de plan
integral").style.backgroundColor = "#104659";
document.getElementById("seleccion de plan
integral").innerHTML = "Paso 3";
document.getElementById("Datos finales").style.backgroundColor
= "#DFF1F2";
document.getElementById("Datos finales").style.color =
"#0D333D";
document.getElementById("Datos finales").innerHTML = "Paso 4";
document.getElementById("paso3M").style.backgroundColor =
"#104659";
document.getElementById("paso3M1").style.backgroundColor =
"#FFF";
document.getElementById("paso3M1").style.color = "#104659";
document.getElementById("paso3M2").style.backgroundColor =
"#FFF";
document.getElementById("paso3M2").style.color = "#104659";
document.getElementById("paso3M3").style.backgroundColor =
"#FFF";
document.getElementById("paso3M3").style.color = "#104659";
}
}
if (tipoForm == undefined && tipoForm2 == undefined){
if ( paso == 1 ){
document.getElementById("datos basicos").style.backgroundColor =
"#104659";
document.getElementById("datos basicos").innerHTML = "Paso 1";
document.getElementById("selección
hidroenergía").style.backgroundColor = "#DFF1F2";
document.getElementById("selección hidroenergía").innerHTML =
"Paso 2";
document.getElementById("selección hidroenergía").style.color =
"#0D333D";
document.getElementById("paso3M1").style.backgroundColor =
"#FFF";
document.getElementById("paso3M1").style.color = "#104659";
}
if ( paso == 2 ){
document.getElementById("selección
hidroenergía").style.backgroundColor = "#104659";
document.getElementById("selección hidroenergía").innerHTML =
"Paso 2";
document.getElementById("selección uso del
suelo").style.backgroundColor = "#DFF1F2";
document.getElementById("selección uso del suelo").style.color =
"#0D333D";
document.getElementById("selección uso del suelo").innerHTML =
"Paso 3";
document.getElementById("paso3M1").style.backgroundColor =
"#104659";
document.getElementById("paso3M2").style.backgroundColor =
"#FFF";
document.getElementById("paso3M2").style.color = "#104659";
}
if ( paso == 3 ){
document.getElementById("selección uso del
suelo").style.backgroundColor = "#104659";
document.getElementById("selección uso del suelo").innerHTML =
"Paso 3";
document.getElementById("selección
humedales").style.backgroundColor = "#DFF1F2";
document.getElementById("selección humedales").style.color =
"#0D333D";
document.getElementById("selección humedales").innerHTML = "Paso
4";
document.getElementById("paso3M2").style.backgroundColor =
"#104659";
document.getElementById("paso3M3").style.backgroundColor =
"#FFF";
document.getElementById("paso3M3").style.color = "#104659";
}
if ( paso == 4 ){
document.getElementById("selección
humedales").style.backgroundColor = "#104659";
document.getElementById("selección humedales").innerHTML = "Paso
4";
document.getElementById("datos finales").style.backgroundColor =
"#DFF1F2";
document.getElementById("datos finales").style.color =
"#0D333D";
document.getElementById("datos finales").innerHTML = "Paso 5";
}
}
if (tipoForm == undefined && tipoForm1 == undefined){
if ( paso == 1 ){
document.getElementById("selección clima").style.backgroundColor
= "#104659";
document.getElementById("selección clima").innerHTML = "Paso 1";
document.getElementById("selección
energía").style.backgroundColor = "#DFF1F2";
document.getElementById("selección energía").innerHTML = "Paso
2";
document.getElementById("selección energía").style.color =
"#0D333D";
document.getElementById("paso2M1").style.backgroundColor =
"#FFF";
document.getElementById("paso2M1").style.color = "#104659";
}
if ( paso == 2 ){
document.getElementById("selección
energía").style.backgroundColor = "#104659";
document.getElementById("selección energía").innerHTML = "Paso
2";
document.getElementById("selección
población").style.backgroundColor = "#DFF1F2";
document.getElementById("selección población").innerHTML = "Paso
3";
document.getElementById("selección población").style.color =
"#0D333D";
document.getElementById("paso2M1").style.backgroundColor =
"#104659";
document.getElementById("paso2M2").style.backgroundColor =
"#FFF";
document.getElementById("paso2M2").style.color = "#104659"
}
if ( paso == 3 ){
document.getElementById("selección
población").style.backgroundColor = "#104659";
document.getElementById("selección población").innerHTML = "Paso
3";
document.getElementById("datos finales").style.backgroundColor =
"#DFF1F2";
document.getElementById("datos finales").innerHTML = "Paso 4";
document.getElementById("datos finales").style.color =
"#0D333D";
document.getElementById("paso2M2").style.backgroundColor =
"#104659";
document.getElementById("paso2M3").style.backgroundColor =
"#FFF";
document.getElementById("paso2M3").style.color = "#104659";
}
}
}
this.nextLink.click(function (e) {
paso++;
siguientePagina(paso);
e.preventDefault();
self.nextPage();
});
this.previousLink.click(function (e) {
paso--;
retrocederPaso(paso);
e.preventDefault();
self.previousPage();
});
/*
// Keyboard events added:
// Pressing the Enter key will open the tab pane.
this.nextLink.keydown(function(event) {
if (event.keyCode == 13) {
self.focus();
// Set focus on the first input field of the visible
wrapper/tab pane.
$("div.multipage-pane :input:visible:enabled:first").focus();
return false;
}
});
// Pressing the Enter key lets you leave the tab again.
this.wrapper.keydown(function(event) {
// Enter key should not trigger inside <textarea> to allow for
multi-line entries.
if (event.keyCode == 13 && event.target.nodeName != "TEXTAREA")
{
// Set focus on the selected tab button again.
$(".multipage-tab-button.selected a").focus();
return false;
}
});
*/
};
Drupal.multipageControl.prototype = {
/**
* Displays the tab's content pane.
*/
focus: function () {
this.wrapper
.show()
.siblings('div.multipage-pane')
.each(function () {
var tab = $(this).data('multipageControl');
tab.wrapper.hide();
})
.end()
.siblings(':hidden.multipage-active-control')
.val(this.wrapper.attr('id'));
// Mark the active control for screen readers.
$('#active-multipage-control').remove();
this.nextLink.after('<span id="active-multipage-control"
class="element-invisible">' + Drupal.t('(active page)') + '</span>');
},
/**
* Continues to the next page or step in the form.
*/
nextPage: function () {
this.wrapper.next().data('multipageControl').focus();
$('html, body').scrollTop(this.wrapper.parents('.field-group-
multipage-group-wrapper').offset().top);
// alert($(this.wrapper).prop("class"));
/**
* Returns to the previous page or step in the form.
*/
previousPage: function () {
this.wrapper.prev().data('multipageControl').focus();
$('html, body').scrollTop(this.wrapper.parents('.field-group-
multipage-group-wrapper').offset().top);
},
/**
* Shows a horizontal tab pane.
*/
tabShow: function () {
// Display the tab.
this.item.show();
// Update .first marker for items. We need recurse from parent
to retain the
// actual DOM element order as jQuery implements sortOrder, but
not as public
// method.
this.item.parent().children('.multipage-
control').removeClass('first')
.filter(':visible:first').addClass('first');
// Display the wrapper.
this.wrapper.removeClass('multipage-control-hidden').show();
// Focus this tab.
this.focus();
return this;
},
/**
* Hides a horizontal tab pane.
*/
tabHide: function () {
// Hide this tab.
this.item.hide();
// Update .first marker for items. We need recurse from parent
to retain the
// actual DOM element order as jQuery implements sortOrder, but
not as public
// method.
this.item.parent().children('.multipage-
control').removeClass('first')
.filter(':visible:first').addClass('first');
// Hide the wrapper.
this.wrapper.addClass('horizontal-tab-hidden').hide();
// Focus the first visible tab (if there is one).
var $firstTab = this.wrapper.siblings('.multipage-
pane:not(.multipage-control-hidden):first');
if ($firstTab.length) {
$firstTab.data('multipageControl').focus();
}
return this;
}
};
/**
* Theme function for a multipage control.
*
* @param settings
* An object with the following keys:
* - title: The name of the tab.
* @return
* This function has to return an object with at least these keys:
* - item: The root tab jQuery element
* - nextLink: The anchor tag that acts as the clickable area of
the control
* - nextTitle: The jQuery element that contains the group title
* - previousLink: The anchor tag that acts as the clickable area
of the control
* - previousTitle: The jQuery element that contains the group
title
*/
Drupal.theme.prototype.multipage = function (settings) {
controls.item.append(controls.previousLink.val(controls.previousTitle)
);
if (!settings.has_next) {
controls.nextLink.hide();
}
if (!settings.has_previous) {
controls.previousLink.hide();
}
return controls;
};
/**
* Implements Drupal.FieldGroup.processHook().
*/
Drupal.FieldGroup.Effects.processMultipage = {
execute: function (context, settings, type) {
if (type == 'form') {
Drupal.FieldGroup.setGroupWithfocus($(this));
$(this).data('multipageControl').focus();
}
});
}
}
}
})(jQuery);
Fiel_group.module
<?php
/**
* @file
* Fieldgroup module.
*/
/**
* Implements hook_menu().
*/
function field_group_menu() {
$items = array();
if (defined('MAINTENANCE_MODE')) {
return $items;
if (isset($bundle_info['admin'])) {
$path = $bundle_info['admin']['path'];
// Different bundles can appear on the same path (e.g. %node_type and
// name string ('bundle argument') and pass that position to the menu
if (isset($bundle_info['admin']['bundle argument'])) {
else {
$bundle_arg = $bundle_name;
$bundle_pos = '0';
// items below.
$access += array(
);
$items["$path/groups/%field_group_menu/delete"] = array(
'load arguments' => array($entity_type, $bundle_arg, $bundle_pos, '%map'),
) + $access;
$items["$path/groups/%field_group_menu/enable"] = array(
) + $access;
return $items;
/**
* Implements hook_permission().
*/
function field_group_permission() {
return array(
),
);
/**
* @param $group_name
* @param $entity_type
* @param $bundle_name
* @param $bundle_pos
* @param $map
*/
if ($bundle_pos > 0) {
$bundle = $map[$bundle_pos];
}
$args = func_get_args();
$args_pop = array_pop($args);
$mode = array_pop($args_pop);
/**
*/
function field_group_load_field_group_by_identifier($identifier) {
if (count($parts) != 4) {
return;
/**
* @param $group_name
* @param $bundle_name
* @param $mode
*/
ctools_include('export');
));
$object = array_shift($objects);
return field_group_unpack($object);
return $object;
/**
* Implements hook_ctools_plugin_api().
*/
/**
* Implements hook_theme().
*/
function field_group_theme() {
return array(
),
),
),
);
/**
* Implements hook_theme_registry_alter().
*/
function field_group_theme_registry_alter(&$theme_registry) {
$entity_info = entity_get_info();
$entities = array();
$entities[] = $entity;
if (isset($theme_registry['file_entity'])) {
$entities[] = 'file_entity';
if (isset($theme_registry['entity'])) {
$entities[] = 'entity';
if (isset($theme_registry[$entity])) {
unset($theme_registry[$entity]['preprocess functions'][$key]);
}
}
/**
* Implements hook_field_attach_delete_bundle().
*/
ctools_include('export');
// We fetch the field groups first to assign the removal task to ctools.
if (isset($list[$entity_type], $list[$entity_type][$bundle])) {
ctools_export_crud_delete('field_group', $group);
/**
* Implements hook_field_attach_form().
*/
$form['#pre_render'][] = 'field_group_form_pre_render';
/**
* Implements hook_form_FORM_ID_alter().
* Using hook_form_field_ui_field_overview_form_alter.
*/
field_group_field_ui_overview_form_alter($form, $form_state);
/**
* Implements hook_form_FORM_ID_alter().
* Using hook_form_field_ui_display_overview_form_alter.
*/
/**
* Implements hook_field_attach_view_alter().
*/
// Check whether the view mode uses custom display settings or the 'default' mode.
$actual_mode = 'default';
$view_mode_settings = field_view_mode_settings($element['#entity_type'],
$element['#bundle']);
$view_mode = $context['view_mode'];
$actual_mode = (!empty($view_mode_settings[$view_mode]['custom_settings']) ?
$view_mode : 'default');
field_group_attach_groups($element, $actual_mode);
/**
* Implements hook_field_group_formatter_info().
*/
function field_group_field_group_formatter_info() {
return array(
'description' => t('This fieldgroup renders the inner content in a HTML element with classes
and attributes.'),
'instance_settings' => array('element' => 'div', 'show_label' => 0, 'label_element' => 'div',
'classes' => '', 'attributes' => '', 'required_fields' => 1, 'id' => ''),
),
'instance_settings' => array('description' => '', 'show_label' => 1, 'label_element' => 'h3',
'effect' => 'none', 'speed' => 'fast', 'classes' => '', 'required_fields' => 1, 'id' => ''),
),
'description' => t('This fieldgroup renders the inner content in a semantic HTML5 wrapper'),
'instance_settings' => array('wrapper' => '', 'classes' => '', 'id' => ''),
),
'description' => t('This fieldgroup renders the inner content in a fieldset with the title as
legend.'),
'instance_settings' => array('description' => '', 'classes' => '', 'required_fields' => 1, 'id' => ''),
),
'description' => t('This fieldgroup renders child groups in its own vertical tabs wrapper.'),
),
'description' => t('This fieldgroup renders the content in a fieldset, part of vertical tabs
group.'),
),
'description' => t('This fieldgroup renders child groups in its own horizontal tabs wrapper.'),
),
'description' => t('This fieldgroup renders the content in a fieldset, part of horizontal tabs
group.'),
'instance_settings' => array('description' => '', 'classes' => '', 'required_fields' => 1),
),
),
'instance_settings' => array('description' => '', 'classes' => '', 'required_fields' => 1),
),
'instance_settings' => array('effect' => 'none', 'classes' => '', 'id' => ''),
),
'description' => t('This fieldgroup renders the content in a div, part of accordion group.'),
'instance_settings' => array('description' => '', 'classes' => '', 'required_fields' => 1),
),
),
'description' => t('This fieldgroup renders the inner content in a HTML element with classes
and attributes.'),
'instance_settings' => array('element' => 'div', 'show_label' => 0, 'label_element' => 'div',
'classes' => '', 'attributes' => '', 'required_fields' => 1, 'id' => ''),
),
'description' => t('This fieldgroup renders the inner content in a simple div with the title as
legend.'),
'instance_settings' => array('description' => '', 'show_label' => 1, 'label_element' => 'h3',
'effect' => 'none', 'speed' => 'fast', 'classes' => '', 'id' => ''),
),
'description' => t('This fieldgroup renders the inner content in a semantic HTML5 wrapper'),
'instance_settings' => array('wrapper' => '', 'classes' => '', 'id' => ''),
),
'description' => t('This fieldgroup renders the inner content in a fieldset with the title as
legend.'),
'instance_settings' => array('description' => '', 'classes' => '', 'id' => ''),
),
'description' => t('This fieldgroup renders child groups in its own vertical tabs wrapper.'),
),
'description' => t('This fieldgroup renders the content in a fieldset, part of vertical tabs
group.'),
),
'description' => t('This fieldgroup renders child groups in its own horizontal tabs wrapper.'),
),
'htab' => array(
'description' => t('This fieldgroup renders the content in a fieldset, part of horizontal tabs
group.'),
'instance_settings' => array('description' => '', 'classes' => '', 'id' => ''),
),
'instance_settings' => array('description' => '', 'classes' => '', 'effect' => 'bounceslide', 'id' => ''),
),
'description' => t('This fieldgroup renders the content in a div, part of accordion group.'),
),
),
);
/**
* Implements hook_field_group_format_settings().
* @return Array $form The form element for the format settings.
*/
function field_group_field_group_format_settings($group) {
$form = array(
'#weight' => 2,
),
);
$field_group_types = field_group_formatter_info();
$formatter = $field_group_types[$mode][$group->format_type];
if (isset($formatter['format_types'])) {
$form['formatter'] = array(
);
$form['instance_settings']['required_fields'] = array(
'#weight' => 2,
);
if (isset($formatter['instance_settings']['id'])) {
$form['instance_settings']['id'] = array(
);
if (isset($formatter['instance_settings']['classes'])) {
$form['instance_settings']['classes'] = array(
);
}
if (isset($formatter['instance_settings']['description'])) {
$form['instance_settings']['description'] = array(
'#weight' => 0,
);
switch ($group->format_type) {
case 'html-element':
$form['instance_settings']['element'] = array(
'#weight' => 1,
);
$form['instance_settings']['show_label'] = array(
'#weight' => 2,
);
$form['instance_settings']['label_element'] = array(
'#weight' => 3,
);
$form['instance_settings']['attributes'] = array(
'#weight' => 4,
);
break;
case 'div':
$form['instance_settings']['show_label'] = array(
'#weight' => 2,
);
$form['instance_settings']['label_element'] = array(
'#options' => array('h2' => t('Header 2'), 'h3' => t('Header 3')),
'#weight' => 2,
);
$form['instance_settings']['effect'] = array(
'#weight' => 3,
);
$form['instance_settings']['speed'] = array(
'#options' => array('none' => t('None'), 'slow' => t('Slow'), 'fast' => t('Fast')),
'#weight' => 3,
);
break;
case 'html5':
$form['instance_settings']['wrapper'] = array(
'#options' => array('section' => t('Section'), 'article' => t('Article'), 'header' => t('Header'),
'footer' => t('Footer'), 'aside' => t('Aside')),
);
break;
case 'fieldset':
break;
case 'multipage-group':
$form['instance_settings']['page_header'] = array(
'#options' => array(0 => t('None'), 1 => t('Label only'), 2 => t('Step 1 of 10'), 3 => t('Step 1 of 10
[Label]'),),
'#weight' => 1,
);
$form['instance_settings']['page_counter'] = array(
'#options' => array(0 => t('No'), 1 => t('Format 1 / 10'), 2 => t('The count number only')),
);
$form['instance_settings']['move_button'] = array(
'#weight' => 3,
);
$form['instance_settings']['move_additional'] = array(
'#weight' => 4,
);
case 'tabs':
case 'htabs':
break;
case 'accordion':
$form['instance_settings']['effect'] = array(
'#weight' => 2,
);
break;
case 'multipage':
break;
case 'tab':
case 'htab':
case 'accordion-item':
default:
return $form;
/**
*/
function field_group_pre_render_prepare(&$group) {
$classes = _field_group_get_html_classes($group);
$group->description = !empty($group->format_settings['instance_settings']['description']) ?
filter_xss_admin(t($group->format_settings['instance_settings']['description'])) : '';
}
/**
* Implements hook_field_group_pre_render().
*/
field_group_pre_render_prepare($group);
$form['#attached']['js'][] = array(
);
$element['#id'] = drupal_html_id($group->format_settings['instance_settings']['id']);
$element['#weight'] = $group->weight;
if (function_exists($function)) {
/**
* Implements field_group_pre_render_<format-type>.
*/
$element += array(
);
if ($group->collapsible || $group->collapsed) {
}
/**
* Implements field_group_pre_render_<format-type>.
*/
$group->classes = trim($group->classes);
// This regex split the attributes string so that we can pass that
// later to drupal_attributes().
$element_attributes = array();
$element_attributes[$attribute] = $matches[2][$key];
$element_attributes['class'] = $group->classes;
if (isset($element['#id'])) {
$element_attributes['id'] = $element['#id'];
$element_attributes = _filter_xss_attributes(drupal_attributes($element_attributes));
if ($show_label) {
/**
* Implements field_group_pre_render_<format-type>.
*/
$element['#type'] = 'markup';
if ($group->format_settings['formatter'] != 'open') {
$element['#suffix'] = '</div></div>';
else {
if ($show_label) {
}
$element['#suffix'] = '</div>';
if (!empty($group->description)) {
if ($effect == 'blind') {
/**
* Implements field_group_pre_render_<format-type>.
*/
$element += array(
);
}
/**
* Implements field_group_pre_render_<format-type>.
*/
$element += array(
);
/**
* Implements field_group_pre_render_<format-type>.
*/
$element += array(
);
if (!empty($group->description)) {
/**
* Implements field_group_pre_render_<format-type>.
*/
$element += array(
);
// By default vertical_tabs don't have titles but you can override it in the theme.
if (!empty($group->label)) {
$element['#title'] = check_plain($group->label);
$element['#attached']['js'][] = 'misc/form.js';
/**
* Implements field_group_pre_render_<format-type>.
* Format type: Horizontal tab.
*/
$element += array(
);
/**
* Implements field_group_pre_render_<format-type>.
$multipage_element = array(
);
$element += $multipage_element;
$move_additional = isset($group->format_settings['instance_settings']['move_additional']) ?
($group->format_settings['instance_settings']['move_additional'] &&
isset($form['additional_settings'])) : isset($form['additional_settings']);
drupal_add_js(array(
), 'setting');
/**
* Implements field_group_pre_render_<format-type>.
*/
$element += array(
);
/**
* Implements field_group_pre_render_<format-type>.
*/
if (!empty($group->classes)) {
$element += array(
);
// By default vertical_tabs don't have titles but you can override it in the theme.
if (!empty($group->label)) {
$element['#title'] = check_plain($group->label);
);
/**
* Implements field_group_pre_render_<format-type>.
*/
$form['#attached']['js'][] = array(
);
$add = array(
);
if ($view_mode != 'form') {
$add['#parents'] = array($add['#group']);
$element += $add;
elseif (!empty($group->parent_name)) {
$add['#group'] = $group->parent_name;
$element += $add;
// Forms "can" have additional settins. We'll try to locate it first, if not
else {
$add['#parents'] = array('additional_settings');
$add['#group'] = 'additional_settings';
$add['#weight'] = -30 + $group->weight; // hardcoded to bring our extra additional vtabs on top.
if (isset($form['additional_settings']['group']['#groups']['additional_settings'])) {
// Merge fieldgroups with the core additional settings.
$form['additional_settings']['group']['#groups']['additional_settings'][$group->group_name] =
$add;
$form['additional_settings']['group']['#groups'][$group->group_name] = array('#group_exists'
=> TRUE);
$form['additional_settings']['group']['#groups']['additional_settings'][$group-
>group_name][$fieldname] = &$element[$fieldname];
unset($element[$fieldname]);
// Assumption the wrapper is in the root. This could be done by field_group itself
// in previous loop of tabs in same wrapper or even some other contrib / custom module.
else {
if (!isset($form['additional_settings']['#type'])) {
$form['additional_settings'] = array(
);
$form['additional_settings'][$group->group_name] = $add;
$form['additional_settings'][$group->group_name][$fieldname] = &$element[$fieldname];
unset($element[$fieldname]);
}
/**
* Implements hook_field_group_build_pre_render_alter().
*/
$element['#node']->content = array();
$display = isset($element['#view_mode']);
$groups = array_keys($element['#groups']);
if ($display) {
field_group_remove_empty_display_groups($element, $groups);
else {
// Move additional settings to the last multipage pane if configured that way.
$parent_group = $element['#groups'][$name];
$move_additional = isset($parent_group-
>format_settings['instance_settings']['move_additional']) ? $parent_group-
>format_settings['instance_settings']['move_additional'] : 1;
$last_pane = NULL;
$last_pane = $pane;
$element[$name][$last_pane]['additional_settings'] = $element['additional_settings'];
unset($element['additional_settings']);
/**
*/
$children = element_children($element);
$hasChildren = FALSE;
if (count($children)) {
if (!$hasChildren) {
if (isset($group->children)) {
$group_children = array_flip($group->children);
if (isset($group_children[$name])) {
unset($form_groups[$group_name]->children[$group_children[$name]]);
$element['#access'] = FALSE;
/**
*/
if (in_array($exception, $exceptions)) {
return TRUE;
if (isset($element[$childname]['#type'])
|| isset($element[$childname]['#markup'])
|| isset($element[$childname]['#prefix'])
|| isset($element[$childname]['#suffix'])
){
return TRUE;
if (in_array($childname, $groups)) {
return FALSE;
$children = element_children($element[$childname]);
return TRUE;
return FALSE;
/**
$empty_child = TRUE;
$empty_group = TRUE;
if (in_array($name, $groups)) {
if (!$empty_child) {
$empty_group = FALSE;
// Child is a field, the element is not empty and access is set to true (or empty).
$empty_group = FALSE;
if ($empty_group) {
$element = NULL;
}
return $empty_group;
/**
* Implements hook_field_group_format_summary().
*/
function field_group_field_group_format_summary($group) {
$output = '';
if (isset($group->format_settings['formatter'])) {
if (isset($group->format_settings['instance_settings'])) {
$last = end($group->format_settings['instance_settings']);
if (empty($value)) {
continue;
if (isset($group_form['instance_settings'], $group_form['instance_settings'][$key]['#options']))
{
if (is_array($value)) {
else {
$value = $group_form['instance_settings'][$key]['#options'][$value];
elseif (is_numeric($value)) {
$output .= check_plain($value);
return $output;
/**
* Implements hook_element_info().
*/
function field_group_element_info() {
$types['horizontal_tabs'] = array(
$types['multipage'] = array(
);
$types['multipage_pane'] = array(
);
return $types;
/**
* Implements hook_library().
*/
function field_group_library() {
// Horizontal Tabs.
$libraries['horizontal-tabs'] = array(
),
'css' => array(
),
);
// Multipage Tabs.
$libraries['multipage'] = array(
),
),
);
return $libraries;
/**
* Implements hook_field_extra_fields().
*/
function field_group_field_extra_fields() {
$extra = array();
$extra['user']['user']['form']['picture'] = array(
'weight' => 5,
);
if (module_exists('overlay')) {
$extra['user']['user']['form']['overlay_control'] = array(
'weight' => 5,
);
if (module_exists('contact')) {
$extra['user']['user']['form']['contact'] = array(
'weight' => 5,
);
if (module_exists('locale')) {
$extra['user']['user']['form']['locale'] = array(
'label' => t('Language settings'),
'weight' => 5,
);
if (module_exists('wysiwyg')) {
$extra['user']['user']['form']['wysiwyg'] = array(
'weight' => 5,
);
return $extra;
/**
* Implements hook_field_attach_rename_bundle().
*/
));
}
/**
* This function will never be callable from within field_group rendering. Other
* modules using #type horizontal_tabs will have the benefit of this processor.
* @param $element
* fieldset.
* @param $form_state
* The $form_state array for the form this horizontal tab widget belongs to.
* @return
*/
$element['group'] = array(
);
// field so that the active tab can be restored the next time the
// fails.
if (isset($form_state['values'][$name . '__active_tab'])) {
$element['#default_tab'] = $form_state['values'][$name . '__active_tab'];
);
return $element;
/**
* @param $variables
* @ingroup themeable
*/
function theme_horizontal_tabs($variables) {
$element = $variables['element'];
drupal_add_library('field_group', 'horizontal-tabs');
/**
* This function will never be callable from within field_group rendering. Other
* modules using #type multipage will have the benefit of this processor.
* @param $element
* fieldset.
* @param $form_state
* The $form_state array for the form this multipage tab widget belongs to.
* @return
*/
$element['group'] = array(
);
// field so that the active control can be restored the next time the
if (isset($form_state['values'][$name . '__active_control'])) {
);
return $element;
/**
* @param $variables
* @ingroup themeable
*/
function theme_multipage($variables) {
$element = $variables['element'];
$output .= $element['#children'];
$output .= '</div>';
<div class="popup-contenedor">
<div class="tree">
<ul>
<li>
<ul>
<li>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
</li>
<li>
<div id="paso2M">escenarios</div>
<ul>
<li>
</li>
<li>
</li>
<li>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>';
return $output;
$contador=0;
/**
* @param $variables
* @ingroup themeable
*/
function theme_multipage_pane($variables) {
$element = $variables['element'];
$group = $variables['element']['#group_object'];
$parent_group = $variables['element']['#parent_group_object'];
static $multipages;
if (!isset($multipages[$group->parent_name])) {
$multipages[$parent_group->group_name]++;
$titulo = array($element['#title']);
$page_header = isset($parent_group->format_settings['instance_settings']['page_header']) ?
$parent_group->format_settings['instance_settings']['page_header'] : 3;
switch ($page_header) {
case 1:
$title = $element['#title'];
break;
case 2:
break;
case 3:
$title =
t((($multipages[$parent_group->group_name]-1)/count($parent_group->children)*100 )).
t('%;background:#4CAF50 "').
t('</div></div>')*/
t('<div class="titulo">').
t('</div>');
break;
case 0:
default:
$title = '';
break;
}
element_set_attributes($element, array('id'));
_form_set_class($element, array('form-wrapper'));
if (!empty($element['#title'])) {
if (!empty($element['#description'])) {
$output .= $element['#children'];
if (isset($element['#value'])) {
$output .= $element['#value'];
// counter array(0 => t('No'), 1 => t('Format 1 / 10'), 2 => t('The count number only'));
$page_counter_format = isset($parent_group-
>format_settings['instance_settings']['page_counter']) ? $parent_group-
>format_settings['instance_settings']['page_counter'] : 1;
$multipage_element['#page_counter_rendered'] = '';
if ($page_counter_format == 1) {
}
elseif ($page_counter_format == 2) {
$output .= '</div>';
$output .= "</div>";
return $output;
/**
* @param $entity_type
* @param $bundle
* @param $view_mode
* @param $reset.
*/
if (!$groups || $reset) {
else {
$ctools_export_load_object = &drupal_static('ctools_export_load_object');
$ctools_export_load_object_all = &drupal_static('ctools_export_load_object_all');
unset($ctools_export_load_object['field_group']);
unset($ctools_export_load_object_all['field_group']);
$groups = field_group_read_groups();
if (!isset($entity_type)) {
return $groups;
return $groups[$entity_type];
return $groups[$entity_type][$bundle];
elseif (isset($groups[$entity_type][$bundle][$view_mode])) {
return $groups[$entity_type][$bundle][$view_mode];
return array();
/**
* @return array
* Array of groups.
*/
$groups = array();
ctools_include('export');
if (empty($conditions)) {
$records = ctools_export_load_object('field_group');
else {
continue;
$groups[$group->entity_type][$group->bundle][$group->mode][$group->group_name] =
field_group_unpack($group);
drupal_alter('field_group_info', $groups);
return $groups;
/**
*/
function _field_group_recreate_identifiers() {
->fields('fg')
->execute();
$rows = array();
foreach($result as $row) {
$row->data = unserialize($row->data);
$rows[] = $row;
/**
*/
$groups = field_group_read_groups();
return !empty($groups[$entity_type][$bundle][$mode][$group_name]);
/**
* @param $packed_group
*/
function field_group_unpack($packed_group) {
if (empty($packed_group->data)) {
return $packed_group;
$data = $group->data;
unset($group->data);
if (isset($data['format_settings'])) {
$group->format_settings = $data['format_settings'];
return $group;
/**
* @param $group
* FieldGroup object.
* @return $record
function field_group_pack($group) {
$record->data = array(
);
if (isset($record->format_settings)) {
$record->data['format_settings'] = $record->format_settings;
return $record;
/**
* @param $group
* A group definition.
* @param $ctools_crud
*/
$query = db_delete('field_group');
if (isset($group->identifier)) {
$query->condition('identifier', $group->identifier);
if (!$ctools_crud) {
ctools_export_crud_disable('field_group', $group->identifier);
elseif (isset($group->id)) {
$query->condition('id', $group->id);
if (!empty($group->mode)) {
$query->condition('mode', $group->mode);
$query->execute();
cache_clear_all('field_groups', 'cache_field');
module_invoke_all('field_group_delete_field_group', $group);
/**
* field_group_group_save().
* through ctools_export_crud_save().
*
* @param $group
* A group definition.
*/
$object = field_group_pack($group);
// Existing record.
$update = array('id');
module_invoke_all('field_group_update_field_group', $object);
else {
// New record.
$update = array();
$object->export_type = EXPORT_IN_DATABASE;
module_invoke_all('field_group_create_field_group', $object);
/**
*/
$formatters = $cached->data;
else {
$formatters = array();
$formatters += module_invoke_all('field_group_formatter_info');
$hidden_region = array(
);
//$formatters['form']['hidden'] = $hidden_region;
$formatters['display']['hidden'] = $hidden_region;
$cache = $formatters;
return $cache;
/**
*/
$entity_type = $element['#entity_type'];
$bundle = $element['#bundle'];
$element['#fieldgroups'] = $element['#groups'];
$group_children = array();
if (!empty($group->children)) {
$group_children[$child] = $group_name;
$element['#group_children'] = $group_children;
/**
* @see field_group_field_attach_form
function field_group_form_pre_render(&$element) {
/**
* @see field_group_form_pre_render()
* @see field_group_theme_registry_alter
* @see field_group_fields_nest()
*/
if ($type == 'form') {
$element = &$vars;
$nest_vars = NULL;
else {
$element = &$vars['elements'];
$nest_vars = &$vars;
if (empty($element['#fieldgroups'])) {
return $element;
}
field_group_fields_nest($element, $nest_vars);
drupal_alter('field_group_build_pre_render', $element);
if ($type == 'form') {
return $element;
if (empty($element['#fieldgroups'])) {
return $element;
$vars['content'][$group->group_name] = $element[$group->group_name];
elseif (!empty($element[$group->group_name])) {
$vars['user_profile'][$group->group_name] = $element[$group->group_name];
/**
* This function will take out all the elements in the form and
*/
// Create all groups and keep a flat list of references to these groups.
$group_references = array();
if (is_string($group_name)) {
// Construct own weight, as some fields (for example preprocess fields) don't have weight set.
$element[$group_name] = array();
$group_references[$group_name] = &$element[$group_name];
// Loop through all form children looking for those that are supposed to be
// in groups, and insert placeholder element for the new group field in the
$element_clone = array();
$element_clone[$child_name] = $element[$child_name];
if (isset($element['#group_children'][$child_name])) {
$element_clone[$element['#group_children'][$child_name]] = array();
// Move all children to their parents. Use the flat list of references for
if ($vars) {
$group_references[$parent_name][$child_name] = $vars['content'][$child_name];
unset($vars['content'][$child_name]);
$group_references[$parent_name][$child_name] = $vars['user_profile'][$child_name];
unset($vars['user_profile'][$child_name]);
}
// If this is a group, we have to use a reference to keep the reference
else {
$group_references[$parent_name][$child_name] = &$element[$child_name];
unset($element[$child_name]);
else {
// Fields (not groups) that don't have children (like field_permissions) are removed
// in field_group_field_group_build_pre_render_alter.
$group_references[$parent_name][$child_name] = &$element[$child_name];
$group_references[$parent_name]['#weight'] = $element['#fieldgroups'][$parent_name]-
>weight;
// The child has been copied to its parent: remove it from the root element.
unset($element[$child_name]);
/**
* @see field_group_fields_nest()
*/
// $group->group_name
if ($element == array()) {
return;
if (function_exists($function)) {
/**
*/
$element['#fieldgroups'][$group_name]->format_type = 'hidden';
$sub_groups = array();
if (isset($element['#fieldgroups'][$field_name])) {
$sub_groups[] = $field_name;
} else {
$element[$field_name]['#access'] = FALSE;
field_group_hide_field_groups($element, $sub_groups);
/**
*/
function _field_group_get_html_classes(&$group) {
if (isset($group->format_settings['formatter'])) {
$group->collapsible = TRUE;
$required = array();
if ($group->format_type == 'multipage') {
else {
$required[] = 'collapsible';
if ($group->collapsed) {
$required[] = 'collapsed';
if (isset($group->format_settings['instance_settings'])) {
if (!empty($group->format_settings['instance_settings']['required_fields'])) {
$required[] = 'required-fields';
if (!empty($group->format_settings['instance_settings']['classes'])) {
$required[] = check_plain($group->format_settings['instance_settings']['classes']);
if ($group->format_type == 'div') {
if ($group->format_settings['formatter'] != 'open') {
$speed = isset($group->format_settings['instance_settings']['speed']) ? $group-
>format_settings['instance_settings']['speed'] : 'none';
$classes->required = $required;
$classes->optional = $optional;
return $classes;
/**
* Get the default formatter settings for a given formatter and a mode.
*/
function _field_group_get_default_formatter_settings($format_type, $mode) {
$field_group_types = field_group_formatter_info();
$formatter = $field_group_types[$display_mode][$format_type];
return array(
);
/**
*/
ctools_include('export');
$schema = ctools_export_get_schema('field_group');
$export = $schema['export'];
$translatables = array();
$code = "/**\n";
if (!empty($object->data['label'])) {
$translatables[] = $object->data['label'];
if (!empty($object->data['description'])) {
$translatables[] = $object->data['description'];
if (!empty($translatables)) {
$code .= "}\n";
return $code;
}
/home/luised/Escritorio/deployments/TNC/dss-
magdalena/docroot/profiles/dss_magdalena/modules/contrib/field_group/multipage/multipage.j
s
$( document ).ready(function() {
/*var id = $(this).attr("datos basicos");
console.log(id);*/
tipoForm = document.getElementById("seleccion de escenario");
tipoForm1 = document.getElementById("selección hidroenergía");
tipoForm2 = document.getElementById("selección clima");
if (tipoForm1 == undefined && tipoForm2 == undefined ){
document.getElementById("datos basicos").innerHTML = "Paso 1";
document.getElementById("datos basicos").style.backgroundColor =
"#104659";
document.getElementById("datos basicos").style.color =
"#DFF1F2";
document.getElementById("seleccion de escenario").innerHTML =
"Paso 2";
document.getElementById("seleccion de plan integral").innerHTML
= "Paso 3";
document.getElementById("Datos finales").innerHTML = "Paso 4";
document.getElementById("paso1M").style.backgroundColor =
"#104659";
document.getElementById("paso1M").style.color = "#DFF1F2";
}
if (tipoForm == undefined && tipoForm2 == undefined){
document.getElementById("datos basicos").innerHTML = "Paso 1";
document.getElementById("datos basicos").style.backgroundColor =
"#104659";
document.getElementById("datos basicos").style.color =
"#DFF1F2";
document.getElementById("multiformid").style.marginLeft = "-
15%";
document.getElementById("selección hidroenergía").innerHTML =
"paso 2 ";
document.getElementById("selección uso del suelo").innerHTML =
"paso 3 ";
document.getElementById("selección humedales").innerHTML = "paso
4 ";
document.getElementById("datos finales").innerHTML = "paso 5 ";
}
if(tipoForm == undefined && tipoForm1 == undefined){
document.getElementById("selección clima").innerHTML = "Paso 1";
document.getElementById("selección clima").style.backgroundColor
= "#104659";
document.getElementById("selección clima").style.color =
"#DFF1F2";
document.getElementById("selección energía").innerHTML = "paso 2
";
document.getElementById("selección población").innerHTML = "paso
3 ";
document.getElementById("datos finales").innerHTML = "paso 4 ";
}
});
var paso=1;
function siguientePagina(e){
if (tipoForm1 == undefined && tipoForm2 == undefined){
if ( paso == 1 ){
document.getElementById("datos basicos").style.backgroundColor
= "#104659";
}
if ( paso == 2 ){
document.getElementById("datos basicos").style.backgroundColor
= "#2ca13a";
document.getElementById("datos basicos").innerHTML = "✓";
document.getElementById("datos basicos").style.color =
"#DFF1F2";
document.getElementById("seleccion de
escenario").style.backgroundColor = "#104659";
document.getElementById("seleccion de escenario").style.color
= "#DFF1F2";
document.getElementById("paso1M").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M").style.backgroundColor =
"#104659";
document.getElementById("paso2M").style.color = "#DFF1F2";
}
if ( paso == 3 ){
document.getElementById("seleccion de
escenario").style.backgroundColor = "#2ca13a";
document.getElementById("seleccion de escenario").innerHTML =
"✓";
document.getElementById("seleccion de plan
integral").style.backgroundColor = "#104659";
document.getElementById("seleccion de plan
integral").style.color = "#DFF1F2";
document.getElementById("paso2M").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M1").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M1").style.color = "#DFF1F2";
document.getElementById("paso2M2").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M2").style.color = "#DFF1F2";
document.getElementById("paso2M3").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M3").style.color = "#DFF1F2";
document.getElementById("paso3M").style.backgroundColor =
"#104659";
document.getElementById("paso3M").style.color = "#DFF1F2";
}
if ( paso == 4 ){
document.getElementById("seleccion de plan
integral").style.backgroundColor = "#2ca13a";
document.getElementById("seleccion de plan
integral").innerHTML = "✓";
document.getElementById("Datos finales").style.backgroundColor
= "#104659";
document.getElementById("Datos finales").style.color =
"#DFF1F2";
document.getElementById("paso3M").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M1").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M1").style.color = "#DFF1F2";
document.getElementById("paso3M2").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M2").style.color = "#DFF1F2";
document.getElementById("paso3M3").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M3").style.color = "#DFF1F2";
}
}
if (tipoForm == undefined && tipoForm2 == undefined){
if ( paso == 1 ){
document.getElementById("datos basicos").style.backgroundColor
= "#104659";
}
if ( paso == 2 ){
document.getElementById("datos basicos").style.backgroundColor
= "#2ca13a";
document.getElementById("datos basicos").innerHTML = "✓";
document.getElementById("datos basicos").style.color =
"#DFF1F2";
document.getElementById("selección
hidroenergía").style.backgroundColor = "#104659";
document.getElementById("selección hidroenergía").style.color
= "#DFF1F2";
document.getElementById("paso3M1").style.backgroundColor =
"#104659";
document.getElementById("paso3M1").style.color = "#DFF1F2";
}
if ( paso == 3 ){
document.getElementById("selección
hidroenergía").style.backgroundColor = "#2ca13a";
document.getElementById("selección hidroenergía").innerHTML =
"✓";
document.getElementById("selección uso del
suelo").style.backgroundColor = "#104659";
document.getElementById("selección uso del suelo").style.color
= "#DFF1F2";
document.getElementById("paso3M1").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M2").style.backgroundColor =
"#104659";
document.getElementById("paso3M2").style.color = "#DFF1F2";
}
if ( paso == 4 ){
document.getElementById("selección uso del
suelo").style.backgroundColor = "#2ca13a";
document.getElementById("selección uso del suelo").innerHTML =
"✓";
document.getElementById("selección
humedales").style.backgroundColor = "#104659";
document.getElementById("selección humedales").style.color =
"#DFF1F2";
document.getElementById("paso3M2").style.backgroundColor =
"#2ca13a";
document.getElementById("paso3M3").style.backgroundColor =
"#104659";
document.getElementById("paso3M3").style.color = "#DFF1F2";
}
if ( paso == 5 ){
document.getElementById("selección
humedales").style.backgroundColor = "#2ca13a";
document.getElementById("selección humedales").innerHTML =
"✓";
document.getElementById("datos finales").style.backgroundColor
= "#104659";
document.getElementById("datos finales").style.color =
"#DFF1F2";
}
}
if (tipoForm == undefined && tipoForm1 == undefined){
if ( paso == 1 ){
document.getElementById("selección
clima").style.backgroundColor = "#104659";
}
if ( paso == 2 ){
document.getElementById("selección
clima").style.backgroundColor = "#2ca13a";
document.getElementById("selección clima").innerHTML = "✓";
document.getElementById("selección clima").style.color =
"#DFF1F2";
document.getElementById("selección
energía").style.backgroundColor = "#104659";
document.getElementById("selección energía").style.color =
"#DFF1F2";
document.getElementById("paso2M1").style.backgroundColor =
"#104659";
document.getElementById("paso2M1").style.color = "#DFF1F2";
}
if ( paso == 3 ){
document.getElementById("selección
energía").style.backgroundColor = "#2ca13a";
document.getElementById("selección energía").innerHTML = "✓";
document.getElementById("selección
población").style.backgroundColor = "#104659";
document.getElementById("selección población").style.color =
"#DFF1F2";
document.getElementById("paso2M1").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M2").style.backgroundColor =
"#104659";
document.getElementById("paso2M2").style.color = "#DFF1F2";
}
if ( paso == 4 ){
document.getElementById("selección
población").style.backgroundColor = "#2ca13a";
document.getElementById("selección población").innerHTML =
"✓";
document.getElementById("datos finales").style.backgroundColor
= "#104659";
document.getElementById("datos finales").style.color =
"#DFF1F2";
document.getElementById("paso2M2").style.backgroundColor =
"#2ca13a";
document.getElementById("paso2M3").style.backgroundColor =
"#104659";
document.getElementById("paso2M3").style.color = "#DFF1F2";
}
}
console.log(paso);
};
function retrocederPaso(e){
if (tipoForm1 == undefined && tipoForm2 == undefined){
if ( paso == 1 ){
document.getElementById("datos basicos").style.backgroundColor
= "#104659";
document.getElementById("datos basicos").innerHTML = "Paso 1";
document.getElementById("seleccion de
escenario").style.backgroundColor = "#DFF1F2";
document.getElementById("seleccion de escenario").innerHTML =
"Paso 2";
document.getElementById("seleccion de escenario").style.color
= "#0D333D";
document.getElementById("paso1M").style.backgroundColor =
"#104659";
document.getElementById("paso2M").style.backgroundColor =
"#FFF";
document.getElementById("paso2M").style.color = "#104659";
}
if ( paso == 2 ){
document.getElementById("seleccion de
escenario").style.backgroundColor = "#104659";
document.getElementById("seleccion de escenario").innerHTML =
"Paso 2";
document.getElementById("seleccion de plan
integral").style.backgroundColor = "#DFF1F2";
document.getElementById("seleccion de plan
integral").style.color = "#0D333D";
document.getElementById("seleccion de plan
integral").innerHTML = "Paso 3";
document.getElementById("paso2M").style.backgroundColor =
"#104659";
document.getElementById("paso3M").style.backgroundColor =
"#FFF";
document.getElementById("paso3M").style.color = "#104659";
document.getElementById("paso2M1").style.backgroundColor =
"#FFF";
document.getElementById("paso2M1").style.color = "#104659";
document.getElementById("paso2M2").style.backgroundColor =
"#FFF";
document.getElementById("paso2M2").style.color = "#104659";
document.getElementById("paso2M3").style.backgroundColor =
"#FFF";
document.getElementById("paso2M3").style.color = "#104659";
}
if ( paso == 3 ){
document.getElementById("seleccion de plan
integral").style.backgroundColor = "#104659";
document.getElementById("seleccion de plan
integral").innerHTML = "Paso 3";
document.getElementById("Datos finales").style.backgroundColor
= "#DFF1F2";
document.getElementById("Datos finales").style.color =
"#0D333D";
document.getElementById("Datos finales").innerHTML = "Paso 4";
document.getElementById("paso3M").style.backgroundColor =
"#104659";
document.getElementById("paso3M1").style.backgroundColor =
"#FFF";
document.getElementById("paso3M1").style.color = "#104659";
document.getElementById("paso3M2").style.backgroundColor =
"#FFF";
document.getElementById("paso3M2").style.color = "#104659";
document.getElementById("paso3M3").style.backgroundColor =
"#FFF";
document.getElementById("paso3M3").style.color = "#104659";
}
}
if (tipoForm == undefined && tipoForm2 == undefined){
if ( paso == 1 ){
document.getElementById("datos basicos").style.backgroundColor =
"#104659";
document.getElementById("datos basicos").innerHTML = "Paso 1";
document.getElementById("selección
hidroenergía").style.backgroundColor = "#DFF1F2";
document.getElementById("selección hidroenergía").innerHTML =
"Paso 2";
document.getElementById("selección hidroenergía").style.color =
"#0D333D";
document.getElementById("paso3M1").style.backgroundColor =
"#FFF";
document.getElementById("paso3M1").style.color = "#104659";
}
if ( paso == 2 ){
document.getElementById("selección
hidroenergía").style.backgroundColor = "#104659";
document.getElementById("selección hidroenergía").innerHTML =
"Paso 2";
document.getElementById("selección uso del
suelo").style.backgroundColor = "#DFF1F2";
document.getElementById("selección uso del suelo").style.color =
"#0D333D";
document.getElementById("selección uso del suelo").innerHTML =
"Paso 3";
document.getElementById("paso3M1").style.backgroundColor =
"#104659";
document.getElementById("paso3M2").style.backgroundColor =
"#FFF";
document.getElementById("paso3M2").style.color = "#104659";
}
if ( paso == 3 ){
document.getElementById("selección uso del
suelo").style.backgroundColor = "#104659";
document.getElementById("selección uso del suelo").innerHTML =
"Paso 3";
document.getElementById("selección
humedales").style.backgroundColor = "#DFF1F2";
document.getElementById("selección humedales").style.color =
"#0D333D";
document.getElementById("selección humedales").innerHTML = "Paso
4";
document.getElementById("paso3M2").style.backgroundColor =
"#104659";
document.getElementById("paso3M3").style.backgroundColor =
"#FFF";
document.getElementById("paso3M3").style.color = "#104659";
}
if ( paso == 4 ){
document.getElementById("selección
humedales").style.backgroundColor = "#104659";
document.getElementById("selección humedales").innerHTML = "Paso
4";
document.getElementById("datos finales").style.backgroundColor =
"#DFF1F2";
document.getElementById("datos finales").style.color =
"#0D333D";
document.getElementById("datos finales").innerHTML = "Paso 5";
}
}
if (tipoForm == undefined && tipoForm1 == undefined){
if ( paso == 1 ){
document.getElementById("selección clima").style.backgroundColor
= "#104659";
document.getElementById("selección clima").innerHTML = "Paso 1";
document.getElementById("selección
energía").style.backgroundColor = "#DFF1F2";
document.getElementById("selección energía").innerHTML = "Paso
2";
document.getElementById("selección energía").style.color =
"#0D333D";
document.getElementById("paso2M1").style.backgroundColor =
"#FFF";
document.getElementById("paso2M1").style.color = "#104659";
}
if ( paso == 2 ){
document.getElementById("selección
energía").style.backgroundColor = "#104659";
document.getElementById("selección energía").innerHTML = "Paso
2";
document.getElementById("selección
población").style.backgroundColor = "#DFF1F2";
document.getElementById("selección población").innerHTML = "Paso
3";
document.getElementById("selección población").style.color =
"#0D333D";
document.getElementById("paso2M1").style.backgroundColor =
"#104659";
document.getElementById("paso2M2").style.backgroundColor =
"#FFF";
document.getElementById("paso2M2").style.color = "#104659"
}
if ( paso == 3 ){
document.getElementById("selección
población").style.backgroundColor = "#104659";
document.getElementById("selección población").innerHTML = "Paso
3";
document.getElementById("datos finales").style.backgroundColor =
"#DFF1F2";
document.getElementById("datos finales").innerHTML = "Paso 4";
document.getElementById("datos finales").style.color =
"#0D333D";
document.getElementById("paso2M2").style.backgroundColor =
"#104659";
document.getElementById("paso2M3").style.backgroundColor =
"#FFF";
document.getElementById("paso2M3").style.color = "#104659";
}
}
console.log(paso);
this.nextLink.click(function (e) {
paso++;
siguientePagina(paso);
e.preventDefault();
self.nextPage();
});
this.previousLink.click(function (e) {
paso--;
retrocederPaso(paso);
e.preventDefault();
self.previousPage();
});
/home/luised/Escritorio/deployments/TNC/dss-
magdalena/docroot/profiles/dss_magdalena/modules/contrib/field_group/field_group.module
<ul>
<li>
<div id="paso3M">alternativas de plan integral</div>
<ul>
<li>
<div id="paso3M1">alternativa hidroelectrica</div>
</li>
<li>
<div id="paso3M2">Cambío del uso del suelo</div>
</li>
<li>
<div id="paso3M3">Manejo de humedales</div>
</li>
</ul>
</li>
<li>
<div id="paso2M">escenarios</div>
<ul>
<li>
<div id="paso2M1">Escenarios climaticos</div>
</li>
<li>
<div id="paso2M2">Escenario de poblacion</div>
</li>
<li>
<div id="paso2M3">Escenario de Energia</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<a class="popup-cerrar" href="#">X</a>
</div>
</div>';
/home/luised/Escritorio/deployments/TNC/dss-
magdalena/docroot/profiles/dss_magdalena/modules/contrib/field_group/multipage/multipage.c
ss
#popup {
visibility: hidden;
opacity: 0;
margin-top: -300px;
}*
#popup:target {
visibility:visible;
opacity: 1;
background-color: rgba(0,0,0,0.8);
position: fixed;
top:0;
left:0;
right:0;
bottom:0;
margin:0;
z-index: 999;
transition:all 1s;
}*
.popup-contenedor {
position: relative;
margin:7% auto;
padding:30px 50px;
background-color: #fafafa;
color:#333;
border-radius: 3px;
width:60%;
height: 60%;
}
a.popup-cerrar {
position: absolute;
top:3px;
right:3px;
background-color: #333;
padding:7px 10px;
font-size: 20px;
text-decoration: none;
line-height: 1;
color:#fff;
}
.popup-contenedor h1{
text-align: center;
}
a.popup-link{
border:1px solid #0D333D;
color: #0D333D;
background: #DFF1F2;
padding: 1%;
border-radius: 5%;
display:scroll;
position:fixed;
bottom:10%;
right:2%;
}
.titulo{
text-align: center;
padding:5%;
font-weight: 900;
}
.multiform h4{
border: 1px solid #0D333D;
text-align: center;
display: inline-block;
margin-left: 15%;
border-radius: 100%;
padding-top: 20px;
padding-bottom: 20px;
padding: 2% 1% 2% 1%;
background: #DFF1F2;
width: 7%;
color: #0D333D;
}
.multiform{
display: inline;
}
.barra_progreso {
width: 100%; /* Full width */
background-color: #ddd; /* Grey background */
}
.progreso {
text-align: right; /* Right-align text */
padding-top: 10px; /* Add top padding */
padding-bottom: 10px; /* Add bottom padding */
color: white; /* White text color */
}
.multipage-controls-list #edit-actions {
float: left; /* LTR */
}
.multipage-button {
margin-bottom: 1em;
margin-top: 0;
float: left; /* LTR */
line-height: 36px;
}
.multipage-button a {
padding-top: 10px;
}
.multipage-counter {
float: right; /* LTR */
margin-right: 5px; /* LTR */
height: 0;
position: relative;
top: 1.8em;
line-height: 30px;
font: 12px arial,sans-serif;
font-weight: bold;
color:#666;
}
a.multipage-link-previous {
font: 12px arial,sans-serif;
font-weight: bold;
color:#666;
-webkit-transition: color 218ms;
-moz-transition: color 218ms;
-o-transition: color 218ms;
transition: color 218ms;
}
a.multipage-link-previous:hover {
text-decoration:none;
color: #333;
}
.multipage-controls-list input.form-submit {
background:none;
border: none;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border: 1px solid rgba(0, 0, 0, 0.1);
font: 12px arial,sans-serif;
font-weight: bold;
color: #666;
text-shadow: 0 1px 0 white;
padding: 7px 12px;
background: -webkit-gradient(linear,0% 40%,0%
70%,from(whiteSmoke),to(#F1F1F1));
-o-transition: border-top-color 0.218s,border-right-color
0.218s,border-bottom-color 0.218s,border-left-color .218s;
-webkit-transition: border-color .218s;
}
.multipage-controls-list input.form-submit:hover {
color:#333;
box-shadow: 0 1px 1px rgba(0,0,0,0.1);
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.1);
border-color: #939393;
}
.multipage-controls-list input.form-submit:active {
background: -webkit-gradient(linear,0% 40%,0%
70%,from(#F1F1F1),to(whiteSmoke));
}
.multipage-controls-list input#edit-submit {
background: #4D90FE; /* for non-css3 browsers */
background-image: #4D90FE; /* for non-css3 browsers */
background-image: -o-linear-gradient(top,#4d90fe,#4787ed);
filter:
progid:DXImageTransform.Microsoft.gradient(startColorstr='#4D90FE',
endColorstr='#4787ED'); /* for IE */
background: -webkit-gradient(linear, center top, center bottom,
from(#4D90FE), to(#4787ED)); /* for webkit browsers */
background: -moz-linear-gradient(center top, #4D90FE, #4787ED); /*
for firefox 3.6+ */
color: white;
text-shadow: none;
text-transform: uppercase;
min-width: 79px;
}
.multipage-controls-list input#edit-submit:hover {
background-image: -moz-linear-gradient(top,#4d90fe,#357ae8);
background-image: -o-linear-gradient(top,#4d90fe,#357ae8);
background-image: -webkit-gradient(linear,left top,left
bottom,from(#4d90fe),to(#357ae8));
color: white;
text-shadow: none;
box-shadow: 0 1px 1px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.multipage-controls-list input#edit-submit:active {
background: #4D90FE;
border-color: #2F5BB7;
}
.multipage-controls-list input#edit-delete {
background-image: -moz-linear-gradient(top,#dd4b39,#d14836);
background-image: -o-linear-gradient(top,#dd4b39,#d14836);
background-image: -webkit-gradient(linear,left top,left
bottom,from(#dd4b39),to(#d14836));
text-shadow: 0 1px rgba(0, 0, 0, 0.1);
border: 1px solid transparent;
color: white;
text-shadow: none;
.multipage-controls-list input#edit-delete:hover {
background-image: -moz-linear-gradient(top,#dd4b39,#c53727);
background-image: -o-linear-gradient(top,#dd4b39,#c53727);
background-image: -webkit-gradient(linear,left top,left
bottom,from(#dd4b39),to(#c53727));
border: 1px solid #B0281A!important;
border-bottom: 1px solid #AF301F!important;
box-shadow: 0 1px 1px rgba(0,0,0,0.2);
-webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.2);
color: white;
}
.multipage-controls-list input#edit-delete:active {
background-image: -moz-linear-gradient(top,#dd4b39,#b0281a);
background-image: -o-linear-gradient(top,#dd4b39,#b0281a);
background-image: -webkit-gradient(linear,left top,left
bottom,from(#dd4b39),to(#b0281a));
border: 1px solid #992A1b!important;
box-shadow: 0 1px 2px rgba(0,0,0,0.3);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}