<?php
/************************************************************/
/*                      RUNCMS                              */
/*                                                          */
/* Reliable - Unique - Nocost &  Simplicity & ease of use   */
/*             < http://www.runcms.org >                    */
/************************************************************/
/************************************************************/
/* THEME NAME:  skyhigh-fd  v1.                             */
/* THEME DEVELOPER: FARSUS (http://www.farsus.dk)           */
/* THEME Details: For RUNCMS 1.0  - 01-june-2004            */
/* THEME Revison : 1.2                                      */
/* THEME Last change date: 12-june-2004                     */ 
/* License Type   :   LGPL                                  */
/************************************************************/

// Change to the foldername of your theme
define("XOOPS_THEME", "skyhigh-fd");

function themeheader($show_rblock=0) {
global $xoopsConfig, $xoopsUser, $meta;
?>
</head><body>
<?php OpenWaitBox();?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center"><tr>
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/midt.jpg" width="100%" height="115" colspan="2">
<a href="<?php echo XOOPS_URL.'/';?>"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/logo.gif" alt="<?php echo $meta['slogan'];?>" width="237" height="110" border="0" align="left" /></a>
<br /><div align="center"><?php showbanner();?></div></TD></tr>
<tr><tr><td height="1" colspan="2" bgcolor="#FF4242"></td></tr>
<tr><td height="21" colspan="2" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif" width="100%">
<p align="center">
<b><a class="tmenu" id="topmenu" align="center" ><nobr><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK1;?>"><?php echo _TH_LINKN1;?></a><img name="spacer" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/spacer.gif" width="5" height="14" border="0" /></nobr>
<a class="tmenu" id="topmenu" align="right"><nobr><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK2;?>"><?php echo _TH_LINKN2;?></a><img name="spacer" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/spacer.gif" width="5" height="14" border="0" /></nobr></a>
<a class="tmenu" id="topmenu"  align="right"><nobr><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK3;?>"><?php echo _TH_LINKN3;?></a><img name="spacer" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/spacer.gif" width="5" height="14" border="0" /></nobr></a> 
<a class="tmenu" id="topmenu" align="right"><nobr><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK4;?>"><?php echo _TH_LINKN4;?></a><img name="spacer" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/spacer.gif" width="5" height="14" border="0" /></nobr></a>
<a class="tmenu" id="topmenu" align="right"><nobr><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK5;?>"><?php echo _TH_LINKN5;?></a><img name="spacer" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/spacer.gif" width="5" height="14" border="0" /></nobr></a>
<a class="tmenu" id="topmenu" align="right"><nobr><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK6;?>"><?php echo _TH_LINKN6;?></a><img name="spacer" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/spacer.gif" width="5" height="14" border="0" /></nobr></a>
<a class="tmenu" id="topmenu"  align="right"><nobr><a target="_blank" href="<?php echo _TH_LINK7;?>"><?php echo _TH_LINKN7;?></a><img name="spacer" src="<?php echo XOOPS_URL;?>/themes/<?php echo XOOPS_THEME;?>/images/spacer.gif" width="5" height="14" border="0" /></nobr></a>
<a class="tmenu" id="topmenu"  align="right"><nobr><a target="_blank" href="<?php echo _TH_LINK8;?>"><?php echo _TH_LINKN8;?></a><img name="spacer" src="<?php echo XOOPS_URL;?>/themes/<?php echo XOOPS_THEME;?>/images/spacer.gif" width="5" height="14" border="0" /></nobr></a></b>
</td></tr><tr><td height="3" colspan="2"></td></tr></table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr><td bgcolor="#FF4242"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr>
<td bgcolor="#477391"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr>
<td bgcolor="#7EA6C2"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><?php if ($xoopsUser) { ?>
<td height="22" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
&nbsp; <?php printf(_TH_WELCOME_BACK, $xoopsUser->uname());?></td><?php } else { ?>
<form action="<?php echo XOOPS_URL;?>/user.php" method="post">
<td width="26" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
&nbsp;<img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/pic_user.gif" />
</td><td width="10" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
<input type="text" class="login" size="10" name="uname" /></td>
<td width=25 background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
&nbsp;<img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/pic_key.gif" /></td>
<td width="10" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
<input type="password" class="login" size="10" name="pass" />
</td><td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
<input type="hidden" name="op" value="login" />
&nbsp;<input type="image" class="image" name="submit" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/login.gif" alt="<?php echo _TH_LOGIN;?>" />
</td></form><?php } ;?>
<td align="middle" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
&nbsp;<img align="middle" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/up_nav_raz.gif" width="2" height="22" />&nbsp;&nbsp;&nbsp;&nbsp;
<img align="middle" src="<?php echo XOOPS_URL;?>/images/language/german.gif" alt="Übersetzen" border="0" onclick="window.open('http://translate.google.com/translate?hl=de&u=' + document.URL);" style="cursor: hand;" />
<img align="middle" src="<?php echo XOOPS_URL;?>/images/language/french.gif" alt="Traduisez" border="0" onclick="window.open('http://translate.google.com/translate?hl=fr&u=' + document.URL);" style="cursor: hand;" />
<img align="middle" src="<?php echo XOOPS_URL;?>/images/language/italian.gif" alt="Traduca" border="0" onclick="window.open('http://translate.google.com/translate?hl=it&u=' + document.URL);" style="cursor: hand;" />
<img align="middle" src="<?php echo XOOPS_URL;?>/images/language/spanish.gif" alt="Traduzca" border="0" onclick="window.open('http://translate.google.com/translate?hl=es&u=' + document.URL);" style="cursor: hand;" />
<img align="middle" src="<?php echo XOOPS_URL;?>/images/language/portuguese.gif" alt="Traduza" border="0" onclick="window.open('http://translate.google.com/translate?hl=pt&u=' + document.URL);" style="cursor: hand;" />
&nbsp;&nbsp;&nbsp;&nbsp;<img align="middle" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/up_nav_raz.gif" width="2" height="22" />
&nbsp;</td>
<form id="pagesearch" action="<?php echo XOOPS_URL;?>/search.php" method="post">
<td align="right" valign="middle" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
<img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/find.gif" alt="<?php echo _TH_SEARCH;?>" width="40" height="16" align=middle style="cursor: hand;" onclick="xoopsGetElementById('pagesearch').submit();" />&nbsp;
</td><td width="110" align="right" valign="middle" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
<input type="text" class="login" name="query" size="27" /><input type="hidden" name="action" value="results" />&nbsp;</td></form>
</tr><tr><td bgcolor="#477391"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#19364A"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#FF4242"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr></table><table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#ffffff"><tr>
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/bg_center.gif" id="leftblocks" name="leftblocks" align="left" valign="top" class="sidebar1">
<?php make_sidebar("left");?></td>
<td align="center" valign="top" width="100%"  background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/bg_center.gif">
<?php
}
function themefooter($show_rblock=0, $footer='') {
?>
<td style="display:block" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/bg_center.gif" id="rightblocks" name="rightblocks" align="right" valign="top" class="sidebar2">
<?php make_sidebar("right");?>
</td></tr>
</table><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center"><tr>
<td bgcolor="#FF4242"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#477391"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#7EA6C2"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td height="22" align="center" background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif" class="footer"><a href="http://www.runcms.org" target="_blank"><div color="#ff4242" style="cursor: hand;" />RUNCMS © 2004</div></td>
</tr><tr><td bgcolor="#FF4242"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#19364A"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#FFFFFF"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#BDD4E4"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr></table><table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" ><tr>
<td class="footer"><?php echo $footer;?><center>Design By <a href="http://www.farsus.dk" style="text-decoration: none">Farsus</a>
</center></td><tr>
<td bgcolor="#FF4242"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr></tr></table></td></tr></table>
<?php
}
function themesidebox_left($title='', $content) {
?>
<table width="160" border="0" cellpadding="0" cellspacing="0"><tr class="bg1"><tr>
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
<div class="leftsidboxtitle"><?php echo $title;?></div></td>
</tr><tr><td bgcolor="#FF4242"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#477391"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#7EA6C2"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td class="leftsideboxcontent"><?php echo $content;?></td></tr></table><br />
<?php
}
function themesidebox_right($title='', $content) {
?>
<table width="160" border="0" cellpadding="0" cellspacing="0"><tr class="bg1"><tr>
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif"><div class="leftsidboxtitle"><?php echo $title;?></div></td>
</tr><tr><td bgcolor="#FF4242"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#477391"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#7EA6C2"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td class="leftsideboxcontent"><?php echo $content;?></td></tr></table><br />
<?php
}
function themecenterbox_left($title='', $content) {
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
<span class="centerblocktitle"><?php echo $title;?></span><br><br></td>
</tr><tr><td bgcolor="#FF4242"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#477391"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#7EA6C2"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td><?php echo $content;?></td></tr></table><br />
<?php
}
function themecenterbox_center($title='', $content) {
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
<span class="centerblocktitle"><?php echo $title;?></span><br><br></td>
</tr><tr><td bgcolor="#FF4242"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#477391"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#7EA6C2"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td><?php echo $content;?></td></tr></table><br />
<?php
}
function themecenterbox_right($title='', $content) {
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif">
<span class="centerblocktitle"><?php echo $title;?></span><br><br></td>
</tr><tr><td bgcolor="#FF4242"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#477391"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#7EA6C2"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td><?php echo $content;?></td></tr></table><br />
<?php
}
function themenews(
			$poster,
			$time,
			$title,
			$counter,
			$thetext,
			$timglink,
			$adminlink,
			$morelink=''
			) {
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr class="bg1">
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/top2.gif"><div class="indextitle"><?php echo $title;?></div></td>
</tr><tr><td bgcolor="#FF4242"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#477391"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td bgcolor="#7EA6C2"  colspan="8"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/0.gif" width="1" height="1" border="0" /></td>
</tr><tr><td class="indextable2">
<span class="postedby"><img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/arrow_right.gif" /> <?php echo _TH_POSTEDBY;?> <?php echo $poster;?> <?php echo _TH_ON;?> <?php echo $time;?> (<?php echo $counter;?> <?php echo _TH_READS;?>)</span>
<div class="indextext"><p><?php echo $timglink;?> <?php echo $thetext;?></p>
</div></td></tr><tr><td class="bg1"><div class="more" align="right"><?php echo $adminlink;?> <?php echo $morelink;?></div></td>
</tr></table>
<?php
}
function themecenterposts($title='', $content) {
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
<td><div class="indextitle"><?php echo $title;?></div></td></tr><tr>
<td class="indextable"><div class="indextext"><p><?php echo $content;?></p>
</div></td></tr></table><br /> 
<?php
}
function theme_post(
			$subject,
			$text,
			$color_number='',
			$subject_image='',
			$post_date='',
			$ip_image='',
			$reply_image='',
			$edit_image='',
			$delete_image='',
			$username='',
			$rank_title='',
			$rank_image='',
			$avatar_image='',
			$reg_date='',
			$posts='',
			$user_from='',
			$online_image='',
			$profile_image='',
			$pm_image='',
			$email_image='',
			$www_image='',
			$icq_image='',
			$aim_image='',
			$yim_image='',
			$msnm_image=''
			) {

if ($color_number == 1) {
	$bg1 = 'bg1';
	$bg2 = 'bg3';
	} else {
		$bg1 = 'bg3';
		$bg2 = 'bg1';
	}
?>
<br />
<table border="0" cellpadding="0" cellspacing="0" align="center" valign="top" width="100%"><tr>
<td class="bg2"><table border="0" cellpadding="4" cellspacing="1" width="100%"><tr class="<?php echo $bg2;?>" align="left">
<td width="110" valign="absmiddle"><b><?php echo $username;?></b></td>
<td valign="absmiddle"><?php echo $subject_image;?> <b><?php echo $subject;?></b></td>
</tr><tr class="<?php echo $bg1;?>" align="left">
<td width="110" valign="top">
<?php echo $rank_image;?><br />
<?php echo $rank_title;?><br /><br />
<div align="center"><?php echo $avatar_image;?></div><br />
<div style="border: 1px solid #ECECEC; padding: 2px 2px 2px 2px;" class="<?php echo $bg2;?>">
<?php echo $reg_date;?><br />
<?php echo $posts;?><br />
<?php echo $user_from;?>
</div><br /><br />
<?php echo $online_image;?>
<img width="110" height="1" src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/pixel.gif">
</td><td valign="top">
<table width="100%" border="0"><tr>
<td align="right" valign="absmiddle"><?php echo $ip_image;?> <?php echo $delete_image;?> <?php echo $edit_image;?> <?php echo $reply_image;?></td>
</tr><tr><td><?php echo $text;?></td></tr></table></td>
</tr><tr class="<?php echo $bg2;?>" align="left">
<td width="110" nowrap><b>&raquo;</b><?php echo $post_date;?></td>
<td valign="absmiddle"><?php echo $profile_image;?> <?php echo $pm_image;?> <?php echo $email_image;?> <?php echo $www_image;?> <?php echo $icq_image;?> <?php echo $aim_image;?> <?php echo $yim_image;?> <?php echo $msnm_image;?></td>
</tr></table></td></tr></table>
<?php
}
function theme_waitbox() {
?>
<table cellpadding="3" cellspacing="3" class="waitbox"><tr>
<td align="center">
<b><big><?php echo _TH_LOADING;?></big></b><br />
<img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/await.gif" alt="" />
<br /><?php echo _TH_PLEASEWAIT;?></td></tr>
</table>
<?php
}
function OpenTable($width='100%') {
?>
<table width="<?php echo $width;?>" border="0" cellspacing="1" cellpadding="0"><tr class="bg2">
<td valign="top">
<table width="100%" border="0" cellspacing="1" cellpadding="8"><tr class="bg1">
<td valign="top">
<?php
}
function CloseTable() {
?>
</td></tr></table></td></tr></table>
<?php
}

/**************************************************************************/
/* themebox_template Functions                                            */
/*                                                                        */
/* The look of certain blocks customized with templates                   */
/*                                                                        */
/**************************************************************************/
function themebox_template($title='', $content, $show_template) {

$dir  =   XOOPS_ROOT_PATH."/themes/".XOOPS_THEME."/template/";
include($dir.$show_template);	
		
}

?>
