/** * Generación de salida HTML para el contenedor de gadgets. */ function generar_html() { if (!empty($this->gadgets)) { $this->configurar_consumos_globales_js(); echo toba_recurso::link_css('gadgets', 'screen'); echo "<div id='gadgets-container' class='gadgets-container'>"; $this->generar_html_gadgets(); echo '</div>'; echo toba_js::abrir(); echo ' var gc = document.getElementById("gadgets-container"); var e; if(document.getElementsByClassName) { e = document.getElementsByClassName("encabezado")[0]; } else { var divs = document.getElementsByTagName("div"); for(var i in divs) { if(divs[i].className == "encabezado") { e = divs[i]; break; } } } gc.style.top = (e.clientHeight + 5)+"px"; '; echo toba_js::cerrar(); } }
protected function plantillas_css() { echo toba_recurso::link_css('toba', 'screen'); echo toba_recurso::link_css('toba_impr', 'print'); $ico = toba_recurso::imagen_proyecto('favicon.ico'); echo '<link rel="icon" href="' . $ico . '" type="image/x-icon" /><link rel="shortcut icon" href="' . $ico . '" type="image/x-icon" />'; }
function generar_layout() { $estilo = $this->menu->plantilla_css(); if ($estilo != '') { echo toba_recurso::link_css($estilo, 'screen', false); } $this->menu->mostrar(); }
function generar_layout() { echo toba_recurso::link_css('tree'); $param = array('ajax-metodo' => 'get_estructura_arbol', 'ajax-modo' => 'D'); $opciones = array('servicio' => 'ajax', 'objetos_destino' => array($this->controlador()->get_id())); $this->url = toba::vinculador()->get_url(null, null, $param, $opciones, true); echo "<ul id='desc_tree' class=\"easyui-tree\"></ul>"; }
protected function plantillas_css() { if (isset($this->menu)) { $estilo = $this->menu->plantilla_css(); if ($estilo != '') { echo toba_recurso::link_css($estilo, 'screen', false); } } parent::plantillas_css(); }
protected function generar_html_encabezado() { echo "<html><head>"; $estilo = toba::proyecto()->get_parametro('estilo'); echo toba_recurso::link_css("toba_impr", 'screen'); echo toba_recurso::link_css("toba_impr", 'print'); echo "<style type='text/css' media='print'>\n\t\t\t.barra-impresion {\n\t\t\t\tdisplay: none;\t\t\t\t\n\t\t\t}\n\t\t\t</style>\n"; toba_js::cargar_consumos_basicos(); echo "</head><body>\n"; echo "<div class='barra-impresion'>"; echo "<button onclick='window.print()'>" . toba_recurso::imagen_toba('impresora.gif', true, null, null) . " Imprimir</button>"; echo "</div>"; echo $this->encabezado(); }
function generar_html() { echo toba_recurso::link_css('highlighter', null, true); parent::generar_html(); }