Parašė Haked· 2008 Lie. 6 23:07:40
#1
reikia pagalbos su tema noriu kad apacioje butu img kaip tai padaryti?
Nu tipo, kad ten už naujienų pačiam gale....
Stai theme.php:
<?php
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$body_bg = "#006600";
$theme_width = "55%";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width'
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>$header_content</td>
</tr>
</table>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%' style='border:0px;'>\n<tr>
<td align='center' class='sub-header' width='100%' valign='middle'>
<center>
<a href='http://www.pk.gan.lt/news.php'><img src='".THEME."images/1.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/11.gif' onMouseOut=this.src='".THEME."images/1.gif'></a>
<a href='http://www.pk.gan.lt/viewpage.php?page_id=3'><img src='".THEME."images/2.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/22.gif' onMouseOut=this.src='".THEME."images/2.gif'></a>
<a href='http://www.pk.gan.lt/viewpage.php?page_id=4'><img src='".THEME."images/3.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/33.gif' onMouseOut=this.src='".THEME."images/3.gif'></a>
<a href='http://www.pk.gan.lt/viewpage.php?page_id=5'><img src='".THEME."images/4.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/44.gif' onMouseOut=this.src='".THEME."images/4.gif'></a>
<a href='http://www.pk.gan.lt/infusions/guestbook/guestbook.php'><img src='".THEME."images/6.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/66.gif' onMouseOut=this.src='".THEME."images/6.gif'></a>
<a href='http://www.pk.gan.lt/viewpage.php?page_id=6'><img src='".THEME."images/5.gif' width='141' height='44' border='0' onMouseOver=this.src='".THEME."images/55.gif' onMouseOut=this.src='".THEME."images/5.gif'></a>
<center />
</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$settings;
echo "</tr>\n</table>\n";
echo "<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td align='center' class='footer'><br><br>
</td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "
<table cellpadding='0' align='center' cellspacing='0' width='545'>
<tr>
<td class='capmain' align='center'><span style='font-size : 10px;font-weight :
normal;color:#B2B2B2;'></br></span><a name='news_1'
id='news_1'></a>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<form name='editnews1' method='post' action='administration/news.php&news_id=".$info['news_id']."'>
<td align='center' class='news-footer'></a>
</form>
</tr>
</table><br><br>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>
".($info['article_breaks'] == "y" ? nl2br($article) : $article)."
</td>
</tr>
<tr>
<td align='center' class='news-footer'>\n";
echo openform("A",$info['article_id']).articleposter($info," ·").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table align='center' cellpadding='0' cellspacing='0' width='545'>
<tr>
<td align='center' class='side-center'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closetable() {
echo "</td>
<tr><td><img src='".THEME."images/apacia.gif'></td></tr>
</tr>
</table>\n";
}
function openside($title) {
echo "<table align='center' cellpadding='0' cellspacing='0' width='188'>
<tr>
<td align='center' class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "<tr><td><img src='".THEME."images/apacia2.gif'></td></tr>
</tr>
</table>\n";
tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='100%' class='border'>
<tr>
<td class='scapmain'>$title</td>
<td class='scapmain' align='right'>".panelbutton($state,$boxname)."</td>
</tr>
<tr>
<td colspan='2' class='side-body'>
<div id='box_$boxname'".($state=="off"?" style='display:none'":"").">\n";
}
function closesidex() {
echo "</div>
</td>
</tr>
</table>\n";
tablebreak();
}
function tablebreak() {
echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n<td height='5'></td>\n</tr>\n</table>\n";
}
?>
Parašė Dandžu· 2008 Lie. 7 07:07:18
#4
Tai, kad footer'is yra tik tekstą tegul įrašo.
Parašė Dandžu· 2008 Lie. 7 07:07:58
#6
Ai nu kai jis ateis tegul ir pasako ko nori nes iš jo to pasakojimo tai nieko nesuprasti.