hello,

G un gros prob de formulaireet je ne trouve pas l'intrus

Voici le prob:
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<?php
$query="SELECT id,brandname FROM cms_shop_brand WHERE id=".$_POST['brandid'];
$db->query($query);
$db->next_record();
$brandname=$db->f(1);
$brandid=$db->f(0);
 
if (isset($_SESSION['artid'])){
	$query="SELECT * FROM cms_shop_model WHERE id=".$_SESSION['artid'];
	$db->query($query);
	$db->next_record();
}	
$y=2007;$yearlist='';$cy=$db->f('year');
if (!$cy) $cy=$y;
while ($y>1961){
	if ($y==$cy) $sel='selected'; else $sel='';
	$yearlist.="<option value=\"$y\" $sel>$y</option>";
	$y--;	
}
?>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../../default.css" rel="stylesheet" type="text/css">
<link href="<? echo TH_FOLDER.THEME?>/default.css" rel="stylesheet" type="text/css" media="screen"/>
<script language="JavaScript" type="text/JavaScript">
function dochange(what){
document.all.item('changed').value=1;
document.forms('form1').submit()
}
function doadd(){
document.all.item('changed').value='';
document.forms('form1').submit()
}
 
</script>
</head><body>
 
<form action="" method="post" enctype="multipart/form-data" name="form1" target="_self">
  <br>
  <table width="450" border="4" align="center" cellpadding="4" cellspacing="0"  class="frmdlg">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0"  class="dlgcontent">
          <tr> 
            <td colspan="2" class="formcaption"><? if ($_POST['add_item']) echo 'Nouveau modèle'; else echo 'Modification de modèle'?></td>
          </tr>
          <tr> 
            <td colspan="2" align="center">
              <? if (($error)||($warning)||($success))  { echo error($error);echo warning($warning);echo success($success); }else {?>
              <img src="<? echo TH_FOLDER.THEME?>/spacer.gif" width="10" height="10"> 
              <? } ?>
            </td>
          </tr>
		<tr>
		    <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                <tr> 
                  <td>Nom&nbsp;de&nbsp;manufacturier:&nbsp;</td>
                  <td><select name="brandid" id="brandid">
                      <? echo $brandlist?></select> </td>
                </tr>
                <tr> 
                  <td>Nom&nbsp;de&nbsp;mod&egrave;le:&nbsp;</td>
                  <td><input name="descr" type="text" id="descr" size="22" maxlength="50" value="<? echo $db->f('descr'); ?>"></td>
                </tr>
                <tr>
                  <td>Année</td>
                  <td><select name="year" id="year">
				  <? echo $yearlist?>
                    </select></td>
                </tr>
				<tr>
                  <td>Entre-axe</td>
                  <td>
				   <select name="trax" id="trax">
                            <option value="4x100" <? if ($db->f('trax')=='4x100') echo 'selected'?>>4x100&quot;&nbsp;&nbsp;</option>
                            <option value="4x108" <? if ($db->f('trax')=='4x108') echo 'selected'?>>4x108&quot;&nbsp;&nbsp;</option>
                            <option value="4x110" <? if ($db->f('trax')=='4x110') echo 'selected'?>>4x110&quot;&nbsp;&nbsp;</option>
                            <option value="4x114.3" <? if ($db->f('trax')=='4x114.3') echo 'selected'?>>4x114.3&quot;&nbsp;&nbsp;</option>
                            <option value="5x100" <? if ($db->f('trax')=='5x100') echo 'selected'?>>5x100&quot;&nbsp;&nbsp;</option>
                            <option value="5x108" <? if ($db->f('trax')=='5x108') echo 'selected'?>>5x108&quot;&nbsp;&nbsp;</option>
							<option value="5x110" <? if ($db->f('trax')=='5x110') echo 'selected'?>>5x110&quot;&nbsp;&nbsp;</option>
							<option value="5x112" <? if ($db->f('trax')=='5x112') echo 'selected'?>>5x112&quot;&nbsp;&nbsp;</option>
							<option value="5x114.3" <? if ($db->f('trax')=='5x114.3') echo 'selected'?>>5x114.3&quot;&nbsp;&nbsp;</option>
							<option value="5x115" <? if ($db->f('trax')=='5x115') echo 'selected'?>>5x115&quot;&nbsp;&nbsp;</option>
							<option value="5x120" <? if ($db->f('trax')=='5x120') echo 'selected'?>>5x120&quot;&nbsp;&nbsp;</option>
							<option value="5x127" <? if ($db->f('trax')=='5x127') echo 'selected'?>>5x127&quot;&nbsp;&nbsp;</option>
							<option value="5x130" <? if ($db->f('trax')=='5x130') echo 'selected'?>>5x130&quot;&nbsp;&nbsp;</option>
							<option value="5x135" <? if ($db->f('trax')=='5x135') echo 'selected'?>>5x135&quot;&nbsp;&nbsp;</option>
							<option value="5x139.7" <? if ($db->f('trax')=='5x139.7') echo 'selected'?>>5x139.7&quot;&nbsp;&nbsp;</option>
							<option value="5x150" <? if ($db->f('trax')=='5x150') echo 'selected'?>>5x150&quot;&nbsp;&nbsp;</option>
							<option value="6x114.3" <? if ($db->f('trax')=='6x114.3') echo 'selected'?>>6x114.3&quot;&nbsp;&nbsp;</option>
							<option value="6x115" <? if ($db->f('trax')=='6x115') echo 'selected'?>>6x115&quot;&nbsp;&nbsp;</option>
							<option value="6x127" <? if ($db->f('trax')=='6x127') echo 'selected'?>>6x127&quot;&nbsp;&nbsp;</option>
							<option value="6x135" <? if ($db->f('trax')=='6x135') echo 'selected'?>>6x135&quot;&nbsp;&nbsp;</option>
							<option value="6x139.7" <? if ($db->f('trax')=='6x139.7') echo 'selected'?>>6x139.7&quot;&nbsp;&nbsp;</option>
							<option value="7x150" <? if ($db->f('trax')=='7x150') echo 'selected'?>>7x150&quot;&nbsp;&nbsp;</option>
							<option value="8x165" <? if ($db->f('trax')=='8x165') echo 'selected'?>>8x165&quot;&nbsp;&nbsp;</option>
							<option value="8x165.1" <? if ($db->f('trax')=='8x165.1') echo 'selected'?>>8x165.1&quot;&nbsp;&nbsp;</option>
							<option value="8x170" <? if ($db->f('trax')=='8x170') echo 'selected'?>>8x170&quot;&nbsp;&nbsp;</option>
                          </select> </td>
                </tr>
                <tr> 
                  <td colspan="2"><hr></td>
                </tr>
                <tr> 
                  <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                      <tr> 
                        <td align="center">Centre pneu avant</td>
                      </tr>
                      <tr> 
                        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                            <tr> 
                              <td>X:</td>
                              <td><input name="x1" type="text" id="x1" value="<? echo $db->f('x1')?>"></td>
                              <td>Y:</td>
                              <td><input name="y1" type="text" id="y1" value="<? echo $db->f('y1')?>"></td>
                              <td>&nbsp;</td>
                            </tr>
                          </table></td>
                      </tr>
                      <tr> 
                        <td align="center">Centre pneu arrière</td>
                      </tr>
                      <tr> 
                        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                            <tr> 
                              <td>X:</td>
                              <td><input name="x2" type="text" id="x2" value="<? echo $db->f('x2')?>"></td>
                              <td>Y:</td>
                              <td><input name="y2" type="text" id="y2" value="<? echo $db->f('y2')?>"></td>
                              <td>&nbsp;</td>
                            </tr>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                      <tr> 
                        <td colspan="2" align="center"><u><font color="#FFFFFF">Image 
                          modèle blanc</font></u></td>
                      </tr>
                      <tr> 
                        <td> <? if (isset($_SESSION['artid'])) { ?>
                          <img src="../../images/modeles/th_<? echo strtolower($db->f('pic_white'));?>" border="1"> 
                          <? } ?></td>
                        <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                            <tr> 
                              <td>Attacher/remplacer fichier image</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                            <tr> 
                              <td><input name="picwhite" type="file" id="picwhite" size="30"></td>
                              <td>&nbsp;</td>
                              <td><input name="do_delwhite" type="submit" size="30"class="flatbtn" id="do_delwhite" value="Effacer" ></td>
                            </tr>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                      <tr> 
                        <td colspan="2" align="center"><u><font color="#000000">Image 
                          modèle noir</font></u></td>
                      </tr>
                      <tr> 
                        <td> <? if (isset($_SESSION['artid'])) { ?>
                          <img src="../../images/modeles/th_<? echo strtolower($db->f('pic_black'));?>" border="1"> 
                          <? } ?></td>
                        <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                            <tr> 
                              <td>Attacher/remplacer fichier image</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                            <tr> 
                              <td><input name="picblack" type="file" id="picblack" size="30"></td>
                              <td>&nbsp;</td>
                              <td><input name="do_delblack" type="submit" size="30"class="flatbtn" id="do_delblack" value="Effacer" ></td>
                            </tr>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                      <tr> 
                        <td colspan="2" align="center"><u><font color="#666666">Image 
                          modèle gris</font></u></td>
                      </tr>
                      <tr> 
                        <td> <? if (isset($_SESSION['artid'])) { ?>
                          <img src="../../images/modeles/th_<? echo strtolower($db->f('pic_grey'));?>" border="1"> 
                          <? } ?></td>
                        <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                            <tr> 
                              <td>Attacher/remplacer fichier image</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                            <tr> 
                              <td><input name="picgrey" type="file" id="picgrey" size="30"></td>
                              <td>&nbsp;</td>
                              <td><input name="do_delgrey" type="submit" size="30"class="flatbtn" id="do_delgrey" value="Effacer" ></td>
                            </tr>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                      <tr> 
                        <td colspan="2" align="center"><u><font color="#FF0000">Image 
                          modèle rouge</font></u></td>
                      </tr>
                      <tr> 
                        <td> <? if (isset($_SESSION['artid'])) { ?>
                          <img src="../../images/modeles/th_<? echo strtolower($db->f('pic_red'));?>" border="1"> 
                          <? } ?></td>
                        <td valign="top"> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="dlgcontent">
                            <tr> 
                              <td>Attacher/remplacer fichier image</td>
                              <td>&nbsp;</td>
                              <td>&nbsp;</td>
                            </tr>
                            <tr> 
                              <td><input name="picred" type="file" id="picred" size="30"></td>
                              <td>&nbsp;</td>
                              <td><input name="do_delred" type="submit" size="30"class="flatbtn" id="do_delred" value="Effacer" ></td>
                            </tr>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td colspan="2">&nbsp;</td>
                </tr>
                <tr> 
                  <td colspan="2"><? echo $detailtable;?></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td colspan="2"><div align="center"><img src="<? echo TH_FOLDER.THEME?>/spacer.gif" height="10"></div></td>
          </tr>
          <tr> 
            <td colspan="2"><div align="center">
                 <? if (($_POST['cd_item']) || ($_POST['changed'])) {?>
                <table border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr> 
                    <!-- add buttons -->
                    <td> 
                      <table class="btnholder">
                        <tr> 
                          <td>
						  <input name="do_update" type="submit" class="flatbtn" id="do_update" value="  Modifier  "></td>
                        </tr>
                      </table></td>
                    <td>&nbsp;</td>
                    <td><table class="btnholder">
                        <tr> 
                          <td><input name="do_cancel" type="submit" class="flatbtn" id="do_cancel" value="Annuler" ></td>
                        </tr>
                      </table></td>
                  </tr>
                  <!-- end add buttons -->
                </table>
				 <? } else {?>
<table border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr> 
                    <!-- add buttons -->
                    <td><table class="btnholder">
                        <tr> 
                          <td><input name="do_add" type="submit" class="flatbtn" id="do_add" value="  Accepter  " onClick="doadd()"></td>
                        </tr>
                      </table></td>
                    <td>&nbsp;</td>
                    <td><table class="btnholder">
                        <tr> 
                          <td><input name="do_cancel" type="submit" class="flatbtn" id="do_cancel" value="Annuler" ></td>
                        </tr>
                      </table></td>
                  </tr>
                  <!-- end add buttons -->
                </table>				 
				 <? }?>
              </div></td>
          </tr>
          <tr> 
            <td colspan="2"><div align="center"><img src="<? echo PICS?>/spacer.gif" height="10"> 
              </div></td>
          </tr>
        </table></td>
  </tr>
</table> 
  <input name="art_id" type="hidden" id="art_id" value="<? echo $db->f('id'); ?>">
  <input name="brand_id" type="hidden" id="brand_id" value="<? echo $brandid; ?>">
  <input name="changed" type="hidden" id="changed" value="0">
</form>
 
 
</body>
</html>
Merci d'avance