Ajout gestion du blocage de commande
This commit is contained in:
parent
1da6637139
commit
cf4f0c6177
@ -44,9 +44,10 @@ if ($_POST["action"] == 'update' && $_GET["id"])
|
|||||||
if ($fourn->fetch($_GET["id"]) == 0)
|
if ($fourn->fetch($_GET["id"]) == 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
$fourn->num_client = $_POST["num_client"];
|
$fourn->num_client = $_POST["num_client"];
|
||||||
$fourn->email_commande = $_POST["email_commande"];
|
$fourn->email_commande = $_POST["email_commande"];
|
||||||
$fourn->methode_commande = $_POST["methode"];
|
$fourn->methode_commande = $_POST["methode"];
|
||||||
|
$fourn->commande_bloque = $_POST["commande_bloque"];
|
||||||
|
|
||||||
if ( $fourn->update($user) == 0)
|
if ( $fourn->update($user) == 0)
|
||||||
{
|
{
|
||||||
@ -113,6 +114,9 @@ if ($_GET["action"] == 'create')
|
|||||||
*/
|
*/
|
||||||
if ($_GET["id"] > 0)
|
if ($_GET["id"] > 0)
|
||||||
{
|
{
|
||||||
|
$art[0] = "non";
|
||||||
|
$art[1] = "oui";
|
||||||
|
|
||||||
$fourn = new FournisseurTelephonie($db);
|
$fourn = new FournisseurTelephonie($db);
|
||||||
if ($fourn->fetch($_GET["id"]) == 0)
|
if ($fourn->fetch($_GET["id"]) == 0)
|
||||||
{
|
{
|
||||||
@ -150,6 +154,13 @@ if ($_GET["id"] > 0)
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
print '<td>méthode utilisée pour les commandes de lignes</td></tr>';
|
print '<td>méthode utilisée pour les commandes de lignes</td></tr>';
|
||||||
|
|
||||||
|
print '<tr><td width="20%">Blocage des commandes</td>';
|
||||||
|
print '<td>';
|
||||||
|
|
||||||
|
print $html->select_array("commande_bloque",$art,$fourn->commande_bloque);
|
||||||
|
print '</td>';
|
||||||
|
print '<td>Les commandes vers ce fournisseur sont bloquées</td></tr>';
|
||||||
|
|
||||||
print '<tr><td colspan="3" align="center"><input type="submit" value="Update"></td></tr>';
|
print '<tr><td colspan="3" align="center"><input type="submit" value="Update"></td></tr>';
|
||||||
print '</table></form><br />';
|
print '</table></form><br />';
|
||||||
}
|
}
|
||||||
@ -188,6 +199,10 @@ if ($_GET["id"] > 0)
|
|||||||
print '<td>méthode utilisée pour les commandes de lignes</td></tr>';
|
print '<td>méthode utilisée pour les commandes de lignes</td></tr>';
|
||||||
|
|
||||||
|
|
||||||
|
print '<tr><td width="20%">Blocage des commandes</td>';
|
||||||
|
print '<td>'.$art[$fourn->commande_bloque].'</td>';
|
||||||
|
print '<td>Les commandes sont bloquées</td></tr>';
|
||||||
|
|
||||||
print '</table><br /></div>';
|
print '</table><br /></div>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user