Parašė cofi· 2010 Lap. 11 12:11:16
#1
IŠMOK DĖTI PAVEIKSLĖLIUS TARP [ frame] tagų!!!
Sveiki, susiduriau dar su 1 problemele. Stai cia paveikslelis kaip yra dbr.
O noreciau kad salia dar 1 paveikslelis prisidetu stai taip.
Tai va tokia mano problemele stai theme.php. Jej nesupratot tai noreciau kad cia man koki koduka ar dar ka parasytumet kad man tas paveikslelis ten isimestu :) Kur ira daug -------------------- sitokiu tai tarp tos vietos ten ira to pirmo paveikslelio kur login ir game info kodas.
<?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 $theme_width,$userdata,$settings,$locale,$data,$db_prefix,$lookup,$msg_count,$aidlink;
echo "<table align='center' cellpadding='0' cellspacing='0' class='paneles'>\n<tr>
<td align='right' width='510'>";
echo "</td>
<td align='right'valign='bottom' width='160'>";
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td>";
echo "</table>";
echo "</td>
<td align='right' width='110'>";
echo "</td>
</tr>
</table>";
---------------------------------------------------------------------------------------------------------------------
echo "<table align=center class='mainsite-border' align='left' width='500' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr align=left><td><div id='sub-nav'><div id='container'>";
echo "<div style='padding-left:90px;'>";
error_reporting(0);
$IP = array(
"<div style='padding-top:10px;'><font size=2>Login: </font>" => "78.58.83.53:2106" ,
"<div style='padding-left:0px;'><div style='padding-top:3px;'><font size=2>Game: </font>" => "78.58.83.53:7777",
); while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<font color='green'><font size=2>Online </font></font><br>");
fclose($fp);
}
else {
echo ("<font color='red'><font size=2>Offline</font></font><br>");
echo "</div>";
}
}
echo "</table></div>";
echo "</td>
<td align='center' width='100%'>";
echo "</td>
</tr>
</table>";
--------------------------------------------------------------------------------------------------------------------
//Content
echo "<table cellpadding='0' cellspacing='0' width='782' align='center' class='content'><tr>\n";
if (LEFT) { echo "<td class='side-border-left' valign='top' width='233'>".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' width='233'>".RIGHT."</td>"; }
echo "</tr>\n</table>\n";
//Footer
echo "<table cellpadding='0' cellspacing='0' align='center' width='782'>
<tr>
<td align='center' class='footer'>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' align='center' width='782'>
<tr>
<td align='left' class='footer2'>
</td>
</tr>
</table>\n";
echo "<table cellpadding='0' cellspacing='0' align='center' width='782'>
<tr>
<td align='left' class='footer3'>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left3'><img src='".THEME."images/blank.gif' width='14' height='27' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main3'><b><<$subject>></b>, parašė <a href='".BASEDIR."profile.php?lookup=".$info['user_id']."'><b>".$info['user_name']."</b></a>, data ".showdate("%y.%m.%d", $info['news_date']).", Komentarų: (".$info['news_comments']."), <a href='".BASEDIR."news.php?readmore=".$info['news_id']."'><b>Toliau...</b></a></td>";
echo "<td class='panel-right3'><img src='".THEME."images/blank.gif' width='14' height='27' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "<td class='main-body'><div style='width:100%;vertical-align:top;'>$news</div>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td align='left' class='infobar'></td>";
echo "</td></tr></table></div></td>";
echo "<td class='border-right3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'>";
echo "</td></tr><tr>";
echo "<td class='border-bleft3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain3'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left3'><img src='".THEME."images/blank.gif' width='14' height='27' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main3'>$subject</td>";
echo "<td class='panel-right3'><img src='".THEME."images/blank.gif' width='14' height='27' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "<td class='article-body'><div style='width:100%;vertical-align:top;'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div><br>";
echo "<div style='margin-top:5px'>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><br>";
echo "<td class='infobar2'>".articleposter($info," ·")."</td>";
echo "<td align='right' class='infobar2'>";
echo articleopts($info,"·").itemoptions("A",$info['article_id']);
echo "</td></tr></table></div></td>";
echo "<td class='border-right3'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "</tr><tr>";
echo "<td class='border-bleft3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain3'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright3'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function opentable($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
echo "<tr><td class='panel-left2'><img src='".THEME."images/blank.gif' width='14' height='27' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main2'>$title</td>";
echo "<td class='panel-right2'><img src='".THEME."images/blank.gif' width='14' height='27' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left2'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "<td class='reklama-body'><br>\n";
}
function closetable() {
echo "</td>";
echo "<td class='border-right2'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft2'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain2'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright2'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
function openside($title) {
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='13' height='27' alt='' style='display:block'></td>";
echo "<td width='100%' class='panel-main'>$title</td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='27' alt='' style='display:block'></td>";
echo "</tr></table>";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='border-left'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td>";
echo "<td class='side-body'><br>\n";
}
function closeside() {
global $panel_collapse;
if ($panel_collapse == true) { echo "</div>\n"; }
echo "</td>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='10' height='10' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='16' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='10' height='16' alt='' style='display:block'></td>";
echo "</tr></table><br>\n";
}
?>
nu o jej nesupratot dar kur tas kodas tai va jis gal susirasit jau tarp theme.php :D
echo "<table align=center class='mainsite-border' align='left' width='500' cellspacing='0' cellpadding='0'>
<tr><td class='outer-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr><td class='inner-border'>
<table align='center' width='100%' cellspacing='0' cellpadding='0'>
<tr align=left><td><div id='sub-nav'><div id='container'>";
echo "<div style='padding-left:90px;'>";
error_reporting(0);
$IP = array(
"<div style='padding-top:10px;'><font size=2>Login: </font>" => "78.58.83.53:2106" ,
"<div style='padding-left:0px;'><div style='padding-top:3px;'><font size=2>Game: </font>" => "78.58.83.53:7777",
); while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<font color='green'><font size=2>Online </font></font><br>");
fclose($fp);
}
else {
echo ("<font color='red'><font size=2>Offline</font></font><br>");
echo "</div>";
}
}
echo "</table></div>";
echo "</td>
<td align='center' width='100%'>";
echo "</td>
</tr>
</table>";
Ir Aciu isanksto nes zn kad jus vienintelei galit cia man pagelbeti :);)
Redagavo Deiviux.eu· 2010 Lap. 11 13:11:30
Parašė Edvinukas.T· 2010 Lap. 12 09:11:17
#2
Taigi nusipiešk navigacija :)
poto derink kodą kaip šita
//Nav linkai
echo"<tr>
<td>
<a href='".BASEDIR."index.php'><img id='id0_03' src='".THEME."images/header/nav/0_03.gif' width='299' height='41' alt='' border='0'/></a></td>
</tr>
<tr>
<td>
<a href='".BASEDIR."komanda.php'><img id='id0_04' src='".THEME."images/header/nav/0_04.gif' width='299' height='38' alt='' border='0'/></a></td>
</tr>
<tr>
<td>
<a href='".BASEDIR."forum/index.php'><img id='id0_05' src='".THEME."images/header/nav/0_05.gif' width='299' height='37' alt='' border='0'/></a></td>
</tr>
<tr>
<td>
<a href='".BASEDIR."index.php'><img id='id0_06' src='".THEME."images/header/nav/0_06.gif' width='299' height='36' alt='' border='0'/></a></td>
</tr>
<tr>
<td>
<a href='".BASEDIR."index.php'><img id='id0_07' src='".THEME."images/header/nav/0_07.gif' width='299' height='36' alt='' border='0'/></a></td>
</tr>
<tr>
<td>
<a href='".BASEDIR."contact.php'><img id='id0_08' src='".THEME."images/header/nav/0_08.gif' width='299' height='36' alt='' border='0'/></a></td>
</tr>
<tr>
Jai turi navigacija nusipiešes susikarpyk ir išdėstik į toki kodą kaip parodžiau. tada viskas bus ok :)
jei klystu mane pataisys :)
Redagavo Edvinukas.T· 2010 Lap. 12 09:11:30