-
Notifications
You must be signed in to change notification settings - Fork 3
/
edit_dep.php
executable file
·76 lines (76 loc) · 2.05 KB
/
edit_dep.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?php
/*
* Factux le facturier libre
* Copyright (C) 2003-2005 Guy Hendrickx, 2017 Thomas Ingles
*
* Licensed under the terms of the GNU General Public License:
* http://opensource.org/licenses/GPL-3.0
*
* For further information visit:
* http://factux.free.fr
*
* File Name: fckconfig.js
* Editor configuration settings.
*
* * * Version: 5.0.0
* * * * Modified: 07/10/2016
*
* File Authors:
* Guy Hendrickx
*.
*/
include_once("include/headers.php");
$num_dep=isset($_GET['num_dep'])?$_GET['num_dep']:"";
?>
<table width="760" border="0" class="page" align="center">
<tr>
<td class="page" align="center">
<?php
include_once("include/head.php");
$sql = "SELECT * FROM " . $tblpref ."depense WHERE num=$num_dep";
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
while($data = mysql_fetch_array($req)){
$num = $data['num'];
$prix = $data['prix'];
$lib = $data['lib'];
$four = $data['fournisseur'];
}
?>
<center>
<form name="form1" method="post" action="edit_dep_suite.php">
<table class="page">
<caption><?php echo $lang_modifier_depense; ?></caption>
<tr>
<th><b><?php echo $lang_libelle; ?></b></th>
<th><b><?php echo $lang_montant_htva; ?></b></th>
<th><b><?php echo $lang_fournisseur; ?></b></th>
</tr>
<tr>
<td><input name="lib" type="text" value='<?php echo $lib; ?>'></td>
<td><input name="prix" type="text" value="<?php echo $prix; ?>"></td>
<td><input name="four" type="text" value='<?php echo $four; ?>'>
<input name="num" type="hidden" value="<?php echo $num ?>">
</td>
</tr>
<tr>
<td colspan="3" class="submit">
<center>
<input type="submit" name="Submit" value="<?php echo $lang_modifier; ?>">
<input type="reset" name="Submit2" value="<?php echo $lang_retablir; ?>">
</center>
</td>
</tr>
</table>
</form>
</center>
<?php
$aide='depense';
include_once("help.php");
include_once("include/bas.php");
?>
</td>
</tr>
</table>
</body>
</html>