-
Calendar Wallpaper
I just created a little piece of code to “kind of” create a calendar like that.
Grab PHP and a copy of www.fpdf.org and run this:
require(‘../fpdf.php’);
$pdf=new FPDF();
$pdf->AliasNbPages();
$pdf->AddPage();
//set margins
$pdf->SetAutoPageBreak(5,true);
$pdf->SetLeftMargin(4);
$pdf->SetRightMargin(4);
$year = 2008;
for ($i=1; $i
$month = date(“F”, mktime(0, 0, 0, $i, 1, $year));
$days = date(“t”, mktime(0, 0, 0, $i, 1, $year));
$pdf->SetFont(‘Times’,”,100);
$pdf->Cell(0,13,$month,0,1);
$pdf->ln(15);
for ($t=0; $t
$pdf->SetFont(‘Times’,”,12);
$lengthOfDay = $pdf->GetStringWidth(($t+1).” “);
$pdf->Cell($lengthOfDay,4,($t+1),0,0);
$pdf->SetFont(‘Times’,’I’,11);
$pdf->Cell(0,4,date(“D”,mktime(0, 0, 0, $i, $t+1, $year)),0,1);
$pdf->ln(4.25);
$pdf->line(5,$pdf->getY()-2,205,$pdf->getY()-2);
endfor;
if ($i
$pdf->AddPage();
endif;
endfor;
$pdf->Output();
?>
feel free to copy and change it.