box categorie

Postate qui discussioni di carattere generale riguardo a problemi di installazione e configurazione di osCommerce

Moderatore: mod Generali

Avatar utente
itan80
membro Senior
membro Senior
Messaggi: 309
Iscritto il: 09/07/2004, 0:00
Località: Italia
Contatta:

Messaggio da itan80 »

si lo so sergio..
ma gli ho semplicemente dato una dritta su come impostare il file categories.php...poi ovviamente le due gif le può togliere...ma dal codice ke ha postato credo ke andrà bene...


ciao
™ ÅñЮ€Å ™

www.mistertemplate.it - Template x osCommerce...
www.microdirect.it - Distribuzione Informatica
nemesi
membro Regular
membro Regular
Messaggi: 106
Iscritto il: 18/05/2005, 10:49

Messaggio da nemesi »

Bass ha scritto:
Occhio che se non aveva gia' sul la contrib enhancement gli dara' delle gif mancanti :)

'iao

Sergio
ciao Sergio :)

la contrib c'è, il file che ha modificato itan l'ho mandato io in pvt...pero' nonostante tutto nn funziona :(

il primo user di osc che ha la box categorie posseduta :D:D:D:D
Avatar utente
itan80
membro Senior
membro Senior
Messaggi: 309
Iscritto il: 09/07/2004, 0:00
Località: Italia
Contatta:

Messaggio da itan80 »

prova con questo column_left semplice semplice...

dovrebbe andare..
a meno ke non hai integrato il box categories.php dentro un altro box...
hai per caso rifatto la grafica?

mi mandi uno screenshot con l'immagine del tuo sito?
nel profilo trovi la mia mail...

Codice: Seleziona tutto

<?php 
/* 
  $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ 

  osCommerce, Open Source E-Commerce Solutions 
  http://www.oscommerce.com 

  Copyright (c) 2003 osCommerce 

  Released under the GNU General Public License 
*/ 


   include(DIR_WS_BOXES . 'categories.php'); 

    include(DIR_WS_BOXES . 'manufacturers.php'); 


  require(DIR_WS_BOXES . 'whats_new.php'); 
  require(DIR_WS_BOXES . 'search.php'); 
include(DIR_WS_BOXES . 'links.php'); 
require(DIR_WS_BOXES . 'info_pages.php'); 
  require(DIR_WS_BOXES . 'information.php'); 
  require(DIR_WS_BOXES . 'whos_online.php'); 
?>
™ ÅñЮ€Å ™

www.mistertemplate.it - Template x osCommerce...
www.microdirect.it - Distribuzione Informatica
Bass
membro Master
membro Master
Messaggi: 3593
Iscritto il: 18/04/2004, 0:00
Località: Varese
Contatta:

Messaggio da Bass »

itan80 ha scritto:prova con questo column_left semplice semplice...
dovrebbe andare..
Infatti, probabilmente e' la cache che continua a fargli vedere la stessa cosa...
Cosi' dovrebbe fuznionare

'iao

Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto

http://www.semilandia.it
nemesi
membro Regular
membro Regular
Messaggi: 106
Iscritto il: 18/05/2005, 10:49

Messaggio da nemesi »

itan80 ha scritto:prova con questo column_left semplice semplice...

dovrebbe andare..
FUNZIONAAAAAAAAAAAAAAAAAAAAAAAAA :) :) :) :)

grazie mille itan...sei stato mitico :):)...e grazie 1000 anche ate Sergio per l'interessamento :):)

grazie infinite ragazzi :):)

p.s.
adesso pero' perdereste qualche secondo a spiegarmi dov'era l'errore?
Bass
membro Master
membro Master
Messaggi: 3593
Iscritto il: 18/04/2004, 0:00
Località: Varese
Contatta:

Messaggio da Bass »

nemesi ha scritto: adesso pero' perdereste qualche secondo a spiegarmi dov'era l'errore?
Probabilemnte hai attivato la cache in admin e ti conservava la precednte versione del box anche quando tu l'avevi fisicamente eliminato

'iao

Sergio
http://www.oscomtemplate.com - E' disponibile il nuovo pacchetto free con forum di supporto

http://www.semilandia.it
Avatar utente
itan80
membro Senior
membro Senior
Messaggi: 309
Iscritto il: 09/07/2004, 0:00
Località: Italia
Contatta:

Messaggio da itan80 »

ciao Sergio proprio così..
era quello che avevo pensato io, infatti gli ho fatto sostituire il codice che aveva:

Codice: Seleziona tutto

if ((USE_CACHE == 'true') && empty($SID)) { 
    echo tep_cache_categories_box(); 
 } else { 
   include(DIR_WS_BOXES . 'categories.php'); 
  } 
con

Codice: Seleziona tutto

include(DIR_WS_BOXES . 'categories.php');
così aggira l' ostacolo...

anke se gli consiglierei di disattivare la cache nell'admin..

gli crea un sakko di kasini...


ciao
™ ÅñЮ€Å ™

www.mistertemplate.it - Template x osCommerce...
www.microdirect.it - Distribuzione Informatica
nemesi
membro Regular
membro Regular
Messaggi: 106
Iscritto il: 18/05/2005, 10:49

Messaggio da nemesi »

adesso è tutto molto piu' chiaro, ho disabilitato la cache da admin e ho risolto anche il problema con il menù dhtml che adesso funziona alla perfezione :)

grazie 1000 ragazzi siete stati davvero grandi :)
Avatar utente
itan80
membro Senior
membro Senior
Messaggi: 309
Iscritto il: 09/07/2004, 0:00
Località: Italia
Contatta:

Messaggio da itan80 »

dai almeno una visitina al mio sitarello... :wink:

cmq quando hai bisogno io sono sempre qui....


ciao
™ ÅñЮ€Å ™

www.mistertemplate.it - Template x osCommerce...
www.microdirect.it - Distribuzione Informatica
nemesi
membro Regular
membro Regular
Messaggi: 106
Iscritto il: 18/05/2005, 10:49

Messaggio da nemesi »

itan80 ha scritto:dai almeno una visitina al mio sitarello... :wink:

cmq quando hai bisogno io sono sempre qui....


ciao
lo conosco quasi a memoria...se ti riferisci a quello dei template l'ho trovato molto ben fatto e soprattutto molto utile ;)...ci siamo capiti eh ;);)
Avatar utente
itan80
membro Senior
membro Senior
Messaggi: 309
Iscritto il: 09/07/2004, 0:00
Località: Italia
Contatta:

Messaggio da itan80 »

assie :lol:


ciao :wink:
™ ÅñЮ€Å ™

www.mistertemplate.it - Template x osCommerce...
www.microdirect.it - Distribuzione Informatica
nemesi
membro Regular
membro Regular
Messaggi: 106
Iscritto il: 18/05/2005, 10:49

Messaggio da nemesi »

adesso pero' il quesito è d'obbligo :D...o meglio mi piacerebbe poterlo fare :)

vorrei mettere i 2 link alla index.php e a products_new.php che avevamo inserito nel vecchio file...solo che nn ho la piu' pallida idea di dove andare a modificare il tutto

questo è il file categories_dhtml.php

Codice: Seleziona tutto

<?php


/*

  Dynamic DHTL MenuBar for category listing v 0.2.1

  This is a combination of modified categories.php and

  HV Menu javacript written by Ger Versluis (c) 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)

*	HV Menu found on Dynamic Drive ONLY may be used on both commercial and non commerical sites	*

*	For info about HV Menu write to menus@burmees.nl			



  Modifications for osCommerce menuBar_0_2 made by John Guerra 2/9/2003

  oscommerce@apodigm.com

*/


  define('LEFT_LINK_HEIGHT',20);

  define('LEFT_LINK_WIDTH',BOX_WIDTH);



  $info_box_contents = array();

  $info_box_contents[] = array('align' => 'left',

                               'text'  => BOX_HEADING_CATEGORIES

                              );


//  new infoBoxHeading($info_box_contents, true, false);

?>

<script type='text/javascript'>

/*********************************************************************************************************************************************

*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)

*	HV Menu found on Dynamic Drive ONLY may be used on both commercial and non commerical sites	*

*	For info write to menus@burmees.nl							        *

*       This script featured on Dynamic Drive DHTML code library: http://www.dynamicdrive.com

**********************************************************************************************************************************************/



	var LowBgColor='transparent';			// Background color when mouse is not over

	var LowSubBgColor='white';			// Background color when mouse is not over on subs

	var HighBgColor='transparent';			// Background color when mouse is over

	var HighSubBgColor='white';			// Background color when mouse is over on subs

	var FontLowColor='black';			// Font color when mouse is not over

	var FontSubLowColor='black';			// Font color subs when mouse is not over

	var FontHighColor='#6699cc';			// Font color when mouse is over

	var FontSubHighColor='#6699cc';			// Font color subs when mouse is over

	var BorderColor='transparent';			// Border color

	var BorderSubColor='#6699cc';			// Border color for subs

	var BorderWidth=1;				// Border width

	var BorderBtwnElmnts=0;			// Border between elements 1 or 0

	var FontFamily="Verdana, Arial, sans-serif"	// Font family menu items

	var FontSize=8;				// Font size menu items

	var FontBold=0;				// Bold menu items 1 or 0

	var FontItalic=0;				// Italic menu items 1 or 0

	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'

	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'

	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static

	var ChildOverlap=.0;				// horizontal overlap child/ parent

	var ChildVerticalOverlap=.0;			// vertical overlap child/ parent

	var StartTop=1;				// Menu offset x coordinate

	var StartLeft=0;				// Menu offset y coordinate

	var VerCorrect=0;				// Multiple frames y correction

	var HorCorrect=0;				// Multiple frames x correction

	var LeftPaddng=2;				// Left padding

	var TopPaddng=1;				// Top padding

	var DissapearDelay=500;			// delay before menu folds in



	var FirstLineHorizontal=0;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL

	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0

	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame

	var FirstLineFrame='navig';			// Frame where first level appears

	var SecLineFrame='space';			// Frame where sub levels appear

	var DocTargetFrame='space';			// Frame where target documents appear

	var TargetLoc='MenuBar';				// span id for relative positioning

	var HideTop=0;				// Hide first level when loading new document 1 or 0

	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0

	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0

	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover

	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0

	var ShowArrow=1;				// Uses arrow gifs when 1

	var KeepHilite=1;				// Keep selected path highligthed

	var Arrws=['<?php echo DIR_WS_IMAGES; ?>tri.gif',5,10,'<?php echo DIR_WS_IMAGES; ?>tridown.gif',10,5,'<?php echo DIR_WS_IMAGES; ?>trileft.gif',5,10];	// Arrow source, width and height



function BeforeStart(){return}

function AfterBuild(){return}

function BeforeFirstOpen(){return}

function AfterCloseAll(){return}

function Go(){return}



<?php  



 $number_top_levels = 0;

 $categories_string='';

  $number_top_levels = build_menus(0,'','');

  echo 'var NoOffFirstLineMenus= ' . $number_top_levels. ';'	;		// Number of first level items

  echo $categories_string;



function build_menus($currentParID,$menustr,$catstr) {

    global $categories_string, $id, $languages_id;

    $tmpCount;

   

   $tmpCount = 0;

   $haschildren = 0; //default



// BOF Enable - Disable Categories Contribution-------------------------------------- 

// BOF Original line

     $categories_query_catmenu = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . $currentParID . "' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");

// EOF Original line



// BOF Enable - Disable Categories

//   $categories_query_catmenu = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_status = '1' and c.parent_id = '" . $currentParID . "' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");

// EOF Enable - Disable Categories

// EOF Enable - Disable Categories Contribution-------------------------------------- 



   

   while ($categories = tep_db_fetch_array($categories_query_catmenu))  {

     $tmpString = '';

     $tmpCount += 1;

     $haschildren=tep_has_category_subcategories($categories['categories_id']);



     if ($haschildren) {

         if($menustr != ''){

           $menu_tmp = $menustr . '_' . $tmpCount;

         } else {

           $menu_tmp = $tmpCount;

         }

         if($catstr != ''){

           $cat_tmp = $catstr . '_' . $categories['categories_id'];

         } else {

           $cat_tmp = $categories['categories_id'];

         }

       $NumChildren = build_menus($categories['categories_id'],$menu_tmp,$cat_tmp);     } else {

       $NumChildren = 0; 

      }



    if ($id==$categories['categories_id']) {

      $tmpString .= '<b>';

    }

    // display category name

    $tmpString .= $categories['categories_name'];



    if ( $id==$categories['categories_id'] ) {

      $tmpString .= '</b>';

    }

    if (SHOW_COUNTS == 'true') {

      $products_in_category = tep_count_products_in_category($categories['categories_id']);

      if ($products_in_category > 0) {

        $tmpString .= ' (' . $products_in_category . ')';

      }

    }



     if($catstr != ''){

        $cPath_new = 'cPath=' . $catstr . '_' . $categories['categories_id'];

     } else {

        $cPath_new = 'cPath=' . $categories['categories_id'];

     }



  // Menu tree

//	Menu1_1_1=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);

         if($menustr != ''){

           $menu_tmp = $menustr . '_' . $tmpCount;

         } else {

           $menu_tmp = $tmpCount;

         }

$categories_string .=  'Menu' . ($menustr!=''?$menustr.'_':'') . $tmpCount;

$categories_string .=  '= new Array("' . $tmpString . '","';

$categories_string .=  tep_href_link(FILENAME_DEFAULT, $cPath_new);

$categories_string .= '","",' ;

$categories_string .= $NumChildren;

$categories_string .= ',' . LEFT_LINK_HEIGHT . ',' . LEFT_LINK_WIDTH ;

$categories_string .= '); ';

   

    }// end while

    return $tmpCount;

  }  //end build menus



echo '</script>';



$tabletext ="<table><tr><td><div id='MenuBar' style='position:relative; width: " . LEFT_LINK_WIDTH . "; height: " . ($number_top_levels*LEFT_LINK_HEIGHT) . ";'> </div></td></tr></table>";



  $info_box_contents = array();

  $info_box_contents[] = array('align' => 'left',

                               'text'  => $tabletext

                              );


 new infoBox($info_box_contents);





?>

<SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>



           </td>

          </tr>

<!-- categories_eof //-->

magari quando hai un paio di secondi liberi potresti darci uno sguardo...te ne sarei veramente grato :)

grazie 1000 ragazzi...siete mitici :)
Avatar utente
itan80
membro Senior
membro Senior
Messaggi: 309
Iscritto il: 09/07/2004, 0:00
Località: Italia
Contatta:

Messaggio da itan80 »

ciao prova a sostituire le utlime righe dopo:

Codice: Seleziona tutto

 $tabletext ="<table><tr><td><div id='MenuBar' style='position:relative; width: " . LEFT_LINK_WIDTH . "; height: " . ($number_top_levels*LEFT_LINK_HEIGHT) . ";'> </div></td></tr></table>"; 
così:

Codice: Seleziona tutto

 $info_box_contents = array();
  $info_box_contents[] = array('align' => 'center" valign="top',
                               'text'  => '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '"><img src="images/pointer_blue" border="0">' . BOX_DEFAULT . '</a>');
  $info_box_contents[] = array('align' => 'left',

                               'text'  => $tabletext

                              );
   $info_box_contents[] = array('align' => 'center" valign="top',
                               'text'  => '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL') . '"><img src="images/pointer_blue" border="0">' . BOX_PRODUCTS_NEW . '</a>');

 new infoBox($info_box_contents);



?>

<SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> 



           </td> 

          </tr> 

<!-- categories_eof //--> 

e dimmi come va...


ciao
™ ÅñЮ€Å ™

www.mistertemplate.it - Template x osCommerce...
www.microdirect.it - Distribuzione Informatica
nemesi
membro Regular
membro Regular
Messaggi: 106
Iscritto il: 18/05/2005, 10:49

Messaggio da nemesi »

uhm...ancora a chiederti come può andare? Ho solo una parola...SPE-TTA-CO-LA-RE

grazie infinite itan...sei un grande :):)
nemesi
membro Regular
membro Regular
Messaggi: 106
Iscritto il: 18/05/2005, 10:49

Messaggio da nemesi »

questo è il file completo, potrebbe servire anche ad altri :)

Codice: Seleziona tutto

<?php


/*

  Dynamic DHTL MenuBar for category listing v 0.2.1

  This is a combination of modified categories.php and

  HV Menu javacript written by Ger Versluis (c) 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)

*	HV Menu found on Dynamic Drive ONLY may be used on both commercial and non commerical sites	*

*	For info about HV Menu write to menus@burmees.nl			



  Modifications for osCommerce menuBar_0_2 made by John Guerra 2/9/2003

  oscommerce@apodigm.com

*/

  define('BOX_PRODUCTS_NEW','<font color=CC0033>Nuovi Prodotti</font>');
  define('BOX_DEFAULT','<font color=CC0033>Home Page</font>');


  define('LEFT_LINK_HEIGHT',20);

  define('LEFT_LINK_WIDTH',BOX_WIDTH);



  $info_box_contents = array();

  $info_box_contents[] = array('align' => 'left',

                               'text'  => BOX_HEADING_CATEGORIES

                              );


//  new infoBoxHeading($info_box_contents, true, false);

?>

<script type='text/javascript'>

/*********************************************************************************************************************************************

*	(c) Ger Versluis 2000 version 5.411 24 December 2001 (updated Jan 31st, 2003 by Dynamic Drive for Opera7)

*	HV Menu found on Dynamic Drive ONLY may be used on both commercial and non commerical sites	*

*	For info write to menus@burmees.nl							        *

*       This script featured on Dynamic Drive DHTML code library: http://www.dynamicdrive.com

**********************************************************************************************************************************************/



	var LowBgColor='transparent';			// Background color when mouse is not over

	var LowSubBgColor='white';			// Background color when mouse is not over on subs

	var HighBgColor='transparent';			// Background color when mouse is over

	var HighSubBgColor='white';			// Background color when mouse is over on subs

	var FontLowColor='black';			// Font color when mouse is not over

	var FontSubLowColor='black';			// Font color subs when mouse is not over

	var FontHighColor='#6699cc';			// Font color when mouse is over

	var FontSubHighColor='#6699cc';			// Font color subs when mouse is over

	var BorderColor='transparent';			// Border color

	var BorderSubColor='#6699cc';			// Border color for subs

	var BorderWidth=1;				// Border width

	var BorderBtwnElmnts=0;			// Border between elements 1 or 0

	var FontFamily="Verdana, Arial, sans-serif"	// Font family menu items

	var FontSize=8;				// Font size menu items

	var FontBold=0;				// Bold menu items 1 or 0

	var FontItalic=0;				// Italic menu items 1 or 0

	var MenuTextCentered='left';			// Item text position 'left', 'center' or 'right'

	var MenuCentered='left';			// Menu horizontal position 'left', 'center' or 'right'

	var MenuVerticalCentered='top';		// Menu vertical position 'top', 'middle','bottom' or static

	var ChildOverlap=.0;				// horizontal overlap child/ parent

	var ChildVerticalOverlap=.0;			// vertical overlap child/ parent

	var StartTop=1;				// Menu offset x coordinate

	var StartLeft=0;				// Menu offset y coordinate

	var VerCorrect=0;				// Multiple frames y correction

	var HorCorrect=0;				// Multiple frames x correction

	var LeftPaddng=2;				// Left padding

	var TopPaddng=1;				// Top padding

	var DissapearDelay=500;			// delay before menu folds in



	var FirstLineHorizontal=0;			// SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL

	var MenuFramesVertical=1;			// Frames in cols or rows 1 or 0

	var TakeOverBgColor=1;			// Menu frame takes over background color subitem frame

	var FirstLineFrame='navig';			// Frame where first level appears

	var SecLineFrame='space';			// Frame where sub levels appear

	var DocTargetFrame='space';			// Frame where target documents appear

	var TargetLoc='MenuBar';				// span id for relative positioning

	var HideTop=0;				// Hide first level when loading new document 1 or 0

	var MenuWrap=1;				// enables/ disables menu wrap 1 or 0

	var RightToLeft=0;				// enables/ disables right to left unfold 1 or 0

	var UnfoldsOnClick=0;			// Level 1 unfolds onclick/ onmouseover

	var WebMasterCheck=0;			// menu tree checking on or off 1 or 0

	var ShowArrow=1;				// Uses arrow gifs when 1

	var KeepHilite=1;				// Keep selected path highligthed

	var Arrws=['<?php echo DIR_WS_IMAGES; ?>tri.gif',5,10,'<?php echo DIR_WS_IMAGES; ?>tridown.gif',10,5,'<?php echo DIR_WS_IMAGES; ?>trileft.gif',5,10];	// Arrow source, width and height



function BeforeStart(){return}

function AfterBuild(){return}

function BeforeFirstOpen(){return}

function AfterCloseAll(){return}

function Go(){return}



<?php  



 $number_top_levels = 0;

 $categories_string='';

  $number_top_levels = build_menus(0,'','');

  echo 'var NoOffFirstLineMenus= ' . $number_top_levels. ';'	;		// Number of first level items

  echo $categories_string;



function build_menus($currentParID,$menustr,$catstr) {

    global $categories_string, $id, $languages_id;

    $tmpCount;

   

   $tmpCount = 0;

   $haschildren = 0; //default



// BOF Enable - Disable Categories Contribution-------------------------------------- 

// BOF Original line

     $categories_query_catmenu = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . $currentParID . "' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");

// EOF Original line



// BOF Enable - Disable Categories

//   $categories_query_catmenu = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_status = '1' and c.parent_id = '" . $currentParID . "' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");

// EOF Enable - Disable Categories

// EOF Enable - Disable Categories Contribution-------------------------------------- 



   

   while ($categories = tep_db_fetch_array($categories_query_catmenu))  {

     $tmpString = '';

     $tmpCount += 1;


     $haschildren=tep_has_category_subcategories($categories['categories_id']);



     if ($haschildren) {

         if($menustr != ''){

           $menu_tmp = $menustr . '_' . $tmpCount;

         } else {

           $menu_tmp = $tmpCount;

         }

         if($catstr != ''){

           $cat_tmp = $catstr . '_' . $categories['categories_id'];

         } else {

           $cat_tmp = $categories['categories_id'];

         }

       $NumChildren = build_menus($categories['categories_id'],$menu_tmp,$cat_tmp);     } else {

       $NumChildren = 0; 

      }



    if ($id==$categories['categories_id']) {

      $tmpString .= '<b>';

    }

    // display category name

    $tmpString .= $categories['categories_name'];



    if ( $id==$categories['categories_id'] ) {

      $tmpString .= '</b>';

    }

    if (SHOW_COUNTS == 'true') {

      $products_in_category = tep_count_products_in_category($categories['categories_id']);

      if ($products_in_category > 0) {

        $tmpString .= ' (' . $products_in_category . ')';

      }

    }



     if($catstr != ''){

        $cPath_new = 'cPath=' . $catstr . '_' . $categories['categories_id'];

     } else {

        $cPath_new = 'cPath=' . $categories['categories_id'];

     }



  // Menu tree

//	Menu1_1_1=new Array(Text to show, Link, background image (optional), number of sub elements, height, width);

         if($menustr != ''){

           $menu_tmp = $menustr . '_' . $tmpCount;

         } else {

           $menu_tmp = $tmpCount;

         }

$categories_string .=  'Menu' . ($menustr!=''?$menustr.'_':'') . $tmpCount;

$categories_string .=  '= new Array("' . $tmpString . '","';

$categories_string .=  tep_href_link(FILENAME_DEFAULT, $cPath_new);

$categories_string .= '","",' ;

$categories_string .= $NumChildren;

$categories_string .= ',' . LEFT_LINK_HEIGHT . ',' . LEFT_LINK_WIDTH ;

$categories_string .= '); ';

   

    }// end while

    return $tmpCount;

  }  //end build menus



echo '</script>';



$tabletext ="<table><tr><td><div id='MenuBar' style='position:relative; width: " . LEFT_LINK_WIDTH . "; height: " . ($number_top_levels*LEFT_LINK_HEIGHT) . ";'> </div></td></tr></table>";



 $info_box_contents = array();
  $info_box_contents[] = array('align' => 'center" valign="top',
                               'text'  => '<a href="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL') . '">' . BOX_DEFAULT . '</a>');
  $info_box_contents[] = array('align' => 'left',

                               'text'  => $tabletext

                              );
   $info_box_contents[] = array('align' => 'center" valign="top',
                               'text'  => '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', 'NONSSL') . '">' . BOX_PRODUCTS_NEW . '</a>');

 new infoBox($info_box_contents);



?>

<SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>



           </td>

          </tr>

<!-- categories_eof //-->
ancora grazie 1000 ragazzi, siete mitici :):)
Rispondi