Re: [PHP] Printer friendly version script

2002-06-13 Thread Tom Rogers

Hi
Should have made that a bit clearer :)




One method for later browsers is to use a header tag that causes a new page 
to be loaded for printing. This is done transperantly so the users don't 
need to click anything other than the normal print button. It goes like this :



Then if(print=yes) just regenerate the page without any fancy layouts.
Tom




At 01:41 PM 13/06/2002 -0300, Angelo Marcos Rigo wrote:
>Hi
> Anybody knows a good printer friendly version php script
> thank´s in advance
>
>Ângelo Marcos Rigo
>Webmaster Colégio Anchieta
>http://www.colegioanchieta.g12.br
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Printer friendly version script

2002-06-13 Thread Tom Rogers

Hi
One method for later browsers is to use a header tag that causes a new page 
to be loaded for printing. This is done transperantly so the users don't 
need to click anything other than the normal print button. It goes like this :



Then if(print=yes) just regenerate the page without any fancy layouts.
Tom




At 01:41 PM 13/06/2002 -0300, Angelo Marcos Rigo wrote:
>Hi
> Anybody knows a good printer friendly version php script
> thank´s in advance
>
>Ângelo Marcos Rigo
>Webmaster Colégio Anchieta
>http://www.colegioanchieta.g12.br
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Printer friendly version script

2002-06-13 Thread Pedro Garre

*This message was transferred with a trial version of CommuniGate(tm) Pro*
I think the only solution is to convert it to PDF. In theory, CSS2 provides 
with the possibility to configure the print format, but no browser supports 
it.

Pedro.


On Thursday 13 June 2002 19:56, Miguel Cruz wrote:
> *This message was transferred with a trial version of CommuniGate(tm) Pro*
>
> On Thu, 13 Jun 2002, Angelo Marcos Rigo wrote:
> > Anybody knows a good printer friendly version php script
> > thank´s in advance
>
> Well, it's entirely dependent on your particular HTML; there's no
> general-purpose solution.
>
>$P = ($_GET['printerfriendly'] == 'yes') ? 1 : 0;
> ?>
> if ($P)
> {
>   ?> }
>
> else
> {
>   ?> }
>
> ?>
>
> miguel

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Printer friendly version script

2002-06-13 Thread Miguel Cruz

On Thu, 13 Jun 2002, Angelo Marcos Rigo wrote:
>   Anybody knows a good printer friendly version php script
>   thank´s in advance 

Well, it's entirely dependent on your particular HTML; there's no 
general-purpose solution.



miguel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php