Reply to Re: [PHP] howto send a whole smarty page to a printer

Your name:

Reply:


Posted by £ukasz 'nostra' Wojciechowski on 09/05/05 21:35

W odpowiedzi na maila (18:09 - 5 wrzeΕ›nia 2005):

> Hi

Hello

> I am using smarty with my php site, I know you can send a whole smarty
> template page to a variable, is their any way i can easily print that
> variable out. or am i going about this the wrong way.

Why don't you just make another template file witch would be more
printer friendly (i.e. just formated text). You would take your
compiled variable, parse it (threw away all img,swf etc.) and give it
to print tpl.

Personaly I do it with CSS ... i just change my
layout.css to layout_print.css with no backgrounds and black text. But
images still remain.

You can even use XSL ... but it would
require to redesign whole presentation part of your website. More info
here: http://www.w3.org/Style/XSL/

--
pozdrawiam
Łukasz "nostra" Wojciechowski
gg.1028640 * icq.23059512 * gsm.609.655.911


----------------------------------------------------------------------
Jedyny taki czat... >>> http://link.interia.pl/f18b0

[Back to original message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация