[(#HTTP_HEADER{Content-type: text/xml[; charset=(#CHARSET)]})] ?xml version="1.0"[ encoding="(#CHARSET)"]?> '; $bas=''; $str_out=''; $m_t=3; $ar_months=array(); $ar_titles=array(); $ar_dates=array(); $ar_dates_year=array(); $ar_dates_month=array(); $ar_dates_day=array(); $ar_dates_hour=array(); $ar_dates_minute=array(); $ar_images=array(); $ar_images_width=array(); $ar_images_height=array(); $coords=array(); $startx=70; $startx2=0; ?> #SET{img_src,(#FICHIER|image_reduire{60,60}|extraire_attribut{src})} $im_src_tmp=''; $ar_images[]="[(#GET{img_src})]"; $im_src_tmp="[(#GET{img_src})]"; list($orig_width, $orig_height) = getimagesize($im_src_tmp); $ar_images_width[]=$orig_width; $ar_images_height[]=$orig_height; $ar_images[]=''; $ar_images_width[]=''; $ar_images_height[]=''; ?> '."\n"; } ?> '.$i.':00'; $y1=300-(10*$i); echo ''.$i.':00'; } /* MOIS 2008 */ $cnt=0; for($i=5;$i>0;$i--){ $k='2008'.$i; $coords[$k]=$startx+($cnt*60); $x1=$coords[$k]; $y1=290; $x2=$coords[$k]; $y2=300; echo ''."\n"; echo ''.$i.'/2008'; $cnt++; $startx2=$coords[$k]; } /* MOIS 2007 */ $cnt=1; for($i=12;$i>0;$i--){ $k='2007'.$i; $coords[$k]=$startx2+($cnt*60); $x1=$coords[$k]; $y1=290; $x2=$coords[$k]; $y2=300; echo ''."\n"; echo ''.$i.'/2007'; $startx3=$coords[$k]; $cnt++; } /* MOIS 2006 */ $cnt=1; for($i=12;$i>7;$i--){ $k='2006'.$i; $coords[$k]=$startx3+($cnt*60); $x1=$coords[$k]; $y1=290; $x2=$coords[$k]; $y2=300; echo ''."\n"; echo ''.$i.'/2006'; $cnt++; } if($debug){ echo ''."\n"; } for($i=0;$i\n"; $x1=$x_max-(2*$ar_dates_day[$i]); if($i%2){ $y1=290-(10*$ar_dates_hour[$i])-(round(($ar_dates_minute[$i])/6));}else{ $y1=300+(10*$ar_dates_hour[$i])+(round(($ar_dates_minute[$i])/6)); } $x2=$x1; $y2=300; $w1=120; $h1=60;/*120*/ $w2=2; $h2=2; $str_out.= ''."\n"; $str_out.= ''."\n"; /* $m_start_x=$x1+$w1+0.5; $m_start_y=$y1+($h1/2); */ $m_start_x=$x1+0.5; $m_start_y=$y1; $m_end_x=$x2-0.5; if($i%2){ $m_end_y=($y2-12)+($h2/2);}else{ $m_end_y=($y2+22)+($h2/2); } //$str_out.= 'M '.$m_start_x.','.$m_start_y.' L '.$m_end_x.','.$m_end_y; $str_out.= ''; /* Background */ $str_out.= ''; $str_out.= ''; /*End backround */ if($ar_images[$i]==''){ $im_out=false;}else{ $im_out=true; } if($im_out){ $str_out.= ""; } $str_out.= ''; $str_out.= ''; if($im_out){ $str_out.= ''; }else{ $str_out.= '';} $str_out.= ''; $str_out.= ''.$ar_titles[$i].''.$ar_dates[$i].''.$ar_content[$i].''."\n"; $str_out.= "\n"; if($i%2){ $str_out.= ''; }else{ $str_out.= ''; } $str_out.= ''."\n"; $str_out.= ''."\n"; if($i%2){ $haut.=$str_out; }else{ $bas.=$str_out; } } echo $haut.''; echo $bas.''; ?>