![]() |
Documentación GVHIDRA 3.1.5
|
Ir al código fuente de este archivo.
Funciones | |
smarty_block_CWContenedorPestanyas ($params, $content, &$smarty) |
smarty_block_CWContenedorPestanyas | ( | $ | params, |
$ | content, | ||
&$ | smarty | ||
) |
Definición en la lÃnea 34 del archivo block.CWContenedorPestanyas.php.
{ if(!isset($content)) // Si se abre la etiqueta {CWContenedorPestanyas}... { $n_comp = "CWContenedorPestanyas"; //Añadimos el componente al control de Instancias $num=$smarty->igepPlugin->registrarInstancia($n_comp); } else { $igepSmarty = new IgepSmarty(); if ($params['id']) { $nomPestanyero = $params['id']; } else { $n_comp = "CWContenedorPestanyas"; $num=$smarty->igepPlugin->getNumeroInstancia("CWContenedorPestanyas"); $llamadas_js = ""; $nomPestanyero = $n_comp.$num; } $script = ''; $script .= "var ".$nomPestanyero." = new oPestanyas(\"".$nomPestanyero."\");\n"; $igepSmarty->addPreScript($script); //Registramos el objeto JS $smarty->igepPlugin->registerJSObj($nomPestanyero); $ini_contenedor = "</td><td style='width:15; vertical-align:top'>\n"; $ini_contenedor .= "<table style='height: 100%;' cellspacing='0' cellpadding='0' border='0'>\n"; $ini_contenedor .= "<tr><td style='height: 22;'> </td></tr>\n"; $ini_contenedor .= "<tr><td style='vertical-align:top'>"; $fin_contenedor = "</td></tr></table>\n"; return $igepSmarty->getPreScript().$ini_contenedor.$content.$fin_contenedor; } }