2 Sep 2004 16:50
Re: Print Button in Preview
John Beranek <john <at> redux.org.uk>
2004-09-02 14:50:28 GMT
2004-09-02 14:50:28 GMT
Sudhanshu Rajvaidya wrote:
> Hi, I would like to add a print button in print previews(Day, week &
> month). Can any one suggest me how to do it? I have been looking for
> a place in code where I can add javascript:print(). Is there any
> other way to accomplish this?
Are users really incapable of finding the print function in their
browsers themselves? :)
If that really is the case, then what you need to do is find the
location in the HTML you'd like to put the link/button, find where in
day.php, week.php and month.php that is and add something like:
if ($pview == 1)
{
echo "<a href="javascript:print">Print</a>"
}
> Thanks, Sudhanshu
John.
P.S. The repeated post wasn't necessary, it won't make people more keen
to answer you...
--
--
John Beranek To generalise is to be an idiot.
http://redux.org.uk/ -- William Blake
RSS Feed