openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 15e5139dc9124c9297cb73ac872994d67d7c9091
parent d0f7998e317228a179ace437ec66f55ea47ca6f4
Author: dankert <devnull@localhost>
Date:   Mon, 20 Dec 2004 23:42:41 +0100

Anzeige Benutzer ueber printUser()

Diffstat:
themes/default/pages/html/file/prop.tpl.php | 25+++++++++++--------------
themes/default/pages/html/page/prop.tpl.php | 6+++---
2 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/themes/default/pages/html/file/prop.tpl.php b/themes/default/pages/html/file/prop.tpl.php @@ -3,10 +3,7 @@ <!-- $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" /> +<?php echo Html::form('file','save') ?> <table class="main" width="90%" cellspacing="0" cellpadding="4"> @@ -55,16 +52,16 @@ <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('GLOBAL_created') ?></a></td> + <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$create_date) ?>, <?php Html::printUser($create_user) ?></td> + </tr> + <tr> + <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 Html::printUser($lastchange_user) ?></td> + </tr> <tr> - <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('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> -<tr> - <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></td> + <td class="act" colspan="2"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>" /></td> </tr> </table> @@ -90,7 +87,7 @@ 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> +<td class="f1"><a href="<?php echo $p['url'] ?>" target="cms_main"><img src="<?php echo $image_dir.'icon_page'.IMG_EXT ?>" align="left" border="0"><?php echo $p['name'] ?></a></td> </tr> <?php } if ( count($pages)==0) diff --git a/themes/default/pages/html/page/prop.tpl.php b/themes/default/pages/html/page/prop.tpl.php @@ -44,13 +44,13 @@ <td width="50%" class="f1"><?php echo lang('GLOBAL_FULL_FILENAME') ?></a></td> <td width="50%" class="f1"><tt><?php echo $full_filename ?></tt></td> </tr> - <tr> + <tr> <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) ?></td> + <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$create_date) ?>, <?php Html::printUser($create_user) ?></td> </tr> <tr> <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) ?></td> + <td width="50%" class="f2"><?php echo date(lang('DATE_FORMAT'),$lastchange_date) ?>, <?php Html::printUser($lastchange_user) ?></td> </tr> <tr>