Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Šoninis cellpic

Parašė Narysx· 2007 Spa. 10 18:10:20
#1

theme.php:

function render_news($subject, $news, $info) {
   
global $locale;
   
   echo "<table border='0' class='border2' cellspacing='1' width='100%' cellpadding='3'><tr>";
        echo "<tr><td background='".THEME."images/cellpic3.gif' height='24'><font class='block-title'>$subject</font></td></tr>";
        echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>&nbsp;";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['news_date'])." </td>";
   echo "<td height='24' align='right' class='news-footer'>";
   echo "".($info['news_ext'] == "y" ? "<a href='news.php?readmore=".$info['news_id']."'>".$locale['042']."</a> Ā·\n" : "")."";
   if ($info['news_allow_comments'])
   echo "<a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].$locale['043']."</a> Ā· ";
   echo "".$info['news_reads'].$locale['044']." ";
   echo "<a href='print.php?type=N&item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' title='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

function render_article($subject, $article, $info) {
   
global $locale;
   
   echo "<table border='0' class='border2' cellspacing='1' width='100%' cellpadding='3'><tr>";
        echo "<tr><td background='".THEME."images/cellpic_sonas.gif' height='24'><font class='block-title'>$subject</font></td></tr>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";
   echo "".$locale['040']."<a href='profile.php?lookup=".$info['user_id']."'>".$info['user_name']."</a> ";
   echo "".$locale['041'].showdate("longdate", $info['article_date'])."</td>";
   echo "<td height='24' align='right' class='news-footer'>";
   if ($info['article_allow_comments']) echo $info['article_comments'].$locale['043']." Ā· ";
   echo "".$info['article_reads'].$locale['044']." ";
   echo "<a href='print.php?type=A&item_id=".$info['article_id']."'><img src='".THEME."images/printer.gif' title='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
   echo "</td></tr></table></td></tr></table>\n";
}

// Open table begins
function opentable($title) {

   echo "<table border='0' style='border: 1px solid #C5CAD4' cellspacing='1' width='100%' cellpadding='3'>";
   echo "<td class='panel-header'>$title</td>";
   echo "</tr>";
   echo "<tr><td class='main-body'>\n";
}

// Close table end
function closetable() {
   echo "</td></tr></table>\n";
}

function openside($title) {

   echo "<table border='0' style='border: 1px solid #C5CAD4' cellspacing='1' width='100%' cellpadding='3'><tr>";
        echo "<td class='panel-header'>$title";
        echo "<tr><td background='".THEME."images/cellpic_sonas.gif' height='24'><font class='block-title'>$subject</font></td></tr>";
        echo "</td></tr>";
   echo "<tr><td class='side-body' width='100%'>";
}

function closeside() {
   echo "</td></tr></table>";
   tablebreak();
}

function opensidex($title,$open="on") {

if($open=="on"){$box_img="off";}else{$box_img="on";}
   echo "<table border='0' style='border: 1px solid #C5CAD4' cellspacing='1' width='100%' cellpadding='3'><tr>";
        echo "<tr><td background='".THEME."images/cellpic_sonas.gif' height='24'><font class='block-title'>$subject</font></td></tr>";
   echo "<img align='left' vspace='2' onclick=\"javascript:flipBox('$title')\" name='b_$title' border='0' src='".THEME."images/panel_$box_img.gif'><font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td class='side-body'width='100%'>";
   echo "<div id='box_$title'"; if($open=="off"){ echo "style='display:none'"; } echo ">\n";
}


function closesidex() {

   echo "</div></td></tr></table>";
   tablebreak();
}

// Table functions
function tablebreak() {
   echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td height='8'></td></tr></table>\n";
}
?>




Va kaip man rodo šonines paneles:



Kaip padaryti, kad panelės pavadinimas būtų ANT cellpico, o ne virš jo?

Redagavo Narysx· 2007 Spa. 10 18:10:59