moved search box directly to template

This commit is contained in:
Jan-Christoph Borchardt 2011-08-10 22:56:44 +02:00
parent 05f3910718
commit 6af4c2dd0f
2 changed files with 14 additions and 19 deletions

View File

@ -5,11 +5,9 @@
/* FILE MENU */ /* FILE MENU */
.actions { padding:.6em; float:right; margin-right:13em; } .actions { padding:.6em; float:right; margin-right:13em; }
.actions input { margin:0; padding:.3em; } .actions input { margin:0; padding:.3em; }
.actions div { position: relative; display:inline-block; }
#file_menu { right:0; position:absolute; top:0; } #file_menu { right:0; position:absolute; top:0; }
#file_menu a { display:block; float:left; background-image:none; text-decoration:none; } #file_menu a { display:block; float:left; background-image:none; text-decoration:none; }
.file_upload_form { display: inline; z-index: 5;} .file_upload_form, #file_newfolder_form { display:inline; }
#file_newfolder_form { display:inline; z-index: 6;}
#fileSelector, #file_upload_submit, #file_newfolder_submit { display:none; } #fileSelector, #file_upload_submit, #file_newfolder_submit { display:none; }
.file_upload_wrapper, #file_newfolder_name { background-repeat:no-repeat; background-position:.5em .3em; padding-left:2em; } .file_upload_wrapper, #file_newfolder_name { background-repeat:no-repeat; background-position:.5em .3em; padding-left:2em; }
.file_upload_wrapper { background:url("../img/file.png"); font-weight:bold; position:relative; top:-1.2em; left:-2em; display:-moz-inline-box; /* fallback for older firefox versions*/ display:inline-block; width:8em; } .file_upload_wrapper { background:url("../img/file.png"); font-weight:bold; position:relative; top:-1.2em; left:-2em; display:-moz-inline-box; /* fallback for older firefox versions*/ display:inline-block; width:8em; }

View File

@ -1,22 +1,19 @@
<div id="controls"> <div id="controls">
<?php echo($_['breadcrumb']); ?> <?php echo($_['breadcrumb']); ?>
<div class="actions"> <div class="actions">
<div syle="z-index:4;"> <form data-upload-id='1' class="file_upload_form" action="ajax/upload.php" method="post" enctype="multipart/form-data" target="file_upload_target_1">
<form data-upload-id='1' class="file_upload_form" action="ajax/upload.php" method="post" enctype="multipart/form-data" target="file_upload_target_1"> <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload">
<input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $_['uploadMaxFilesize'] ?>" id="max_upload"> <input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)">
<input type="hidden" class="max_human_file_size" value="(max <?php echo $_['uploadMaxHumanFilesize']; ?>)"> <input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir">
<input type="hidden" name="dir" value="<?php echo $_['dir'] ?>" id="dir"> <div class="file_upload_wrapper">
<div class="file_upload_wrapper"> <input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload');?> (max. <?php echo $_['uploadMaxHumanFilesize'];?>)"/>
<input type="submit" class="file_upload_filename" value="<?php echo $l->t('Upload');?> (max. <?php echo $_['uploadMaxHumanFilesize'];?>)"/> <input class="file_upload_start" type="file" name='files[]'/>
<input class="file_upload_start" type="file" name='files[]'/> </div>
</div> <iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe>
<iframe name="file_upload_target_1" class='file_upload_target' src=""></iframe> </form>
</form> <form id="file_newfolder_form">
</div><div style="z-index:5;"> <input type="text" name="file_newfolder_name" id="file_newfolder_name" value="" placeholder="<?php echo $l->t('New Folder')?>" />
<form id="file_newfolder_form"> </form>
<input type="text" name="file_newfolder_name" id="file_newfolder_name" value="" placeholder="<?php echo $l->t('New Folder')?>" />
</form>
</div>
</div> </div>
<div id="file_action_panel"> <div id="file_action_panel">
</div> </div>