Correction bug de recherche
Remplacement de sf_ref par sref
This commit is contained in:
parent
42141b9052
commit
2ea5087ea7
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -22,31 +22,17 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/product/index.php
|
\file htdocs/product/index.php
|
||||||
\ingroup product
|
\ingroup product
|
||||||
\brief Page accueil des produits et services
|
\brief Page accueil des produits et services
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
$user->getrights('produit');
|
|
||||||
|
|
||||||
|
|
||||||
$langs->load("products");
|
|
||||||
|
|
||||||
|
|
||||||
if (!$user->rights->produit->lire)
|
if (!$user->rights->produit->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if ($_POST["action"] == 'update')
|
|
||||||
{
|
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."product SET description='".$_POST["desc"]."' where rowid = ".$_POST["rowid"];
|
|
||||||
$db->query($sql);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Affichage page accueil
|
* Affichage page accueil
|
||||||
*
|
*
|
||||||
@ -68,7 +54,7 @@ print '<table class="noborder" width="100%">';
|
|||||||
print "<tr class=\"liste_titre\">";
|
print "<tr class=\"liste_titre\">";
|
||||||
print '<td colspan="3">'.$langs->trans("Search").'</td></tr>';
|
print '<td colspan="3">'.$langs->trans("Search").'</td></tr>';
|
||||||
print "<tr $bc[0]><td>";
|
print "<tr $bc[0]><td>";
|
||||||
print $langs->trans("Ref").' :</td><td><input class="flat" type="text" size="18" name="sf_ref"></td><td><input type="submit" class="button" value="'.$langs->trans("Search").'"></td></tr>';
|
print $langs->trans("Ref").' :</td><td><input class="flat" type="text" size="18" name="sref"></td><td><input type="submit" class="button" value="'.$langs->trans("Search").'"></td></tr>';
|
||||||
print "<tr $bc[0]><td>";
|
print "<tr $bc[0]><td>";
|
||||||
print $langs->trans("Label").':</td><td><input class="flat" type="text" size="18" name="snom"></td><td><input type="submit" class="button" value="'.$langs->trans("Search").'"></td></tr>';
|
print $langs->trans("Label").':</td><td><input class="flat" type="text" size="18" name="snom"></td><td><input type="submit" class="button" value="'.$langs->trans("Search").'"></td></tr>';
|
||||||
print "</table></form><br>";
|
print "</table></form><br>";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user