Location: PHPKode > projects > SiteX > themes/Corporate/homepage.php
<?PHP
include("themes/$THEME_FOLDER/header.php");
?>
<!-- content -->
<div align="center" style="width: <?PHP echo $sxThemeConfig['ContentWidth']; ?>px; margin: 0px; padding: 0px;">
			<?PHP
			// Print out random photos
			if (sxShowHomepageComponent('Photos'))
			{
				echo '		<div style="padding: 10px; background: url(' . $sxSetup['Url'] . '/themes/' . $THEME_FOLDER . '/' . 'images/filmstrip.gif) repeat-x ;" >';
				echo str_replace('<br />', '', fetchRandomPhotoHTML());
				echo '		</div>';
			}
			?>
</div>
<div class="bodyWrapper">
<table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td valign="top" style="margin: 0px; padding: 0px;" >
<!-- 
*******************
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:100px;" 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: 100px;" 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;">
				<input name="search_text" value="<?PHP echo $sxLang['HomepageSearch']; ?>..." onfocus="this.value='';return false;" style="width: 100px;" type="text" />
 </form>
<?PHP } ?>  
<!-- END SHOW SEARCH -->
		</td>
		<td rowspan="2" valign="top" width="200"> 
			<!-- right column -->
	<?PHP 	
	
	if ((sxShowHomepageComponent('Calendar')) OR 
	    (sxShowHomepageComponent('Polls')) OR 
		(sxShowHomepageComponent('Forums')) OR 
		(sxShowHomepageComponent('Events')) OR 
		(sxShowHomepageComponent('Comments')))
	{
		// Print mini calendar
		if (sxShowHomepageComponent('Calendar'))
		{
			echoMiniCalendar($sxMonth,$sxYear);
		}

		// Print out 10 closest upcoming events
		if (sxShowHomepageComponent('Events'))
		{
			echo '<fieldset class="fieldset">';
			echo '<div class="sxHomepageItemName">' . $sxLang['EventFilterUpcoming'] . '</div>';
			echoUpcomingEvents(10); 
			echo '</fieldset> <br />';
		 }
		
		// Print out 10 most recent topics
		if (sxShowHomepageComponent('Forums'))
		{
			echo '<fieldset class="fieldset">';
			echo '<div class="sxHomepageItemName">' . $sxLang['ForumRecentTopics'] . '</div>';
			echoRecentTopics(5); 
			echo '</fieldset> <br />';
		}
		
		// Print current poll
		if (sxShowHomepageComponent('Polls'))
		{
			echo '<fieldset class="fieldset">';
			echo '<div class="sxHomepageItemName">' . $sxLang['PollsCurrentPoll'] . '</div>';
			echoCurrentPoll($vote,$viewPoll);
			echo '</fieldset> <br />';
		}
		
		// Print out 5 most recent comments
		if (sxShowHomepageComponent('Comments'))
		{
			echo '<fieldset class="fieldset">';
			echo '<div class="sxHomepageItemName">' . $sxLang['CommentsRecent'] . '</div>';
			sxEchoRecentComments(5);
			echo '</fieldset> <br />';
		}

	} ?>
		</td>		
	</tr>
	<tr>
		<td valign="top">
		<?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']){ ?>
			<hr/><h1 style="padding: 4px;"><?PHP echo getComponentName("1"); ?></h1>
			<?PHP echoCurrentJournal($sxSetup['JournalHomeCount'], $sxThemeConfig['HomepageJournalStringLimit']); ?>
			<br /><br /><?PHP } ?>
		</td>
	</tr>
</table>
</div>
<?PHP
include("themes/$THEME_FOLDER/footer.php");
?>
Return current item: SiteX