include("graphs.inc");
include("clsSimpleImage.inc");
$arrPictures = array( // Free Graph image names that Sandy assigns.
1=>"fgjan.jpg"
,2=>"fgfeb.jpg"
,3=>"fgmar.jpg"
,4=>"fgapr.jpg"
,5=>"fgmay.jpg"
,6=>"fgjun.jpg"
,7=>"fgjul.jpg"
,8=>"fgaug.jpg"
,9=>"fgsep.jpg"
,10=>"fgoct.jpg"
,11=>"fgnov.jpg"
,12=>"fgdec.jpg"
);
$today = getdate();
$cur_month = $today['mon'];
$len = strlen($imageA);
$pos = strpos($imageA, ".");
$img_yr = substr($imageA, -($len-$pos)-2, 2);
$yrnow = $today['year'];
$yrago = $today['year'] - 1;
$yrnow2 = substr($yrnow, -2, 2);
$yrago2 = substr($yrago, -2, 2);
if(($cur_month > 1) && ($img_yr == $yrnow2)){ $janyr2 = $yrnow2; $janyr4 = $yrnow; }else{ $janyr2 = $yrago2; $janyr4 = $yrago; }
if(($cur_month > 2) && ($img_yr == $yrnow2)){ $febyr2 = $yrnow2; $febyr4 = $yrnow; }else{ $febyr2 = $yrago2; $febyr4 = $yrago; }
if(($cur_month > 3) && ($img_yr == $yrnow2)){ $maryr2 = $yrnow2; $maryr4 = $yrnow; }else{ $maryr2 = $yrago2; $maryr4 = $yrago; }
if(($cur_month > 4) && ($img_yr == $yrnow2)){ $apryr2 = $yrnow2; $apryr4 = $yrnow; }else{ $apryr2 = $yrago2; $apryr4 = $yrago; }
if(($cur_month > 5) && ($img_yr == $yrnow2)){ $mayyr2 = $yrnow2; $mayyr4 = $yrnow; }else{ $mayyr2 = $yrago2; $mayyr4 = $yrago; }
if(($cur_month > 6) && ($img_yr == $yrnow2)){ $junyr2 = $yrnow2; $junyr4 = $yrnow; }else{ $junyr2 = $yrago2; $junyr4 = $yrago; }
if(($cur_month > 7) && ($img_yr == $yrnow2)){ $julyr2 = $yrnow2; $julyr4 = $yrnow; }else{ $julyr2 = $yrago2; $julyr4 = $yrago; }
if(($cur_month > 8) && ($img_yr == $yrnow2)){ $augyr2 = $yrnow2; $augyr4 = $yrnow; }else{ $augyr2 = $yrago2; $augyr4 = $yrago; }
if(($cur_month > 9) && ($img_yr == $yrnow2)){ $sepyr2 = $yrnow2; $sepyr4 = $yrnow; }else{ $sepyr2 = $yrago2; $sepyr4 = $yrago; }
if(($cur_month > 10) && ($img_yr == $yrnow2)){ $octyr2 = $yrnow2; $octyr4 = $yrnow; }else{ $octyr2 = $yrago2; $octyr4 = $yrago; }
if(($cur_month > 11) && ($img_yr == $yrnow2)){ $novyr2 = $yrnow2; $novyr4 = $yrnow; }else{ $novyr2 = $yrago2; $novyr4 = $yrago; }
if(($cur_month > 12) && ($img_yr == $yrnow2)){ $decyr2 = $yrnow2; $decyr4 = $yrnow; }else{ $decyr2 = $yrago2; $decyr4 = $yrago; }
//print("cur_month=$cur_month, img_yr=$img_yr, yrnow=$yrnow, yrago=$yrago, yrnow2=$yrnow2, yrago2=$yrago2");
// Loop thru graphics array. Locate, possibly resize, rename and save images in the 'resize' folder, for output.
for(reset($arrPictures); $picname=current($arrPictures); next($arrPictures)){
// Build a standardized graphic name, depending current month and year.
if(($cur_month > 1) && ($img_yr == $yrnow2)){
$graphic = substr($picname, 0, -4).$yrnow2.substr($picname, -4, 4);
}else{
$graphic = substr($picname, 0, -4).$yrago2.substr($picname, -4, 4);
}
if(file_exists("resize/$graphic")){
// Free Graph already sized and in 'resize' folder, for output.
}elseif(file_exists("images/$graphic")){
// Free Graphs named and uploaded by Meridian, and moved into the 'images' folder by Meridian.
// Resize graphic and put in the 'resize' folder, for output.
$image = new SimpleImage();
$image->load("images/$graphic");
$image->ResizeToMaxWidthHeight(115,135);
$image->save("resize/$graphic");
}elseif(file_exists("/images/$picname")){
// Free Graphs named and uploaded by Sandy.
// Resize & rename graphic and put in 'resize' folder, for output.
$image = new SimpleImage();
$image->load("/images/$picname");
$image->ResizeToMaxWidthHeight(115,135);
$image->save("resize/$graphic");
}
} // for
?>
Free Graph
Please Save this page for future reference.
To receive this free graph click here
|
Free Graph Archives (Click on image to download)
January |
February |
March |
April |
May |
June |
July |
August |
September |
October |
November |
December |
|
**Please note, in order to get a printout of this graph, you MUST have Acrobat Reader 4.0 or greater!! If you don't have it you may download it for free at Adobe's Website. All you have to do is follow the simple instructions and you will be on your way.
Thank you for your interest in Wichelt Imports needlework products!