home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
modules
/
filesystem
/
upload.inc
< prev
next >
Wrap
Text File
|
2004-03-08
|
2KB
|
70 lines
<?php
/*
Copyright Intermesh 2003
Author: Merijn Schering <mschering@intermesh.nl>
Version: 1.0 Release date: 08 July 2003
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
*/
?>
<input type="hidden" name="task" value="upload" />
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $GO_CONFIG->max_file_size; ?>" />
<?php
$tabtable = new tabtable('upload_tab', $fbUpload, '600', '300');
$tabtable->print_head();
?>
<table border="0" cellpadding="4" cellspacing="0">
<?php if(isset($feedback)) echo '<tr><td>'.$feedback.'</td></tr>';
?>
<tr>
<td>
<?php echo '<h3>'.$fbPath.': '.$page_title.'</3><br /><br />'.$fbFiles; ?>
:<br /><br />
<input type="file" name="file[]" maxlength="100" class="textbox" size="70" /><br />
<input type="file" name="file[]" maxlength="100" class="textbox" size="70" /><br />
<input type="file" name="file[]" maxlength="100" class="textbox" size="70" /><br />
<input type="file" name="file[]" maxlength="100" class="textbox" size="70" /><br />
<input type="file" name="file[]" maxlength="100" class="textbox" size="70" />
</td>
</tr>
<tr>
<td>
<?php
echo $fbMaxUploadSize.": ".format_size($GO_CONFIG->max_file_size)." (".number_format($GO_CONFIG->max_file_size, 0, $_SESSION['GO_SESSION']['decimal_seperator'], $_SESSION['GO_SESSION']['thousands_seperator'])." bytes)";
?>
</td>
</tr>
<tr>
<td id="status" class="Success"> </td>
</tr>
<tr>
<td>
<br />
<?php
$button = new button($cmdOk, "javascript:upload()");
echo ' ';
$button = new button($cmdCancel, "javascript:document.location='".$_SERVER['PHP_SELF']."?path=".$urlencoded_path."';");
?>
</td>
</tr>
</table>
<?php
$tabtable->print_foot();
?>
<script type="text/javascript">
<!--
function upload()
{
var status = null;
if (status = get_object("status"))
{
status.innerHTML = "<?php echo $fbPleaseWait; ?>";
}
document.forms[0].submit();
}
-->
</script>