Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: news.php
Parašė PyccKuu· 2008 Sau. 15 16:01:30
#1
Sveiki gal galima padariti naujienų kategorijas ne paveiksleliais o pagal pavadinimus ir kad atroditu kaskaip taip
news.php
<?php
/*---------------------------------------------------+
| PHP-Fusion 6 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2005 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------+
| Modified © 2005 martini
| http://php-fusion.int.ru/
+----------------------------------------------------*/
require_once "maincore.php";
require_once "subheader.php";
require_once "side_left.php";
if (!isset($readmore)) {
$items_per_page = 6;
$rows = dbcount("(news_id)", "news", groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")");
if (!isset($rowstart) || !isNum($rowstart)) $rowstart = 0;
if ($rows != 0) {
$i = 1;
$result = dbquery(
"SELECT tn.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
WHERE ".groupaccess('news_visibility')." AND (news_start='0'||news_start<=".time().") AND (news_end='0'||news_end>=".time().")
ORDER BY news_datestamp DESC LIMIT $rowstart,$items_per_page"
);
$numrows = dbrows($result);
while ($data = dbarray($result)) {
$news_cat_image = "";
$news_subject = "<a name='news_".$data['news_id']."' id='news_".$data['news_id']."'></a>".stripslashes($data['news_subject']);
if ($data['news_cat'] != 0) {
$result2 = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data['news_cat']."'");
if (dbrows($result2)) {
$data2 = dbarray($result2);
$news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='right' style='border:0px;margin-right:5px'></a>";
}
}
$news_news = stripslashes($data['news_news']);
if ($data['news_breaks'] == "y") $news_news = nl2br($news_news);
if ($news_cat_image != "") $news_news = $news_cat_image.$news_news;
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => $data['news_extended'] ? "y" : "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments']
);
render_news($news_subject, $news_news, $news_info);
if ($i != $numrows) { tablebreak(); } $i++;
}
if ($rows > $items_per_page) echo "<div align='center' style='margin-top:5px;'>\n".makePageNav($rowstart,$items_per_page,$rows,3)."\n</div>\n";
} else {
opentable($locale['046']);
echo "<center><br>\n".$locale['047']."<br><br>\n</center>\n";
closetable();
}
} else {
if (iMEMBER){
if (!isNum($readmore)) fallback(FUSION_SELF);
include INCLUDES."comments_include.php";
include INCLUDES."ratings_include.php";
$result = dbquery(
"SELECT tn.*, user_id, user_name FROM ".$db_prefix."news tn
LEFT JOIN ".$db_prefix."users tu ON tn.news_name=tu.user_id
WHERE news_id='$readmore'"
);
if (dbrows($result)!=0) {
$data = dbarray($result);
if (checkgroup($data['news_visibility'])) {
$news_cat_image = "";
if (!isset($_POST['post_comment']) && !isset($_POST['post_rating'])) {
$result2 = dbquery("UPDATE ".$db_prefix."news SET news_reads=news_reads+1 WHERE news_id='$readmore'");
$data['news_reads']++;
}
$news_subject = $data['news_subject'];
if ($data['news_cat'] != 0) {
$result2 = dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='".$data['news_cat']."'");
if (dbrows($result2)) {
$data2 = dbarray($result2);
$news_cat_image = "<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'><img src='".IMAGES_NC.$data2['news_cat_image']."' alt='".$data2['news_cat_name']."' align='right' style='border:0px;margin-right:5px'></a>";
}
}
$news_news = stripslashes($data['news_extended'] ? $data['news_extended'] : $data['news_news']);
if ($data['news_breaks'] == "y") { $news_news = nl2br($news_news); }
if ($news_cat_image != "") $news_news = $news_cat_image.$news_news;
$news_info = array(
"news_id" => $data['news_id'],
"user_id" => $data['user_id'],
"user_name" => $data['user_name'],
"news_date" => $data['news_datestamp'],
"news_ext" => "n",
"news_reads" => $data['news_reads'],
"news_comments" => dbcount("(comment_id)", "comments", "comment_type='N' AND comment_item_id='".$data['news_id']."'"),
"news_allow_comments" => $data['news_allow_comments']
);
render_news($news_subject, $news_news, $news_info);
if ($data['news_allow_comments']) showcomments("N","news","news_id",$readmore,FUSION_SELF."?readmore=$readmore");
if ($data['news_allow_ratings']) showratings("N",$readmore,FUSION_SELF."?readmore=$readmore");
} else {
redirect(FUSION_SELF);
}
} else {
redirect(FUSION_SELF);
}
}
else {
opentable($locale['046']);
echo "<center>".$locale['003']."</center>";
closetable();
}
}
require_once "side_right.php";
require_once "footer.php";
?>
Ačiū iš anksto ;)
Parašė sniuff· 2008 Sau. 15 17:01:39
#2
Įdėk themes.php failą. Nes per news nieko nepadarysiu.
Parašė PyccKuu· 2008 Sau. 15 17:01:03
#4
manjack as irgi neradau vietos kur iterpti :( nzn kur ideti gali paziureti ? :?:? tipo i themes.php
Parašė Žilvis· 2008 Sau. 15 17:01:26
#5
".$info['kategorija']."
Ši koda iterp belekur
Parašė PyccKuu· 2008 Sau. 15 17:01:09
#6
belekur neeina :(
Parašė Soo-2· 2008 Sau. 15 17:01:31
#7
atsidaryk theme.php faila surask
function render_news($subject, $news, $info) {
tada kažka panašaus <font class='block-title' align=>$subject</font></td>"; ir už to $subject irašai ".$info['kategorija']."
Parašė Soo-2· 2008 Sau. 15 17:01:50
#8
<font class='block-title' align=>$subject ".$info['kategorija']."</font></td>" toliau kad butu dėšinem kampe tai pats susistatysi
Parašė PyccKuu· 2008 Sau. 15 17:01:02
#9
Themes.php
<?php
/*--------------------------------------------------+
| Theme skirta PHP-Fusion Turinio Valdymo Sistemai |
| Tema parengta ir paskelbta WTFTHEMES.com komandos.|
| Svetainė: www.wtfthemes.com |
| Prasome nepanikinti nuorodos i musu saita. |
| |
| Theme by WTFTHEMES.com |
| Please do not remove the copyright |
| Web: www.wtfthemes.com |
+-------------------------------------------------- */
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#6aa311";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
echo "<script type='text/javascript' src='".THEME."js/menu.js'></script>";
function render_header($header_content) {
include THEME."locale/Lithuanian.php";
include LOCALE.LOCALESET."global.php";
global $theme_width,$settings;
echo "<table class='bodyline' cellSpacing='0' cellPadding='0' width='970' align='center' border='0'>";
echo "<tr><td><table title='".$settings[sitename]."' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td height='110'><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/cellpic_bkg.jpg'></a></td>";
echo "</tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' height='20' border='0' cellpadding='4' cellspacing='0' background='".THEME."images/cellpic_nav.gif'>";
echo "<td class='topnav' nowrap align=left><a href='".BASEDIR."index.php'><img src='".THEME."images/home.gif'></a> <img src='".THEME."images/menu_bar_div.gif'> ";
echo "<a href='".BASEDIR."forum/index.php'><img src='".THEME."images/forum.gif'></a> <img src='".THEME."images/menu_bar_div.gif'>";
//Account Code
if (iMEMBER) {
echo " <a href='".BASEDIR."edit_profile.php' id='account'><img src='".THEME."images/account.gif'></a><script type='text/javascript'>lkmenu_register('account');</script> <img src='".THEME."images/menu_bar_div.gif'> ";
echo "<div class='lkmenu_popup' id='account_menu' style='display:none'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_account.gif'><font class='block-title' align=>$subject ".$info['kategorija']."</font></td><center>User Options<a name='goto_account'></a></font>";
echo "</td></tr>";
echo "<tr><td><font class='lkmenu_text'>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN) {
echo "<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."index.php?logout=yes' class='side'>".$locale['084']."</a>\n";
echo "</td></tr></table></div>";
} else {
echo " <a href='".BASEDIR."register.php'><img src='".THEME."images/register.gif'></a> </font><img src='".THEME."images/menu_bar_div.gif'> ";
}
//Account Code End
echo "<a href='".BASEDIR."downloads.php'><img src='".THEME."images/downloads.gif'></a></font> <img src='".THEME."images/menu_bar_div.gif'> ";
//Search Code
echo "<a href='".BASEDIR."search.php' id='forumsearch'><img src='".THEME."images/search.gif'></a><script type='text/javascript'>lkmenu_register('forumsearch');</script> <img src='".THEME."images/menu_bar_div.gif'>";
echo "<div class='lkmenu_popup' id='forumtools_menu' style='display:none'></div>";
echo "<div class='lkmenu_popup' id='forumsearch_menu' style='display:none'>";
echo "<form action='".BASEDIR."search.php' method='post'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_search.gif'><font class='block-title'><center>Search Menu<a name='goto_forumsearch'></a></font>";
echo "</td></tr>";
echo "<tr><td width='370'><font class='lkmenu_text'>Search for Keywords:</font><hr>";
if ($stype == "") $stype = "f";
echo "<input type='text' name='stext' value='Enter search here...' class='lkmenu_input' style='width:375px' onBlur=\"if(this.value=='') this.value='Enter search here...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\" ><hr>";
echo "<input type='submit' name='search' value='".$locale['408']."' class='button'><br>";
echo "<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['402']."";
echo "<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['403']."";
echo "<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['404']."<br>";
echo "<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['405']."";
echo "<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['406']."";
echo "<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['407']."";
echo "</td></tr></table></form></div>";
//End Search Code
//Login Code
if (iMEMBER) {
echo " <a href='".BASEDIR."setuser.php?logout=yes'><img src='".THEME."images/logout.gif'></a></font>";
} else {
echo "<div class='lkmenu_popup' id='login_menu' style='display:none'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_login.gif'><font class='block-title'><center>User Login<a name='goto_login'></a></font>";
echo "</td></tr>";
echo "<tr><td width='170'><font class='lkmenu_text'>";
echo"<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['061']."<br>";
echo "<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['062']."<br> ";
echo "<input type='password' name='user_pass' class='textbox' style='width:100px'><br>";
echo "<input type='checkbox' name='remember_me' value='y'>".$locale['063']."<br><br>";
echo "<input type='submit' name='login' value='".$locale['064']."' class='button'><br>";
echo "</form><hr>\n";
if ($settings['enable_registration']) {
echo "<img src='".THEME."images/bullet.gif'> ".$locale['065']."<br><br>\n";
}
echo "<img src='".THEME."images/bullet.gif'> ".$locale['066']."";
echo "</div></td></tr></table></form></div>";
}
//Login Code End
echo"<script type='text/javascript'>LKT_init();</script>";
echo"</td></tr></table>";
echo "<td class='topnav' valign='middle' align='right'>";
echo "<font class='date'>".ucwords(showdate($settings['subheaderdate'], time()))." ";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>";
echo "<img src='".THEME."images/pixel.gif' width='100%' height='4'>";
}
/*******************************************************************/
/* Prašau gerbkite autorių nuorodas. */
/* NEIŠTRINKITE NUORUODŲ Į MŪSŲ SAITĄ. TAIP PAT IR PAVEIKSLĖLIŲ. */
/*******************************************************************/
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</td></tr></table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='$theme_width' border='0'><tr>";
echo "<td align='center'><br>".stripslashes($settings['footer'])."<br></td>";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='35%' class='topnav' align='center'><div align='left'> ";
if ($license == false) {
echo "Varikliukas: <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:top;'></a>";
}
echo "</div></td>";
echo "<td width='20%' class='topnav' align='left'>";
echo "Theme by: <a target='_blank' href='http://www.wtfthemes.com'><img title='WTFTHEMES' src='".THEME."images/wtfthemes.gif' style='vertical-align:top;'></a></td>";
echo "<td width='35%' class='topnav' align='middle'><div align='right'>";
echo "<b>".$settings['counter']."</b></font> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo " </div></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo "<font class='news-title'>$subject</b></font></td>";
echo "</td></tr></table>";
echo "</td></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'> ";
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' alt='".$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' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo " <font class='news-title'>$subject</b></font></td>";
echo "<td align='right>";
echo "<img border='0' src='".THEME."images/div.gif'> ";
echo "</td></tr></table>";
echo "</td></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'>".($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' alt='".$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 width='100%' cellpadding='3' cellspacing='1' style='border: 1px solid #333333'>";
echo "<tr><td bgcolor='#D8D8D8' background='".THEME."images/cellpic1.gif' height='25'><font class='head-title'>$title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<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 #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#EFEFEF' 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 #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='left' 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 bgcolor='#EFEFEF' 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";
}
?>
Iterpiau nzn kur pasitaike rodo paveiksleli desineje puseje o pavadinima neraso :( isjungiau
Redagavo PyccKuu· 2008 Sau. 15 17:01:52
Parašė Soo-2· 2008 Sau. 15 17:01:13
#10
išjunk šipseneles
Parašė PyccKuu· 2008 Sau. 15 17:01:32
#11
isjungiua paziurek bet news.php padariau viskas kaip ten jej rejks galiu prisekti news.php
Parašė Soo-2· 2008 Sau. 15 17:01:48
#12
Bnadyk šitaip
<?php
/*--------------------------------------------------+
| Theme skirta PHP-Fusion Turinio Valdymo Sistemai |
| Tema parengta ir paskelbta WTFTHEMES.com komandos.|
| Svetainė: www.wtfthemes.com |
| Prasome nepanikinti nuorodos i musu saita. |
| |
| Theme by WTFTHEMES.com |
| Please do not remove the copyright |
| Web: www.wtfthemes.com |
+-------------------------------------------------- */
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#6aa311";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
echo "<script type='text/javascript' src='".THEME."js/menu.js'></script>";
function render_header($header_content) {
include THEME."locale/Lithuanian.php";
include LOCALE.LOCALESET."global.php";
global $theme_width,$settings;
echo "<table class='bodyline' cellSpacing='0' cellPadding='0' width='970' align='center' border='0'>";
echo "<tr><td><table title='".$settings[sitename]."' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td height='110'><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/cellpic_bkg.jpg'></a></td>";
echo "</tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' height='20' border='0' cellpadding='4' cellspacing='0' background='".THEME."images/cellpic_nav.gif'>";
echo "<td class='topnav' nowrap align=left><a href='".BASEDIR."index.php'><img src='".THEME."images/home.gif'></a> <img src='".THEME."images/menu_bar_div.gif'> ";
echo "<a href='".BASEDIR."forum/index.php'><img src='".THEME."images/forum.gif'></a> <img src='".THEME."images/menu_bar_div.gif'>";
//Account Code
if (iMEMBER) {
echo " <a href='".BASEDIR."edit_profile.php' id='account'><img src='".THEME."images/account.gif'></a><script type='text/javascript'>lkmenu_register('account');</script> <img src='".THEME."images/menu_bar_div.gif'> ";
echo "<div class='lkmenu_popup' id='account_menu' style='display:none'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_account.gif'><font class='block-title' align=>$subject ".$info['kategorija']."</font></td><center>User Options<a name='goto_account'></a></font>";
echo "</td></tr>";
echo "<tr><td><font class='lkmenu_text'>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN) {
echo "<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."index.php?logout=yes' class='side'>".$locale['084']."</a>\n";
echo "</td></tr></table></div>";
} else {
echo " <a href='".BASEDIR."register.php'><img src='".THEME."images/register.gif'></a> </font><img src='".THEME."images/menu_bar_div.gif'> ";
}
//Account Code End
echo "<a href='".BASEDIR."downloads.php'><img src='".THEME."images/downloads.gif'></a></font> <img src='".THEME."images/menu_bar_div.gif'> ";
//Search Code
echo "<a href='".BASEDIR."search.php' id='forumsearch'><img src='".THEME."images/search.gif'></a><script type='text/javascript'>lkmenu_register('forumsearch');</script> <img src='".THEME."images/menu_bar_div.gif'>";
echo "<div class='lkmenu_popup' id='forumtools_menu' style='display:none'></div>";
echo "<div class='lkmenu_popup' id='forumsearch_menu' style='display:none'>";
echo "<form action='".BASEDIR."search.php' method='post'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_search.gif'><font class='block-title'><center>Search Menu<a name='goto_forumsearch'></a></font>";
echo "</td></tr>";
echo "<tr><td width='370'><font class='lkmenu_text'>Search for Keywords:</font><hr>";
if ($stype == "") $stype = "f";
echo "<input type='text' name='stext' value='Enter search here...' class='lkmenu_input' style='width:375px' onBlur=\"if(this.value=='') this.value='Enter search here...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\" ><hr>";
echo "<input type='submit' name='search' value='".$locale['408']."' class='button'><br>";
echo "<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['402']."";
echo "<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['403']."";
echo "<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['404']."<br>";
echo "<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['405']."";
echo "<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['406']."";
echo "<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['407']."";
echo "</td></tr></table></form></div>";
//End Search Code
//Login Code
if (iMEMBER) {
echo " <a href='".BASEDIR."setuser.php?logout=yes'><img src='".THEME."images/logout.gif'></a></font>";
} else {
echo "<div class='lkmenu_popup' id='login_menu' style='display:none'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_login.gif'><font class='block-title'><center>User Login<a name='goto_login'></a></font>";
echo "</td></tr>";
echo "<tr><td width='170'><font class='lkmenu_text'>";
echo"<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['061']."<br>";
echo "<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['062']."<br> ";
echo "<input type='password' name='user_pass' class='textbox' style='width:100px'><br>";
echo "<input type='checkbox' name='remember_me' value='y'>".$locale['063']."<br><br>";
echo "<input type='submit' name='login' value='".$locale['064']."' class='button'><br>";
echo "</form><hr>\n";
if ($settings['enable_registration']) {
echo "<img src='".THEME."images/bullet.gif'> ".$locale['065']."<br><br>\n";
}
echo "<img src='".THEME."images/bullet.gif'> ".$locale['066']."";
echo "</div></td></tr></table></form></div>";
}
//Login Code End
echo"<script type='text/javascript'>LKT_init();</script>";
echo"</td></tr></table>";
echo "<td class='topnav' valign='middle' align='right'>";
echo "<font class='date'>".ucwords(showdate($settings['subheaderdate'], time()))." ";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>";
echo "<img src='".THEME."images/pixel.gif' width='100%' height='4'>";
}
/*******************************************************************/
/* Prašau gerbkite autorių nuorodas. */
/* NEIŠTRINKITE NUORUODŲ Į MŪSŲ SAITĄ. TAIP PAT IR PAVEIKSLĖLIŲ. */
/*******************************************************************/
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</td></tr></table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='$theme_width' border='0'><tr>";
echo "<td align='center'><br>".stripslashes($settings['footer'])."<br></td>";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='35%' class='topnav' align='center'><div align='left'> ";
if ($license == false) {
echo "Varikliukas: <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:top;'></a>";
}
echo "</div></td>";
echo "<td width='20%' class='topnav' align='left'>";
echo "Theme by: <a target='_blank' href='http://www.wtfthemes.com'><img title='WTFTHEMES' src='".THEME."images/wtfthemes.gif' style='vertical-align:top;'></a></td>";
echo "<td width='35%' class='topnav' align='middle'><div align='right'>";
echo "<b>".$settings['counter']."</b></font> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo " </div></td></tr></table>";
}
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo "<font class='news-title'>$subject".$info['kategorija']."</b></font></td>";
echo "</td></tr></table>";
echo "</td></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'> ";
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' alt='".$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' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo " <font class='news-title'>$subject</b></font></td>";
echo "<td align='right>";
echo "<img border='0' src='".THEME."images/div.gif'> ";
echo "</td></tr></table>";
echo "</td></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'>".($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' alt='".$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 width='100%' cellpadding='3' cellspacing='1' style='border: 1px solid #333333'>";
echo "<tr><td bgcolor='#D8D8D8' background='".THEME."images/cellpic1.gif' height='25'><font class='head-title'>$title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<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 #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#EFEFEF' 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 #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='left' 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 bgcolor='#EFEFEF' 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";
}
?>
Parašė Žmogus· 2008 Sau. 15 17:01:11
#13
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo "<font class='news-title'>$subject ".$info['kategorija']."</b></font></td>";
echo "</td></tr></table>";
echo "</td></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'> ";
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' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
Ir pąrsisiųsk ta news.php by tifo
Parašė sniuff· 2008 Sau. 15 17:01:56
#14
Prisegu. Shadovw ir snox kaip jūs išvedate: ".$info['kategorija']." jis nieko nereiškia jūsų parašymuose.
Redagavo sniuff· 2008 Sau. 15 17:01:30
Parašė PyccKuu· 2008 Sau. 15 17:01:21
#15
ShadoVw parašė:
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo "<font class='news-title'>$subject ".$info['kategorija']."</b></font></td>";
echo "</td></tr></table>";
echo "</td></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'> ";
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' alt='".$locale['045']."' border='0' style='vertical-align:middle;'></a>";
echo "</td></tr></table></td></tr></table>\n";
}
Ir pąrsisiųsk ta news.php by tifo
Parse error: syntax error, unexpected ';' in /home/black/mg-styles.xz.lt/themes/Similitude06/theme.php on line 162
Parašė mXt· 2008 Sau. 15 17:01:41
#16
team parašė:
".$info['kategorija']."
Ši koda iterp belekur
Sitas nuzude :D
Parašė Soo-2· 2008 Sau. 15 17:01:10
#17
tai ten reikia i news.php dar iterp, kiek darias tai man visa laika veikdavo
Parašė sniuff· 2008 Sau. 15 17:01:17
#18
PyccKuu, mano paimk ir įkelk :D
snox tai žinau, bet jis gal to nesupranta tai kam tu tai parašei neišvesdamas jo. Mano būde yra kitaip pagal ozz padaryta.
Redagavo sniuff· 2008 Sau. 15 17:01:05
Parašė Žmogus· 2008 Sau. 15 17:01:21
#19
Parse error: syntax error, unexpected ';' in /home/black/mg-styles.xz.lt/themes/Similitude06/theme.php on line 162
Whata hell? tai eilutė blogai, kur prirašyta tas info kategorija? :|
Parašė PyccKuu· 2008 Sau. 15 17:01:55
#20
KipshiuS parašė:
Prisegu. Shadovw ir snox kaip jūs išvedate: ".$info['kategorija']." jis nieko nereiškia jūsų parašymuose.
Stai kaip atrodo ?|
Redagavo MAnjack· 2008 Sau. 15 18:01:47
Parašė sniuff· 2008 Sau. 15 17:01:07
#21
Shadovw, jis nesmoka įkelti sudubliavo
function render_news($subject, $news, $info) {
Parašė Žmogus· 2008 Sau. 15 17:01:28
#22
KipshiuS parašė:
Shadovw, jis nesmoka įkelti sudubliavo
function render_news($subject, $news, $info) {
Aš ir taip galvoju :D
Parašė PyccKuu· 2008 Sau. 15 17:01:09
#23
Kipsiau help :( nieko nesigauna
Redagavo MAnjack· 2008 Sau. 15 18:01:14
Parašė Žmogus· 2008 Sau. 15 17:01:41
#24
Duok visą themes.php kuri dabar nudoji
Parašė PyccKuu· 2008 Sau. 15 17:01:50
#25
ShadoVw parašė:
Duok visą themes.php kuri dabar nudoji
<?php
/************************/
/* Theme Settings */
/************************/
$body_text = "#000000";
$body_bg = "#6aa311";
$theme_width = "100%";
$theme_width_l = "170";
$theme_width_r = "170";
echo "<script type='text/javascript' src='".THEME."js/menu.js'></script>";
function render_header($header_content) {
include THEME."locale/Lithuanian.php";
include LOCALE.LOCALESET."global.php";
global $theme_width,$settings;
echo "<table class='bodyline' cellSpacing='0' cellPadding='0' width='970' align='center' border='0'>";
echo "<tr><td><table title='".$settings[sitename]."' cellSpacing='0' cellPadding='0' width='100%' border='0'>";
echo "<tr><td height='110'><a href='".BASEDIR."index.php'><img border='0' src='".THEME."images/cellpic_bkg.jpg'></a></td>";
echo "</tr></table>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
echo "<tr><td><table width='100%' height='20' border='0' cellpadding='4' cellspacing='0' background='".THEME."images/cellpic_nav.gif'>";
echo "<td class='topnav' nowrap align=left><a href='".BASEDIR."index.php'><img src='".THEME."images/home.gif'></a> <img src='".THEME."images/menu_bar_div.gif'> ";
echo "<a href='".BASEDIR."forum/index.php'><img src='".THEME."images/forum.gif'></a> <img src='".THEME."images/menu_bar_div.gif'>";
//Account Code
if (iMEMBER) {
echo " <a href='".BASEDIR."edit_profile.php' id='account'><img src='".THEME."images/account.gif'></a><script type='text/javascript'>lkmenu_register('account');</script> <img src='".THEME."images/menu_bar_div.gif'> ";
echo "<div class='lkmenu_popup' id='account_menu' style='display:none'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_account.gif'><font class='block-title' align=>$subject ".$info['kategorija']."</font></td><center>User Options<a name='goto_account'></a></font>";
echo "</td></tr>";
echo "<tr><td><font class='lkmenu_text'>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>";
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>\n";
if (iADMIN) {
echo "<img src='".THEME."images/bullet.gif'> <a href='".ADMIN."index.php' class='side'>".$locale['083']."</a><br>\n";
}
echo "<img src='".THEME."images/bullet.gif'> <a href='".BASEDIR."index.php?logout=yes' class='side'>".$locale['084']."</a>\n";
echo "</td></tr></table></div>";
} else {
echo " <a href='".BASEDIR."register.php'><img src='".THEME."images/register.gif'></a> </font><img src='".THEME."images/menu_bar_div.gif'> ";
}
//Account Code End
echo "<a href='".BASEDIR."downloads.php'><img src='".THEME."images/downloads.gif'></a></font> <img src='".THEME."images/menu_bar_div.gif'> ";
//Search Code
echo "<a href='".BASEDIR."search.php' id='forumsearch'><img src='".THEME."images/search.gif'></a><script type='text/javascript'>lkmenu_register('forumsearch');</script> <img src='".THEME."images/menu_bar_div.gif'>";
echo "<div class='lkmenu_popup' id='forumtools_menu' style='display:none'></div>";
echo "<div class='lkmenu_popup' id='forumsearch_menu' style='display:none'>";
echo "<form action='".BASEDIR."search.php' method='post'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_search.gif'><font class='block-title'><center>Search Menu<a name='goto_forumsearch'></a></font>";
echo "</td></tr>";
echo "<tr><td width='370'><font class='lkmenu_text'>Search for Keywords:</font><hr>";
if ($stype == "") $stype = "f";
echo "<input type='text' name='stext' value='Enter search here...' class='lkmenu_input' style='width:375px' onBlur=\"if(this.value=='') this.value='Enter search here...';\" onFocus=\"if(this.value=='Enter search here...') this.value='';\" ><hr>";
echo "<input type='submit' name='search' value='".$locale['408']."' class='button'><br>";
echo "<input type='radio' name='stype' value='a'".($stype == "a" ? " checked" : "")."> ".$locale['402']."";
echo "<input type='radio' name='stype' value='n'".($stype == "n" ? " checked" : "")."> ".$locale['403']."";
echo "<input type='radio' name='stype' value='f'".($stype == "f" ? " checked" : "")."> ".$locale['404']."<br>";
echo "<input type='radio' name='stype' value='d'".($stype == "d" ? " checked" : "")."> ".$locale['405']."";
echo "<input type='radio' name='stype' value='w'".($stype == "w" ? " checked" : "")."> ".$locale['406']."";
echo "<input type='radio' name='stype' value='m'".($stype == "m" ? " checked" : "")."> ".$locale['407']."";
echo "</td></tr></table></form></div>";
//End Search Code
//Login Code
if (iMEMBER) {
echo " <a href='".BASEDIR."setuser.php?logout=yes'><img src='".THEME."images/logout.gif'></a></font>";
} else {
echo "<div class='lkmenu_popup' id='login_menu' style='display:none'>";
echo "<table cellpadding='4' cellspacing='0' border='0'>";
echo "<tr><td background='".THEME."images/cellpic_nav.gif' height='27'><img align='left' src='".THEME."images/icon_login.gif'><font class='block-title'><center>User Login<a name='goto_login'></a></font>";
echo "</td></tr>";
echo "<tr><td width='170'><font class='lkmenu_text'>";
echo"<form name='loginform' method='post' action='".FUSION_SELF."'>".$locale['061']."<br>";
echo "<input type='text' name='user_name' class='textbox' style='width:100px'><br>".$locale['062']."<br> ";
echo "<input type='password' name='user_pass' class='textbox' style='width:100px'><br>";
echo "<input type='checkbox' name='remember_me' value='y'>".$locale['063']."<br><br>";
echo "<input type='submit' name='login' value='".$locale['064']."' class='button'><br>";
echo "</form><hr>\n";
if ($settings['enable_registration']) {
echo "<img src='".THEME."images/bullet.gif'> ".$locale['065']."<br><br>\n";
}
echo "<img src='".THEME."images/bullet.gif'> ".$locale['066']."";
echo "</div></td></tr></table></form></div>";
}
//Login Code End
echo"<script type='text/javascript'>LKT_init();</script>";
echo"</td></tr></table>";
echo "<td class='topnav' valign='middle' align='right'>";
echo "<font class='date'>".ucwords(showdate($settings['subheaderdate'], time()))." ";
echo "</td></tr></table>";
echo "<table width='100%' cellpadding='2' bgcolor='#F9F9F9' cellspacing='0' border='0'>";
echo "<img src='".THEME."images/pixel.gif' width='100%' height='4'>";
}
/*******************************************************************/
/* Prašau gerbkite autorių nuorodas. */
/* NEIŠTRINKITE NUORUODŲ Į MŪSŲ SAITĄ. TAIP PAT IR PAVEIKSLĖLIŲ. */
/*******************************************************************/
function render_footer($license=false) {
global $theme_width,$settings,$locale;
echo "</td></tr></table>\n";
echo "<table cellSpacing='0' cellPadding='2' width='$theme_width' border='0'><tr>";
echo "<td align='center'><br>".stripslashes($settings['footer'])."<br></td>";
echo "<table cellSpacing='0' cellPadding='2' width='100%' border='0'>";
echo "<tr><td width='35%' class='topnav' align='center'><div align='left'> ";
if ($license == false) {
echo "Varikliukas: <a target='_blank' href='http://www.php-fusion.co.uk'><img src='".THEME."images/fusion.gif' title='PHP-Fusion' style='vertical-align:top;'></a>";
}
echo "</div></td>";
echo "<td width='20%' class='topnav' align='left'>";
echo "Theme by: <a target='_blank' href='http://www.wtfthemes.com'><img title='WTFTHEMES' src='".THEME."images/wtfthemes.gif' style='vertical-align:top;'></a></td>";
echo "<td width='35%' class='topnav' align='middle'><div align='right'>";
echo "<b>".$settings['counter']."</b></font> ".($settings['counter'] == 1 ? $locale['140']."\n" : $locale['141']."\n");
echo " </div></td></tr></table>";
}
$data2 = dbarray(dbquery("SELECT * FROM ".$db_prefix."news_cats WHERE news_cat_id='$news_cat'"));
function render_news($subject, $news, $info) {
global $locale;
echo "<table border='0' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo "<font class='news-title'>$subject".$info['kategorija']."</b></font></a></td>";
echo "</td></tr></table>";
echo "</td></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'> ";
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' alt='".$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' style='border: 1px solid #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td class='cat'><table border='0' cellpadding='0' cellspacing='0' width='100%'>";
echo "<tr><td align='left'>";
echo " <font class='news-title'>$subject</b></font></td>";
echo "<td align='right>";
echo "<img border='0' src='".THEME."images/div.gif'> ";
echo "</td></tr></table>";
echo "</td></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'>".($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' alt='".$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 width='100%' cellpadding='3' cellspacing='1' style='border: 1px solid #333333'>";
echo "<tr><td bgcolor='#D8D8D8' background='".THEME."images/cellpic1.gif' height='25'><font class='head-title'>$title</font></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
echo "<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 #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<font class='block-title'>$title</font>";
echo "</td></tr>";
echo "<tr><td bgcolor='#EFEFEF' 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 #333333' cellspacing='1' width='100%' cellpadding='3'><tr>";
echo "<td height='27' width='100%' background='".THEME."images/cellpic3.gif'>";
echo "<img align='left' 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 bgcolor='#EFEFEF' 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";
}
?>
Parašė PyccKuu· 2008 Sau. 15 18:01:14
#26
e nu padetikite prasau :(
Parašė bruzgis· 2008 Sau. 24 22:01:24
#28
kazkur nepridejai cat_id kintamojo :)
Parašė Soo-2· 2008 Sau. 24 22:01:41
#29
<a href='news_cats.php?cat_id=".$data2['news_cat_id']."'> va sita dedu.. išėmiau iš cha.lt temos
Parašė Soo-2· 2008 Sau. 25 10:01:49
#31
Nesamo gaunasi išvis.. rodo paveikliuka kategorijos o nera cellpice
užrašo kategorijos
---------------------------------------------------------------------
Kad ir isidejus Cha.lt tema idejus ta woo-2 kurta news.php ir news_cats.php meta toki užraša virs paneliu naujienu, o paneleje rašo naujienu nera (paspaudus ant kategorijos)
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
Redagavo Soo-2· 2008 Sau. 25 12:01:30
Parašė sniuff· 2008 Sau. 25 13:01:16
#32
Sonis, tai sunku pasiredaguoti truputį pagal savo ?
Parašė Soo-2· 2008 Sau. 25 13:01:57
#33
bandau, bet niekas nesigauna.. net nz ka tiksliai redaguoti..