Bonjour
Je me permet de venir chercher votre aide car je patauge depuis un moment avec ce soucis.
Nous utilisons un portail de gestion de ticket.
Lorsque l'utilisateur ouvre un ticket, il doit y avoir plusieurs champs
1 champ categorie, 1 champ lieu, 1champ titre et 1 champ description.
En modifiant le champ lieu pour rajouter un menu déroulant, le champ titre est partie a coter du champ lieu, au lieu d'etre en dessous....
pouvez-vous m'aider ? je vous joint une copie d'écran du ticket en question, ainsi que le code php...
Merci d'avance,
code:
image :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <!-- START place part if parameter is on --> <?php if($rparameters['ticket_places']==1) { echo ' <div class="form-group"> <label class="col-sm-2 control-label no-padding-right" for="ticket_places">'.T_('Lieu').':</label> <div class="col-sm-8"> <select class="textfield" id="ticket_places" name="ticket_places" '; if($rright['ticket_place']==0 && $_GET['action']!='new') {echo 'disabled="disabled"';} echo' > '; if($_POST['ticket_places']) { $query = $db->query("SELECT * FROM `tplaces` ORDER BY name ASC"); while ($row = $query->fetch()) { if ($_POST['ticket_places']==$row['id']) echo '<option selected value="'.$row['id'].'">'.T_($row['name']).'</option>'; else echo '<option value="'.$row['id'].'">'.T_($row['name']).'</option>'; } $query->closeCursor(); } else { $query = $db->query("SELECT * FROM `tplaces` ORDER BY name ASC"); while ($row = $query->fetch()) { if ($globalrow['place']==$row['id']) echo '<option selected value="'.$row['id'].'">'.T_($row['name']).'</option>'; else echo '<option value="'.$row['id'].'">'.T_($row['name']).'</option>'; } $query->closeCursor(); } echo ' </select> '; if($rright['ticket_place']==0 && $_GET['action']!='new') echo '<input type="hidden" name="ticket_places" value="'.$globalrow['place'].'" />'; //send data in disabled case ?> <select> <?php for($i = 0;$i <= 300;$i++) echo '<option value="'.$i.'">'.$i.'</option> />'; echo ' </div> </div>'; } ?> <!-- END place part --> <!-- START title part --> <?php //display mandatory field if right is configured if ($rright['ticket_title_disp']!=0) { if ($rright['ticket_title_mandatory']!=0) { if($_POST['title']=='' && $globalrow['title']==''){$ticket_title_mandatory='has-error';} else {$ticket_title_mandatory='has-success';} }else{$ticket_title_mandatory='';} } else {$ticket_title_mandatory='';} ?> <div class="form-group <?php if($rright['ticket_title_disp']==0) {echo 'hide';} echo $ticket_title_mandatory; ?>"> <label class="col-sm-2 control-label no-padding-right" for="title"> <?php if($rright['ticket_title_mandatory']!=0 && $ticket_title_mandatory=='has-error') {echo '<i title="'.T_("La saisie du champ titre est obligatoire.").'" class="icon-warning-sign red bigger-130"></i> ';} echo T_('Titre'); ?>: </label> <div class="col-sm-8"> <input name="title" id="title" type="text" size="<?php if($mobile==0) {echo '50';} else {echo '30';}?>" value="<?php if ($_POST['title']!='' && $_POST['title']!='\'\'') echo $_POST['title']; else echo htmlspecialchars($globalrow['title']); ?>" <?php if($rright['ticket_title']==0 && $_GET['action']!='new') echo 'readonly="readonly"';?> /> </div> </div> <!-- END title part -->
Partager