| Index
» Projekty
» phpMyEdit
» Fórum
» printing a site generated by phpMyEdit |
 |
stanneo
Založený: 03.02.2011
Príspevky: 14
Zaslal: 2011-02-04 15:13
Návrat hore
Odpovedať s citátom
|
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
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2011-02-05 15:56
Návrat hore
Odpovedať s citátom
|
Buttons will always be present.
If you want to add a Print button to the footer, try:
| Kód: |
| <p><form><input type="button" value="Print Page" name="PrintBtn" onclick="window.print();"></form></p> |
|
stanneo
Založený: 03.02.2011
Príspevky: 14
Zaslal: 2011-02-05 17:01
Návrat hore
Odpovedať s citátom
|
| doug Napísal: |
Buttons will always be present.
If you want to add a Print button to the footer, try:
| Kód: |
| <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
Založený: 10.02.2003
Príspevky: 1013
Bydlisko: Denver, Colorado (USA)
Zaslal: 2011-02-05 17:17
Návrat hore
Odpovedať s citátom
|
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).
| Kód: |
| <link rel="stylesheet" type="text/css" media="print" href="print.css"> |
| Kód: |
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
Založený: 03.02.2011
Príspevky: 14
Zaslal: 2011-02-05 17:28
Návrat hore
Odpovedať s citátom
|
Thank you,
I will try the "CSS" way :-)
Now I have a direction, in which I can go
have a great day
stanneo
|
stanneo
Založený: 03.02.2011
Príspevky: 14
Zaslal: 2011-02-05 17:29
Návrat hore
Odpovedať s citátom
|
Thank you,
I will try the "CSS" way :-)
Now I have a direction, in which I can go
have a great day
stanneo
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|