commit 8c905b24861a18453fdcdfe338ff26690e59d641
parent 61eec9e60e34e7eadaf19d431146fd059d9b2f2a
Author: dankert <devnull@localhost>
Date: Tue, 7 Sep 2004 23:05:50 +0200
Hinweise ausgeben
Diffstat:
2 files changed, 287 insertions(+), 265 deletions(-)
diff --git a/themes/default/pages/html/file/prop.tpl.php b/themes/default/pages/html/file/prop.tpl.php
@@ -1,212 +1,231 @@
-<?php include( $tpl_dir.'header.tpl.php') ?>
-
-<!-- $Id$ -->
-<center>
-
-<form action="<?php echo $self ?>" method="post" target="_self">
-
-<input type="hidden" name="action" value="file">
-<input type="hidden" name="subaction" value="save">
-
-<table class="main" width="90%" cellspacing="0" cellpadding="4">
-
-<tr>
- <th colspan="2"><?php echo lang('PROP') ?></th>
-</tr>
-
-<?php if (isset($message))
- { ?>
-<tr>
-<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>
-</tr>
-<tr>
-<td width="50%" class="help"><?php echo lang('HELP_NAME') ?></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>
-</tr>
-<tr>
-<td width="50%" class="help"><?php echo lang('HELP_FILENAME') ?></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>
-</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>
-</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>
-</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>
-</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>
-</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>
-</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>
-</tr>
- <?php if ( count($pages)==0)
- { ?>
- <tr>
- <td class="f1" rowspan="2"><?php echo lang('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>
- </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 width="50%" class="f2"><?php echo lang('WIDTH') ?></td>
-<td width="50%" class="f2"><input type="text" name="width" value=""></td>
-</tr>
-<tr>
-<td width="50%" class="f2"><?php echo lang('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>
-</tr>
-
-</table>
-
-</form>
-<?php } ?>
-
-
-
-
-
-<form action="<?php echo $self ?>" method="post" target="_self">
-
-<input type="hidden" name="action" value="file">
-<input type="hidden" name="subaction" value="move">
-
-<table class="main" width="90%" cellspacing="0" cellpadding="4">
-
-<tr>
- <th colspan="2"><?php echo lang('MOVE') ?></th>
-</tr>
-
-<tr>
-<td width="50%" class="f1"><?php echo lang('FOLDER') ?></a></td>
-<td width="50%" class="f1"><?php echo Html::selectBox('movetoobjectid',$folderobject,$act_folderobjectid) ?></td>
-</tr>
-
-<!--
-<tr>
-<td width="50%" class="f2"> </td>
-<td width="50%" class="f2"><input type="checkbox" name="copy" value="1"> <?php echo lang('COPY_INSTEAD_OF_MOVE') ?></td>
-</tr>
--->
-
-<tr>
-<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('MOVE') ?>"></td>
-</tr>
-
-</table>
-
-</form>
-
-
-<table class="main" width="90%" cellspacing="0" cellpadding="4">
-
-<tr>
- <th colspan="2"><?php echo lang('REPLACE') ?></th>
-</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>
-
-
-
-
-<table class="main" width="90%" cellspacing="0" cellpadding="4">
-
-<tr>
- <th colspan="2"><?php echo lang('PAGES') ?></th>
-</tr>
-
-<?php $f1=true;
- foreach( $pages as $id=>$p )
- { ?>
-<tr>
-<td class="f1"><a href="<?php echo $p['url'] ?>" target="cms_main"><img src="<?php echo $image_dir.'icon_page.png' ?>" align="left" border="0"><?php echo $p['name'] ?></a></td>
-</tr>
-<?php }
- if ( count($pages)==0)
- { ?>
-<tr>
-<td class="f1"><?php echo lang('NOT_FOUND') ?></td>
-</tr>
-<?php } ?>
-
-
-</table>
-
-
-
-</center>
-
-<script name="JavaScript" type="text/javascript"><!--
-document.forms[0].name.focus();
-//--></script>
-
+<?php include( $tpl_dir.'header.tpl.php') ?>
+
+<!-- $Id$ -->
+<center>
+
+<form action="<?php echo $self ?>" method="post" target="_self">
+
+<input type="hidden" name="action" value="file">
+<input type="hidden" name="subaction" value="save">
+
+<table class="main" width="90%" cellspacing="0" cellpadding="4">
+
+<tr>
+ <th colspan="2"><?php echo lang('PROP') ?></th>
+</tr>
+
+<?php if (isset($message))
+ { ?>
+<tr>
+<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>
+</tr>
+<tr>
+<td width="50%" class="help"><?php echo lang('HELP_NAME') ?></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>
+</tr>
+<tr>
+<td width="50%" class="help"><?php echo lang('HELP_FILENAME') ?></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>
+</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>
+</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>
+</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>
+</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>
+</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>
+</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>
+</tr>
+ <?php if ( count($pages)==0)
+ { ?>
+ <tr>
+ <td class="f1" rowspan="2"><?php echo lang('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>
+ </tr>
+<?php }
+ else
+ {
+ ?>
+ <tr>
+ <td class="help" colspan="2"><?php echo lang('FILE_NO_DELETE_BECAUSE_LINKED') ?></td>
+ </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>
+</tr>
+
+</table>
+
+</form>
+<?php } ?>
+
+
+
+
+
+<form action="<?php echo $self ?>" method="post" target="_self">
+
+<input type="hidden" name="action" value="file">
+<input type="hidden" name="subaction" value="move">
+
+<table class="main" width="90%" cellspacing="0" cellpadding="4">
+
+<tr>
+ <th colspan="2"><?php echo lang('MOVE') ?></th>
+</tr>
+<tr>
+ <td colspan="2" class="help"><?php echo lang('HELP_FILE_MOVE') ?></td>
+</tr>
+
+<tr>
+<td width="50%" class="f1"><?php echo lang('FOLDER') ?></a></td>
+<td width="50%" class="f1"><?php echo Html::selectBox('movetoobjectid',$folderobject,$act_folderobjectid) ?></td>
+</tr>
+
+<!--
+<tr>
+<td width="50%" class="f2"> </td>
+<td width="50%" class="f2"><input type="checkbox" name="copy" value="1"> <?php echo lang('COPY_INSTEAD_OF_MOVE') ?></td>
+</tr>
+-->
+
+<tr>
+<td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('MOVE') ?>"></td>
+</tr>
+
+</table>
+
+</form>
+
+
+<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>
+
+
+
+
+<table class="main" width="90%" cellspacing="0" cellpadding="4">
+
+<tr>
+ <th colspan="2"><?php echo lang('PAGES') ?></th>
+</tr>
+<tr>
+ <td colspan="2" class="help"><?php echo lang('HELP_FILE_PAGES') ?></td>
+</tr>
+
+<?php $f1=true;
+ foreach( $pages as $id=>$p )
+ { ?>
+<tr>
+<td class="f1"><a href="<?php echo $p['url'] ?>" target="cms_main"><img src="<?php echo $image_dir.'icon_page.png' ?>" align="left" border="0"><?php echo $p['name'] ?></a></td>
+</tr>
+<?php }
+ if ( count($pages)==0)
+ { ?>
+<tr>
+<td class="f1"><?php echo lang('NOT_FOUND') ?></td>
+</tr>
+<?php } ?>
+
+
+</table>
+
+
+
+</center>
+
+<script name="JavaScript" type="text/javascript"><!--
+document.forms[0].name.focus();
+//--></script>
+
<?php include( $tpl_dir.'footer.tpl.php') ?>
\ No newline at end of file
diff --git a/themes/default/pages/html/folder/show.tpl.php b/themes/default/pages/html/folder/show.tpl.php
@@ -1,55 +1,58 @@
-<?php include( $tpl_dir.'header.tpl.php') ?>
-
-<!-- $Id$ -->
-<center>
-
-<table class="main" width="90%" cellspacing="0" cellpadding="4">
-
-<tr>
- <th colspan="5"><?php echo lang('FOLDER') ?></th>
-</tr>
-
-<?php if ( isset($up_url) )
- { ?>
-<tr>
-<td width="50%" colspan="5" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><a href="<?php echo $up_url ?>" target="cms_main"><img src="<?php echo $image_dir.'icon_folder.png' ?>" align="left" border="0"><strong>..</strong></a></td>
-<!--<td width="50%" colspan="3" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>"> </td>-->
-</tr>
-<?php }
-
- if ( count( $object) > 0 )
- {
- ?>
-<tr>
-<td width="40%" class="help" ><?php echo lang('name' ) ?></a></td>
-<td width="20%" class="help" ><?php echo lang('lastchange') ?></a></td>
-<td width="10%" class="help" colspan="2"><?php if (count( $object)>1) echo lang('move') ?></a></td>
-<td width="10%" class="help" > </a></td>
-</tr>
-
-<?php $f1=true;
- foreach( $object as $id=>$z )
- {
- $fx = fx($f1);
- ?>
-<tr>
-<td width="40%" class="<?php echo $fx; ?>"><a href="<?php echo $z['url'] ?>" target="cms_main" title="<?php echo $z['desc'] ?>"><img src="<?php echo $image_dir.'icon_'.$z['icon'].'.png' ?>" align="left" border="0"><?php echo $z['name'] ?></a> </td>
-<td width="20%" class="<?php echo $fx; ?>"><span title="<?php echo lang('USER').': '.$z['user'] ?>"><?php echo $z['date'] ?></span></td>
-<td width="5%" class="<?php echo $fx; ?>"><?php if (isset($z['upurl' ])) { ?><a href="<?php echo $z['upurl' ] ?>"><img src="<?php echo $image_dir ?>up.gif" title="<?php echo lang('UP' ) ?>" border="0"></a><?php } else echo ' ' ?></td>
-<td width="5%" class="<?php echo $fx; ?>"><?php if (isset($z['downurl'])) { ?><a href="<?php echo $z['downurl'] ?>"><img src="<?php echo $image_dir ?>down.gif" title="<?php echo lang('DOWN') ?>" border="0"></a><?php } else echo ' ' ?></td>
-<td width="10%" class="<?php echo $fx; ?>"><a target="cms_main" href="<?php echo $z['propurl'] ?>"><?php echo lang('PROP') ?></a></td>
-</tr>
-<?php }
- }
- else
- { ?>
-<tr>
-<td colspan="2" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><?php echo lang('NOT_FOUND') ?></td>
-</tr>
-<?php } ?>
-
-</table>
-
-</center>
-
+<?php include( $tpl_dir.'header.tpl.php') ?>
+
+<!-- $Id$ -->
+<center>
+
+<?php $table_title_text = lang('FOLDER');
+ $table_title_colspan = 5;
+ include( $tpl_dir.'table_open.tpl.php');
+?>
+<tr>
+<td colspan="5" class="help"><?php echo lang('HELP_FOLDER') ?></td>
+</tr>
+
+
+<?php if ( isset($up_url) )
+ { ?>
+<tr>
+<td width="50%" colspan="5" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><a href="<?php echo $up_url ?>" target="cms_main"><img src="<?php echo $image_dir.'icon_folder.png' ?>" align="left" border="0"><strong>..</strong></a></td>
+<!--<td width="50%" colspan="3" class="<?php if($f1==true) {echo'f1';$f1=false;} else{echo'f2';$f1=true;}?>"> </td>-->
+</tr>
+<?php }
+
+ if ( count( $object) > 0 )
+ {
+ ?>
+<tr>
+<td width="40%" class="help" ><?php echo lang('name' ) ?></td>
+<td width="20%" class="help" ><?php echo lang('lastchange') ?></td>
+<td width="10%" class="help" colspan="2"><?php if (count( $object)>1) echo lang('move') ?></td>
+<td width="10%" class="help" > </a></td>
+</tr>
+
+<?php $f1=true;
+ foreach( $object as $id=>$z )
+ {
+ $fx = fx($f1);
+ ?>
+<tr>
+<td width="40%" class="<?php echo $fx; ?>"><a href="<?php echo $z['url'] ?>" target="cms_main" title="<?php echo $z['desc'] ?>"><img src="<?php echo $image_dir.'icon_'.$z['icon'].'.png' ?>" align="left" border="0"><?php echo $z['name'] ?></a> </td>
+<td width="20%" class="<?php echo $fx; ?>"><span title="<?php echo lang('USER').': '.$z['user'] ?>"><?php echo $z['date'] ?></span></td>
+<td width="5%" class="<?php echo $fx; ?>"><?php if (isset($z['upurl' ])) { ?><a href="<?php echo $z['upurl' ] ?>"><img src="<?php echo $image_dir ?>up.gif" title="<?php echo lang('UP' ) ?>" border="0"></a><?php } else echo ' ' ?></td>
+<td width="5%" class="<?php echo $fx; ?>"><?php if (isset($z['downurl'])) { ?><a href="<?php echo $z['downurl'] ?>"><img src="<?php echo $image_dir ?>down.gif" title="<?php echo lang('DOWN') ?>" border="0"></a><?php } else echo ' ' ?></td>
+<td width="10%" class="<?php echo $fx; ?>"><a target="cms_main" href="<?php echo $z['propurl'] ?>"><?php echo lang('PROP') ?></a></td>
+</tr>
+<?php }
+ }
+ else
+ { ?>
+<tr>
+<td colspan="2" class="<?php if($f1==true) {echo'f1'; } else{echo'f2'; }?>"><?php echo lang('NOT_FOUND') ?></td>
+</tr>
+<?php } ?>
+
+</table>
+
+</center>
+
<?php include( $tpl_dir.'footer.tpl.php') ?>
\ No newline at end of file