<?php
/**
* @version 1.0.0
* @package RSFiles! 1.0.0
* @copyright (C) 2009 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/


defined( '_JEXEC' ) or die( 'Restricted access' ); 
?>
<br/>
<table width="100%">
	<tr>
		<td width="100">
			<a style="text-decoration:none;" href="<?php echo JRoute::_('index.php?option=com_rsfiles&view=files'.$this->itemid); ?>"><img style="vertical-align:middle;" src="<?php echo JURI::root().'components/com_rsfiles/images/icons/home.png'; ?>" alt="<?php echo JText::_('RSFL_HOME'); ?>" /> <?php echo JText::_('RSFL_HOME'); ?></a>
		</td>
		<?php if($this->rsfilesConfig['show_search'] == 1) { ?>
		<td width="100">
			<a style="text-decoration:none;" href="<?php echo JRoute::_('index.php?option=com_rsfiles&view=files&layout=search'.$this->itemid); ?>"><img style="vertical-align:middle;" src="<?php echo JURI::root().'components/com_rsfiles/images/icons/search.png'; ?>" alt="<?php echo JText::_('RSFL_SEARCH'); ?>" /> <?php echo JText::_('RSFL_SEARCH'); ?></a>
		</td>
		<?php } ?>
		<td width="100">
			<a style="text-decoration:none;" onclick="javascript:history.go(-1);" href="javascript:void(0);"><img style="vertical-align:middle;" src="<?php echo JURI::root().'components/com_rsfiles/images/icons/back.png'; ?>" alt="<?php echo JText::_('RSFL_BACK'); ?>" /> <?php echo JText::_('RSFL_BACK'); ?></a>
		</td>
		<td>&nbsp;</td>
	</tr>
</table>
<br/><br/>

<fieldset style="border:1px solid #CCCCCC;margin-top:15px;padding:15px;">
<form action="<?php echo JRoute::_('index.php?option=com_rsfiles&view=files&layout=search'.$this->itemid); ?>" method="post" name="adminForm">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
	<tr>
		<td valign="top">
			<table  class="adminform">
				<tr>
					<td width="200">
						<label for="keyword">
							<?php echo JText::_( 'RSFL_KEYWORD' ).':'; ?>
						</label>
					</td>
					<td>
						<input id="keyword" type="text" name="rsfl_keyword" value="<?php echo JRequest::getVar('rsfl_keyword'); ?>" size="35" />
					</td>
				</tr>
				<tr>
					<td width="200">
						<label for="ordering">
							<?php echo JText::_( 'RSFL_ORDER' ).':'; ?>
						</label>
					</td>
					<td>
						<?php echo $this->lists['ordering'] . ' ' .$this->lists['ordering_way']; ?>
					</td>
				</tr>
				<tr>
					<td width="200">
						<label for="ordering">
							<?php echo JText::_( 'RSFL_SEARCH_IN' ).':'; ?>
						</label>
					</td>
					<td>
						<input type="checkbox" id="rsfl_name" name="rsfl_search[]" value="name" /> <label for="rsfl_name"><?php echo JText::_('RSFFL_NAME'); ?></label>
						<input type="checkbox" id="rsfl_description" name="rsfl_search[]" value="description" /> <label for="rsfl_description"><?php echo JText::_('RSFFL_DESCRIPTION'); ?></label>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<button type="submit"><?php echo JText::_('RSFL_SEARCH'); ?></button>
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="option" value="com_rsfiles" />
<input type="hidden" name="task" value="" />
</form>
<?php
//keep session alive while editing
JHTML::_('behavior.keepalive');
?>
</fieldset>
<br/>
<?php 
	if(!empty($this->layouts))
		echo $this->fileheader;
	foreach($this->layouts as $layout)
		echo $layout;
?>