Funkcja render_news tylko z drukowaniem:
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-aleft'><img src='".THEME."images/blank.gif' width='5' height='32' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-amain'>$subject</td>";
echo "<td class='panel-aright'><img src='".THEME."images/blank.gif' width='5' height='32' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border2-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='infobar' align='right'><a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['045']."' style='vertical-align:middle;border:0px;'></a>";
echo "</td></tr></table></div></td>";
echo "<td class='border2-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border2-bleft'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "<td class='border2-bmain'><img src='".THEME."images/blank.gif' width='1' height='5' alt='' style='display:block'></td>";
echo "<td class='border2-bright'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
Funkcja render_news bez stopki:
function render_news($subject, $news, $info) {
global $locale;
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-aleft'><img src='".THEME."images/blank.gif' width='5' height='32' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-amain'>$subject</td>";
echo "<td class='panel-aright'><img src='".THEME."images/blank.gif' width='5' height='32' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border2-left'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
echo "</td>";
echo "<td class='border2-right'><img src='".THEME."images/blank.gif' width='5' height='1' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border2-bleft'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "<td class='border2-bmain'><img src='".THEME."images/blank.gif' width='1' height='5' alt='' style='display:block'></td>";
echo "<td class='border2-bright'><img src='".THEME."images/blank.gif' width='5' height='5' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
Jestem jaki jestem
|