[PHP] special print function

2002-11-05 Thread Ines
Hello there!

I am really new to PHP and in good old copy/paste tradition i was looking
for a script that would serve my needs - unfortunately without success.
Perhaps some of you could help me?

I am looking for a special print function:

I have three coloumns on the page. Under each there is a printer icon. When
i press the printer icon underneath the left coloumn i only want a print
version of that left coloumn. same goes for the middle and right coloumn.

Has anyone ever seen a script that can do that?

Many thanks for your help!

Ines



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




AW: [PHP] special print function

2002-11-05 Thread Martin Lucas
hi ines,

surely ther are several possibilities to solve this problem.

i would do it like this:
put your values in three arrays
suggesting your icons represents links, put a variable after each link.
with the 'switch; case' command you can evaluate the get variables, and
generate the pages with the content you wish.
the rest is a little javascript, that calls the system print dialog.

hope that helps a little

regards

martin




 -Ursprüngliche Nachricht-
 Von: Ines [mailto:ines;comprehend.de]
 Gesendet: Dienstag, 5. November 2002 14:33
 An: [EMAIL PROTECTED]
 Betreff: [PHP] special print function
 
 
 Hello there!
 
 I am really new to PHP and in good old copy/paste tradition i 
 was looking
 for a script that would serve my needs - unfortunately 
 without success.
 Perhaps some of you could help me?
 
 I am looking for a special print function:
 
 I have three coloumns on the page. Under each there is a 
 printer icon. When
 i press the printer icon underneath the left coloumn i only 
 want a print
 version of that left coloumn. same goes for the middle and 
 right coloumn.
 
 Has anyone ever seen a script that can do that?
 
 Many thanks for your help!
 
 Ines
 
 
 
 -- 
 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] special print function

2002-11-05 Thread Maxim Maletsky
There is nothing special about such function...

Simply pass a different GET variable
(site.com/page.php?getvariable=value) value for each column and have an
if/else logic in your PHP code.


--
Maxim Maletsky
[EMAIL PROTECTED]


www.PHPBeginner.com  // PHP for Beginners
www.maxim.cx // my Home

// my Wish List: ( Get me something! )
http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3



Ines [EMAIL PROTECTED] wrote... :

 Hello there!
 
 I am really new to PHP and in good old copy/paste tradition i was looking
 for a script that would serve my needs - unfortunately without success.
 Perhaps some of you could help me?
 
 I am looking for a special print function:
 
 I have three coloumns on the page. Under each there is a printer icon. When
 i press the printer icon underneath the left coloumn i only want a print
 version of that left coloumn. same goes for the middle and right coloumn.
 
 Has anyone ever seen a script that can do that?
 
 Many thanks for your help!
 
 Ines
 
 
 
 -- 
 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] special print function

2002-11-05 Thread Justin French
I believe the OP wanted to achieve some sort of printing of SOME of the
content from within the original page, which isn't possible to my knowledge.

BTW calling print dialogues, etc etc will be a headache too.

Instead of a printer icon, what about a printer friendly icon, which they
can click which gives them the column they want on a simple page then
all they have to do is CNTRL-P.


Justin


on 06/11/02 12:30 AM, Maxim Maletsky ([EMAIL PROTECTED]) wrote:

 There is nothing special about such function...
 
 Simply pass a different GET variable
 (site.com/page.php?getvariable=value) value for each column and have an
 if/else logic in your PHP code.
 
 
 --
 Maxim Maletsky
 [EMAIL PROTECTED]
 
 
 www.PHPBeginner.com  // PHP for Beginners
 www.maxim.cx // my Home
 
 // my Wish List: ( Get me something! )
 http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3
 
 
 
 Ines [EMAIL PROTECTED] wrote... :
 
 Hello there!
 
 I am really new to PHP and in good old copy/paste tradition i was looking
 for a script that would serve my needs - unfortunately without success.
 Perhaps some of you could help me?
 
 I am looking for a special print function:
 
 I have three coloumns on the page. Under each there is a printer icon. When
 i press the printer icon underneath the left coloumn i only want a print
 version of that left coloumn. same goes for the middle and right coloumn.
 
 Has anyone ever seen a script that can do that?
 
 Many thanks for your help!
 
 Ines
 
 
 
 -- 
 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