Une écriture bizarre apparaît dans mon site !!

Fermé
chaima.abdouli Messages postés 94 Date d'inscription mercredi 17 juin 2015 Statut Membre Dernière intervention 3 septembre 2015 - 28 juil. 2015 à 12:57
chaima.abdouli Messages postés 94 Date d'inscription mercredi 17 juin 2015 Statut Membre Dernière intervention 3 septembre 2015 - 28 juil. 2015 à 16:52
Bonjour ,

dans l'index de mon site ait avec oscommerce y'a une écriture bizarre qui apparaît mais que je n'arrive pas à connaitre d'ou ça vient j'ai beau chercher dans le code mais rien n'y fait

voila le code ou supposé être la faute !




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

define('DIR_WS_TEMPLATE_IMAGES', 'templates/Original/images/');

// WebMakers.com Added: Down for Maintenance
// Hide header if not to show
if (DOWN_FOR_MAINTENANCE_HEADER_OFF =='false') {

if (SITE_WIDTH!='100%') {
?>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td>
<table CELLSPACING="0" CELLPADDING="0" BORDER="0" class="main" width="<?php echo SITE_WIDTH;?>" align="center">
<tr><td>
<table border="0" width="100%"><tr><td>
<?php
}
?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="header">
<td valign="bottom">
<table width="100%">
<tr>
<td class="newlogo">
<a href="https://vintage-motors.net/"><img src="logo-vintage.png"></a>
</td>
<td class="header_moto" rowspan="2">
<!--PLACE DU BANDEAU-->
<a href="http://www.vintage-motors.net/products_new.php">
<img src="Vintage-Motors-Magasin-Retro.png">
</a>
<!--<object type="application/x-shockwave-flash" data="bvintage-sa.swf" width="600" height="150">
<param name="movie" value="bvintage-sa.swf" />
D?couvrez tous les casques moto sur vintage-motors.net accessoires moto et scooter pour les motards et moto vintage.<br>
Des marques prestigieuses de casques, blousons en cuir, bottes, gants ?toffent notre catalogue :
BELSTAFF, CROMWELL, DAVIDA, SOUBIRAC, BELL, BLH, SPIDI...
</object>-->

<!-- FIN BANDEAU -->
</td>
<td align="right" valign="top"><?php
// show Cart Details
if (SHOW_CART_IN_HEADER=='yes') {
?>
<table class="header-contact">
<tr height="41px">
<th colspan="2">
<p>Recherche produit :</p>
<?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'onSubmit="return check_form(this);"') . tep_hide_session_id(); ?>
<br />
<?php
echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
echo tep_draw_input_field('keywords', '', 'size="25" maxlength="40" style="width: ' . (BOX_WIDTH-10) . 'px"');
echo tep_hide_session_id() .''. tep_image_submit('search-logo.png', BOX_HEADING_SEARCH,'class="log-search"');
?></form>
<a class="contact" href="contact_us.php">CONTACT</a>
</th>
</tr>
<tr height="130px" text-align="right">
<td class="info-contact">
<b><p>Vintage-Motors.net<br />
<a href="tel:+33143573330">01.43.57.33.30</a><br />
du Lundi au Vendredi<br />
10h-13h et 14h-18h</p></b>

<p><a class="link-point-vente" href="point-de-vente-belstaff-paris.php">Nos boutiques Vintage Motors</a>
Lundi au Samedi |
10h-19h30</p>
</td>
<td>
<div class="produit-choose">
<img src="shopping.png"><br />
<?php echo $cart->count_contents() . ($cart->count_contents() == "1" ? " Article" : " Articles "); ?><br />
Prix: <?php echo $currencies->format($cart->show_total()); ?>
</div>
</td>
<!--<?php //echo $cart->show_weight() . ($cart->show_weight() == "1" ? " kg" : " kgs ");?> ]-->
</tr>
</table>
<?php
}
?></td>
</tr>
</table>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="navigation-tool">
<tr>
<td class="headerNavigation2"> <?php echo $breadcrumb->trail(' > '); ?></td>
<td align="right" class="headerNavigation"><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="black"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="black"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="black"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
</tr>
</table>

<?php
}
?>
<!-- header_eof //-->
A voir également:

7 réponses

Yuh12 Messages postés 184 Date d'inscription mercredi 7 mai 2014 Statut Membre Dernière intervention 28 septembre 2017 24
28 juil. 2015 à 15:21
Quelle est cette "écriture bizarre" ?
Ton peux donner une image ou une explication ?
On ne sait pas vraiment ce que l'on doit chercher dans ce gros pâté...

Puis si tu pouvais éditer ton message pour utiliser les balises du forum prévues pour le code, la c'est assez illisible.
0
Hydr0s Messages postés 1678 Date d'inscription lundi 24 janvier 2011 Statut Membre Dernière intervention 24 août 2022 672
Modifié par Hydr0s le 28/07/2015 à 15:23
Salut,

Tout d'abord, il existe des balises codes pour mettre ton php (le bouton est à droite de "souligné" avec une liste déroulante pour sélectionner php) ceci pour des raisons de lisibilité évidente (pas d'indentation etc).

Je suppose que ton site est https://vintage-motors.net/ et lorsque je suis allé sur la page avec Firefox (39.0), je n'ai constaté aucun artefact d'écriture. Si tu en vois une, tu peux regarder le code dans la navigateur à l'aide des outils du navigateur : clic droit sur l'élément > Inspecter l'élément. Une console avec un curseur de sélection permet de voir le code du bloc sélectionné et ainsi de débugger ton site.

"Une personne intelligente résout un problème. Une personne sage les évite."
- A. Einstein -
0
chaima.abdouli Messages postés 94 Date d'inscription mercredi 17 juin 2015 Statut Membre Dernière intervention 3 septembre 2015 2
28 juil. 2015 à 15:31
Bonjour ,

Merci de ta réponse , mais j'ai déjà inspecté l'élément je l'ai trouvé nulle part vous trouverez ci joint une capture d'écran de l'écriture dont je vous ai parlé



et je vais remettre le code :


<?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
*/
define('DIR_WS_TEMPLATE_IMAGES', 'templates/Original/images/');

// WebMakers.com Added: Down for Maintenance
// Hide header if not to show
if (DOWN_FOR_MAINTENANCE_HEADER_OFF =='false') {

if (SITE_WIDTH!='100%') {
?>  
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
      <tr><td>
        <table CELLSPACING="0" CELLPADDING="0" BORDER="0"  class="main" width="<?php echo SITE_WIDTH;?>" align="center">
          <tr><td>
            <table border="0" width="100%"><tr><td>
<?php
    }
?>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr class="header">
    <td valign="bottom">
    <table width="100%">
    <tr>
    <td class="newlogo">
        <a href="http://www.vintage-motors.net/index.php"><img src="logo-vintage.png"></a>
    </td>
    <td class="header_moto" rowspan="2">
        <!--PLACE DU BANDEAU-->
        <a href="http://www.vintage-motors.net/products_new.php">
            <img src="Vintage-Motors-Magasin-Retro.png">
        </a>
        <!--<object type="application/x-shockwave-flash" data="bvintage-sa.swf" width="600" height="150"> 		   		 
	       <param name="movie" value="bvintage-sa.swf" />
           D?couvrez tous les casques moto sur vintage-motors.net accessoires moto et scooter pour les motards et moto vintage.<br>
           Des marques prestigieuses de casques, blousons en cuir, bottes, gants ?toffent notre catalogue :
           BELSTAFF, CROMWELL, DAVIDA, SOUBIRAC, BELL, BLH, SPIDI...
        </object>-->
        
        <!-- FIN BANDEAU -->
    </td>
    <td align="right" valign="top"><?php
// show Cart Details
 if (SHOW_CART_IN_HEADER=='yes') {
?>
        <table class="header-contact">
            <tr height="41px">
                <th colspan="2">
                    <p>Recherche produit :</p>
                    <?php echo tep_draw_form('advanced_search', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'onSubmit="return check_form(this);"') . tep_hide_session_id(); ?>
                    <br />
                    <?php
                    echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');
                    echo tep_draw_input_field('keywords', '', 'size="25" maxlength="40" style="width: ' . (BOX_WIDTH-10) . 'px"');
                    echo tep_hide_session_id() .''. tep_image_submit('search-logo.png', BOX_HEADING_SEARCH,'class="log-search"');
                    ?></form>
                    <a class="contact" href="contact_us.php">CONTACT</a>
                </th>
            </tr>
            <tr height="130px" text-align="right">
                <td class="info-contact">
                    <b><p>Vintage-Motors.net<br />
                        <a href="tel:+33143573330">01.43.57.33.30</a><br />
                    du Lundi au Vendredi<br />
                    10h-13h et 14h-18h</p></b>
                    
                    <p><a class="link-point-vente" href="point-de-vente-belstaff-paris.php">Nos boutiques Vintage Motors</a>                    
                    Lundi au Samedi |
                    10h-19h30</p>
                </td>
                <td>
                    <div class="produit-choose">
                    <img src="shopping.png"><br />
                    <?php echo $cart->count_contents() . ($cart->count_contents() == "1" ? " Article" : " Articles "); ?><br />
                    Prix: <?php echo $currencies->format($cart->show_total()); ?>
                </div>
                </td>
				<!--<?php //echo $cart->show_weight() . ($cart->show_weight() == "1" ? " kg" : " kgs ");?> ]-->
				</tr>
				</table>
<?php
}
?></td>
    </tr>
    </table>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="1" class="navigation-tool">
  <tr>
    <td class="headerNavigation2"> <?php echo $breadcrumb->trail(' > '); ?></td>
    <td align="right" class="headerNavigation"><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="black"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="black"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>  |  <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="black"><?php echo HEADER_TITLE_CHECKOUT; ?></a>   </td>
  </tr>
</table>

<?php
}
?>
<!-- header_eof //-->


0
Yuh12 Messages postés 184 Date d'inscription mercredi 7 mai 2014 Statut Membre Dernière intervention 28 septembre 2017 24
28 juil. 2015 à 15:42


Là ou tu définis tes <script> peut-être ?

Et qu'est-ce que tu utilises comme CMS pour faire ce site?
Il ne fait que des tableaux ...

0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
chaima.abdouli Messages postés 94 Date d'inscription mercredi 17 juin 2015 Statut Membre Dernière intervention 3 septembre 2015 2
28 juil. 2015 à 15:47
j'ai cherché partout d'ou ça peut venir toujours pas ! c'est l'os commerce
0
Hydr0s Messages postés 1678 Date d'inscription lundi 24 janvier 2011 Statut Membre Dernière intervention 24 août 2022 672
28 juil. 2015 à 16:43
L'erreur est surement dans un autre fichier que header.php : regarde dans page.php ou index.php (je ne connait pas le cms mais la page principale qui appelle tes éléments) du template
0
chaima.abdouli Messages postés 94 Date d'inscription mercredi 17 juin 2015 Statut Membre Dernière intervention 3 septembre 2015 2
28 juil. 2015 à 16:47
je n'ai pas trouvé ni dans index ni rien par contre regardez cette capture
0
chaima.abdouli Messages postés 94 Date d'inscription mercredi 17 juin 2015 Statut Membre Dernière intervention 3 septembre 2015 2
28 juil. 2015 à 16:52
voila les captures :







0