$req = mysql_query("select id,titre from " . $prefixe_table . "produits where id_cat=\"{$cat}\" order by id"); while ($ligne = mysql_fetch_array($req)) { $id = $ligne["id"]; $titre = $ligne["titre"]; echo "<option value=\"{$id}\""; if ($id == $id_produit_ajout) { echo " selected"; } echo ">{$titre_cat} > {$titre}</option>"; } } $req = mysql_query("select id,titre from " . $prefixe_table . "produits_cat order by titre"); while ($ligne = mysql_fetch_array($req)) { $id = $ligne["id"]; $titre_cat = $ligne["titre"]; liste_produits($id, $titre_cat); } ?> </select></td> </tr> <tr> <td><b>Remise</b> :</td> <td><select name="id_remise_ajout" style="width: 320px"> <option value="0">Choisissez (facultatif)</option> <?php $req = mysql_query("select id,taux from " . $prefixe_table . "remises order by id"); while ($ligne = mysql_fetch_array($req)) { $id = $ligne["id"]; $taux = $ligne["taux"]; echo "<option value=\"{$id}\""; if ($id == $id_remise_ajout) {
</a></li> <li><a href="javascript:tri('DESC','<?php echo $parent; ?> ','2','classement','')"><?php echo trad('Tri_decroissant', 'admin'); ?> </a></li> </ul> </li> <li style="height:25px; width:44px; border-left:1px solid #96A8B5;"><?php echo trad('Suppr', 'admin'); ?> .</li> </ul> <div id="resulproduit" class="bordure_bottom"> <?php liste_produits($parent, 'classement', 'ASC', ''); ?> </div> </div> <?php require_once "pied.php"; ?> </div> </div> </body> </html>
/* */ /* This program is free software; you can redistribute it and/or modify */ /* it under the terms of the GNU General Public License as published by */ /* the Free Software Foundation; either version 3 of the License */ /* */ /* This program is distributed in the hope that it will be useful, */ /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ /* GNU General Public License for more details. */ /* */ /* You should have received a copy of the GNU General Public License */ /* along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* */ /*************************************************************************************/ require_once __DIR__ . "/../pre.php"; require_once __DIR__ . "/../auth.php"; if (!est_autorise("acces_catalogue")) { exit; } header('Content-Type: text/html; charset=utf-8'); $critere = $_GET["critere"]; $order = $_GET["order"]; $ref = $_GET["ref"]; $alpha = $_GET["alpha"]; if ($_GET["type"] == 1) { require "../liste/rubrique.php"; liste_rubriques($ref, $critere, $order, $alpha); } else { require "../liste/produit.php"; liste_produits($ref, $critere, $order, $alpha); }