Ajout mode_reglement et cond_reglement

This commit is contained in:
Regis Houssin 2006-02-15 19:01:09 +00:00
parent 8c0140443e
commit 1ba6fd703c

View File

@ -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_id=$_POST['cond_reglement_id']; $propal->cond_reglement=$_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_id=$_POST['mode_reglement_id']; $propal->mode_reglement=$_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);
} }
@ -552,11 +552,11 @@ if ($_GET['propalid'] > 0)
print '</td><td colspan="3">'; print '</td><td colspan="3">';
if ($_GET['action'] == 'editconditions') if ($_GET['action'] == 'editconditions')
{ {
$html->form_conditions_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->cond_reglement_id,'cond_reglement_id'); $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->cond_reglement,'cond_reglement_id');
} }
else else
{ {
$html->form_conditions_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->cond_reglement_id,'none'); $html->form_conditions_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->cond_reglement,'none');
} }
print '</td>'; print '</td>';
print '<td width="25%">'; print '<td width="25%">';
@ -568,11 +568,11 @@ if ($_GET['propalid'] > 0)
print '</td><td width="25%">'; print '</td><td width="25%">';
if ($_GET['action'] == 'editmode') if ($_GET['action'] == 'editmode')
{ {
$html->form_modes_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->mode_reglement_id,'mode_reglement_id'); $html->form_modes_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->mode_reglement,'mode_reglement_id');
} }
else else
{ {
$html->form_modes_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->mode_reglement_id,'none'); $html->form_modes_reglement($_SERVER['PHP_SELF'].'?propalid='.$propal->id,$propal->mode_reglement,'none');
} }
print '</td></tr>'; print '</td></tr>';