Ver Mensaje Individual
  #7 (permalink)  
Antiguo 14/10/2003, 21:14
Avatar de nuevo
nuevo
 
Fecha de Ingreso: mayo-2003
Ubicación: Spain
Mensajes: 2.009
Antigüedad: 20 años, 10 meses
Puntos: 2
deje el code asi, pero estamos en las mismas... mas aun, me repite el ultimo 2 veces... juas, juas...

index
Código PHP:
<?php
    
require_once("aut_config.inc.php");
    include_once(
'class.NokTemplate.php');

    
$html = new NokTemplate('./templates');


    
$html->setCache('VariableDinamicas'1);


    
$html->cargar('max_template_HTML','theme.inc.tpl');
    
$html->cargar('theme_block_tbl_din','theme.block.tbl.din.inc.tpl');

    
$html->definirBloque('tTabla''theme_block_tbl_din');
    
$html->definirBloque('tFila''theme_block_tbl_din');


    require(
"functions/func.consult.color.dll.inc.php");//cargamos configuracion de colores desde mysql
    
    
require("functions/func.genera.menu.din.inc.php");//cargamos resultados del menu dinamico
    


    
$html->asignar('TITULO',$titulo_portal);
    
$html->asignar('AUTOR',$author_portal);
    
$html->asignar('COPYRIGHT',$copyright_portal);
    
$html->asignar('KEYWORDS',$keywords_portal);
    
$html->asignar('DESCRIPTCION',$description_portal);


    
$html->asignar('TIEMPO_CAPTURADO'date('H:m:s',time()));
    
$html->asignarDinamico('TIEMPO_REAL'date('H:m:s',time()));




    
$html->expandir('FINAL''max_template_HTML');


    
$html->imprimir('FINAL');
?>
-----------------------


/functions/func.genera.menu.din.inc.php
Código PHP:
<?php

for ($cuenta_bucle_02=1;$cuenta_bucle_02<1+1;$cuenta_bucle_02++) {//genero bucle que NO FUNCIONA...:(

    
$consul_menu_din mysql_query("SELECT $selecttbl_dat_menu FROM $sql_tabla_dat_menu WHERE numero_menu='1' AND mostrar_dat='1' ORDER BY posicion_dat ASC") or die("MySQL dice: ".mysql_error());//busca los datos de cada menu


        
while($resultados mysql_fetch_array($consul_menu_din)) {// sacamos los datos en un array


            
$html->asignar('titulo_link_dat_menu',$resultados['titulo_dat']);//asigno los valores
            
$html->asignar('url_link_dat_menu',$resultados['url_dat']);
            
$html->asignar('target_link_dat_menu',$resultados['target_dat']);
            
$html->asignar('info_link_dat_menu',$resultados['info_dat']);


            
$html->expandir('FILAS''+tFila');//expando la tabla


        
}//salimos del while

        
$html->expandir('muestra_menu_dinamico''theme_block_tbl_din');

}
    
mysql_free_result($consul_menu_din);// limpiamos memoria
?>
----------------------------------


templates/theme.block.tbl.din.inc.tpl
Código PHP:
<!-- inicioBloquetTabla -->
<
div align="{div_align_menu}">
    <
table border="{max_menu_bloke_table_border}" width="{max_menu_bloke_table_width}">
        <
tr>
            <
th width="100%" height="15" align="{max_menu_bloke_aling_td}" bgcolor="{max_menu_bloke_td_bgcolor}" background="templates/images/barra_menu.gif"><b>{texto_titulo_menus}</font><b></th>
        <
tr>
            <
td width="100%" height="2" bgcolor="{max_menu_bloke_td_bgcolor}" background="templates/images/barra_menu.gif"></td>
        </
tr>

            {
FILAS}

<!-- 
inicioBloquetFila -->
<
tr>
    <
td width="100%"><a href="functions/func.genera.menu.din.inc.php?accion=redireccion&id={url_link_dat_menu}" target="{target_link_dat_menu}" title="{info_link_dat_menu}" class="max_menu_url" class=&{max_menu};><img src="theme/images/db.gif" height="7" width="8" border="0"> {titulo_link_dat_menu}</a></td>
</
tr>
<!-- 
finBloquetFila -->



        <
tr>
            <
td width="100%" height="2" bgcolor="{max_menu_bloke_td_bgcolor}" background="templates/images/barra_menu.gif"></td>
        </
tr>
        <
tr>
            <
td width="100%" height="6" bgcolor="{max_menu_bloke_td_bgcolor}" background="templates/images/barra_menu.gif"></td>
        </
tr>
    </
table>
</
div>
<!-- 
finBloquetTabla --> 
--------------------------------------------------------------------------

----------------------
__________________
3w.valenciadjs.com
3w.laislatv.com

Última edición por nuevo; 14/10/2003 a las 21:50