| Index
» Projects
» phpMyEdit
» Forum
» printing a site generated by phpMyEdit |
 |
stanneo
Joined: 03 Feb 2011
Posts: 14
Posted: 2011-02-04 15:13
Back to top
Reply with quote
|
Forget my previous question, I think it was not very smart.
But I have another question - is there in phpMyEdit a
implemented funktion or button for printing?
If not, how can I print a site (table) generated by
phpMyEdit without any buttons like "add", "copy", "go to" and so on..
Disabling the buttons doesn`t help, because the buttons are still visible.
I´m grateful for any sugestion or indication, what would be the first necessary step to achieve this task or in which direction it is going on at all?
thanks
stanneo
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2011-02-05 15:56
Back to top
Reply with quote
|
Buttons will always be present.
If you want to add a Print button to the footer, try:
| Code: |
| <p><form><input type="button" value="Print Page" name="PrintBtn" onclick="window.print();"></form></p> |
|
stanneo
Joined: 03 Feb 2011
Posts: 14
Posted: 2011-02-05 17:01
Back to top
Reply with quote
|
| doug wrote: |
Buttons will always be present.
If you want to add a Print button to the footer, try:
| Code: |
| <p><form><input type="button" value="Print Page" name="PrintBtn" onclick="window.print();"></form></p> |
|
thank you for your reaction,
is there no alternative way to print on paper without buttons?
|
doug
Joined: 10 Feb 2003
Posts: 1013
Location: Denver, Colorado (USA)
Posted: 2011-02-05 17:17
Back to top
Reply with quote
|
Do some research on style sheets for printing. Create an additional stylesheet for printing and set
input{display:none}. The following was something that I just happened to have nearby.
Link to the new stylesheet which will be used for print mode only (by most user agents).
| Code: |
| <link rel="stylesheet" type="text/css" media="print" href="print.css"> |
| Code: |
body{ /* print.css */
background-color: #ffffff;
color: #000000;
margin: 72px 72px 72px 72px;
font: normal 11pt verdana,arial,helvetica,sans-serif;
}
td.content{
font: normal 11pt verdana,arial,helvetica,sans-serif;
width: 78%;
}
td.td-left{
font: normal 11pt verdana,arial,helvetica,sans-serif;
width: 22%;
}
#noprint1, #noprint2, #noprint3{ display: none; } |
#noprint1, #noprint2, #noprint3{ display: none; }
|
stanneo
Joined: 03 Feb 2011
Posts: 14
Posted: 2011-02-05 17:28
Back to top
Reply with quote
|
Thank you,
I will try the "CSS" way :-)
Now I have a direction, in which I can go
have a great day
stanneo
|
stanneo
Joined: 03 Feb 2011
Posts: 14
Posted: 2011-02-05 17:29
Back to top
Reply with quote
|
Thank you,
I will try the "CSS" way :-)
Now I have a direction, in which I can go
have a great day
stanneo
|
|
Post new topic
Reply to topic
|
|
|
|