prova così
Codice: Seleziona tutto
<table width="994" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><?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 language="JavaScript1.2" type="text/javascript">
<!-- inizio blocco tasto destro
function right(e) {
if (navigator.appName == 'Netscape' &&
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
(event.button == 2 || event.button == 3)) {
alert("Il tasto destro del tuo Mouse è disabilitato");
return false;
}
return true;
}
document.onmousedown=right;
if (document.layers)
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
// fine blocco tasto destro-->
</script>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="header">
<td align="left"><?php echo ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'grafica/logo_tentazionishop.png' , 'Tentazioni Shop vendita on line'). '</a>';?></td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="headerNavigation">
<td class="headerNavigation">
<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, '') . '">' ?><img alt="Pagina iniziale" border="0" width="161" height="47" src="http://www.tentazionishop.it/images/grafica/home.gif" name="img0"
onmouseover="document.img0.src='images/grafica/home_click.gif';"
onmouseout="document.img0.src='images/grafica/home.gif';" ></a>
<a href="http://www.tentazionishop.it/login.php"><img alt="Accedi o registrati" border="0" width="161" height="47" src="http://www.tentazionishop.it/images/grafica/accedi_registrati.gif" name="img1"
onmouseover="document.img1.src='images/grafica/accedi_registrati_click.gif';"
onmouseout="document.img1.src='images/grafica/accedi_registrati.gif';" ></a>
<?php echo '<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '') . '">' ?><img alt="Nuovi Prodotti" border="0" width="161" height="47" src="http://www.tentazionishop.it/images/grafica/nuovi_prodotti.gif" name="img2"
onmouseover="document.img2.src='images/grafica/nuovi_prodotti_click.gif';"
onmouseout="document.img2.src='images/grafica/nuovi_prodotti.gif';" ></a>
<?php echo '<a href="' . tep_href_link(FILENAME_SPECIALS, '') . '">' ?><img alt="Offerte" border="0" width="161" height="47" src="http://www.tentazionishop.it/images/grafica/offerte.gif" name="img3"
onmouseover="document.img3.src='images/grafica/offerte_click.gif';"
onmouseout="document.img3.src='images/grafica/offerte.gif';" ></a>
<?php echo '<a href="' . tep_href_link(FILENAME_CHISIAMO, '') . '">' ?><img alt="Chi siamo" border="0" width="161" height="47" src="http://www.tentazionishop.it/images/grafica/chi_siamo.gif" name="img4"
onmouseover="document.img4.src='images/grafica/chi_siamo_click.gif';"
onmouseout="document.img4.src='images/grafica/chi_siamo.gif';" ></a>
<?php echo '<a href="' . tep_href_link(FILENAME_CONTACT_US, '') . '">' ?><img alt="Contattaci" border="0" width="161" height="47" src="http://www.tentazionishop.it/images/grafica/contattaci.gif" name="img5"
onmouseover="document.img5.src='images/grafica/contattaci_click.gif';"
onmouseout="document.img5.src='images/grafica/contattaci.gif';" ></a>
</td>
</tr>
</table>
<?php
//
// START advanced search header script insertion
//
//
?>
<?php
?>
<table align="center" border="0" width="100%" cellspacing="0" cellpadding="1" class="sfondo_cerca_menu_orizzontale">
<tr>
<td align="center" class="headerNavigation">
<table border="0" width="100%" cellspacing="0" cellpadding="0" >
<tr>
<?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') ?>
<td class="cerca" valign="middle" colspan="0" >
<table border="0" width="45%" cellspacing="0" cellpadding="1" align="left">
<tr>
<td class="cerca" valign="top" colspan="3"> </td>
<td class="cerca" valign="middle" colspan="3"><?php echo BOX_HEADING_SEARCH ?></td>
<td class="cerca" valign="middle" colspan="3"> </td>
<td class="cerca" valign="middle" colspan="3"><?php echo tep_draw_hidden_field('search_in_description','1') . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-50) . 'px"') ?></td>
<td class="cerca" valign="top" colspan="3"> </td>
<td width="27%" colspan="3" valign="middle" class="cerca"><center><?php echo tep_image_submit('button_search.gif', BOX_HEADING_ADVSEARCH); ?></center></td>
</tr>
</table>
</td>
<td align="right">
<!-- INIZIO BOTTONI DESTRA -->
<table border="0" width=500 cellspacing="0" cellpadding="0" align="right" >
<tr>
<td align="center" valign="bottom">
<div id="tabsJ">
<ul>
<li><?php echo '<a href="' . tep_href_link(FILENAME_SHIPPING, '') . '">' ?><span>Traking SDA</span></a></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_CONDITIONS, '') . '">' ?><span>Condizioni</span></a></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_PAGAMENTI, '') . '">' ?><span>Pagamenti</span></a></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_FAQ, '') . '">' ?><span>Domande utili</span></a></li>
<li><?php echo '<a href="' . tep_href_link(FILENAME_MESSENGER, '') . '">' ?><span>Messenger</span></a></li>
</ul>
</div>
</td>
</tr>
</table>
<!-- FINE BOTTONI DESTRA -->
</td>
</form>
</tr>
</table>
</td>
</tr>
</table>
<?php
//
// END advanced search header script insertion
//
//
?>
<?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 htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></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 htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td>
</tr>
</table>
<?php
}
?>