This topic is locked

Monthly Calendar Printing

8/27/2009 7:34:54 PM
PHPRunner General questions
J
jalongi author

We are using the calendar and some of the days contain more info than can fit in the box. Is there a way when the monthly calendar prints that the additional info can also print? Some calendars, such as the Palm Treo, print the additional info for those days on a second page.
Also, when we print all pages, the same month will print 12 times, so we have to go to each month and then print it.
Thanks,
Joe

J
Jane 8/28/2009

Joe,
you can print all events editing Print page: Before display event.

Find and remove this code:

if($x>5)

{

$strT="<table width=100% ><tr><td width=100% height=10 align=right style=\"font-weight:normal;font-size:9px\">";

$strT.="<a href=\"caldaily_list.php?yr=" . $yr . "&mon=" . $mon . "&days=" . $i . "\">More...</a>&nbsp;";

$strT.="(Totals:" .$_SESSION["count" . $days . "-" . $mon . "-" . $yr] . ")&nbsp;</td></tr></table>";

$xt->assign("row00".($i+$wd)."Dayvalue",$xt->xt_getvar("row00" . ($i+$wd) . "Dayvalue") . $strT);

if($_REQUEST["a"]=="refresh" && $i==$days)

$y=$y.$strT;

}


Then find this code:

if($x<=5)

{

$xt->assign("row00".($i+$wd)."Dayvalue",$xt->xt_getvar("row00".($i+$wd)."Dayvalue").$dictTmp2[1]);

if($_REQUEST["a"]=="refresh" && $i==$days)

$y=$y . $dictTmp2[1];

}



and replace it with this one:

$xt->assign("row00".($i+$wd)."Dayvalue",$xt->xt_getvar("row00".($i+$wd)."Dayvalue").$dictTmp2[1]);

if($_REQUEST["a"]=="refresh" && $i==$days)

$y=$y . $dictTmp2[1];


Unfortunately there is no easy way to print all 12 months automatically.