Ajout mode_reglement et cond_reglement

This commit is contained in:
Regis Houssin 2006-02-15 18:58:11 +00:00
parent c3bb38c875
commit 8c0140443e

View File

@ -385,7 +385,7 @@ if ($_POST['action'] == 'set_contact')
if ($_POST["action"] == 'setconditions')
{
$propal = new Propal($db, $_GET["propalid"]);
$propal->cond_reglement=$_POST['cond_reglement_id'];
$propal->cond_reglement_id=$_POST['cond_reglement_id'];
$sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_cond_reglement='".$_POST['cond_reglement_id']."' WHERE rowid='".$propalid."'";
$result = $db->query($sql);
}
@ -394,7 +394,7 @@ if ($_POST["action"] == 'setconditions')
if ($_POST["action"] == 'setmode')
{
$propal = new Propal($db, $_GET["propalid"]);
$propal->mode_reglement=$_POST['mode_reglement_id'];
$propal->mode_reglement_id=$_POST['mode_reglement_id'];
$sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_mode_reglement='".$_POST['mode_reglement_id']."' WHERE rowid='".$propalid."'";
$result = $db->query($sql);
}