<?php
/************************************************************/
/*			            RUNCMS                     */
/*                                                          */
/* Reliable - Unique - Nocost &  Simplicity & ease off use  */
/*             < http://www.runcms.org >                    */
/************************************************************/
/************************************************************/
/* THEME NAME:  slickgreen-fd  v1.                          */
/* THEME DEVELOPER: FARSUS (http://www.farsus.dk)           */
/* THEME Details: For RUNCMS 1.0  - 20-june-2004            */
/* License Type   :   Propretary                            */
/************************************************************/

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

function themeheader($show_rblock=0) {
global $xoopsConfig, $xoopsUser, $meta;
?>
</head><body background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/bg052004.gif"><?php OpenWaitBox();?>
<table width="900" border="0" align="center" cellspacing="0" cellpadding="0"background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/bg_hvid.gif"><tr><td>
<table  border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table1" height="110"><tr>
<td  class="head" rowspan="2" width="250" height="140">
<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></td>
<td class=tmenu colspan="3"><hr><center>&nbsp;&nbsp;<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 id="topmenu" align="right">|&nbsp;&nbsp;<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 id="topmenu"  align="right">|&nbsp;&nbsp;<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 id="topmenu" align="right">|&nbsp;&nbsp;<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 id="topmenu" align="right">|&nbsp;&nbsp;<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 id="topmenu" align="right">|&nbsp;&nbsp;<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 id="topmenu"  align="right">|&nbsp;&nbsp;<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 id="topmenu"  align="right">|&nbsp;&nbsp;<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>
</center> <hr></td></tr><tr><td border="0" width="82" height="60">&nbsp; </td><td border="0" width="468" height="60"><?php showbanner();?></td><td border="0" width="100" height="60">&nbsp;</td>
</tr></table><table width="100%" border="0" align="center" cellspacing="0" cellpadding="0"><tr><td colspan="2" align="center" valign="bottom"><table border="0" cellpadding="0" cellspacing="0"><tr class="topmenu">
</tr></table></td></tr><tr><td  width="100%" class="loginbar1" border="0" cellpadding="0" cellspacing="0" align="left" valign="bottom">
</td></td></tr></table><table width="100%" border="0" align="center" cellpadding="3" cellspacing="0"><tr><td id="leftblocks" name="leftblocks" align="left" valign="top" class="sidebar1">
<?php make_sidebar("left");?></td><td align="center" valign="top" width="100%"><table class="sidboxtitle" width="100%" border="0" cellpadding="0" cellspacing="0"  background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/bg_hvid.gif"><tr>
</tr></table><?php } function themefooter($show_rblock=0, $footer='') { ?><br /></td><td id="rightblocks" name="rightblocks" align="right" valign="top" class="sidebar2"><?php make_sidebar("right");?></td></tr><tr>
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/bg_hvid.gif" colspan="3" class="footer"><?php echo $footer;?>
<a><font color="#990000">Design By <a href="http://www.farsus.dk" style="text-decoration: none"><font color="#990000" >Farsus</font></a>
</td></tr></table></td></tr></table><?php } function themesidebox_left($title='', $content) { ?><table width="165" border="0" cellpadding="0" cellspacing="0"><tr class="bg1"><td><div class="leftsidboxtitle"><?php echo $title;?></div></td>
</tr><tr><td class="leftsideboxcontent"><?php echo $content;?></td></tr></table><br /><?php } function themesidebox_right($title='', $content) { ?>
<table width="165" border="0" cellpadding="0" cellspacing="0"><tr class="bg1"><td ><div class="rightsidboxtitle"><?php echo $title;?></div></td>
</tr><tr><td class="rightsideboxcontent"><?php echo $content;?></td></tr></table><br /><?php } function themecenterbox_left($title='', $content) { ?><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td><span class="centerblocktitle"><?php echo $title;?></span><hr /></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><hr /><span class="centerblocktitle"><center><?php echo $title;?></center></span><hr /></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><span class="centerblocktitle"><?php echo $title;?></span><hr /></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"><hr /><td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/bg_hvid.gif"><div class="newsindextitle"><?php echo $title;?></div><hr /></td>
</tr><tr><td class="indextable2"><span class="postedby"><?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="center"><?php echo $adminlink;?> <?php echo $morelink;?></div></td></tr></table><br />
<?php } function themecenterposts($title='', $content) { ?> <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr>
<td background="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/bg_hvid.gif"><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 width="150" 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);	
		
}

?>