<?PHP
include("themes/$THEME_FOLDER/header.php");
?>
<table width="100%" border="0" cellspacing="2">
<tr>
<td valign="top">
<div style="padding-left:25px;padding-right:25px;">
<?PHP if($sxSetup['ShowSearch']){ ?>
<div align="center">
<!--
*******************
SEARCH OPTIONS: configure $sxThemeConfig['ShowSearchType'] in config.php.inc
*******************
-->
<!-- SHOW SEARCH TYPE 1 - search with pull-down selector: this site/google.com -->
<?PHP if($sxSetup['ShowSearch'] AND $sxThemeConfig['ShowSearchType']== 1) { ?>
<form action="<?PHP echo $PHP_SELF; ?>" method="post" name="sxSearch">
<strong><?PHP echo $sxLang['HomepageSearch']; ?></strong>
<input name="search_text" style="width:113px;" type="text" value="" />
<select style="width:113px;" name="search_type">
<option value="site"><?PHP echo $sxLang['HomepageSearchSite']; ?></option>
<option value="google"><?PHP echo $sxLang['HomepageSearchGoogle']; ?></option>
</select>
<input name="Search" type="submit" value="<?PHP echo $sxLang['ButtonFind']; ?>" class="sxButton"/>
</form>
<?PHP } ?>
<!-- END SHOW SEARCH -->
<!-- SHOW SEARCH TYPE 2 - search with traditional text input and button -->
<?PHP if($sxSetup['ShowSearch'] AND $sxThemeConfig['ShowSearchType']== 2){ ?>
<form action="<?PHP echo $PHP_SELF; ?>" method="post" name="sxSearch" style="margin: 0px; padding: 0px;">
<strong><?PHP echo $sxLang['HomepageSearch']; ?></strong>
<input name="search_text" style="width: 113px;" type="text" />
<input name="Search" type="submit" value="<?PHP echo $sxLang['ButtonFind']; ?>" class="sxButton"/>
</form>
<?PHP } ?>
<!-- END SHOW SEARCH -->
<!-- SHOW SEARCH TYPE 3 - search with text input only -->
<?PHP if($sxSetup['ShowSearch'] AND $sxThemeConfig['ShowSearchType']== 3){ ?>
<form action="<?PHP echo $PHP_SELF; ?>" method="post" name="sxSearch" style="margin: 0px; padding: 0px;">
<strong><?PHP echo $sxLang['HomepageSearch']; ?></strong>
<input name="search_text" style="width: 113px;" type="text" />
</form>
<?PHP } ?>
<!-- END SHOW SEARCH -->
</div>
<?PHP } ?>
<?PHP echoMessage($message); ?>
<?PHP echo parseSpecial($sxSetup['TextWelcome']); ?>
<?PHP if((userAdmin()) OR ((userEditor()) AND ($sxSetup['EditorRightsHomepageOptions'])))
echo '<div class="journalAdd"><a href="admin/home_manager.php">' .$sxLang['ButtonEdit'] . '</a></div>';
?>
<?PHP if(componentActive(1) AND $sxSetup['JournalHomeCount']){ ?>
<br /><br /><strong><?PHP echo getComponentName("1"); ?></strong><br /><br />
<?PHP echoCurrentJournal($sxSetup['JournalHomeCount'], $sxThemeConfig['HomepageJournalStringLimit']); ?>
<br /><br /><?PHP } ?>
<?PHP if(($sxSetup['ShowLogin'])AND(!loggedIn())){ ?>
<table class="sxTdTableRow" border="0" cellpadding="5" cellspacing="2">
<tr>
<td><p><strong><?PHP echo $sxLang['UserHeadingLogin']; ?></strong></p><br /><br /><br /><p>
<a class="loginBoxLinks" href="<?PHP echo $sxSetup['Url'].'/'; ?>password.php"><?PHP echo $sxLang['UserButtonPassword']; ?></a>
<?PHP if($sxSetup['AllowSignup']) { ?> <br /><a class="loginBoxLinks" href="signup.php"><?PHP echo $sxLang['UserButtonSignup']; ?></a>
<?PHP } ?> </p></td>
<td>
<form action="<?PHP echo "http://{$HTTP_HOST}{$REQUEST_URI}"; ?>" method="post" enctype="multipart/form-data" name="sxLogin">
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td align="right"><?PHP echo $sxLang['UserItemUsername']; ?>:</td>
<td><input class="login" name="username" type="text" maxlength="35" /></td>
</tr>
<tr>
<td align="right"><?PHP echo $sxLang['UserItemPassword']; ?>:</td>
<td><input class="login" name="password" type="password" maxlength="35" /></td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="submit" name="Login" value="<?PHP echo $sxLang['UserButtonLogin']; ?>" class="sxButton"/>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table><?PHP } ?></div>
</td>
<?PHP
if ((sxShowHomepageComponent('Calendar')) OR
(sxShowHomepageComponent('Photos')) OR
(sxShowHomepageComponent('Polls')) OR
(sxShowHomepageComponent('Forums')) OR
(sxShowHomepageComponent('Events')) OR
(sxShowHomepageComponent('Comments')))
{ ?>
<td valign="top" width="210"><table width="200" border="0" cellspacing="2" cellpadding="3">
<tr>
<td width="200">
<?PHP
// Print mini calendar
if (sxShowHomepageComponent('Calendar'))
{
echoMiniCalendar($sxMonth,$sxYear);
}
// Print current poll
if (sxShowHomepageComponent('Polls'))
{
echo '<div class="sxHomepageItemName">' . $sxLang['PollsCurrentPoll'] . '</div>';
echoCurrentPoll($vote,$viewPoll);
}
// Print out 5 random photos
if (sxShowHomepageComponent('Photos'))
{
echo '<div style="padding-top:5px;padding-bottom:5px;">';
echo fetchRandomPhotoHTML();
echo '</div>';
}
// Print out 5 most recent topics
if (sxShowHomepageComponent('Forums'))
{
echo '<div class="sxHomepageItemName">' . $sxLang['ForumRecentTopics'] . '</div>';
echoRecentTopics(5);
}
// Print out 5 closest upcoming events
if (sxShowHomepageComponent('Events'))
{
echo '<div class="sxHomepageItemName">' . $sxLang['EventFilterUpcoming'] . '</div>';
echoUpcomingEvents(5);
}
// Print out 5 most recent comments
if (sxShowHomepageComponent('Comments'))
{
echo '<div class="sxHomepageItemName">' . $sxLang['CommentsRecent'] . '</div>';
sxEchoRecentComments(5);
}
?>
</td>
</tr>
</table>
</td><?PHP } ?>
</tr>
</table>
<?PHP
include("themes/$THEME_FOLDER/footer.php");
?>