Parašė -Donatas· 2012 Sau. 9 14:01:17
#1
Reikia pagalbos, įsikėliau theme, ir turiu tokią problemą, kai parašau naujieną, reikia būtinai paspausti plačiau, kad ją pamatyti, o aš norėčiau, kad ją rodytų iškarto. Gal galit kas paredaguoti?
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("THEME_BULLET", "<span class='bullet'>·</span>");
require_once INCLUDES."theme_functions_include.php";
function render_page($license = false) {
global $settings, $main_style, $locale, $mysql_queries_time;
//Header
echo "<table align='center' width='1200' height='240' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td rowspan='2' background='".THEME."images/head/head_01.png' width='63' height='49' alt=''></td>
<td rowspan='2'>
<a href='news.php'><img src='".THEME."images/head/head_02.png' width='109' height='49' alt=''></a></td>
<td rowspan='2'>
<a href='news.php'><img src='".THEME."images/head/head_03.png' width='115' height='49' alt=''></a></td>
<td rowspan='2'>
<a href='news.php'><img src='".THEME."images/head/head_04.png' width='115' height='49' alt=''></a></td>
<td rowspan='2'>
<a href='news.php'><img src='".THEME."images/head/head_05.png' width='115' height='49' alt=''></a></td>
<td rowspan='2'>
<a href='news.php'><img src='".THEME."images/head/head_06.png' width='115' height='49' alt=''></a></td>
<td rowspan='2'>
<a href='news.php'><img src='".THEME."images/head/head_07.png' width='114' height='49' alt=''></a></td>
<td rowspan='2'>
<a href='news.php'><img src='".THEME."images/head/head_08.png' width='113' height='49' alt=''></a></td>
<td background='".THEME."images/head/head_09.png' width='22' height='30' alt=''></td>
<td>
<input type='text' name='stext' class='paieska' style='height: 27px; width: 209px; border: 0px;' value='Paieškos žodis...' onclick=\"if(this.value=='Paieškos žodis...') this.value='';\" onblur=\"if(this.value=='') this.value='Paieškos žodis...'\" />
</td>
<td background='".THEME."images/head_11.png' width='110' height='30' alt='' align='left'>
<input type='submit' name='search' value='' class='paieskos_button' />
</td>
<tr>
<td colspan='3' background='".THEME."images/head/head_12.png' width='341' height='19' alt=''></td>
</tr>
<tr>
<td colspan='11' background='".THEME."images/head/head_13.png' width='1200' height='191' alt=''></td>
</tr>
</table>";
//Content
echo "<table cellpadding='0' align='center' cellspacing='0' width='1043' class='$main_style'>\n<tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "<table align='center' class='footeris' width='100%' border='0' cellspacing='0'>
<td style='padding-left: 10px;'>
<span style='font-family: arial; font-size: 11px; color: #fff;'>Dizainas: <a href='skype:blowmyhouse?chat' style='font-family: arial; font-size: 11px; color: #fff; text-decoration: none;'>Fanatikas</a>
<br>
<span style='font-family: arial; font-size: 11px; color: #fff;'>Kodas: <a href='skype:domantas880i?chat' style='font-family: arial; font-size: 11px; color: #fff; text-decoration: none;'>DomantasN.</a>
</td></tr>
</table>";
/*foreach ($mysql_queries_time as $query) {
echo $query[0]." QUERY: ".$query[1]."<br />";
}*/
}
/* New in v7.02 - render comments */
function render_comments($c_data, $c_info){
global $locale, $settings;
opentable($locale['c100']);
if (!empty($c_data)){
echo "<div class='comments floatfix'>\n";
$c_makepagenav = '';
if ($c_info['c_makepagenav'] !== FALSE) {
echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>".$c_info['c_makepagenav']."</div>\n";
}
foreach($c_data as $data) {
$comm_count = "<a href='".FUSION_REQUEST."#c".$data['comment_id']."' id='c".$data['comment_id']."' name='c".$data['comment_id']."'>#".$data['i']."</a>";
echo "<div class='tbl2 clearfix floatfix'>\n";
if ($settings['comments_avatar'] == "1") { echo "<span class='comment-avatar'>".$data['user_avatar']."</span>\n"; }
echo "<span style='float:right' class='comment_actions'>".$comm_count."\n</span>\n";
echo "<span class='comment-name'>".$data['comment_name']."</span>\n<br />\n";
echo "<span class='small'>".$data['comment_datestamp']."</span>\n";
if ($data['edit_dell'] !== false) { echo "<br />\n<span class='comment_actions'>".$data['edit_dell']."\n</span>\n"; }
echo "</div>\n<div class='tbl1 comment_message'>".$data['comment_message']."</div>\n";
}
echo $c_makepagenav;
if ($c_info['admin_link'] !== FALSE) {
echo "<div style='float:right' class='comment_admin'>".$c_info['admin_link']."</div>\n";
}
echo "</div>\n";
} else {
echo $locale['c101']."\n";
}
closetable();
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='793'>\n<tr>\n";
echo "<td class='capmain' align='center'>".$subject."</td>\n";
echo "<td class='capmain-right'> <a href='".BASEDIR."news.php?readmore=".$info['news_id']."' style='font-family: arial; font-size; 11px; color: #996633;'>Skaityti Daugiau</a></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='793'>\n<tr>\n";
echo "<tr><td class='info'> <align='right' style='padding-right: 10px;'>Data: ".showdate("shortdate", $info['news_date'])."
<align='center' style='padding-center: 10px;'><span style='font-family: arial; font-size; 11px; color: #5e5e5e;'>Parašė:</span> <a href='profile.php?lookup=".$info['user_id']."' style='font-family: arial; font-size; 11px; color: #5e5e5e; text-decoration: none;'>".$info['user_name']."</a></tr></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='793' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
echo "</td>\n";
echo "<td class='main-body middle-border'>".$info['cat_image'].$news."</td>\n";
echo "</tr>\n<tr>\n";
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td class='news-footer'>\n";
echo "</tr>\n</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='794' cellpadding='0' cellspacing='0'>\n<tr>\n";
echo "<td class='capmain-left'></td>\n";
echo "<td class='capmain' align='center'>".$subject."</td>\n";
echo "<td class='capmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table width='794' 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," ·").articlecat($info," ·").articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td>\n</tr>\n</table>\n";
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='794'>\n<tr>\n";
echo "<td class='opentable' align='center'>".$title."</td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='794' class='spacer'>\n<tr>\n";
echo "<td class='main-body'>\n";
}
function closetable() {
echo "</td>\n";
echo "</tr><tr>\n";
echo "<td class='news-footer'>\n";
echo "</tr>\n</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='scapmain-left'></td>\n";
echo "<td class='scapmain' align='center'>".$title."</td>\n";
if ($collapse == true) {
$boxname = str_replace(" ", "", $title);
echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
}
echo "<td class='scapmain-right'></td>\n";
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
echo "<td class='side-body'>\n";
if ($collapse == true) { echo panelstate($state, $boxname); }
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>\n</tr>\n</table>\n";
}
?>