osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> [resolu] menu deroulons
powerdata
posté 29 Dec 2003, 11:21
Message #1


Ceinture blanche+ OSC
Icône de groupe

Groupe : Membres
Messages : 23
Inscrit : 15-December 03
Membre no 1736



existe-il un moyen pour inserer en haut de la page un menu deroulons , j'utilise la version Ms2 francaise, merci pour l'aide


--------------------
la ms2,moi, et les codes
Go to the top of the page
 
la_boule
posté 29 Dec 2003, 13:04
Message #2


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 41
Inscrit : 3-January 03
Lieu : Bruxelles
Membre no 702



Voici le code qui te permetra de rajouter un menu deroulant et le module de recherche dans ton header

CODE
<tr>

                  <td colspan="2" align="center" valign="top" >

                  <?php



if (MAX_MANUFACTURERS_LIST < 2) {

  $cat_choose = array(array('id' => '', 'text' => BOX_HEADING_CATEGORIES));

} else {

  $cat_choose = '';

}



$categories_array = tep_get_categories($cat_choose);

for ($i=0; $i<sizeof($categories_array); $i++) {



}



echo ' <b> ' . BOX_HEADING_SEARCH . TEXT_BY. '&nbsp;:</b>&nbsp;<form action="' . tep_href_link(FILENAME_DEFAULT) . '" method="get">' . tep_draw_pull_down_menu('cPath', $categories_array,'','onChange="this.form.submit();" size="' . ((sizeof($categories_array) < MAX_MANUFACTURERS_LIST) ? sizeof($categories_array) : MAX_MANUFACTURERS_LIST) . '" style="width:150"'  );



$hide = tep_hide_session_id();

echo '</form><b> ou </b><form name="quick_find" method="get" action="' . tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false) . '">';

echo $hide . '&nbsp;<input type="text" name="keywords" onClick="this.value=''" size="10" maxlength="30" value="' . BOX_HEADING_SEARCH . '..." style="width: ' . (BOX_WIDTH-30) . 'px"                   >&nbsp;' . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '&nbsp;<a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a></form>';



                   ?>

                 

                  </td>

                </tr>


Cette info viens du forum d'afid
http://www.xagogo.com/forums/index.php?showtopic=130
Go to the top of the page
 

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 20th May 2013 - 15:33
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)