summaryrefslogtreecommitdiffstats
path: root/files/templates/index.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-19 02:51:59 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2011-04-19 02:51:59 +0200
commit4a9fdd2918c3828b4c60e22eda4dc89a9228bc8e (patch)
tree7167ba395bb2a74d6d3d9168be46747436b4c5a1 /files/templates/index.php
parent3113176ea04b206308de8180198f127744a34b8e (diff)
downloadnextcloud-server-4a9fdd2918c3828b4c60e22eda4dc89a9228bc8e.tar.gz
nextcloud-server-4a9fdd2918c3828b4c60e22eda4dc89a9228bc8e.zip
fancy upload button. does work with firefox (at least 4) and chromium, but not with Konqueror, Rekonq, Opera.
Diffstat (limited to 'files/templates/index.php')
-rw-r--r--files/templates/index.php16
1 files changed, 4 insertions, 12 deletions
diff --git a/files/templates/index.php b/files/templates/index.php
index 54de41c594a..e794bad300c 100644
--- a/files/templates/index.php
+++ b/files/templates/index.php
@@ -1,19 +1,11 @@
<div class="controls">
- <p class="actions">
- <a href="" title="" class="upload" id="file_upload_button" style="background-image:url(<?php echo mimetype_icon('file'); ?>)">Upload (max <?php echo $_["uploadMaxHumanFilesize"];?>)</a><a
-href="" title="" class="new-dir">New folder</a><a href="" title=""
-class="download">Download</a><a href="" title="" class="share">Share</a><a
-href="" title="" class="delete">Delete</a>
- </p>
- <div id="file_action_panel">
+ <div class="actions">
<form id="file_upload_form" action="ajax/upload.php"
method="post" enctype="multipart/form-data" target="file_upload_target"><input
type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_["uploadMaxFilesize"] ?>" id="max_upload"><input
-type="hidden" name="dir" value="<?php echo $_["dir"] ?>" id="dir"><input class="prettybutton" type="submit"
-id="file_upload_start" value="Upload" />&nbsp;<input class="prettybutton" type="button"
-id="file_upload_cancel" value="X" /><input
-type="file" name="file" id="fileSelector"><iframe id="file_upload_target"
-name="file_upload_target" src=""></iframe></form>
+type="hidden" class="max_human_file_size" value="(max <?php echo $_["uploadMaxHumanFilesize"]; ?>)"><input type="hidden" name="dir" value="<?php echo $_["dir"] ?>" id="dir"><input class="prettybutton" type="submit" id="file_upload_start" value="Upload (max <?php echo $_["uploadMaxHumanFilesize"];?>)" />&nbsp;<input class="prettybutton" type="button" id="file_upload_cancel" value="X" /><input type="file" name="file" id="fileSelector"><iframe id="file_upload_target" name="file_upload_target" src=""></iframe></form><a href="" title="" class="new-dir">New folder</a><a href="" title="" class="download">Download</a><a href="" title="" class="share">Share</a><a href="" title="" class="delete">Delete</a>
+ </div>
+ <div id="file_action_panel">
<form id="file_newfolder_form"><input type="text" name="file_new_dir_name" id="file_new_dir_name" />&nbsp;<input class="prettybutton" type="button" id="file_new_dir_submit" name="file_new_dir_submit" value="OK" /></form>
</div>
</div>