Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Papildoma panelių eilė

Parašė kiskiss· 2010 Gru. 9 17:12:14
#1

Sveiki. Šiuo metu temoje yra 2 panelių eilės dešinėje pusėje, ir norėjau paklausti kaip reikėtu padaryti dar vieną panelių eilę kairėje pusėje? :)



<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2008 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: theme.php
| Theme Name: TEMY
| Author: ozan
| Web Page: <a href='http://www.galopcu.com' target='_blank'><span style='color:005C5B'>http://www.galopcu.com</span></a> 
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif'>");
// TEMA BOYUT:
$theme_width = "980px"; 
require_once INCLUDES."theme_functions_include.php";
include THEME."aramamenu.php";
 
function render_page($license=false) {
 
	global $theme_width,$settings,$main_style,$locale,$userdata,$aidlink,$db_prefix;
	echo "<table align='center' width='$theme_width' cellpadding='0' cellspacing='0'><tr>";
	echo"<td class='cerceve-ustorta' align='right' width='50%'>".date("j. n. Y")." | <a href='".BASEDIR."search.php'><img src='".THEME."images/ara.gif' width='12' height='12' alt='ara' border='0'></a> | <a href='mailto:".str_replace("@","&#64;",$settings['siteemail'])."'><img src='".THEME."images/mail.gif' width='13' height='9' alt='mail' border='0'></a> | <a href='".BASEDIR."index.php'><img src='".THEME."images/anasayfa.gif' width='11' height='9' alt='ana sayfa' border='0'></a></td>";	
	echo "<table align='center' width='$theme_width' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='baslik' align='left' >\n".showbanners()."</td>\n";
	echo "</tr>\n</table>\n";
	echo "<table align='center' width='$theme_width' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='buton-ustsol'></td>\n";
	echo "<td class='ustbutonlar'>".aramamenu()."</td>\n";
	echo "<td align='right' class='ustbutonlar'>".search()."</td>\n";
	echo "<td class='buton-ustsag'></td>\n";	
	echo "</tr>\n</table>\n";
 
	echo "<table cellpadding='0' cellspacing='0' align='center' width='$theme_width'><tr>\n";
   echo "<td class='arka'><div id='slayt_paneli'>";
   $result = dbquery(
          "SELECT tn.*, tc.*, user_id, user_name FROM ".DB_NEWS." tn
         LEFT JOIN ".DB_USERS." tu ON tn.news_name=tu.user_id
         LEFT JOIN ".DB_NEWS_CATS." tc ON tn.news_cat=tc.news_cat_id
         WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().") AND news_draft='0'
         ORDER BY news_sticky DESC, news_datestamp DESC LIMIT 0,5");
      while ($data = dbarray($result)) {
   echo "<a href='".BASEDIR."news.php?readmore=".$data['news_id']."' class='show' ><img src='".THEME."images/slider/01.jpg' alt='".$data['news_subject']."' width='980' height='190' title='' alt='' rel='<h3>".$data['news_subject']."</h3>&nbsp;&nbsp;&nbsp;".trimlink($data['news_news'], 150)."... '/></a>";
   }
   echo "<div class='caption'><div class='content'></div></div></div><div class='clear'></div></td>\n";
   echo "</tr>\n</table>\n";
	echo "<table align='center' width='$theme_width' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='anasayfa-arkarenk' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
	if (LEFT) { echo "<td class='kose-kenar-sol' valign='top'>".LEFT."</td>"; }
	if (RIGHT) { echo "<td class='kose-kenar-sag' valign='top'>".RIGHT."</td>"; }
	echo "</tr>\n</table>\n";
	echo "<table align='center' width='$theme_width' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='altbaslik-sol'><img src='".THEME."images/blank.gif' width='3px' height='33px' alt='' style='display:block'/></td>\n";
	echo "<td align='center' class='altbaslik-orta'>";
	echo "<a href='http://www.php-fusion.co.uk' target='_blank' alt=''><img src='".THEME."images/baslik/phpfusion.gif' style='vertical-align:middle;border:0px;'></a> copyright &copy; 2002 - ".date("Y")." by Nick Jones. Released as free software without warranties under <a href= 'http://www.fsf.org/licensing/licenses/agpl-3.0.html/' target='_blank' ><img src='".THEME."images/baslik/agpl.gif' style='vertical-align:middle;border:0px;'></a>";	
	echo "<a href= 'mailto:galopcu@galopcu.com' ><img src='".THEME."images/baslik/email.gif' style='vertical-align:middle;border:0px;'></a>\n";
	echo "<font color='black'> </font><a href= 'http://www.galopcu.com/' target='_blank' ><img src='".THEME."images/baslik/galopcutema.gif' style='vertical-align:middle;border:0px;'></a>\n";	echo "<td class='altbaslik-sag'><img src='".THEME."images/blank.gif' width='3px' height='33px' alt='' style='display:block'/></td>\n";
	echo "</tr>\n</table>\n";
 
 
 
	echo "<table align='center' width='$theme_width' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='hit'>".stripslashes($settings['footer']);
	echo "</tr>\n</table>\n";	
}
function render_news($subject, $news, $info) {
global $locale, $aidlink, $news_info;
	echo "<table cellpadding='0' cellspacing='0' width='100%' >\n<tr>\n";
	echo "<td class='habermenu-ustsol'></td>\n";
	echo "<td class='habermenu' valign='bottom'>".$subject."</td>\n";
	echo "<td class='habermenu-ustsag'></td>\n";
	echo "</tr>\n</table>\n";
	echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='habermenu-sol'></td>";
	echo "<td 'habermenu-ortaresim middle-border'>".$news."<table width='100%' cellpadding='0' cellspacing='0'><tr><td height='2'></td>";
	echo "<td class='habermenu-info'>";
	if ($info['news_allow_comments']) { echo " <img src='".THEME."images/yorumlar.gif' alt='' style='vertical-align:middle;border:0px;'/> <a href='news.php?readmore=".$info['news_id']."'>".$info['news_comments'].($info['news_comments'] == 1 ? $locale['global_073b'] : $locale['global_073'])."</a> |";}
	echo " <a href='print.php?type=N&amp;item_id=".$info['news_id']."'><img src='".THEME."images/printer.gif' alt='".$locale['global_075']."' title='".$locale['global_075']."' style='vertical-align:middle;border:0px;'/></a> ";
	if (iADMIN && checkrights("N")) { echo " <a href='".ADMIN."news.php".$aidlink."&amp;action=edit&amp;news_id=".$info['news_id']."'><img src='".THEME."images/duzenle.gif' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0px;'/></a>\n"; }
	echo "</td>";
	echo "<td align='right'>\n";
	echo"<a href=news.php?readmore=".$info['news_id']." ><img src='".THEME."images/ortapanel/devami.jpg' style='vertical-align:middle;border:0px;'></a>";
	echo "</td>\n";
	echo "</tr>\n</table>\n";
	echo "<td class='habermenu-sag'></td></tr>";
	echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
	echo "<td class='habermenu-altsol'></td>\n";
	echo "<td class='habermenu-altresim'></td>\n";
	echo "<td class='habermenu-altsag'></td>\n";
	echo "</tr>\n</table>\n";
	echo "<table cellpadding='0' cellspacing='0' width='100%' >\n<tr>\n";
	echo "<td class='incgolge' ></td>\n";
	echo "</tr>\n</table>\n";	
}
function render_article($subject, $article, $info) {
global $locale, $aidlink, $article_info;
	echo "<table cellpadding='0' cellspacing='0' width='100%' >\n<tr>\n";
	echo "<td class='incmenu-ustsol'></td>\n";
	echo "<td class='incmenu' valign='bottom'>".$subject."</td>\n";
	echo "<td class='incmenu-ustsag'></td>\n";
	echo "</tr>\n</table>\n";
	echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='incmenu-sol'></td>";
	echo "<td 'incmenu-ortaresim middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."<table width='100%' cellpadding='0' cellspacing='0'><tr><td height='2'></td>";
	echo "<td class='incmenu-info'>";
	echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
	echo "</td>\n";
	echo "</tr>\n</table>\n";
	echo "<td class='incmenu-sag'></td></tr>";
	echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
	echo "<td class='incmenu-altsol'></td>\n";
	echo "<td class='incmenu-altresim'></td>\n";
	echo "<td class='incmenu-altsag'></td>\n";
	echo "</tr>\n</table>\n";
	echo "<table cellpadding='0' cellspacing='0' width='100%' >\n<tr>\n";
	echo "<td class='incgolge' ></td>\n";
	echo "</tr>\n</table>\n";	
}
function opentable($title) {
	echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
	echo "<td class='panel-ustsol'><img src='".THEME."images/blank.gif' width='16px' height='35px' alt='' style='display:block'/></td>\n";
	echo "<td class='panel-ustorta' valign='bottom'>".$title."</td>\n";
	echo "<td class='panel-ustsag'><img src='".THEME."images/blank.gif' width='68px' height='35px' alt='' style='display:block'/></td>\n";
	echo "</tr>\n</table>\n";
	echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
	echo "<td class='paneller-sol'><img src='".THEME."images/blank.gif' width='3' height='1' alt='' style='display:block'></td>";
	echo "<td class='paneller-arkarenk'>\n";
} 
function closetable() {
	echo "</td>";
	echo "<td class='paneller-sag'><img src='".THEME."images/blank.gif' width='3' height='1' alt='' style='display:block'></td></tr>";
	echo "</td>\n";
	echo "</tr></table>\n";
	echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
	echo "<td class='panel-altsol'><img src='".THEME."images/blank.gif' width='15px' height='33px' alt='' style='display:block'/></td>\n";
	echo "<td class='panel-alt'><img src='".THEME."images/blank.gif' width='100%' height='33px' alt='' style='display:block'/></td>\n";
	echo "<td class='panel-altsag'><img src='".THEME."images/blank.gif' width='15px' height='33px' alt='' style='display:block'/></td>\n";
	echo "</tr></table>\n";
 
 
}
function openside($title, $collapse = false, $state = "on") {
	global $panel_collapse; $panel_collapse = $collapse;
	echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
	echo "<td class='spanel-ustsol'><img src='".THEME."images/blank.gif' width='14px' height='33px' style='display:block'/></td>\n";
	echo "<td class='spaneller' valign='bottom'>$title</td>\n";
	if ($collapse == true) {
		$boxname = str_replace(" ", "", $title);
		echo "<td class='spaneller' align='right'>".panelbutton($state, $boxname)."</td>\n";
	}
	echo "<td class='spanel-ustsag'><img src='".THEME."images/blank.gif' width='14px' height='33px' style='display:block'/></td>\n";
	echo "</tr>\n</table>\n";
	echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
	echo "<td class='spaneller-sol'><img src='".THEME."images/blank.gif' width='3' height='1' style='display:block'></td>";
	echo "<td class='spaneller-arkarenk' >\n";	
	if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
 
 
	global $panel_collapse;
	if ($panel_collapse == false) { echo "</div>\n"; }
	echo "</td>";
	echo "<td class='spaneller-sag'><img src='".THEME."images/blank.gif' width='3' height='1' style='display:block'></td></tr>";
	echo "</td>\n</tr>\n</table>\n";
	echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
	echo "<td class='spanel-altsol'><img src='".THEME."images/blank.gif' width='15px' height='33px' alt='' style='display:block' /></td>\n";
	echo "<td class='spanel-alt'><img src='".THEME."images/blank.gif' width='100%' height='33px' alt='' style='display:block' /></td>\n";
	echo "<td class='spanel-altsag'><img src='".THEME."images/blank.gif' width='15px' height='33px' alt='' style='display:block' /></td>\n";
	echo "</tr></table>\n";
}
?>

Redagavo kiskiss· 2010 Gru. 9 20:12:34