commit 2be9076b6af7decb82c985ff13d3e05c6d88866b
parent 324a0aed3ffd2335408e74b26a9d7ee255c64a29
Author: dankert <devnull@localhost>
Date: Sun, 28 Nov 2004 22:28:39 +0100
Anpassen an neue Sprachdatei-Konventionen, Bildbearbeitung in eigenen Men?punkt verschoben
Diffstat:
1 file changed, 30 insertions(+), 97 deletions(-)
diff --git a/themes/default/pages/html/file/prop.tpl.php b/themes/default/pages/html/file/prop.tpl.php
@@ -5,8 +5,8 @@
<form action="<?php echo $self ?>" method="post" target="_self">
-<input type="hidden" name="action" value="file">
-<input type="hidden" name="subaction" value="save">
+<input type="hidden" name="action" value="file" />
+<input type="hidden" name="subaction" value="save" />
<table class="main" width="90%" cellspacing="0" cellpadding="4">
@@ -17,67 +17,60 @@
<?php if (isset($message))
{ ?>
<tr>
-<td colspan="2" class="message"><?php echo $message ?></td>
+ <td colspan="2" class="message"><?php echo $message ?></td>
</tr>
<?php } ?>
<tr>
-<td width="50%" class="f1" rowspan="2"><?php echo lang('name') ?></a></td>
-<td width="50%" class="f1"><input type="text" class="name" name="name" size="50" value="<?php echo $name ?>"></td>
+ <td width="50%" class="f1" rowspan="2"><?php echo lang('GLOBAL_NAME') ?></a></td>
+ <td width="50%" class="f1"><input type="text" class="name" name="name" size="50" value="<?php echo $name ?>"></td>
</tr>
<tr>
-<td width="50%" class="help"><?php echo lang('HELP_NAME') ?></td>
+ <td width="50%" class="help"><?php echo lang('GLOBAL_NAME_DESC') ?></td>
</tr>
<tr>
-<td width="50%" class="f1" rowspan="2"><?php echo lang('filename') ?></a></td>
-<td width="50%" class="f1"><input class="filename" type="text" name="filename" size="40" value="<?php echo $filename ?>"></td>
+ <td width="50%" class="f1" rowspan="2"><?php echo lang('GLOBAL_FILENAME') ?></a></td>
+ <td width="50%" class="f1"><input class="filename" type="text" name="filename" size="40" value="<?php echo $filename ?>"></td>
</tr>
<tr>
-<td width="50%" class="help"><?php echo lang('HELP_FILENAME') ?></td>
+ <td width="50%" class="help"><?php echo lang('GLOBAL_FILENAME_DESC') ?></td>
</tr>
<tr>
-<td width="50%" class="f2"><?php echo lang('extension') ?></a></td>
-<td width="50%" class="f2"><input class="filename" type="text" name="extension" size="10" value="<?php echo $extension ?>"></td>
+ <td width="50%" class="f2"><?php echo lang('FILE_extension') ?></a></td>
+ <td width="50%" class="f2"><input class="filename" type="text" name="extension" size="10" value="<?php echo $extension ?>"></td>
</tr>
<tr>
-<td width="50%" class="f2"><?php echo lang('description') ?></a></td>
-<td width="50%" class="f2"><textarea class="desc" cols="40" rows="10" name="desc"><?php echo $desc ?></textarea></td>
+ <td width="50%" class="f2"><?php echo lang('GLOBAL_description') ?></a></td>
+ <td width="50%" class="f2"><textarea class="desc" cols="40" rows="10" name="desc"><?php echo $desc ?></textarea></td>
</tr>
-<?php if ( isset($src_url))
- { ?>
<tr>
-<td width="50%" class="f2"><?php echo lang('value') ?></a></td>
-<td width="50%" class="f2"><a href="<?php echo $src_url ?>"><?php echo lang('EDIT') ?></a></td>
-</tr>
-<?php } ?>
-<tr>
-<td width="50%" class="f2"><?php echo lang('size') ?></a></td>
-<td width="50%" class="f2"><?php echo number_format($size,0,',','.') ?> bytes</td>
+ <td width="50%" class="f2"><?php echo lang('FILE_SIZE') ?></a></td>
+ <td width="50%" class="f2"><?php echo number_format($size/1000,0,',','.') ?> kB</td>
</tr>
<tr>
-<td width="50%" class="f2"><?php echo lang('mime_type') ?></a></td>
-<td width="50%" class="f2"><tt><?php echo $mimetype; ?></tt></td>
+ <td width="50%" class="f2"><?php echo lang('FILE_mimetype') ?></a></td>
+ <td width="50%" class="f2"><tt><?php echo $mimetype; ?></tt></td>
</tr>
<tr>
-<td width="50%" class="f2"><?php echo lang('FULL_FILENAME') ?></a></td>
-<td width="50%" class="f2"><tt><?php echo $full_filename ?></tt></td>
+ <td width="50%" class="f2"><?php echo lang('GLOBAL_FULL_FILENAME') ?></a></td>
+ <td width="50%" class="f2"><tt><?php echo $full_filename ?></tt></td>
</tr>
<tr>
-<td width="50%" class="f2"><?php echo lang('created') ?></a></td>
-<td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$create_date) ?>, <?php if (isset($create_user['url'])) echo'<a href="'.$create_user['url'].'" target="cms_main">' ?><?php echo $create_user['name'] ?><?php if (isset($create__user['url'])) echo'</a>' ?></td>
+ <td width="50%" class="f2"><?php echo lang('GLOBAL_created') ?></a></td>
+ <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$create_date) ?>, <?php if (isset($create_user['url'])) echo'<a href="'.$create_user['url'].'" target="cms_main">' ?><?php echo $create_user['name'] ?><?php if (isset($create__user['url'])) echo'</a>' ?></td>
</tr>
<tr>
-<td width="50%" class="f2"><?php echo lang('lastchange') ?></a></td>
-<td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$lastchange_date) ?>, <?php if (isset($lastchange_user['url'])) echo'<a href="'.$lastchange_user['url'].'" target="cms_main">' ?><?php echo $lastchange_user['name'] ?><?php if (isset($lastchange_user['url'])) echo'</a>' ?></td>
+ <td width="50%" class="f2"><?php echo lang('GLOBAL_lastchange') ?></a></td>
+ <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$lastchange_date) ?>, <?php if (isset($lastchange_user['url'])) echo'<a href="'.$lastchange_user['url'].'" target="cms_main">' ?><?php echo $lastchange_user['name'] ?><?php if (isset($lastchange_user['url'])) echo'</a>' ?></td>
</tr>
<?php if ( count($pages)==0)
{ ?>
<tr>
- <td class="f1" rowspan="2"><?php echo lang('DELETE') ?></a></td>
+ <td class="f1" rowspan="2"><?php echo lang('GLOBAL_DELETE') ?></a></td>
<td class="f1"><input type="checkbox" name="delete" value="1"></td>
</tr>
<tr>
- <td class="help"><?php echo lang('HELP_FILE_DELETE') ?></td>
+ <td class="help"><?php echo lang('FILE_DELETE_DESC') ?></td>
</tr>
<?php }
else
@@ -88,71 +81,15 @@
</tr>
<?php } ?>
<tr>
-<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('SAVE') ?>"></td>
-</tr>
-
-</table>
-
-</form>
-
-
-<?php if ( substr($mimetype,0,6) == 'image/' )
- { ?>
-<form action="<?php echo $self ?>" method="post" target="_self">
-
-<input type="hidden" name="action" value="file">
-<input type="hidden" name="subaction" value="resize">
-
-<table class="main" width="90%" cellspacing="0" cellpadding="4">
-
-<tr>
- <th colspan="2"><?php echo lang('RESIZE') ?></th>
-</tr>
-<tr>
- <td colspan="2" class="help"><?php echo lang('HELP_FILE_RESIZE') ?></td>
-</tr>
-
-<tr>
-<td width="50%" class="f2"><?php echo lang('NEW_WIDTH') ?></td>
-<td width="50%" class="f2"><input type="text" name="width" value=""></td>
-</tr>
-<tr>
-<td width="50%" class="f2"><?php echo lang('NEW_HEIGHT') ?></td>
-<td width="50%" class="f2"><input type="text" name="height" value=""></td>
-</tr>
-
-<tr>
-<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('RESIZE') ?>"></td>
+ <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></td>
</tr>
</table>
</form>
-<?php } ?>
-<table class="main" width="90%" cellspacing="0" cellpadding="4">
-
-<tr>
- <th colspan="2"><?php echo lang('REPLACE') ?></th>
-</tr>
-<tr>
- <td colspan="2" class="help"><?php echo lang('HELP_FILE_REPLACE') ?></td>
-</tr>
-
-<tr>
-<td colspan="2" class="act">
- <form action="<?php echo $self ?>" method="post" enctype="multipart/form-data">
- <input type="hidden" name="action" value="file">
- <input type="hidden" name="subaction" value="replace">
- <input type="file" name="file"> <input type="submit" class="submit" value="<?php echo lang('UPLOAD') ?>">
- </form>
-
-</td>
-</tr>
-
-</table>
@@ -160,10 +97,10 @@
<table class="main" width="90%" cellspacing="0" cellpadding="4">
<tr>
- <th colspan="2"><?php echo lang('PAGES') ?></th>
+ <th colspan="2"><?php echo lang('FILE_PAGES') ?></th>
</tr>
<tr>
- <td colspan="2" class="help"><?php echo lang('HELP_FILE_PAGES') ?></td>
+ <td colspan="2" class="help"><?php echo lang('FILE_PAGES_DESC') ?></td>
</tr>
<?php $f1=true;
@@ -176,19 +113,15 @@
if ( count($pages)==0)
{ ?>
<tr>
-<td class="f1"><?php echo lang('NOT_FOUND') ?></td>
+<td class="f1"><?php echo lang('GLOBAL_NOT_FOUND') ?></td>
</tr>
<?php } ?>
</table>
-
-
</center>
-<script name="JavaScript" type="text/javascript"><!--
-document.forms[0].name.focus();
-//--></script>
+<?php Html::focusField('name') ?>
<?php include( $tpl_dir.'footer.tpl.php') ?>
\ No newline at end of file