openrat-cms

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

commit 1b54e6fa882df3495d87a2ec86cba843e923be5d
parent 1732ef7f90d43f6b9efac359c535bcb3bd3f314b
Author: dankert <devnull@localhost>
Date:   Tue, 28 Dec 2004 23:56:48 +0100

Checkbox "Seite veroeffentlichen"

Diffstat:
themes/default/pages/html/page/form.tpl.php | 14+++++++++++---
themes/default/pages/html/pageelement/edit/date.tpl.php | 13+++++++++++++
themes/default/pages/html/pageelement/edit/link.tpl.php | 6++++++
themes/default/pages/html/pageelement/edit/list.tpl.php | 6++++++
themes/default/pages/html/pageelement/edit/longtext.tpl.php | 22+++++++++-------------
themes/default/pages/html/pageelement/edit/number.tpl.php | 6++++++
themes/default/pages/html/pageelement/edit/select.tpl.php | 7+++++++
themes/default/pages/html/pageelement/edit/text.tpl.php | 17+++++++++++------
8 files changed, 69 insertions(+), 22 deletions(-)

diff --git a/themes/default/pages/html/page/form.tpl.php b/themes/default/pages/html/page/form.tpl.php @@ -59,11 +59,19 @@ </tr> <?php } ?> -<?php if ( isset($release) || true ) +<?php if ( $release ) { ?> <tr> -<td class="<?php echo $fx ?>&nbsp;</td> -<td class="<?php echo $fx ?> colspan="2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('GLOBAL_RELEASE') ?></td> + <td class="<?php echo $fx ?>">&nbsp;</td> + <td class="<?php echo $fx ?>" colspan="2"><?php echo Html::checkBox('release',true) ?> <?php echo lang('GLOBAL_RELEASE') ?></td> +</tr> +<?php } ?> + +<?php if ( $publish ) + { ?> +<tr> + <td class="<?php echo $fx ?>">&nbsp;</td> + <td class="<?php echo $fx ?>" colspan="2"><?php echo Html::checkBox('publish',false) ?> <?php echo lang('PAGE_PUBLISH_AFTER_SAVE') ?></td> </tr> <?php } ?> diff --git a/themes/default/pages/html/pageelement/edit/date.tpl.php b/themes/default/pages/html/pageelement/edit/date.tpl.php @@ -130,6 +130,19 @@ </td> </tr> +<?php if ( $release ) + { ?> +<tr> +<td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('GLOBAL_RELEASE') ?></td> +</tr> +<?php } ?> +<?php if ( $publish ) + { ?> +<tr> + <td class="f2"><?php echo Html::checkBox('publish',false) ?> <?php echo lang('PAGE_PUBLISH_AFTER_SAVE') ?></td> +</tr> +<?php } ?> + <tr> <td class="act" colspan="7"><?php echo lang('DATE').': <strong>'.$actdate ?></strong><br><br> <!--<input type="hidden" name="date" value="<?php echo $date ?>">--> diff --git a/themes/default/pages/html/pageelement/edit/link.tpl.php b/themes/default/pages/html/pageelement/edit/link.tpl.php @@ -24,6 +24,12 @@ <td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('GLOBAL_RELEASE') ?></td> </tr> <?php } ?> +<?php if ( $publish ) + { ?> +<tr> + <td class="f2"><?php echo Html::checkBox('publish',false) ?> <?php echo lang('PAGE_PUBLISH_AFTER_SAVE') ?></td> +</tr> +<?php } ?> <tr> <td class="act"><noscript><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></noscript></td> diff --git a/themes/default/pages/html/pageelement/edit/list.tpl.php b/themes/default/pages/html/pageelement/edit/list.tpl.php @@ -25,6 +25,12 @@ <td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('GLOBAL_RELEASE') ?></td> </tr> <?php } ?> +<?php if ( $publish ) + { ?> +<tr> + <td class="f2"><?php echo Html::checkBox('publish',false) ?> <?php echo lang('PAGE_PUBLISH_AFTER_SAVE') ?></td> +</tr> +<?php } ?> <tr> <td class="act"><noscript><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></noscript></td> diff --git a/themes/default/pages/html/pageelement/edit/longtext.tpl.php b/themes/default/pages/html/pageelement/edit/longtext.tpl.php @@ -8,30 +8,28 @@ <table class="main" width="90%" cellspacing="0" cellpadding="4"> <tr> - <th><?php echo $name ?></th> + <th colspan="2"><?php echo $name ?></th> </tr> <tr> - <td class="help"><?php echo $desc ?><br><!--<br><?php echo lang('HELP_LONGTEXT_WIKI') ?><br>--></td> + <td colspan="2" class="help"><?php echo $desc ?><br><!--<br><?php echo lang('HELP_LONGTEXT_WIKI') ?><br>--></td> </tr> <tr> -<td class="f1"><br><textarea class="longtext" name="text"><?php echo $text ?></textarea></td> + <td colspan="2" class="f1"><br><textarea class="longtext" name="text"><?php echo $text ?></textarea></td> </tr> -<?php if ( $release ) - { ?> <tr> -<td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('GLOBAL_RELEASE') ?></td> + <td class="f2"><?php if ( $release ) echo Html::checkBox('release',true).' '.lang('GLOBAL_RELEASE') ?></td> + <td class="f2"><?php echo Html::checkBox('html',$html,false) ?> <span title="<?php echo lang('EL_PROP_HTML_DESC') ?>"><?php echo lang('EL_PROP_HTML') ?></span></td> </tr> -<?php } ?> <tr> -<td class="act"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></td> + <td class="f2"><?php if ( $publish ) echo Html::checkBox('publish',false).' '.lang('PAGE_PUBLISH_AFTER_SAVE') ?>&nbsp;</td> + <td class="f2" rowspan="2"><?php echo Html::checkBox('wiki',$wiki,false) ?> <span title="<?php echo lang('EL_PROP_WIKI_DESC') ?>"><?php echo lang('EL_PROP_WIKI') ?></span><?php if ($wiki) echo '<br/>'.lang('PAGE_LONGTEXT_WIKI_DESC') ?></td> </tr> <tr> -<td class="help"><br><?php echo lang('HELP_LONGTEXT_WIKI') ?><br> -</td> + <td class="act"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>" /></td> </tr> </table> @@ -40,8 +38,6 @@ </center> -<script name="JavaScript"><!-- -document.forms[0].text.focus(); -//--></script> +<?php Html::focusField('text') ?> <?php include( $tpl_dir.'footer.tpl.php') ?> \ No newline at end of file diff --git a/themes/default/pages/html/pageelement/edit/number.tpl.php b/themes/default/pages/html/pageelement/edit/number.tpl.php @@ -24,6 +24,12 @@ <td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('GLOBAL_RELEASE') ?></td> </tr> <?php } ?> +<?php if ( $publish ) + { ?> +<tr> + <td class="f2"><?php echo Html::checkBox('publish',false) ?> <?php echo lang('PAGE_PUBLISH_AFTER_SAVE') ?></td> +</tr> +<?php } ?> <tr> <td class="act"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></td> diff --git a/themes/default/pages/html/pageelement/edit/select.tpl.php b/themes/default/pages/html/pageelement/edit/select.tpl.php @@ -25,6 +25,13 @@ </tr> <?php } ?> +<?php if ( $publish ) + { ?> +<tr> + <td class="f2"><?php echo Html::checkBox('publish',false) ?> <?php echo lang('PAGE_PUBLISH_AFTER_SAVE') ?></td> +</tr> +<?php } ?> + <tr> <td class="act"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></td> </tr> diff --git a/themes/default/pages/html/pageelement/edit/text.tpl.php b/themes/default/pages/html/pageelement/edit/text.tpl.php @@ -15,18 +15,25 @@ </tr> <tr> -<td class="f1"><input type="text" name="text" size="50" maxlength="1000" value="<?php echo $text ?>"></td> + <td class="f1"><input type="text" name="text" size="50" maxlength="1000" value="<?php echo $text ?>" /></td> </tr> <?php if ( $release ) { ?> <tr> -<td class="f2"><?php echo Html::checkBox('release',true,true) ?> <?php echo lang('GLOBAL_RELEASE') ?></td> + <td class="f2"><?php echo Html::checkBox('release',true) ?> <?php echo lang('GLOBAL_RELEASE') ?></td> +</tr> +<?php } ?> + +<?php if ( $publish ) + { ?> +<tr> + <td class="f2"><?php echo Html::checkBox('publish',false) ?> <?php echo lang('PAGE_PUBLISH_AFTER_SAVE') ?></td> </tr> <?php } ?> <tr> -<td class="act"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>"></td> + <td class="act"><input type="submit" class="submit" value="<?php echo lang('GLOBAL_SAVE') ?>" /></td> </tr> </table> @@ -35,8 +42,6 @@ </center> -<script name="JavaScript" type="text/javascript"><!-- -document.forms[0].text.focus(); -//--></script> +<?php Html::focusField('text') ?> <?php include( $tpl_dir.'footer.tpl.php') ?> \ No newline at end of file