mamboBROWN
Posts: 1713
|
| Posted: 02/07/2008, 5:28 PM |
|
Here is a portion of the code that I used:
// Get parameters from URL
$theyear = CCGetParam("DpYr","2001");
$themonth = CCGetParam("Mn","");
//determines if $themonth is empty and if it is not then sets the ReportLabel2 field to the specified month.
if (empty($themonth) )
{
$title = "For Year ".$theyear;
// Set ReportLabel2 header
$department_titheandofferi1->ReportLabel2->SetValue($title);
}
else
{
// determine month for report header
if($themonth==1)
{
$title = "For January ".$theyear;
}
elseif ($themonth==2)
{
$title = "For February ".$theyear;
}
elseif ($themonth==3)
{
$title = "For March ".$theyear;
}
elseif ($themonth==4)
{
$title = "For April ".$theyear;
}
elseif ($themonth==5)
{
$title = "For May ".$theyear;
}
elseif ($themonth==6)
{
$title = "For June ".$theyear;
}
elseif ($themonth==7)
{
$title = "For July ".$theyear;
}
elseif ($themonth==8)
{
$title = "For August ".$theyear;
}
elseif ($themonth==9)
{
$title = "For September ".$theyear;
}
elseif ($themonth==10)
{
$title = "For October ".$theyear;
}
elseif ($themonth==11)
{
$title = "For November ".$theyear;
}
elseif ($themonth==12)
{
$title = "For December ".$theyear;
}
// // Set ReportLabel2 header
$department_titheandofferi1->ReportLabel2->SetValue($title);
}
Hopefully this will help you.......
|