Ajout mode_reglement et cond_reglement
This commit is contained in:
parent
c3bb38c875
commit
8c0140443e
@ -385,7 +385,7 @@ if ($_POST['action'] == 'set_contact')
|
|||||||
if ($_POST["action"] == 'setconditions')
|
if ($_POST["action"] == 'setconditions')
|
||||||
{
|
{
|
||||||
$propal = new Propal($db, $_GET["propalid"]);
|
$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."'";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_cond_reglement='".$_POST['cond_reglement_id']."' WHERE rowid='".$propalid."'";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
}
|
}
|
||||||
@ -394,7 +394,7 @@ if ($_POST["action"] == 'setconditions')
|
|||||||
if ($_POST["action"] == 'setmode')
|
if ($_POST["action"] == 'setmode')
|
||||||
{
|
{
|
||||||
$propal = new Propal($db, $_GET["propalid"]);
|
$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."'";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."propal SET fk_mode_reglement='".$_POST['mode_reglement_id']."' WHERE rowid='".$propalid."'";
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user