Вот смотрите мне нужно напечатать только то что выделенно на скрине красным цветом а остальные блоки, лого, коменты и почие нет. Если я сделаю всё это с css, то как я понел, мне нужно будет на все таблицы поставить display: none; которые не хочу печатать но они оставят пустое место на листе бумаги.
http://img503.imageshack.us/my.php?image=imprimircl9.png
Мне понравилась идея вывода другого окна, но у меня не получается вывести php variable в новом окне
вот сама страничка php
| Код | <?php /* +-------------------------------------------------------------------------- | MkPortal | ======================================== | by Meo aka Luponero <Amedeo de longis> | Don K. Colburn <visiblesoul.net> | | Copyright (c) 2004-2006 mkportal.it | http://www.mkportal.it | Email: luponero@mclink.it | +--------------------------------------------------------------------------- | | > MKPortal | > Written By Amedeo de longis | > Date started: 9.2.2004 | +-------------------------------------------------------------------------- */
class tpl_reviews {
function review_show($navbar, $maintit, $content, $submit, $stat, $toolbar, $pages, $utonline) { global $mkportals, $mklib; return <<<EOF <tr> <td> <script type="text/javascript"> <!-- function selChd(jumpsection) { var selIdx = jumpsection.selectedIndex; var newSel = jumpsection.options[selIdx].value; location.href='index.php?ind=reviews&op=section_view&idev=' + newSel; } function selChoc(jumpsection) { var selIdx = jumpsection.selectedIndex; var newSel = jumpsection.options[selIdx].value; location.href='index.php?ind=reviews&order=' + newSel; } function selChoe(jumpsection, idev) { var selIdx = jumpsection.selectedIndex; var newSel = jumpsection.options[selIdx].value; location.href='index.php?ind=reviews&op=section_view&idev=' + idev + '&order=' + newSel; } //--> </script> <br /> <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width = "25"> <img src="$mklib->images/locbar.gif" alt="" /> </td> <td width = "60%"> {$navbar} </td> <td width = "*" align="right" class="modulelite"> $submit <a href="index.php?ind=reviews&op=search">[ {$mklib->lang['re_search']} ]</a> </td> </tr> </table> <br /> <table width="98%" border="0" cellspacing="1" cellpadding="0" align="center" class="moduleborder"> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="1" class="modulebg"> <tr> <td width="100%" height="25" class="tdblock"> <img src="$mklib->images/arrow.gif" alt="" />{$maintit}</td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <table width="100%" border="0" cellspacing="1" cellpadding="5"> {$content} </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> {$toolbar} <br /> <table width="98%" border="0" cellspacing="1" cellpadding="0" align="center" class="moduleborder"> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="2" class="modulebg"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <table width="100%" border="0" cellspacing="1" cellpadding="5"> <tr> <td class="modulex" colspan="2"> {$mklib->lang['re_stat']} </td> </tr> <tr> <td width="40" align="center" class="modulecell"><img src="/portal/mkportal/image/stats.png" alt="" /></td> <td class="modulecell">{$stat}</td> </tr> </table> </td> </tr> </table> </td> </tr> </table> </td> </tr> </table> <br /> <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="modulebg"> <table width="100%" border="0" cellspacing="0" cellpadding="4" align="right"> <tr> <td width="*" align="left" class="start"> {$pages} </td> </tr> </table> </td> </tr> </table>
<table width="98%" class="moduleborder" border="0" cellspacing="1" cellpadding="1" align="center"> <tr> <td class="modulebg"> <table width="100%" border="0" cellspacing="0" cellpadding="4" align="right"> <tr> <td class="modulex" width="*" align="left"> {$utonline} </td> </tr> </table> </td> </tr> </table> </td> </tr> EOF; } function row_main_category() { global $mkportals, $mklib; return <<<EOF <tr> <th class="modulex" width="40"> </th> <th class="modulex" width="*">{$mklib->lang['re_mcat']}</th> <th class="modulex" width="100" align="center">{$mklib->lang['re_ptitle']}</th> <th class="modulex" width="300" align="center">{$mklib->lang['re_lastentry']}</th> </tr>
EOF; } function row_main_category_content($name, $description, $totfile, $lastentry, $link) { global $mkportals, $mklib; return <<<EOF <tr> <td class="modulecell" width="40" align="center">$link</td> <td class="modulecell" width="*">{$name}<br /><span class="modulelite">{$description}</span></td> <td class="modulecell" width="100" align="center">{$totfile}</td> <td class="modulecell" width="300" align="center">{$lastentry}</td> </tr> EOF; }
function row_main_entries() { global $mkportals, $mklib; return <<<EOF <tr> <th class="modulex" width="40"> </th> <th class="modulex" width="*">{$mklib->lang['re_name']}</th> <th class="modulex" width="75" align="center">{$mklib->lang['re_votes']}</th> <th class="modulex" width="75" align="center">{$mklib->lang['re_clicks']}</th> <th class="modulex" width="150" align="center">{$mklib->lang['re_insdate']}</th> </tr> EOF; }
function row_main_entries_content($name, $trate, $description, $click, $data) { global $mkportals, $mklib; return <<<EOF <tr> <td class="modulecell" width="40" align="center"><img src="$mklib->images/entry.gif" alt="" /></td> <td class="modulecell" width="*">{$name}<br />{$description}</td> <td class="modulecell" width="75" align="center">{$trate}</td> <td class="modulecell" width="75" align="center">{$click}</td> <td class="modulecell" width="150" align="center">{$data}</td> </tr> EOF; }
function row_entry($id, $name, $description, $trate, $rate, $width2, $width, $autore, $image, $field1, $field2, $field3, $field4, $field5, $field6, $field7, $review) { global $mkportals, $mklib; return <<<EOF {$image} /*ВЫВОД В ДРУГОМ ОКНЕ НАЧАЛО*/ <tr> <td class="modulecell" width="20%" valign="top" align="left">{$mklib->lang['re_title']}</td> <td class="modulecell" colspan="2" width="80%" align="left"><b>{$name}</b></td> </tr> <tr> <td class="modulecell" width="20%" valign="top" align="left">{$mklib->lang['re_description']}</td> <td class="modulecell" colspan="2" width="80%" align="left">{$description}</td> </tr> {$field1} {$field2} {$field3} {$field4} {$field5} {$field6} {$field7} <tr> <td class="modulecell" width="20%" valign="top" align="left">{$mklib->lang['re_sendby']}</td> <td class="modulecell" colspan="2" width="80%" align="left">{$autore}</td> </tr> <tr> <td colspan="3" class="modulecell" align="left">{$review}</td> </tr> /*ВЫВОД В ДРУГОМ ОКНЕ КОНЕЦ*/ <tr> <td class="modulecell" width="20%" valign="top" align="left">{$mklib->lang['re_score']}</td> <td class="modulecell" colspan="2" width="80%" align="left">{$mklib->lang['re_votes']}: {$trate} - {$mklib->lang['re_average']}: {$rate} <img src="$mklib->images/spacer.gif" width="{$width2}" height="5" alt="" /><br /><img src="$mklib->images/scale.gif" width="129" alt="" /><br /><img src="$mklib->images/bar-start.gif" height="11" alt="" /><img src="$mklib->images/bar.gif" width="{$width}" height="11" alt="" /><img src="$mklib->images/bar-end.gif" height="11" alt="" /> </td> </tr>
<tr> <td class="modulecell" colspan="3"> <table width="100%" align="center"> <tr> <td align="center" class="functions" width="200"><a href="index.php?ind=reviews&op=submit_comment&ide={$id}"><img src="$mklib->images/comment.gif" border="0" alt="" /></a></td> <td align="center" class="functions" width="200"><a href="index.php?ind=reviews&op=submit_rate&ide={$id}"><img src="$mklib->images/rate.gif" border="0" alt="" /></a></td> </tr> <tr> <td align="center" class="functions" width="200"><a href="index.php?ind=reviews&op=submit_comment&ide={$id}">{$mklib->lang['re_insertcomm']}</a></td> <td align="center" class="functions" width="200"><a href="index.php?ind=reviews&op=submit_rate&ide={$id}">{$mklib->lang['re_sendvote']}</a></td> </tr> </table> </td> </tr>
EOF; }
function row_toolbar($jump, $sort) { global $mkportals, $mklib; return <<<EOF <table width="98%" border="0" cellspacing="4" cellpadding="0" align="center"> <tr> <td> <table width="320" border="0" cellpadding="3" cellspacing="1" class="moduleborder" align="right"> <tr> <td align="right" class="modulex"> {$jump} {$sort} </td> </tr> </table> </td> </tr> </table> EOF; }
} ?>
|
Помогите разобраться с выводом этой части кода плз
| Код | /*ВЫВОД В ДРУГОМ ОКНЕ НАЧАЛО*/ <tr> <td class="modulecell" width="20%" valign="top" align="left">{$mklib->lang['re_title']}</td> <td class="modulecell" colspan="2" width="80%" align="left"><b>{$name}</b></td> </tr> <tr> <td class="modulecell" width="20%" valign="top" align="left">{$mklib->lang['re_description']}</td> <td class="modulecell" colspan="2" width="80%" align="left">{$description}</td> </tr> {$field1} {$field2} {$field3} {$field4} {$field5} {$field6} {$field7} <tr> <td class="modulecell" width="20%" valign="top" align="left">{$mklib->lang['re_sendby']}</td> <td class="modulecell" colspan="2" width="80%" align="left">{$autore}</td> </tr> <tr> <td colspan="3" class="modulecell" align="left">{$review}</td> </tr> /*ВЫВОД В ДРУГОМ ОКНЕ КОНЕЦ*/
|
|