Pagina 3 di 4

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 29/09/2009, 21:41
da dynamo
hai un po' di errori in giro....

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
      }
    ?>

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 29/09/2009, 23:54
da deltabiri
Segna 4 errori, lascio l'header che mi hai dato cosi puoi controllare

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 30/09/2009, 9:18
da dynamo
un errore è lo spazio vuoto nella prima riga...

Codice: Seleziona tutto

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
deve iniziare subito e non ci devono essere degli spazi sopra ;)


linea 756 hai

Codice: Seleziona tutto

<a href="http://it.ask.com/?o=0&l=dir" target=_BLANK>
l'errore sta nella e commerciale che deve essere scritta come prova a sostituire il pezzo che ti avevo dato con questo nuovo codice

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>
                         
                    <td class="cerca" valign="middle" colspan="0" ><?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') ?>
                         <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>
                       </form>
                    </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>

                       
                 </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
          }
        ?>

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 30/09/2009, 9:31
da deltabiri
PERFETTOOOOO :P
grazie 1000 validazione ottenuta :mrgreen: :mrgreen:

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 20/02/2010, 9:37
da deltabiri
piccolo aiutino
ho messo su un nuovo box categorie http://addons.oscommerce.com/info/6987 che dava circa 20 errori di validazione, dopo qualche modifica e sistemazione sono sceso a quota 6 dei quali 4 di TR e TD, sapete come posso sistemarli ?

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 20/02/2010, 13:53
da dynamo
se sono tr e td devi controllare attentamente il codice html ;)

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 20/02/2010, 17:04
da deltabiri
ho provato anche a mettere come nel file che avevo, che inizia e finisce con

Codice: Seleziona tutto

<!-- categories //-->
          <tr>
            <td>
--------------------------codice--------------------------
 </td>
          </tr>

<!-- categories_eof //-->
ma cosi facendo gli errori raddoppiano, e sono sempre tutti di td e tr, inoltre mi sono accorto che andando su un prodotto con explorer mi segnala nella barra in basso
"errori nel visualizzare la pagina"
linea 3975
carattere 9
propieta o metodo non supportati dall'oggetto
codice 0
mettendo il file originale di boxes/categories.php si toglie....ma in cosa consiste l'errore ? e perche' usando gli stessi td tr del file originale ho 13 errori ?

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 20/02/2010, 20:24
da dynamo
ho fatto ora la validazione... e mi sono usciti 6 errori dovuti alla mancanza del tag alt

la pagina di riferimento è http://www.tentazionishop.it/abbigliame ... -c-84.html

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 20/02/2010, 21:49
da deltabiri
ho dovuto rimettere il vecchio file categories perche' avevo riscontrato diversi errori nel product_info.php, il tasto torna indietro non funzionava, il tasto ingradisci metteva il prodotti nel carrello, mentre se cliccavo sulla foto si apriva l'immagine chiudendo il sito :shock:
mi piaceva davvero tanto quella contribution....ma solo il pensiero di sistemarla :roll:

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 21/02/2010, 17:37
da deltabiri
messa sul mio sito .com ....se qualcuno vuole darci un'occhiata

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 21/02/2010, 20:26
da dynamo
così su due piedi ti direi...

prova a mettere tutto lo script javascript

Codice: Seleziona tutto

 <script type="text/javascript" src="jquery.min.js"></script>

 <script type="text/javascript" src="ddaccordion.js">
prima del <table>

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 21/02/2010, 23:47
da deltabiri
e' gia prima del table, posto il codice...

Codice: Seleziona tutto

<script type="text/javascript" src="jquery.min.js"></script>

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

/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/

</script>


<script type="text/javascript">


ddaccordion.init({
	headerclass: "submenuheader", //Shared CSS class name of headers group
	contentclass: "submenu", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["suffix", "<img src='images/plus.gif' class='statusicon' />", "<img src='images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})


</script>
<td>	
<img src="http://www.tentazionishop.it/images/grafica/categorie_header.jpg" alt="categorie" border="0" align="middle" >		
<?php
  $info_box_contents = array();
  $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES);
?>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top:1px;">
	<tr>
	   <td valign="top" style="padding:1px; ">  



<?php
// Categories  Accordion Menu
// coded by fl®ist 2009
// @florist duzgun.com forum

//  categories list

$status = tep_db_num_rows(tep_db_query('describe ' .  TABLE_CATEGORIES . ' status'));


  $query = "select c.categories_id, cd.categories_name, c.parent_id, c.categories_image
            from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
            where c.categories_id = cd.categories_id";

  if ($status >0)
    $query.= " and c.status = '1'";
  $query.= " and cd.language_id='" . $languages_id ."'
            order by sort_order, cd.categories_name";

  $categories_query = tep_db_query($query);


 


// Display box contents

  echo'<div class="glossymenu">';
 
    while ($categories = tep_db_fetch_array($categories_query)) {
       if ($categories['parent_id'] == 0) {
            $temp_cPath_array = $cPath_array;  //Johan's solution - kill the array but save it for the rest of the site
            unset($cPath_array);
           $cPath_new = tep_get_path($categories['categories_id']);
           $text_subcategories = '';
           $subcategories_query = tep_db_query($query);
	while ($subcategories = tep_db_fetch_array($subcategories_query)) {
       if ($subcategories['parent_id'] == $categories['categories_id']){
           $cPath_new_sub = "cPath="  . $categories['categories_id'] . "_" . $subcategories['categories_id'];
           $text_subcategories .= '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new_sub, 'NONSSL') . '">' . $subcategories['categories_name'] . '</a>' . " ";	
           } // if         
         } // While Interno
	  
/*	 $parent = $categories['parent_id'];
	 $count_query = tep_db_query ("select count(*)as sayi from ".TABLE_CATEGORIES." where parent_id = 0 ");
	 $count = tep_db_fetch_array($count_query);
	 
   $cat_bosluk = '<br style="clear: left"/>';
	for($i=4;$i<$count['sayi'];$i++){

    if(($i%4)!=0) continue; */
	
	
	
    if (tep_has_category_subcategories($category_id)) {
    $child_category_query = tep_db_query("select count(*) as count from " . TABLE_CATEGORIES . " where parent_id = '" . $categories['categories_id'] . "'");
    $child_category = tep_db_fetch_array($child_category_query);
 
    if ($child_category['count'] > 0) {echo'<a class="menuitem submenuheader" href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . $categories['categories_name'] . '</a>';
	echo'<div class="submenu">';
	echo'<ul><li>' . $text_subcategories.'</li></ul>';
	echo'</div>';}
	 else {echo'<a class="menuitem" href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new, 'NONSSL') . '">' . $categories['categories_name'] . '</a>'; }}

	
    
	 
	// echo''.$cat_bosluk[$i].'';    
       
   // }
    $cPath_array = $temp_cPath_array; //Re-enable the array for the rest of the code
    }
  }
   echo'</div>';
    $categories_string .= '» ' . $tree[$counter]['name'];
$categories_string.='<a href="' . tep_href_link(FILENAME_SPECIALS, '', SSL) . '">' . SPECIAL_PRODUCTS_LINK . '</a><br>';
 $categories_string .= '» ' . $tree[$counter]['name'];
$categories_string.='<a href="' . tep_href_link(FILENAME_PRODUCTS_NEW, '', SSL) . '">' . NEW_PRODUCTS_LINK . '</a><br>';
 $categories_string .= '» ' . $tree[$counter]['name'];
$categories_string.='<a href="' . tep_href_link(FILENAME_ALL_PRODUCTS, '', SSL) . '">' . ALL_PRODUCTS_LINK . '</a><br>';
$info_box_contents = array();
  $info_box_contents[] = array('text' => $categories_string);

  new infoBox($info_box_contents, $column_location);	
?>
			  </td>
			
		</table>	
	</td>
</tr>
<!-- show_subcategories_eof //-->

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 22/02/2010, 0:46
da dynamo
se noti nel validatore se mostri il codice html la prima linea è vuota... controlla la pagina per sistemare quell'errore (magari è dovuto a quello ;))

ti copio l'html che viene generato (preso sempre dal validatore)

Codice: Seleziona tutto

# <!-- left_navigation //-->
#
# <tr><td align="center" valign="top">
# <table border="0" cellspacing="0" cellpadding="4" align="center" width="180">
#
#
#
#
# <script type="text/javascript" src="jquery.min.js"></script>
#
# <script type="text/javascript" src="ddaccordion.js">
#
# /***********************************************
# * Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
# * Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
# * This notice must stay intact for legal use
# ***********************************************/
#
# </script>
#
#
# <script type="text/javascript">
#
#
# ddaccordion.init({
# headerclass: "submenuheader", //Shared CSS class name of headers group
# contentclass: "submenu", //Shared CSS class name of contents group
# revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
# mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
# collapseprev: true, //Collapse previous content (so only one open at any time)? true/false
# defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
# onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
# animatedefault: false, //Should contents open by default be animated into view?
# persiststate: true, //persist state of opened contents within browser session?
# toggleclass: ["", ""], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
# togglehtml: ["suffix", "<img src='images/plus.gif' class='statusicon' />", "<img src='images/minus.gif' class='statusicon' />"], //Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1", "html2"] (see docs)
# animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
# oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
# //do nothing
# },
# onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
# //do nothing
# }
# })
#
#
# </script><tr>
# <td>
# <img src="http://www.tentazionishop.it/images/grafica/categorie_header.jpg" alt="categorie" border="0" align="middle" >
#
#
#
#
#
#
# <div class="glossymenu"><a class="menuitem submenuheader" href="http://www.tentazionishop.com/intimo-donna-c-30.html">Intimo donna</a><div class="submenu"><ul><li><a href="http://www.tentazionishop.com/calze-collant-c-30_34.html">calze e collant</a> <a href="http://www.tentazionishop.com/reggiseni-body-c-30_35.html">reggiseni e body</a> <a href="http://www.tentazionishop.com/slip-perizoma-tanga-c-30_36.html">slip perizoma tanga</a> <a href="http://www.tentazionishop.com/maglieria-e-top-c-30_37.html">maglieria e top</a> <a href="http://www.tentazionishop.com/pigiami-notte-c-30_38.html">pigiami e notte</a> <a href="http://www.tentazionishop.com/completini-coordinati-c-30_39.html">completini coordinati</a> </li></ul></div><a class="menuitem submenuheader" href="http://www.tentazionishop.com/intimo-uomo-c-31.html">Intimo uomo</a><div class="submenu"><ul><li><a href="http://www.tentazionishop.com/calze-c-31_40.html">calze</a> <a href="http://www.tentazionishop.com/perizoma-uomo-c-31_68.html">Perizoma uomo</a> <a href="http://www.tentazionishop.com/slip-boxer-c-31_41.html">slip e boxer</a> <a href="http://www.tentazionishop.com/maglieria-c-31_42.html">maglieria</a> <a href="http://www.tentazionishop.com/pigiami-c-31_43.html">pigiami</a> <a href="http://www.tentazionishop.com/completi-c-31_44.html">completi</a> </li></ul></div><a class="menuitem submenuheader" href="http://www.tentazionishop.com/intimo-bambini-c-32.html">Intimo bambini</a><div class="submenu"><ul><li><a href="http://www.tentazionishop.com/accessori-c-32_82.html">accessori</a> <a href="http://www.tentazionishop.com/maglieria-c-32_45.html">maglieria</a> <a href="http://www.tentazionishop.com/pigiami-c-32_46.html">pigiami</a> <a href="http://www.tentazionishop.com/calze-c-32_47.html">calze</a> <a href="http://www.tentazionishop.com/tutine-body-neonato-c-32_48.html">tutine e body neonato</a> <a href="http://www.tentazionishop.com/slip-c-32_49.html">slip</a> </li></ul></div><a class="menuitem" href="http://www.tentazionishop.com/costumi-mare-c-53.html">Costumi mare</a></div><table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBoxLeft">
come vedi la struttura è così composta
<table><script><tr><td>

per me andrebbe spostato quello script prima del table ;)

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 22/02/2010, 9:56
da deltabiri
ho spostato lo script in column_left sopra il table, genera sempre il problema dell'ingrandmento della foto che al posto di ingrandire porta al carrello :|

Re: validator.w3 trova ceninaia di errori uguali

Inviato: 22/02/2010, 19:57
da deltabiri
il problema lo da questo script, senza glii errori spariscono, questo serve per far aprire le sottocategorie

Codice: Seleziona tutto

<script type="text/javascript" src="jquery.min.js"></script>
come si puo' risolvere?