Précédent   Forum du club des développeurs et IT Pro > PHP > Scripts > Calendrier
Calendrier Forum d'entraide sur les scripts PHP de calendriers, agenda, etc. Avant de poster -> Calendriers en PHP
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 21/11/2011, 16h32   #1
frazou1
Invité de passage
 
Homme
Inscription : août 2011
Messages : 15
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : Canada

Informations forums :
Inscription : août 2011
Messages : 15
Points : 0
Points : 0
Par défaut Planificateur de semaines

Bonjour à tous,
j'essaie de me faire un planificateur selon une semaine de début et une semaine de fin qui sont inscrits dans chaque enregistrement de ma bd.

Pour l'instant, ça me mets en couleur seulement la date du début et la date de fin et parfois il me réplique la même date de l'enregistrement précédant, dans la deuxième enregistrement ...

Je désire faire voir afficher en couleur la période selon les semaines de début et fin pour chaque enregistrement. Je vous attache ce que ça me donne actuellement et voici mon code :

Code :
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
<table width="1000" align="center">
<?php
brancher();
 
$query8="SELECT * FROM bdprojetpilote WHERE etat='Confirmé' ORDER BY nommandat ASC";
$result8=mssql_query($query8);
$dimension8=mssql_num_rows($result8);
 //Si Action = rien, il affiche toute
 
for ($i8=0;$i8<$dimension8;$i8++) 
{
$tableau8=mssql_fetch_array($result8); 
// Mes les variables dans un Tableau
?>
<?php
 
 
 
if ($tableau8[17]=='1') { $type1='#FF0000'; }
if ($tableau8[17]=='2') { $type2='#FF0000'; }
if ($tableau8[17]=='3') { $type3='#FF0000'; }
if ($tableau8[17]=='4') { $type4='#FF0000'; }
if ($tableau8[17]=='5') { $type5='#FF0000'; }
if ($tableau8[17]=='6') { $type6='#FF0000'; }
if ($tableau8[17]=='7') { $type7='#FF0000'; }
if ($tableau8[17]=='8') { $type8='#FF0000'; }
if ($tableau8[17]=='9') { $type9='#FF0000'; }
if ($tableau8[17]=='10') { $type10='#FF0000'; }
if ($tableau8[17]=='11') { $type11='#FF0000'; }
if ($tableau8[17]=='12') { $type12='#FF0000'; }
if ($tableau8[17]=='13') { $type13='#FF0000'; }
if ($tableau8[17]=='14') { $type14='#FF0000'; }
if ($tableau8[17]=='15') { $type15='#FF0000'; }
if ($tableau8[17]=='16') { $type16='#FF0000'; }
if ($tableau8[17]=='17') { $type17='#FF0000'; }
if ($tableau8[17]=='18') { $type18='#FF0000'; }
if ($tableau8[17]=='19') { $type19='#FF0000'; }
if ($tableau8[17]=='20') { $type20='#FF0000'; }
if ($tableau8[17]=='21') { $type21='#FF0000'; }
if ($tableau8[17]=='22') { $type22='#FF0000'; }
if ($tableau8[17]=='23') { $type23='#FF0000'; }
if ($tableau8[17]=='24') { $type24='#FF0000'; }
if ($tableau8[17]=='25') { $type25='#FF0000'; }
if ($tableau8[17]=='26') { $type26='#FF0000'; }
if ($tableau8[17]=='27') { $type27='#FF0000'; }
if ($tableau8[17]=='28') { $type28='#FF0000'; }
if ($tableau8[17]=='29') { $type29='#FF0000'; }
if ($tableau8[17]=='30') { $type30='#FF0000'; }
if ($tableau8[17]=='31') { $type31='#FF0000'; }
if ($tableau8[17]=='32') { $type32='#FF0000'; }
if ($tableau8[17]=='33') { $type33='#FF0000'; }
if ($tableau8[17]=='34') { $type34='#FF0000'; }
if ($tableau8[17]=='35') { $type35='#FF0000'; }
if ($tableau8[17]=='36') { $type36='#FF0000'; }
if ($tableau8[17]=='37') { $type37='#FF0000'; }
if ($tableau8[17]=='38') { $type38='#FF0000'; }
if ($tableau8[17]=='39') { $type39='#FF0000'; }
if ($tableau8[17]=='40') { $type40='#FF0000'; }
if ($tableau8[17]=='41') { $type41='#FF0000'; }
if ($tableau8[17]=='42') { $type42='#FF0000'; }
if ($tableau8[17]=='43') { $type43='#FF0000'; }
if ($tableau8[17]=='44') { $type44='#FF0000'; }
if ($tableau8[17]=='45') { $type45='#FF0000'; }
if ($tableau8[17]=='46') { $type46='#FF0000'; }
if ($tableau8[17]=='47') { $type47='#FF0000'; }
if ($tableau8[17]=='48') { $type48='#FF0000'; }
if ($tableau8[17]=='49') { $type49='#FF0000'; }
if ($tableau8[17]=='50') { $type50='#FF0000'; }
if ($tableau8[17]=='51') { $type51='#FF0000'; }
if ($tableau8[17]=='52') { $type52='#FF0000'; }
 
//Date Scan debut
if	($tableau8[18]=='1')	{ $type1='#FF0000';	}
if	($tableau8[18]=='2')	{ $type2='#FF0000';	}
if	($tableau8[18]=='3')	{ $type3='#FF0000';	}
if	($tableau8[18]=='4')	{ $type4='#FF0000';	}
if	($tableau8[18]=='5')	{ $type5='#FF0000';	}
if	($tableau8[18]=='6')	{ $type6='#FF0000';	}
if	($tableau8[18]=='7')	{ $type7='#FF0000';	}
if	($tableau8[18]=='8')	{ $type8='#FF0000';	}
if	($tableau8[18]=='9')	{ $type9='#FF0000';	}
if	($tableau8[18]=='10')	{ $type10='#FF0000'; }
if	($tableau8[18]=='11')	{ $type11='#FF0000'; }
if	($tableau8[18]=='12')	{ $type12='#FF0000'; }
if	($tableau8[18]=='13')	{ $type13='#FF0000'; }
if	($tableau8[18]=='14')	{ $type14='#FF0000'; }
if	($tableau8[18]=='15')	{ $type15='#FF0000'; }
if	($tableau8[18]=='16')	{ $type16='#FF0000'; }
if	($tableau8[18]=='17')	{ $type17='#FF0000'; }
if	($tableau8[18]=='18')	{ $type18='#FF0000'; }
if	($tableau8[18]=='19')	{ $type19='#FF0000'; }
if	($tableau8[18]=='20')	{ $type20='#FF0000'; }
if	($tableau8[18]=='21')	{ $type21='#FF0000'; }
if	($tableau8[18]=='22')	{ $type22='#FF0000'; }
if	($tableau8[18]=='23')	{ $type23='#FF0000'; }
if	($tableau8[18]=='24')	{ $type24='#FF0000'; }
if	($tableau8[18]=='25')	{ $type25='#FF0000'; }
if	($tableau8[18]=='26')	{ $type26='#FF0000'; }
if	($tableau8[18]=='27')	{ $type27='#FF0000'; }
if	($tableau8[18]=='28')	{ $type28='#FF0000'; }
if	($tableau8[18]=='29')	{ $type29='#FF0000'; }
if	($tableau8[18]=='30')	{ $type30='#FF0000'; }
if	($tableau8[18]=='31')	{ $type31='#FF0000'; }
if	($tableau8[18]=='32')	{ $type32='#FF0000'; }
if	($tableau8[18]=='33')	{ $type33='#FF0000'; }
if	($tableau8[18]=='34')	{ $type34='#FF0000'; }
if	($tableau8[18]=='35')	{ $type35='#FF0000'; }
if	($tableau8[18]=='36')	{ $type36='#FF0000'; }
if	($tableau8[18]=='37')	{ $type37='#FF0000'; }
if	($tableau8[18]=='38')	{ $type38='#FF0000'; }
if	($tableau8[18]=='39')	{ $type39='#FF0000'; }
if	($tableau8[18]=='40')	{ $type40='#FF0000'; }
if	($tableau8[18]=='41')	{ $type41='#FF0000'; }
if	($tableau8[18]=='42')	{ $type42='#FF0000'; }
if	($tableau8[18]=='43')	{ $type43='#FF0000'; }
if	($tableau8[18]=='44')	{ $type44='#FF0000'; }
if	($tableau8[18]=='45')	{ $type45='#FF0000'; }
if	($tableau8[18]=='46')	{ $type46='#FF0000'; }
if	($tableau8[18]=='47')	{ $type47='#FF0000'; }
if	($tableau8[18]=='48')	{ $type48='#FF0000'; }
if	($tableau8[18]=='49')	{ $type49='#FF0000'; }
if	($tableau8[18]=='50')	{ $type50='#FF0000'; }
if	($tableau8[18]=='51')	{ $type51='#FF0000'; }
if	($tableau8[18]=='52')	{ $type52='#FF0000'; }
//Date Écran Fin
if	($tableau8[19]=='1')	{	$type1='#0000FF';	}
if	($tableau8[19]=='2')	{	$type2='#0000FF';	}
if	($tableau8[19]=='3')	{	$type3='#0000FF';	}
if	($tableau8[19]=='4')	{	$type4='#0000FF';	}
if	($tableau8[19]=='5')	{	$type5='#0000FF';	}
if	($tableau8[19]=='6')	{	$type6='#0000FF';	}
if	($tableau8[19]=='7')	{	$type7='#0000FF';	}
if	($tableau8[19]=='8')	{	$type8='#0000FF';	}
if	($tableau8[19]=='9')	{	$type9='#0000FF';	}
if	($tableau8[19]=='10')	{	$type10='#0000FF';	}
if	($tableau8[19]=='11')	{	$type11='#0000FF';	}
if	($tableau8[19]=='12')	{	$type12='#0000FF';	}
if	($tableau8[19]=='13')	{	$type13='#0000FF';	}
if	($tableau8[19]=='14')	{	$type14='#0000FF';	}
if	($tableau8[19]=='15')	{	$type15='#0000FF';	}
if	($tableau8[19]=='16')	{	$type16='#0000FF';	}
if	($tableau8[19]=='17')	{	$type17='#0000FF';	}
if	($tableau8[19]=='18')	{	$type18='#0000FF';	}
if	($tableau8[19]=='19')	{	$type19='#0000FF';	}
if	($tableau8[19]=='20')	{	$type20='#0000FF';	}
if	($tableau8[19]=='21')	{	$type21='#0000FF';	}
if	($tableau8[19]=='22')	{	$type22='#0000FF';	}
if	($tableau8[19]=='23')	{	$type23='#0000FF';	}
if	($tableau8[19]=='24')	{	$type24='#0000FF';	}
if	($tableau8[19]=='25')	{	$type25='#0000FF';	}
if	($tableau8[19]=='26')	{	$type26='#0000FF';	}
if	($tableau8[19]=='27')	{	$type27='#0000FF';	}
if	($tableau8[19]=='28')	{	$type28='#0000FF';	}
if	($tableau8[19]=='29')	{	$type29='#0000FF';	}
if	($tableau8[19]=='30')	{	$type30='#0000FF';	}
if	($tableau8[19]=='31')	{	$type31='#0000FF';	}
if	($tableau8[19]=='32')	{	$type32='#0000FF';	}
if	($tableau8[19]=='33')	{	$type33='#0000FF';	}
if	($tableau8[19]=='34')	{	$type34='#0000FF';	}
if	($tableau8[19]=='35')	{	$type35='#0000FF';	}
if	($tableau8[19]=='36')	{	$type36='#0000FF';	}
if	($tableau8[19]=='37')	{	$type37='#0000FF';	}
if	($tableau8[19]=='38')	{	$type38='#0000FF';	}
if	($tableau8[19]=='39')	{	$type39='#0000FF';	}
if	($tableau8[19]=='40')	{	$type40='#0000FF';	}
if	($tableau8[19]=='41')	{	$type41='#0000FF';	}
if	($tableau8[19]=='42')	{	$type42='#0000FF';	}
if	($tableau8[19]=='43')	{	$type43='#0000FF';	}
if	($tableau8[19]=='44')	{	$type44='#0000FF';	}
if	($tableau8[19]=='45')	{	$type45='#0000FF';	}
if	($tableau8[19]=='46')	{	$type46='#0000FF';	}
if	($tableau8[19]=='47')	{	$type47='#0000FF';	}
if	($tableau8[19]=='48')	{	$type48='#0000FF';	}
if	($tableau8[19]=='49')	{	$type49='#0000FF';	}
if	($tableau8[19]=='50')	{	$type50='#0000FF';	}
if	($tableau8[19]=='51')	{	$type51='#0000FF';	}
if	($tableau8[19]=='52')	{	$type52='#0000FF';	}
// Date fin scanneur
if ($tableau8[20]=='1') { $type1='#0000FF'; }
if ($tableau8[20]=='2') { $type2='#0000FF'; }
if ($tableau8[20]=='3') { $type3='#0000FF'; }
if ($tableau8[20]=='4') { $type4='#0000FF'; }
if ($tableau8[20]=='5') { $type5='#0000FF'; }
if ($tableau8[20]=='6') { $type6='#0000FF'; }
if ($tableau8[20]=='7') { $type7='#0000FF'; }
if ($tableau8[20]=='8') { $type8='#0000FF'; }
if ($tableau8[20]=='9') { $type9='#0000FF'; }
if ($tableau8[20]=='10') { $type10='#0000FF'; }
if ($tableau8[20]=='11') { $type11='#0000FF'; }
if ($tableau8[20]=='12') { $type12='#0000FF'; }
if ($tableau8[20]=='13') { $type13='#0000FF'; }
if ($tableau8[20]=='14') { $type14='#0000FF'; }
if ($tableau8[20]=='15') { $type15='#0000FF'; }
if ($tableau8[20]=='16') { $type16='#0000FF'; }
if ($tableau8[20]=='17') { $type17='#0000FF'; }
if ($tableau8[20]=='18') { $type18='#0000FF'; }
if ($tableau8[20]=='19') { $type19='#0000FF'; }
if ($tableau8[20]=='20') { $type20='#0000FF'; }
if ($tableau8[20]=='21') { $type21='#0000FF'; }
if ($tableau8[20]=='22') { $type22='#0000FF'; }
if ($tableau8[20]=='23') { $type23='#0000FF'; }
if ($tableau8[20]=='24') { $type24='#0000FF'; }
if ($tableau8[20]=='25') { $type25='#0000FF'; }
if ($tableau8[20]=='26') { $type26='#0000FF'; }
if ($tableau8[20]=='27') { $type27='#0000FF'; }
if ($tableau8[20]=='28') { $type28='#0000FF'; }
if ($tableau8[20]=='29') { $type29='#0000FF'; }
if ($tableau8[20]=='30') { $type30='#0000FF'; }
if ($tableau8[20]=='31') { $type31='#0000FF'; }
if ($tableau8[20]=='32') { $type32='#0000FF'; }
if ($tableau8[20]=='33') { $type33='#0000FF'; }
if ($tableau8[20]=='34') { $type34='#0000FF'; }
if ($tableau8[20]=='35') { $type35='#0000FF'; }
if ($tableau8[20]=='36') { $type36='#0000FF'; }
if ($tableau8[20]=='37') { $type37='#0000FF'; }
if ($tableau8[20]=='38') { $type38='#0000FF'; }
if ($tableau8[20]=='39') { $type39='#0000FF'; }
if ($tableau8[20]=='40') { $type40='#0000FF'; }
if ($tableau8[20]=='41') { $type41='#0000FF'; }
if ($tableau8[20]=='42') { $type42='#0000FF'; }
if ($tableau8[20]=='43') { $type43='#0000FF'; }
if ($tableau8[20]=='44') { $type44='#0000FF'; }
if ($tableau8[20]=='45') { $type45='#0000FF'; }
if ($tableau8[20]=='46') { $type46='#0000FF'; }
if ($tableau8[20]=='47') { $type47='#0000FF'; }
if ($tableau8[20]=='48') { $type48='#0000FF'; }
if ($tableau8[20]=='49') { $type49='#0000FF'; }
if ($tableau8[20]=='50') { $type50='#0000FF'; }
if ($tableau8[20]=='51') { $type51='#0000FF'; }
if ($tableau8[20]=='52') { $type52='#0000FF'; }
 
?>
<tr bgcolor="#F5F5F5">
<td width="76" align="center" class="Style41"><?php echo $tableau8[10];?><?php echo $tableau8[11];?></td>
<td width="79" align="center" class="Style14"><?php echo $tableau8[3];?><?php echo $tableau8[4];?></td>
<td width="12" align="center" bgcolor="<?php echo $type1;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type2;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type3;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type4;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type5;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type6;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type7;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type8;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type9;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type10;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type11;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type12;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type13;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type14;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type15;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type16;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type17;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type18;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type19;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type20;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type21;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type22;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type23;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type24;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type25;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type26;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type27;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type28;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type29;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type30;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type31;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type32;?>" class="Style14"></td>
<td width="13" align="center" bgcolor="<?php echo $type33;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type34;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type35;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type36;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type37;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type38;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type39;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type40;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type41;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type42;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type43;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type44;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type45;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type46;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type47;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type48;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type49;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type50;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type51;?>" class="Style14"></td>
<td width="12" align="center" bgcolor="<?php echo $type52;?>" class="Style14"></td>
</tr>
 
<?php
}
?>
</table>
Images attachées
Type de fichier : jpg Sans titre.jpg (21,7 Ko, 9 affichages)
frazou1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 06h22.


 
 
 
 
Partenaires

Hébergement Web