Ajout champs supplementaires le temps de trouver la meilleure methode

pour les deplacer dans l'objet idoine
This commit is contained in:
Rodolphe Quiedeville 2006-12-09 11:37:36 +00:00
parent 5e13c5a1e8
commit 5f43a280f6

View File

@ -68,13 +68,31 @@ if (isset($_REQUEST['catid']))
$catid = $_REQUEST['catid']; $catid = $_REQUEST['catid'];
} }
/* /*
* Affichage mode liste * Affichage mode liste
* *
*/ */
$title=$langs->trans("ProductsAndServices"); if ($_GET["canvas"] <> '' && file_exists('canvas/product.'.$_GET["canvas"].'.class.php') )
{
$class = 'Product'.ucfirst($_GET["canvas"]);
include_once('canvas/product.'.$_GET["canvas"].'.class.php');
}
else
{
$title=$langs->trans("ProductsAndServices");
if (isset($_GET["type"]) || isset($_POST["type"]))
{
$type=isset($_GET["type"])?$_GET["type"]:$_POST["type"];
if ($type) { $texte = $langs->trans("Services"); }
else { $texte = $langs->trans("Products"); }
} else {
$texte = $langs->trans("ProductsAndServices");
}
}
$sql = 'SELECT p.rowid, p.ref, p.label, p.price, p.fk_product_type, '.$db->pdate('p.tms').' as datem,'; $sql = 'SELECT p.rowid, p.ref, p.label, p.price, p.fk_product_type, '.$db->pdate('p.tms').' as datem,';
$sql.= ' p.duration, p.envente as statut'; $sql.= ' p.duration, p.envente as statut';
@ -149,16 +167,6 @@ if ($resql)
$envente = (isset($_GET["envente"])?$_GET["envente"]:$_POST["envente"]); $envente = (isset($_GET["envente"])?$_GET["envente"]:$_POST["envente"]);
} }
if (isset($_GET["type"]) || isset($_POST["type"]))
{
$type=isset($_GET["type"])?$_GET["type"]:$_POST["type"];
if ($type) { $texte = $langs->trans("Services"); }
else { $texte = $langs->trans("Products"); }
} else {
$texte = $langs->trans("ProductsAndServices");
}
llxHeader("","",$texte); llxHeader("","",$texte);
if ($sref || $snom || $sall || $_POST["search"]) if ($sref || $snom || $sall || $_POST["search"])