[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 // $Id: history.php 19415 2005-10-14 14:08:53Z ralfbecker $ 3 4 require_once(TemplateDir . '/common.php'); 5 6 // The history template is passed an associative array with the following 7 // elements: 8 // 9 // page => A string containing the name of the wiki page. 10 // history => A string containing the XHTML markup for the history form. 11 // diff => A string containing the XHTML markup for the changes made. 12 13 function template_history($args) 14 { 15 global $DiffScript; 16 17 //echo "<p>template_history(".print_r($args,True).")</p>"; 18 template_common_prologue(array('norobots' => 1, 19 'title' => lang('History of').' ' . get_title($args['page']), 20 'heading' => lang('History of').' ', 21 'headlink' => $args['page'], 22 'headsufx' => '', 23 'toolbar' => 1)); 24 ?> 25 <div id="body"> 26 <form method="get" action="<?php print $DiffScript; ?>"> 27 <div class="form"> 28 <input type="hidden" name="action" value="diff" /> 29 <input type="hidden" name="page" value="<?php print $args['page']['name']; ?>" /> 30 <input type="hidden" name="lang" value="<?php print $args['page']['lang']; ?>" /> 31 <table border="0"> 32 <tr><td><strong><?php echo lang('Older'); ?></strong></td> 33 <td><strong><?php echo lang('Newer'); ?></strong></td><td></td></tr> 34 <?php 35 print $args['history']; 36 37 ?> 38 <tr><td colspan="3"> 39 <input type="submit" value="<?php echo lang('Compute Difference'); ?>" /></td></tr> 40 </table> 41 </div> 42 </form> 43 <hr /><br /> 44 45 <strong><?php echo lang('Changes by last author'); ?>:</strong><br /><br /> 46 47 <?php print $args['diff']; ?> 48 </div> 49 <?php 50 template_common_epilogue(array('twin' => $args['page'], 51 'edit' => '', 52 'editver' => 0, 53 'history' => '', 54 'timestamp' => '', 55 'nosearch' => 0)); 56 } 57 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |