Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: lentele

Parašė mariuse3· 2010 Lap. 9 15:11:36
#4

Gal galetum biski placiau kurias eilutes? :?

function render_news($subject, $news, $info) {
 
	echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
	echo "<td class='capmain-left'></td>\n";
	echo "<td class='capmain'>".$subject."</td>\n";
	echo "<td class='capmain-right'></td>\n";
	echo "</tr>\n</table>\n";
	echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
	echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='15' height='1' alt='' style='display:block'></td>";
	echo "<td class='main-body middle-border'>".$news."</td>\n";
	echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='15' height='1' alt='' style='display:block'></td>";
	echo "</tr>\n<tr>\n";
	echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='15' height='1' alt='' style='display:block'></td>";
	echo "<td align='center' class='news-footer middle-border'>\n";
	echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
	echo "</td>\n";
	echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='15' height='1' alt='' style='display:block'></td>";
	echo "</tr><tr>\n";
	echo "</tr>\n</table>\n";
	echo "<table cellspacing='0' cellpadding='0'><tr><td align='left'><img src='".THEME."/images/sideb-left.png' class='spacer'></td>
	<td align='center' class='sideb' width='100%'></td>
	<td align='right'><img src='".THEME."/images/sideb-right.png' class='spacer'></td>
	</tr></table>\n";
 
}
 
function render_article($subject, $article, $info) {
 
	echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
	echo "<td class='capmain-left'></td>\n";
	echo "<td class='capmain'>".$subject."</td>\n";
	echo "<td class='capmain-right'></td>\n";
	echo "</tr>\n</table>\n";
	echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
	echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
	echo "</tr>\n<tr>\n";
	echo "<td align='center' class='news-footer'>\n";
	echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
	echo "</td>\n</tr>\n</table>\n";
 
}
 
va 2 render funkcijos