Pagina 1 di 1

Problema con togliere un box....aiutoooo

Inviato: 10/02/2010, 1:35
da antonybologna
Ciao a tutti,
ringrazio chi mi ha qualche volta aiutato a risolvere problemi.
Adesso ho questo problema e inserisco l'immagine cosi è piu facile da caprire cosa intendo!
Come si vede ho messo un logo sulla sinista che è animato, in teoria dovrebbe essere allineato al centro, solo che a destra si vede un box con dentro "lingue,contattaci,offerte ecc..." non riesco a capire come fare per eliminare quel box, ho copiato l'intero codice di catalog/includes/header.php penso che sia li dentro il comando che lo fa vedere.
Nel caso pensate sia in un altro file basta dirmelo che vi invio il codice.
Vi ringrazio se qualcuno riesce a darmi una mano a toglierlo ci sto impazzendo!!!

Codice: Seleziona tutto

<?php
/*
$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

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

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
if (WARN_INSTALL_EXISTENCE == 'true') {
	if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
		$messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
	}
}

// check if the configure.php file is writeable
if (WARN_CONFIG_WRITEABLE == 'true') {
	if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
		$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
	}
}

// check if the session folder is writeable
if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
	if (STORE_SESSIONS == '') {
		if (!is_dir(tep_session_save_path())) {
			$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
		} elseif (!is_writeable(tep_session_save_path())) {
			$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
		}
	}
}

// check session.auto_start is disabled
if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
	if (ini_get('session.auto_start') == '1') {
		$messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
	}
}

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
	if (!is_dir(DIR_FS_DOWNLOAD)) {
		$messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
	}
}

if ($messageStack->size('header') > 0) {
	echo $messageStack->output('header');
}

?>



<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("<?php echo GOOGLE_ANALYTICS_UACCT; ?>");
pageTracker._trackPageview();
</script>




<?php
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
	include_once(DIR_WS_CLASSES . 'language.php');
	$lng = new language;
}

reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
?>
	<link rel="alternate" type="application/rss+xml" title="<?php echo STORE_NAME . ' - ' . BOX_INFORMATION_RSS; ?>" href="<?php echo FILENAME_RSS, '?language=' . $key;  ?>">
<?php
}
?>
	


<script type="text/javascript" src="includes/box.js"></script>



<!--external-->
<div align="center">
<table border="0" width="980px" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" align=center>
<!--external-->


<?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr class="headerError">
    <td class="headerError"><?php echo stripslashes(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
  </tr>
</table>
 <table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr><td height="10"></td></tr>
 </table>
<?php
}

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr class="headerInfo">
    <td class="headerInfo"><?php echo stripslashes(urldecode($HTTP_GET_VARS['info_message'])); ?></td>
  </tr>
</table>
 <table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr><td height="10"></td></tr>
 </table>
<?php
}
?>


 

 
 <table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td  align="center"><center><embed src="images/Movie1.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="introsconti" width="790" height="150" quality="High" ></object></center> 
      </a></td>
    <td align="center" valign=top">

     
     <!-- start table right currency, language, chart ... -->
     <table  border=0 cellspacing=0 cellpadding=0>
      <tr><td><img src=images/ddtemplate/m02.gif width=450 height=8></td></tr>
      <tr><td class=ch1>
       <table border="0" cellspacing=0 cellpadding=0>
        <tr><td align="center" width=150>
         <table cellspacing=0 cellpadding=0>
          <tr><td class="main_header"><b><?php echo HEADER_LANGUAGE_LABEL; ?></b></td></tr>
          <tr><td height=2></td></tr>
          <tr><td>
<?php // LANGUAGES

if (!isset($lng) || (isset($lng) && !is_object($lng))) {
	include(DIR_WS_CLASSES . 'language.php');
	$lng = new language;
}

$languages_string = '';
reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
	$languages_string .= ' <a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('language', 'currency')) . 'language=' . $key, $request_type) . '">' . tep_image(DIR_WS_LANGUAGES .  $value['directory'] . '/images/' . $value['image'], $value['name']) . '</a> ';
}

echo $languages_string;

?>     
         </td></tr> 
         <tr><td height=4></td></tr>
          <tr><td><img src=images/ddtemplate/m08.gif width=107 height=1></td></tr>
          <tr><td height=2></td></tr>
          <tr><td class="main_header"><b><?php echo HEADER_CURRENCIES_LABEL; ?></b></td></tr>
          <tr><td height=2></td></tr>
          <tr><td>
<?php // CURRENCIES

echo tep_draw_form('currencies', tep_href_link(basename($PHP_SELF), '', $request_type, false), 'get');

reset($currencies->currencies);
$currencies_array = array();
while (list($key, $value) = each($currencies->currencies)) {
	$currencies_array[] = array('id' => $key, 'text' => $value['title']);
}

$hidden_get_variables = '';
reset($HTTP_GET_VARS);
while (list($key, $value) = each($HTTP_GET_VARS)) {
	if ( ($key != 'currency') && ($key != tep_session_name()) && ($key != 'x') && ($key != 'y') ) {
		$hidden_get_variables .= tep_draw_hidden_field($key, $value);
	}
}

echo tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onChange="this.form.submit(); " style="width:100px; font-size: 9px" ') . $hidden_get_variables . tep_hide_session_id();
echo '</form>';

?>               

          </td></tr>
         </table>
        </td>
        <td background=images/ddtemplate/m09.gif width=1></td>
        <td align="center" width=150 valign=top>
         <table  cellspacing=0 cellpadding=0>
          <tr><td><img src=images/ddtemplate/m10.gif width=9 height=7 align=absmiddle>  <a href=<?php echo tep_href_link(FILENAME_SPECIALS); ?> class=ch3><?php echo HEADER_SPECIALS_LABEL; ?></a></td></tr>
          <tr><td height=1></td></tr>
          <tr><td><img src=images/ddtemplate/m10.gif width=9 height=7 align=absmiddle>  <a href=<?php echo tep_href_link(FILENAME_ADVANCED_SEARCH); ?> class=ch3><?php echo HEADER_ADVANCED_SEARCH_LABEL; ?></a></td></tr>
          <tr><td height=1></td></tr>
          <tr><td><img src=images/ddtemplate/m10.gif width=9 height=7 align=absmiddle>  <a href=<?php echo tep_href_link(FILENAME_CONTACT_US); ?> class=ch3><?php echo HEADER_CONTACT_US_LABEL; ?></a></td></tr>
          <tr><td height=1></td></tr>

          <tr><td><img src=images/ddtemplate/m10.gif width=9 height=7 align=absmiddle> 
          <?php 
          if (!tep_session_is_registered('customer_id') || tep_session_is_registered('noaccount')) {
          	echo '<a href=' . tep_href_link(FILENAME_CREATE_ACCOUNT) . ' class=ch3>' . HEADER_REGISTER_LABEL . '</a>';
          } else {
          	echo '<a href=' . tep_href_link(FILENAME_ACCOUNT) . ' class=ch3>' . HEADER_ACCOUNT_LABEL . '</a>';
          }?>          
          </td></tr>
          <tr><td height=1></td></tr>
          <tr><td><img src=images/ddtemplate/m10.gif width=9 height=7 align=absmiddle> 
          <?php 
          if (!tep_session_is_registered('customer_id') || tep_session_is_registered('noaccount')) {
          	echo '<a href=' . tep_href_link('login.php') . ' class=ch3>' . HEADER_LOGIN_LABEL . '</a>';
          } else {
          	echo '<a href=' . tep_href_link('logoff.php') . ' class=ch3>' . HEADER_LOGOUT_LABEL . '</a>';
          }?>
         </td></tr></table>
        </td>
        <td background=images/ddtemplate/m09.gif width=1></td>
        <td align="center">
         <table  width="140" border=0 cellspacing=2 cellpadding=0>
          <tr><td align="right"><a href=<?php echo tep_href_link('shopping_cart.php')?>><img src=images/ddtemplate/m11.gif width=40 hieght=32 border=0></a></td>
          <td class=main_header><b><?php echo HEADER_CART_LABEL; ?></b></td></tr>
          <tr><td height=10></td></tr>
          <tr><td align="center" colspan=2><a class=ch5 href=<?php echo tep_href_link('shopping_cart.php')?>><?php echo $cart->count_contents()?> <?php echo HEADER_CART_SUBLABEL; ?></a></td></tr>
          <?php if ($cart->count_contents() > 0) { ?>
          <tr><td height=10></td></tr>
          <tr><td align="center" colspan=2>
          <a href=<?php echo tep_href_link('checkout_shipping.php')?>>
          <?php echo tep_image_button('go_to_checkout.gif','','vspace=0 hspace=0'); ?>
          </a></td></tr>
          <?php } ?>
         </table>
        </td></tr>
       </table>
      </td></tr>
      <tr><td><img src=images/ddtemplate/m03.gif width=450 height=8></td></tr>
     </table>
     <!-- end table right currency, language, chart ... --> 
 
    </td>

   </tr></table>

 <table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr><td height="10"></td></tr>
 </table>

<table width="100%" border="0"  cellspacing="0" cellpadding="0">
    <tr><td background="images/ddtemplate/header_line_top_right_bg.gif"  height=7 valign=top><IMG  
      src="images/ddtemplate/header_line_top_left_corner.gif" 
      vspace=0 hspace=0 border=0></td>
    <td background="images/ddtemplate/header_line_top_right_bg.gif" height=7 valign=top><IMG  
      src="images/ddtemplate/header_line_top_right_bg.gif" 
      vspace=0 hspace=0 border=0></td>
    <td  height=7 valign=top><IMG  
      src="images/ddtemplate/header_line_top_right_corner.gif" 
      vspace=0 hspace=0 border=0></td>
    <td colspan=6  height=7 valign=top></td></tr>


    <tr><td background="images/ddtemplate/header_line_middle_bg.gif" height=7 valign=top><IMG  
      src="images/ddtemplate/header_line_middle_left.gif" 
      vspace=0 hspace=0 border=0></td>
    <td align="center" background="images/ddtemplate/header_line_middle_bg.gif" height=30 valign=top>
    <table border="0" cellspacing=0 cellpadding=2>
              <?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?>
              <tr><td colspan="2" height=4></td></tr>
              <tr><td><?php echo  tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: 150px"') . tep_hide_session_id() . '</td><td align=center>' .tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '</td></tr>'; ?>
               </form>
    </table>
    </td>
    <td background="images/ddtemplate/header_line_middle_bg.gif" height=30 valign=top></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_DEFAULT); ?>><img src=images/ddtemplate/header_line_home.gif border=0 vspace=0 hspace=0></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_PRODUCTS_NEW); ?>><?php echo tep_image_button('header_line_np.gif','','vspace=0 hspace=0'); ?></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_SPECIALS); ?>><?php echo tep_image_button('header_line_specials.gif','','vspace=0 hspace=0'); ?></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_ACCOUNT); ?>><?php echo tep_image_button('header_line_myaccount.gif','','vspace=0 hspace=0'); ?></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>><?php echo tep_image_button('header_line_cart.gif','','vspace=0 hspace=0'); ?></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_CONTACT_US); ?>><?php echo tep_image_button('header_line_contact.gif','','vspace=0 hspace=0'); ?></a></td>
</tr>

   
      <tr><td background="images/ddtemplate/header_line_button.gif" colspan="9" height=11 valign=top><IMG  
      src="images/ddtemplate/header_line_button.gif" 
      vspace=0 hspace=0 border=0></td></tr>
      
 </table>
<?php

if (CATEGORY_ONHEADER =='true') {

    $category_onheader_link = array();
    $category_onheader_name = array();
    $category_onheader_image = array();
    
    $check_category_onheader_query = tep_db_query("SELECT * from " . TABLE_CATEGORIES . " where on_header = 1");
    if (tep_db_num_rows($check_category_onheader_query) > 0 ) {

        while ($check_category_onheader_array = tep_db_fetch_array($check_category_onheader_query)) {

            $categories_name_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd  where c.categories_id = cd.categories_id and c.categories_id = '" . (int)$check_category_onheader_array['categories_id'] . "' and cd.language_id = '" . (int)$languages_id . "'");
            $categories_name_array = tep_db_fetch_array($categories_name_query);

            array_push($category_onheader_name, $categories_name_array['categories_name']);
            array_push($category_onheader_link, tep_href_link(FILENAME_DEFAULT, tep_get_hpath($check_category_onheader_array['categories_id'])));
            array_push($category_onheader_image, tep_not_null($categories_name_array['categories_image']) ? tep_image(DIR_WS_IMAGES . $categories_name_array['categories_image'], $categories_name_array['categories_name'], '', '35', 'align=absmiddle vspace="1" hspace="5"') : '');

        };
    }

    if (count($category_onheader_name) < CATEGORY_ONHEADER_MAXNUM) array_pad($category_onheader_name, CATEGORY_ONHEADER_MAXNUM, '');
    if (count($category_onheader_link) < CATEGORY_ONHEADER_MAXNUM) array_pad($category_onheader_link, CATEGORY_ONHEADER_MAXNUM, '');
    if (count($category_onheader_image) < CATEGORY_ONHEADER_MAXNUM) array_pad($category_onheader_image, CATEGORY_ONHEADER_MAXNUM, '');



?>



<table border="0"  width="100%" cellspacing="0" cellpadding="0">
    <tr><td colspan=<?php echo 2*CATEGORY_ONHEADER_MAXNUM + 2; ?> background="images/ddtemplate/cat_onheader_linea.gif" width=984 height=2 valign=top><IMG  
      src="images/ddtemplate/cat_onheader_linea.gif" 
      vspace=0 hspace=0 border=0></td></tr>
    
    <tr>
<td align="center" class="category-on-header" width="5"><?php echo tep_draw_separator('pixel_trans.gif', '5', '5'); ?></td>    
<?php

$category_onheader_inf_count = count($category_onheader_link);
$j = 0;

for ($i = 0; $i <= CATEGORY_ONHEADER_MAXNUM-1; $i++) {
    $j++;
?>
<td align="center" height="50" class="category-on-header" width="0">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td valign="middle" align=center><?php
if (tep_not_null($category_onheader_link[$i])) {
    echo '<div class="catonHeaderNavigationTop"><a href="' .
    $category_onheader_link[$i] . '" title="' . strtoupper($category_onheader_name[$i])  . '" onMouseOver="MM_displayStatusMsg(\'\');return document.MM_returnValue" onMouseOut="MM_displayStatusMsg(\'\');return document.MM_returnValue"><nobr>'.
    $category_onheader_image[$i] . strtoupper($category_onheader_name[$i]) . '</nobr></div></a>';
} else {
    echo '<span class=catonHeaderNavigationSelectText><nobr>' . HEADER_TITLE_SELECTCAT . '</nobr></span>';
}
?>
</td></tr></table></td>

<?php 

if ($j < $category_onheader_inf_count) {

?>
<td align="center" height="50" class="category-on-header" width="<?php echo floor( 100 /(( 2 * CATEGORY_ONHEADER_MAXNUM) - 1) ); ?>%"> </td>

<?php }
} ?>

<td class="category-on-header" align="center" width="5"><?php echo tep_draw_separator('pixel_trans.gif', '5', '5'); ?></td>
    </tr>
</table>

 
<?php } ?>



<?php if (INFO_PAGES_ONHEADER == 'true') { 

	$information_query = tep_db_query("SELECT information_id, on_header, info_title FROM " . TABLE_PAGES_INFORMATION . " WHERE visible='1' and on_header='1' and languages_id ='" . $languages_id . "' ORDER BY v_order");

	if (tep_db_num_rows($information_query) > 0) {

		while($information_array = tep_db_fetch_array($information_query)) {
			$onheader_inf[$information_array['info_title']] = tep_href_link(FILENAME_INFORMATION_PAGES, 'info_id=' . $information_array['information_id']);
		}

	}

	if (USE_POINTS_SYSTEM == 'true') {
		$onheader_inf[BOX_INFORMATION_MY_POINTS_HELP] = tep_href_link(FILENAME_MY_POINTS_HELP);
	}

	if ((B2B_B2C_REGISTER_SETTING == 'B2B+B2C') || (B2B_B2C_REGISTER_SETTING == 'B2B')) {
		$onheader_inf[HEADER_TITLE_B2B_INFO_PAGE] = tep_href_link(FILENAME_B2B_INFO_PAGE);
	}

	if (AFFILIATE_ATTIVATE == 'true') {
		$onheader_inf[HEADER_TITLE_AFFILIATE_INFO_PAGE] = tep_href_link(FILENAME_AFFILIATE_INFO_PAGE);
	}

	$onheader_inf[HEADER_TITLE_CONTACT_US] = tep_href_link(FILENAME_CONTACT_US);

?> 
 


<table border="0"  width="100%" cellspacing="0" cellpadding="0">
	<tr>	
	<td align="center">

<table border="0"  width="100%" cellspacing="0" cellpadding="0" class="info-on-header">
	<tr>
<td align="center" width="20"><IMG
       	src="images/ddtemplate/header_info_left.gif" 
        vspace=0 hspace=0 border=0></td>
<?php 

$onheader_inf_count = count($onheader_inf);
$j = 0;

foreach ($onheader_inf as $title => $link) {
	$j++;
?>

<td class="info-on-header" valign="middle" align=center width="0"><?php echo '<a class="infoonHeaderNavigationTop" href="' . $link . '
  " title="' . $title . '" onMouseOver="MM_displayStatusMsg(\'' . $title . '\');return document.MM_returnValue" onMouseOut="MM_displayStatusMsg(\'\');return document.MM_returnValue"><nobr>'.
  $title . '</nobr></a>'; ?></td>
<?php 

if ($j < $onheader_inf_count) {

?>
  
<td class="info-on-header" valign="middle" align=center width="<?php echo floor( 100 / count($onheader_inf)); ?>%"> </td>



<?php }
} ?>
<td align="center" width="20"><IMG
       	src="images/ddtemplate/header_info_right.gif" 
        vspace=0 hspace=0 border=0></td>
	</tr>
</table></td>	
</tr>
</table>
<?php } ?>

</td>
  </tr>
   

  <tr>
    <td width="100%" align=center>
<!--external-->

Re: Problema con togliere un box....aiutoooo

Inviato: 10/02/2010, 3:37
da marcus
Salve Antonio,

Ti allego il file header.php modificato per mostrare il solo logo/banner orizzontale su tutta la testata.

PS Fare sempre backup prima di modificare

Saluti
Marcus

File header.php

Codice: Seleziona tutto

<?php
/*
$Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

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

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// check if the 'install' directory exists, and warn of its existence
if (WARN_INSTALL_EXISTENCE == 'true') {
   if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
      $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
   }
}

// check if the configure.php file is writeable
if (WARN_CONFIG_WRITEABLE == 'true') {
   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
      $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
   }
}

// check if the session folder is writeable
if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
   if (STORE_SESSIONS == '') {
      if (!is_dir(tep_session_save_path())) {
         $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
      } elseif (!is_writeable(tep_session_save_path())) {
         $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
      }
   }
}

// check session.auto_start is disabled
if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
   if (ini_get('session.auto_start') == '1') {
      $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
   }
}

if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
   if (!is_dir(DIR_FS_DOWNLOAD)) {
      $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
   }
}

if ($messageStack->size('header') > 0) {
   echo $messageStack->output('header');
}

?>



<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("<?php echo GOOGLE_ANALYTICS_UACCT; ?>");
pageTracker._trackPageview();
</script>




<?php
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
   include_once(DIR_WS_CLASSES . 'language.php');
   $lng = new language;
}

reset($lng->catalog_languages);
while (list($key, $value) = each($lng->catalog_languages)) {
?>
   <link rel="alternate" type="application/rss+xml" title="<?php echo STORE_NAME . ' - ' . BOX_INFORMATION_RSS; ?>" href="<?php echo FILENAME_RSS, '?language=' . $key;  ?>">
<?php
}
?>
   


<script type="text/javascript" src="includes/box.js"></script>



<!--external-->
<div align="center">
<table border="0" width="980px" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" align=center>
<!--external-->


<?php
if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr class="headerError">
    <td class="headerError"><?php echo stripslashes(urldecode($HTTP_GET_VARS['error_message'])); ?></td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr><td height="10"></td></tr>
</table>
<?php
}

if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr class="headerInfo">
    <td class="headerInfo"><?php echo stripslashes(urldecode($HTTP_GET_VARS['info_message'])); ?></td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr><td height="10"></td></tr>
</table>
<?php
}
?>





<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td  align="center"><center><embed src="images/Movie1.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="introsconti" width="790" height="150" quality="High" ></object></center>
      </a></td>

   </tr></table>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr><td height="10"></td></tr>
</table>

<table width="100%" border="0"  cellspacing="0" cellpadding="0">
    <tr><td background="images/ddtemplate/header_line_top_right_bg.gif"  height=7 valign=top><IMG 
      src="images/ddtemplate/header_line_top_left_corner.gif"
      vspace=0 hspace=0 border=0></td>
    <td background="images/ddtemplate/header_line_top_right_bg.gif" height=7 valign=top><IMG 
      src="images/ddtemplate/header_line_top_right_bg.gif"
      vspace=0 hspace=0 border=0></td>
    <td  height=7 valign=top><IMG 
      src="images/ddtemplate/header_line_top_right_corner.gif"
      vspace=0 hspace=0 border=0></td>
    <td colspan=6  height=7 valign=top></td></tr>


    <tr><td background="images/ddtemplate/header_line_middle_bg.gif" height=7 valign=top><IMG 
      src="images/ddtemplate/header_line_middle_left.gif"
      vspace=0 hspace=0 border=0></td>
    <td align="center" background="images/ddtemplate/header_line_middle_bg.gif" height=30 valign=top>
    <table border="0" cellspacing=0 cellpadding=2>
              <?php echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'); ?>
              <tr><td colspan="2" height=4></td></tr>
              <tr><td><?php echo  tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: 150px"') . tep_hide_session_id() . '</td><td align=center>' .tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '</td></tr>'; ?>
               </form>
    </table>
    </td>
    <td background="images/ddtemplate/header_line_middle_bg.gif" height=30 valign=top></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_DEFAULT); ?>><img src=images/ddtemplate/header_line_home.gif border=0 vspace=0 hspace=0></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_PRODUCTS_NEW); ?>><?php echo tep_image_button('header_line_np.gif','','vspace=0 hspace=0'); ?></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_SPECIALS); ?>><?php echo tep_image_button('header_line_specials.gif','','vspace=0 hspace=0'); ?></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_ACCOUNT); ?>><?php echo tep_image_button('header_line_myaccount.gif','','vspace=0 hspace=0'); ?></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>><?php echo tep_image_button('header_line_cart.gif','','vspace=0 hspace=0'); ?></a></td>
    <td height=30><a href=<?php echo tep_href_link(FILENAME_CONTACT_US); ?>><?php echo tep_image_button('header_line_contact.gif','','vspace=0 hspace=0'); ?></a></td>
</tr>

   
      <tr><td background="images/ddtemplate/header_line_button.gif" colspan="9" height=11 valign=top><IMG 
      src="images/ddtemplate/header_line_button.gif"
      vspace=0 hspace=0 border=0></td></tr>
     
</table>
<?php

if (CATEGORY_ONHEADER =='true') {

    $category_onheader_link = array();
    $category_onheader_name = array();
    $category_onheader_image = array();
   
    $check_category_onheader_query = tep_db_query("SELECT * from " . TABLE_CATEGORIES . " where on_header = 1");
    if (tep_db_num_rows($check_category_onheader_query) > 0 ) {

        while ($check_category_onheader_array = tep_db_fetch_array($check_category_onheader_query)) {

            $categories_name_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd  where c.categories_id = cd.categories_id and c.categories_id = '" . (int)$check_category_onheader_array['categories_id'] . "' and cd.language_id = '" . (int)$languages_id . "'");
            $categories_name_array = tep_db_fetch_array($categories_name_query);

            array_push($category_onheader_name, $categories_name_array['categories_name']);
            array_push($category_onheader_link, tep_href_link(FILENAME_DEFAULT, tep_get_hpath($check_category_onheader_array['categories_id'])));
            array_push($category_onheader_image, tep_not_null($categories_name_array['categories_image']) ? tep_image(DIR_WS_IMAGES . $categories_name_array['categories_image'], $categories_name_array['categories_name'], '', '35', 'align=absmiddle vspace="1" hspace="5"') : '');

        };
    }

    if (count($category_onheader_name) < CATEGORY_ONHEADER_MAXNUM) array_pad($category_onheader_name, CATEGORY_ONHEADER_MAXNUM, '');
    if (count($category_onheader_link) < CATEGORY_ONHEADER_MAXNUM) array_pad($category_onheader_link, CATEGORY_ONHEADER_MAXNUM, '');
    if (count($category_onheader_image) < CATEGORY_ONHEADER_MAXNUM) array_pad($category_onheader_image, CATEGORY_ONHEADER_MAXNUM, '');



?>



<table border="0"  width="100%" cellspacing="0" cellpadding="0">
    <tr><td colspan=<?php echo 2*CATEGORY_ONHEADER_MAXNUM + 2; ?> background="images/ddtemplate/cat_onheader_linea.gif" width=984 height=2 valign=top><IMG 
      src="images/ddtemplate/cat_onheader_linea.gif"
      vspace=0 hspace=0 border=0></td></tr>
   
    <tr>
<td align="center" class="category-on-header" width="5"><?php echo tep_draw_separator('pixel_trans.gif', '5', '5'); ?></td>   
<?php

$category_onheader_inf_count = count($category_onheader_link);
$j = 0;

for ($i = 0; $i <= CATEGORY_ONHEADER_MAXNUM-1; $i++) {
    $j++;
?>
<td align="center" height="50" class="category-on-header" width="0">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td valign="middle" align=center><?php
if (tep_not_null($category_onheader_link[$i])) {
    echo '<div class="catonHeaderNavigationTop"><a href="' .
    $category_onheader_link[$i] . '" title="' . strtoupper($category_onheader_name[$i])  . '" onMouseOver="MM_displayStatusMsg(\'\');return document.MM_returnValue" onMouseOut="MM_displayStatusMsg(\'\');return document.MM_returnValue"><nobr>'.
    $category_onheader_image[$i] . strtoupper($category_onheader_name[$i]) . '</nobr></div></a>';
} else {
    echo '<span class=catonHeaderNavigationSelectText><nobr>' . HEADER_TITLE_SELECTCAT . '</nobr></span>';
}
?>
</td></tr></table></td>

<?php

if ($j < $category_onheader_inf_count) {

?>
<td align="center" height="50" class="category-on-header" width="<?php echo floor( 100 /(( 2 * CATEGORY_ONHEADER_MAXNUM) - 1) ); ?>%"> </td>

<?php }
} ?>

<td class="category-on-header" align="center" width="5"><?php echo tep_draw_separator('pixel_trans.gif', '5', '5'); ?></td>
    </tr>
</table>


<?php } ?>



<?php if (INFO_PAGES_ONHEADER == 'true') {

   $information_query = tep_db_query("SELECT information_id, on_header, info_title FROM " . TABLE_PAGES_INFORMATION . " WHERE visible='1' and on_header='1' and languages_id ='" . $languages_id . "' ORDER BY v_order");

   if (tep_db_num_rows($information_query) > 0) {

      while($information_array = tep_db_fetch_array($information_query)) {
         $onheader_inf[$information_array['info_title']] = tep_href_link(FILENAME_INFORMATION_PAGES, 'info_id=' . $information_array['information_id']);
      }

   }

   if (USE_POINTS_SYSTEM == 'true') {
      $onheader_inf[BOX_INFORMATION_MY_POINTS_HELP] = tep_href_link(FILENAME_MY_POINTS_HELP);
   }

   if ((B2B_B2C_REGISTER_SETTING == 'B2B+B2C') || (B2B_B2C_REGISTER_SETTING == 'B2B')) {
      $onheader_inf[HEADER_TITLE_B2B_INFO_PAGE] = tep_href_link(FILENAME_B2B_INFO_PAGE);
   }

   if (AFFILIATE_ATTIVATE == 'true') {
      $onheader_inf[HEADER_TITLE_AFFILIATE_INFO_PAGE] = tep_href_link(FILENAME_AFFILIATE_INFO_PAGE);
   }

   $onheader_inf[HEADER_TITLE_CONTACT_US] = tep_href_link(FILENAME_CONTACT_US);

?>



<table border="0"  width="100%" cellspacing="0" cellpadding="0">
   <tr>   
   <td align="center">

<table border="0"  width="100%" cellspacing="0" cellpadding="0" class="info-on-header">
   <tr>
<td align="center" width="20"><IMG
          src="images/ddtemplate/header_info_left.gif"
        vspace=0 hspace=0 border=0></td>
<?php

$onheader_inf_count = count($onheader_inf);
$j = 0;

foreach ($onheader_inf as $title => $link) {
   $j++;
?>

<td class="info-on-header" valign="middle" align=center width="0"><?php echo '<a class="infoonHeaderNavigationTop" href="' . $link . '
  " title="' . $title . '" onMouseOver="MM_displayStatusMsg(\'' . $title . '\');return document.MM_returnValue" onMouseOut="MM_displayStatusMsg(\'\');return document.MM_returnValue"><nobr>'.
  $title . '</nobr></a>'; ?></td>
<?php

if ($j < $onheader_inf_count) {

?>
 
<td class="info-on-header" valign="middle" align=center width="<?php echo floor( 100 / count($onheader_inf)); ?>%"> </td>



<?php }
} ?>
<td align="center" width="20"><IMG
          src="images/ddtemplate/header_info_right.gif"
        vspace=0 hspace=0 border=0></td>
   </tr>
</table></td>   
</tr>
</table>
<?php } ?>

</td>
  </tr>
   

  <tr>
    <td width="100%" align=center>
<!--external-->

Re: Problema con togliere un box....aiutoooo

Inviato: 10/02/2010, 4:31
da antonybologna
Grazie Marcus
nel frattempo che avevo postato la domanda qualche minuto prima della tua risposta ci sono riuscito a capire quale era la parte da eliminare e andava tutto ma per sicurezza ho copiato il file mandato da te è l'ho messo su.

Si tranquillo faccio sempre tutto su un sito di prova e poi se va tutto lo monto su quello reale!!

Grazie