<?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' ); 
?>
<script type="text/javascript">
function rsfl_new_folder()
{
	var ret = true;
	if (document.getElementById('newfolder').value == '') { document.getElementById('newfolder').className = 'rsflError'; ret = false; } else { document.getElementById('newfolder').className = ''; }
	
	return ret;
}
</script>
<br/><br/><br/><br/>
<form action="<?php echo JRoute::_('index.php?option=com_rsfiles&task=newfolder'.$this->itemid); ?>" method="post" name="adminForm" id="adminForm">
	<table cellspacing="0" cellpadding="0" border="0" width="100%">
		<tr>
			<td valign="top">
				<table  class="adminform">
					<tr>
						<td>&nbsp;</td>
						<td>
							<label for="newfolder">
								<?php echo JText::_( 'RSFL_FOLDER_NAME' ).':'; ?>
							</label>
						</td>
						<td>						
							<center>
								<input type="text" id="newfolder" name="newfolder" value="" size="35" />
								<button type="submit" onclick="return rsfl_new_folder();"><?php echo JText::_('RSFL_CREATE'); ?></button>
							</center>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="option" value="com_rsfiles" />
<input type="hidden" name="component" value="com_rsfiles" />
<input type="hidden" name="folder" value="<?php echo $this->currentfolder; ?>" />
<input type="hidden" name="controller" value="files" />
<input type="hidden" name="task" value="newfolder" />
</form>

<?php
//keep session alive while editing
JHTML::_('behavior.keepalive');
?>