<?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');
?>

<form action="index.php" method="post" name="adminForm" autocomplete="off">
<div style="text-align:right;">
<button type="button" onclick="window.parent.document.getElementById('sbox-window').close();"><?php echo JText::_('RSFL_CANCEL_BTN'); ?></button>
<button type="submit" onclick="if(validate_mirrors()) { submitbutton('savemirror');window.top.setTimeout('window.parent.document.getElementById(\'sbox-window\').close()', 700); } else return false;"><?php echo JText::_('RSFL_SAVE_BTN'); ?></button>
</div><br/><br/>
<fieldset>
<legend><?php echo JText::_('RSFL_MIRROR_DETAILS'); ?></legend>
<table cellspacing="0" cellpadding="0" border="0" width="100%" class="adminform">
	<tr>
		<td width="200"><label for="MirrorName"><?php echo JText::_('RSFL_MIRROR_NAME'). ':'; ?></label></td>
		<td><input type="text" name="MirrorName" id="MirrorName" value="<?php echo $this->mirror->MirrorName; ?>" size="30" /></td>
	</tr>
	<tr>
		<td width="200"><label for="MirrorURL"><?php echo JText::_('RSFL_MIRROR_URL'). ':'; ?></label></td>
		<td><input type="text" name="MirrorURL" id="MirrorURL" value="<?php echo $this->mirror->MirrorURL; ?>" size="120" /></td>
	</tr>
</table>
</fieldset>
<?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="IdMirror" value="<?php echo $this->mirror->IdMirror; ?>" />
<input type="hidden" name="IdFile" value="<?php echo $this->mirror->IdFile; ?>" />
<input type="hidden" name="controller" value="files" />
<input type="hidden" name="task" value="savemirror" />

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