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

Parašė mariuse3· 2010 Lap. 9 12:11:41
#1

Sveiki iskilo toks klausimukas, noriu i straipsnius ideti lentele, ja pasidariau html pagrindu
<TABLE CELLSPACING=0 BORDER=1 CELLPADDING=1 ALIGN="center" WIDTH="50%" BGCOLOR="#fffff0">
<TH COLSPAN=5>Virimo temperatūra</TH>
<TR ALIGN="center">
</TR>
<TR ALIGN="center">
<TD> Alavas </TD> <TD> 2300°C </TD><TH ROWSPAN=12 BGCOLOR="#000000">   </TH><TD> Helis </TD> <TD> -269°C </TD>
<TR ALIGN="center">
<TD > Aliuminis </TD> <TD> 2467°C </TD><TD > Naftalinias </TD> <TD> 218°C </TD>
</TR>
<TR ALIGN="center">
<TD> Alkoholis </TD> <TD> 78°C </TD><TD> Oras </TD> <TD> -193°C </TD>
<TR ALIGN="center">
<TD > Auksas </TD> <TD> 2807°C </TD><TD > Siera </TD> <TD> 445°C </TD>
</TR>
<TR ALIGN="center">
<TD> Cinkas </TD> <TD> 907°C </TD><TD> Švinas </TD> <TD> 1740°C </TD>
<TR ALIGN="center">
<TD > Deguonis </TD> <TD> -183°C </TD><TD > Vandenilis </TD> <TD> -253°C </TD>
</TR>
<TR ALIGN="center">
<TD> Eteris </TD> <TD> 35°C </TD><TD> Vanduo </TD> <TD> 100°C </TD>
<TR ALIGN="center">
<TD > Geležis </TD> <TD> 2750°C </TD><TD > Varis </TD> <TD> 2567°C </TD>
</TR>
<TR ALIGN="center">
<TD> Glicerolis </TD> <TD> 290°C </TD><TD> Volframas </TD> <TD> 5660°C </TD>
<TR ALIGN="center">
<TD > Gyvsidabris </TD> <TD> 357°C </TD><TD >  </TD> <TD>  </TD>
</TR>
</table>



ir kada as ja ikeliu i straipsnius atrodo viskas butu kaip ir gerai bet labai didelis tarpas nuo informacijos palieka, t.y nuo teksto. kaip man ta tarpa panaikinti? Kas galit padeti?

Parašė mariuse3· 2010 Lap. 9 13:11:01
#2

Nu kaip sita panaikinti atradau, bet dar viena kllausimuka turiu kaip panaikinti sita eilute straipsniuose ir prie naujienu? : ?
Dekui uz informacija

Parašė MaFetas· 2010 Lap. 9 13:11:06
#3

themes.php faila redaguokis render_news ir render_article

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

Parašė MaFetas· 2010 Lap. 9 16:11:50
#5

mariuse3 parašė:
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";
	<span style='color:red'>echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);</span>
	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";
	<span style='color:red'>echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);</span>
	echo "</td>\n</tr>\n</table>\n";
 
}
 
va 2 render funkcijos

Parašė MaFetas· 2010 Lap. 9 16:11:43
#6


	echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
 
        echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);