Parašė w0rm· 2009 Lie. 10 04:07:31
#3
Idekit sita koduka i theme.php
Noriu kad ties ta linija (ant juodos linijos) butu migtukai, paskui juos nusipiesiu....
Paceiksliukas:
Kodukas:
<tr>
<td width=\"987\">
<img src=\"".THEME."images/header.png\" border=\"0\" width=\"800\" height=\"319\" alt=\"\" usemap=\"#menu\" />
<map name=\"menu\">
<area shape=\"circ\" coords=\"64,23,50\" href=\"".BASEDIR."index.php\" />
<area shape=\"circ\" coords=\"175,21,55\" href=\"".BASEDIR."forum/index.php\" />
<area shape=\"circ\" coords=\"415,24,52\" href=\"".BASEDIR."downloads.php\" />
<area shape=\"circ\" coords=\"531,24,54\" href=\"".BASEDIR."search.php\" />
</map>
</td>
</tr>
Theme.php
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#D7D7D7";
$body_bg = "#525252";
$theme_width = "804";
$theme_width_l = "140";
$theme_width_r = "140";
function render_header($header_content) {
global $theme_width,$aidlink,$userdata,$msg_count,$settings,$db_prefix,$uidlink,$result;
echo "<table align='center' cellspacing='0' cellpadding='0' width='$theme_width' class='outer-border'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td>
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td class='full-header'></td>
</tr>
</table>
</td>
</tr>
</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%' class='footer'>
<tr>
<td align='left' width='200' style='padding-left: 30px;'>Code: DeeJay</td>
<td align='center' style='padding-center: 150px;'>".stripslashes($settings['footer'])."
<td align='right' width='200' style='padding-right: 30px;'>Engine: <a href='http://php-fusion.co.uk/'>PHP-Fusion</a></td>
</tr>
</table>
</td>
</tr>
</table><br>\n";
}
function render_news($subject, $news, $info) {
echo "<table cellpadding='0' cellspacing='0' width='596'>
<tr>
<td class='capmain'>$subject</td>
</tr>
<tr>
<td class='main-body'>$news</td>
</tr>
<tr>
<td align='left' class='news-footer'>\n";
echo openform("N",$info['news_id']).newsposter($info," ·").newsopts($info,"·");
echo "</td>
</tr>
</table>\n";
tablebreak();tablebreak();
}
function render_article($subject, $article, $info) {
echo "<table width='536' 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";
tablebreak();tablebreak();
}
function opentable($title) {
echo "<table cellpadding='0' cellspacing='0' width='596'>
<tr>
<td class='capmain'>$title</td>
</tr>
<tr>
<td class='main-body'>\n";
}
function closetable() {
echo "</td>
</tr><tr>
<td align='center' class='news-footer'></td></tr>
</table>\n";
tablebreak();tablebreak();
}
function openside($title) {
echo "</center><table cellpadding='0' cellspacing='0' width='186' class='border'>
<tr>
<td class='scapmain'>$title</td>
</tr>
<tr>
<td class='side-body'></center>\n";
}
function closeside() {
echo "</td>
</tr><tr>
<td align='center' class='a-footer'></td></tr>
</table>\n";
tablebreak();tablebreak();tablebreak();tablebreak();
}
function opensidex($title,$state="on") {
$boxname = str_replace(" ", "", $title);
echo "<table cellpadding='0' cellspacing='0' width='596' 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";
}
?>
Aciu, nes nlb suprantru kur ji grusti :(
Redagavo w0rm· 2009 Lie. 10 14:07:26