-
Notifications
You must be signed in to change notification settings - Fork 3
/
edit_choix_cli.php
executable file
·63 lines (63 loc) · 1.87 KB
/
edit_choix_cli.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
<?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
*.
*/
$rqSql = "
SELECT num_client, nom
FROM " . $tblpref ."client
WHERE (actif != 'non')
and (" . $tblpref ."client.permi NOT LIKE '$num_user,' )
and (" . $tblpref ."client.permi NOT LIKE '%,$num_user,' )
and (" . $tblpref ."client.permi NOT LIKE '%,$num_user,%' )
and (" . $tblpref ."client.permi NOT LIKE '$num_user,%')
ORDER BY nom";
$result = mysql_query( $rqSql ) or die( "Exécution requête impossible.");
$cl_sz=mysql_num_rows($result);
if($cl_sz>0){
?>
<div class="left50">
<form name="choisir_client" method="post" action="choisir_client.php" >
<table width='99%' border='0' class='page' align='left' class='boiteaction'>
<caption><?php echo "$lang_ajou_cli_util"; ?></caption>
<tr>
<td class="texte0" colspan="2"><?php echo $lang_clients;?></td>
<td class="texte0" colspan="2">
<select name='client[]' size="<?php echo $cl_sz;?>" multiple width="300" style="width:300px;">
<?php
while ( $row = mysql_fetch_array( $result)) {
$numclient = $row["num_client"];
$nom = $row["nom"];
?>
<option value='<?php echo $numclient; ?>'><?php echo $nom; ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td class="texte1" colspan="3"><?php echo $lang_multi_select_ctrl ?></td>
</tr>
<tr>
<td class="submit" colspan="3"><input type="submit" value= "<?php echo $lang_ajouter ?>"/></td>
</tr>
</table>
<input type="hidden" name="login" value="<?php echo $login ?>" />
</form>
</div>
<?php } ?>