<?php
include ('auth.inc'); 
include ('common.inc'); 
$x_d -> getSessionVariable('currentDir', &$x_e); 
$x_3k = '<fieldset class="dialgBodyFieldset" style="height: 135px;">'; 
$x_3l = '</fieldset>'; 
?>
<div id="x_3f" class="dialogHeader">
<img src="/nonauth/gfx/tb_rename.gif" width="16" height="16" align="absmiddle">&nbsp;<kerio:text id="title_rename_dialog"/>
</div>
<div class="dialogBodyMain">
<div id="startPhase" style="display: none;">
<?php
echo $x_3k; 
?>
<form action="/actions.php" method="POST" target="executeIt" onSubmit="x_2u('startPhase', 'waitPhase')">
<table style="width:330px; _width: 350px;">
<tr>
<td><kerio:text id="dialog_rename_newName"/>:</td>
</tr>
<tr>
<td><input id="textBox" type="text" name="x_z" style="width:330px" value="<?php echo urldecode($x_1q); ?>"></td>
</tr>
<tr>
<td><hr></td>
</tr>
<tr>
<td><kerio:text id="dialog_rename_original"/>:</td>
</tr>
<tr>
<td><input type="text" id="tmp" name="tmp" style="width:330px" value="<?php echo urldecode($x_1q); ?>" disabled></td>
</tr>
</table>
<table style="position: absolute; <?php echo $x_3m; ?> right: 12px; _right: 8px;">
<tr>
<td>
<input id="okButton" type="submit" value="<kerio:text id='rename_simple'/>">
</td>
<td width="8">
&nbsp;
</td>
<td>
<input id="cancelButton" type="button" value="<kerio:text id="cancel"/>" onClick="x_43();">
</td>
</tr>
</table>
<input type="hidden" name="x_c" value="<?php echo $x_c; ?>">				
<input type="hidden" id="file" name="x_x" value="">
<input type="hidden" name="x_a" value="rename">
</form>
<?php echo $x_3l; ?>
</div>
<div id="waitPhase" style="display: block;">
<?php
echo $x_3k; 
?>
<table style="width:330px; _width: 350px;">
<tr>
<td>
<kerio:text id="please_wait"/>
</td>
</tr>
</table>
<?php echo $x_3l; ?>
</div>
<div id="errorPhase" style="display: none;">
<?php
echo $x_3k; 
?>
<table style="width:330px; _width: 350px;">
<tr>
<td width="32">
<img src="/nonauth/gfx/tb_error.gif" width="32" height="32" alt="!">
</td>
<td>
<strong><kerio:text id="dialog_rename_error"/></strong>
</td>
</tr>
</table>
<br>
<kerio:text id="actions_details"/>:
<div id="errorMessage" class="errorMessage" style="width:345px; height: 27px;">
</div>
<table style="position: absolute; <?php echo $x_3m; ?> right: 12px; _right: 8px;">
<tr>
<td>
<input id="okButton_error" type="button" value="<kerio:text id="back"/>" onClick="x_2u('errorPhase', 'startPhase');">
</td>
<td width="8">
&nbsp;
</td>
<td>
<input id="cancelButton" type="button" value="<kerio:text id="cancel"/>" onClick="x_43();">
</td>
</tr>
</table>
<?php echo $x_3l; ?>
</div>
<div id="endPhase" style="display: none;">
<?php
echo $x_3k; 
?>
<table style="width:330px; _width: 350px;">
<tr>
<td width="32">
<img src="/nonauth/gfx/tb_ok.gif" width="32" height="32" alt="!">
</td>
<td>
<strong><kerio:text id="dialog_rename_success"/></strong>
</td>
</tr>
</table>
<br>
<kerio:text id="actions_details"/>:
<div id="errorMessageSucc" class="errorMessage" style="width:345px; height: 37px; overflow: auto;"></div>
<table style="position: absolute; <?php echo $x_3m; ?> right: 12px; _right: 8px;">
<tr>
<td>
<input id="okButton" type="button" value="<kerio:text id="ok"/>" onClick="x_1e('/browse' + document.getElementById('goToPath').value, true); x_43();">
</td>
</tr>
</table>
<input id="goToPath" type="hidden" value="">
<?php echo $x_3l; ?>
</div>
</div>
