Repository navigation
Expand file tree
/
Copy pathedit_bon.php
More file actions
executable file
·62 lines (62 loc) · 1.5 KB
/
Copy pathedit_bon.php
File metadata and controls
executable file
·62 lines (62 loc) · 1.5 KB
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
<?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: edit_bon.php
* apel au formulaire d'edition du bon de commande
*
* * * * Version: 8.0.0
* * * * Modified: 07/06/2025
*
* File Authors:
* Guy Hendrickx
*.
*/
include_once(__DIR__ . "/include/headers.php");
?><script type="text/javascript" src="javascripts/confdel.js"></script><?php
include_once(__DIR__ . "/include/finhead.php");
?>
<table width="760" border="0" class="page" align="center">
<tr>
<td class="page" align="center">
<?php
if(!isset($num_bon)/* && $num_bon==''*/){
$num_bon=isset($_GET['num_bon'])?$_GET['num_bon']:"";
$nom=isset($_GET['nom'])?$_GET['nom']:"";
}
$sql = "SELECT fact FROM " . $tblpref .('bon_comm WHERE num_bon = ' . $num_bon);
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
while($data = mysql_fetch_array($req)){
$fact = $data['fact'];
}
if((isset($fact)) && $fact!='0'){#$fact=='ok'
$message = sprintf('<h1>%s</h1>', $lang_err_efa_bon);
include(__DIR__ . '/form_commande.php');
exit;
}
if (isset($message)&&$message!='') {
echo $message;
}
include (__DIR__ . "/form_editer_bon.php");
?>
</td>
</tr>
<tr>
<td>
<?php
$aide='bon';
include(__DIR__ . "/help.php");
include_once(__DIR__ . "/include/bas.php");
?>
</td>
</tr>
</table>
</body>
</html>