openrat-cms

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

commit 311e214cfce3eb352285a86c675d095ae4766be4
parent a52d3e6e3c2522b6a09060a727bb845edf3c25f4
Author: dankert <devnull@localhost>
Date:   Thu, 14 Oct 2004 23:05:53 +0200

Anzeige der Unterschiede zwischen 2 Versionen

Diffstat:
themes/default/pages/html/pageelement/diff.tpl.php | 71+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 71 insertions(+), 0 deletions(-)

diff --git a/themes/default/pages/html/pageelement/diff.tpl.php b/themes/default/pages/html/pageelement/diff.tpl.php @@ -0,0 +1,70 @@ +<?php include( $tpl_dir.'header.tpl.php') ?> + +<!-- $Id$ --> +<center> + +<table class="main" width="90%" cellspacing="0" cellpadding="4"> + +<tr> + <th colspan="2"><?php echo lang('GLOBAL_COMPARE').' '.$title1 ?></th> + <th colspan="2"><?php echo lang('GLOBAL_WITH') .' '.$title2 ?></th> +</tr> + + +<?php $fx = fx(''); + if (count($text1) > 0) + { + $i=0; + while( isset($text1[$i]) || isset($text2[$i]) ) + { + $fx = fx($fx); + ?> + <tr> + + <?php + if ( isset($text1[$i]['text']) ) + { + ?> + <td class="<?php echo $fx ?>" width="5%" ><?php echo $text1[$i]['line'] ?></td> + <td class="diff_<?php echo $text1[$i]['type'] ?>" width="45%"><?php echo $text1[$i]['text'] ?></td> + <?php + } + else + { + ?> + <td colspan="2" class="help" with="50%">&nbsp;</td> + <?php + } + + if ( isset($text2[$i]['text']) ) + { + ?> + <td class="<?php echo $fx ?>" width="5%" ><?php echo $text2[$i]['line'] ?></td> + <td class="diff_<?php echo $text2[$i]['type'] ?>" width="45%"><?php echo $text2[$i]['text'] ?></td> + <?php + } + else + { + ?> + <td colspan="2" class="help" with="50%">&nbsp;</td> + <?php + } + ?> + </tr> + <?php + $i++; + } + } + else + { ?> +<tr> + <td class="f1" colspan="4"><strong><?php echo lang('GLOBAL_NO_DIFFERENCES_FOUND') ?></strong></td> +</tr> +<?php } ?> + +</table> + +</center> + +<br/><br/><br/> +<?php include( $tpl_dir.'footer.tpl.php') ?>+ \ No newline at end of file