Ajout modif du numro de relev
This commit is contained in:
parent
6671196703
commit
97abfe2b84
@ -56,13 +56,19 @@ if ($action == 'update')
|
||||
$result = $db->query($sql);
|
||||
}
|
||||
|
||||
if ($action == 'type')
|
||||
if ($HTTP_POST_VARS["action"] == 'type')
|
||||
{
|
||||
$author = $GLOBALS["REMOTE_USER"];
|
||||
$sql = "update llx_bank set fk_type='$value' where rowid = $rowid;";
|
||||
$result = $db->query($sql);
|
||||
}
|
||||
|
||||
if ($HTTP_POST_VARS["action"] == 'num_releve')
|
||||
{
|
||||
$sql = "update llx_bank set num_releve=$num_rel where rowid = $rowid;";
|
||||
$result = $db->query($sql);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$sql = "SELECT rowid, label FROM llx_bank_categ;";
|
||||
$result = $db->query($sql);
|
||||
@ -137,7 +143,7 @@ if ($result)
|
||||
print "<select name=\"cat1\">$options";
|
||||
|
||||
print "</select> ";
|
||||
print "<input type=\"submit\" value=\"add\"></td>";
|
||||
print "<input type=\"submit\" value=\"Ajouter\"></td>";
|
||||
print "</tr>";
|
||||
|
||||
print "</form><form method=\"post\" action=\"$PHP_SELF?rowid=$objp->rowid\">";
|
||||
@ -174,8 +180,15 @@ if ($result)
|
||||
print '<option value="DEP">Dépôt';
|
||||
|
||||
print "</select><input type=\"submit\" value=\"update\"></td>";
|
||||
print "</tr></form>";
|
||||
|
||||
print "<form method=\"post\" action=\"$PHP_SELF?rowid=$objp->rowid\">";
|
||||
print '<input type="hidden" name="action" value="num_releve">';
|
||||
print "<tr $bc[$var]><td>Relevé</td><td colspan=\"5\">";
|
||||
print '<input name="num_rel" value="'.$objp->num_releve.'">';
|
||||
print "<input type=\"submit\" value=\"Mettre à jour\"></td>";
|
||||
print "</tr>";
|
||||
|
||||
|
||||
print "</form>";
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user