on n'affiche que si le module commande est actif
This commit is contained in:
parent
ae5bdc9236
commit
76c895aaf6
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Destailleur Laurent <eldy@users.sourceforge.net>
|
* Copyright (C) 2004 Destailleur Laurent <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -264,36 +265,38 @@ if ($_GET["propalid"])
|
|||||||
}
|
}
|
||||||
print "</table>";
|
print "</table>";
|
||||||
/*
|
/*
|
||||||
*
|
* Que si le module commande est actif !
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
$nb_commande = sizeof($propal->commande_liste_array());
|
if($conf->commande->enabled) {
|
||||||
if ($nb_commande > 0)
|
$nb_commande = sizeof($propal->commande_liste_array());
|
||||||
{
|
if ($nb_commande > 0)
|
||||||
$coms = $propal->commande_liste_array();
|
{
|
||||||
print '<br><table class="border" width="100%">';
|
$coms = $propal->commande_liste_array();
|
||||||
|
print '<br><table class="border" width="100%">';
|
||||||
if ($nb_commande == 1)
|
|
||||||
|
if ($nb_commande == 1)
|
||||||
{
|
|
||||||
print "<tr><td>Commande rattachée : ";
|
|
||||||
print '<a href="'.DOL_URL_ROOT.'/commande/fiche.php?id='.$coms[$i].'">';
|
|
||||||
print img_file();
|
|
||||||
print '</a> <a href="'.DOL_URL_ROOT.'/commande/fiche.php?id='.$coms[$i].'">'.$coms[$i]."</a>";
|
|
||||||
print "</td></tr>\n";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print "<tr><td>Commandes rattachées</td></tr>\n";
|
|
||||||
|
|
||||||
for ($i = 0 ; $i < $nb_commande ; $i++)
|
{
|
||||||
{
|
print "<tr><td>Commande rattachée : ";
|
||||||
print '<tr><td><a href="'.DOL_URL_ROOT.'/commande/fiche.php?id='.$coms[$i].'">'.$coms[$i]."</a></td>\n";
|
print '<a href="'.DOL_URL_ROOT.'/commande/fiche.php?id='.$coms[$i].'">';
|
||||||
print "</tr>\n";
|
print img_file();
|
||||||
}
|
print '</a> <a href="'.DOL_URL_ROOT.'/commande/fiche.php?id='.$coms[$i].'">'.$coms[$i]."</a>";
|
||||||
}
|
print "</td></tr>\n";
|
||||||
print "</table>";
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
|
print "<tr><td>Commandes rattachées</td></tr>\n";
|
||||||
|
|
||||||
|
for ($i = 0 ; $i < $nb_commande ; $i++)
|
||||||
|
{
|
||||||
|
print '<tr><td><a href="'.DOL_URL_ROOT.'/commande/fiche.php?id='.$coms[$i].'">'.$coms[$i]."</a></td>\n";
|
||||||
|
print "</tr>\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print "</table>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user