<?php
include ('auth.inc'); 
include ('common.inc'); 
$x_d -> getSessionVariable('currentDir', &$x_e); 
$x_3k = '<fieldset class="dialgBodyFieldset" style="height: 202px;">'; 
$x_3l = '</fieldset>'; 
?>
<div id="x_3f" class="dialogHeader">
<img src="/nonauth/gfx/tb_copy.gif" width="16" height="16" align="absmiddle">&nbsp;<kerio:text id="title_copy_dialog"/>
</div>
<div class="dialogBodyMain">
<div id="startPhase" style="display: none;">
<?php
echo $x_3k; 
?>
<form id="copyForm" action="/actions.php" method="POST" target="executeIt" onSubmit="x_2u('startPhase', 'waitPhase');">
<table style="width:330px; _width: 350px;">
<tr>
<td colspan="2"><kerio:text id="dialog_copy_dir"/>:</td>
</tr>
<tr>
<td><input id="textBox" type="text" name="x_j" style="width:260px" value="<?php echo x_23($x_e); ?>"></td>
<td width="100"><input id="browseButton" type="button" value="<kerio:text id="change"/>..." title="<kerio:text id="change_title"/>" onClick="x_8b('textBox', 'div');"></td>
</tr>
<tr>
<td colspan="2"><hr></td>
</tr>
<tr>
<td colspan="2"><kerio:text id="dialog_selected"/>:</td>
</tr>
<tr>
<td colspan="2">
<div id="entryList">
<?php
echo x_78 ($x_12); 
?>
</div>
</td>
</tr>
<tr>
<td colspan="2"><span id="fileCount"></span>&nbsp;<kerio:text id="selected_sentence"/></td>
</tr>
</table>
<input type="hidden" name="x_c" value="<?php echo $x_c; ?>">
<input name="x_a" type="hidden" value="copy">
<input id="entries" name="x_13" type="hidden" value="">
<?php echo $x_3l; ?>
</form>
<table style="position: absolute; <?php echo $x_3m; ?> right: 12px; _right: 8px;">
<tr>
<td>
<input id="okButton" type="submit" value="<kerio:text id='copy_simple'/>" onClick="x_2u('startPhase', 'waitPhase'); document.getElementById('copyForm').submit();">
</td>
<td width="7">
&nbsp;
</td>
<td>
<input id="cancelButton" type="button" value="<kerio:text id="cancel"/>" onClick="x_43();">
</td>
</tr>
</table>
</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>
<img src="/nonauth/gfx/tb_error.gif" width="32" height="32" alt="!">
</td>
<td>
<strong><kerio:text id="dialog_copy_error"/></strong>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2"><kerio:text id="actions_details"/>:</td>
</tr>
<tr>
<td colspan="2">
<div id="errorMessage" class="errorMessage" style="width:345px; height: 77px;"></div>
</td>
</tr>
<tr>
<td colspan="2"><div id="actionFailedMessage" style="display: block;"><span id="notCount"></span>&nbsp;<kerio:text id="of"/>&nbsp;<span id="selectedCount"></span>&nbsp;<kerio:text id="copy_failed_sum"/></div></td>
</tr>					
</table>
<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'); window.top.frames[1].document.frm.submit();">
</td>
<td width="7">
&nbsp;
</td>
<td>
<input id="cancelButton" type="button" value="<kerio:text id="cancel"/>" onClick="x_43();">
</td>
</tr>
</table>
<?php echo $x_3l; ?>
</div>			
<?php ?>	
<div id="endPhase" style="display: none;">
<?php
echo $x_3k; 
?>				
<table style="width:330px; _width: 350px;">
<tr>
<td width="35px;">
<img src="/nonauth/gfx/tb_ok.gif" width="32" height="32" alt="OK">
</td>
<td>
<strong><kerio:text id="dialog_copy_success"/></strong>
</td>
</tr>
</table>
<br>
<kerio:text id="actions_details"/>:
<div id="errorMessage" class="errorMessage" style="width:345px; height: 60px;">
<kerio:text id="dialog_copy_success_message"/>&nbsp;"<strong><span id="targetDir"></span></strong>":<br><br>
<div id="doneDirList">
</div>
</div>
<table id="radioTable" style="width:330px; _width: 350px; display: block;">
<tr>
<td width="15"><input id="pathCurrent" type="radio" name="redirectTo" checked onClick="document.getElementById('goToPath').value=this.value"></td>
<td><label for="pathCurrent"><kerio:text id="dialog_create_stay"/></label></td>
<tr>
<tr>
<td><input id="pathNew" name="redirectTo" type="radio" onClick="document.getElementById('goToPath').value=this.value"></td>
<td><label for="pathNew"><kerio:text id="dialog_target_goto"/></label></td>
</tr>
</table>
<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>
<?php echo $x_3l; ?>
<input id="goToPath" type="hidden" value="">
</div>
</div>