home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
modules
/
wiki
/
template
/
history.php
< prev
next >
Wrap
PHP Script
|
2004-03-08
|
2KB
|
56 lines
<?php
// $Id: history.php,v 1.1 2004/01/12 22:14:05 comsubvie Exp $
require_once(TemplateDir . '/common.php');
// The history template is passed an associative array with the following
// elements:
//
// page => A string containing the name of the wiki page.
// history => A string containing the XHTML markup for the history form.
// diff => A string containing the XHTML markup for the changes made.
function template_history($args)
{
global $DiffScript;
template_common_prologue(array('norobots' => 1,
'title' => TMPL_HistoryOf .' '. $args['page'],
'heading' => TMPL_HistoryOf .' ',
'headlink' => $args['page'],
'headsufx' => '',
'toolbar' => 1));
?>
<div id="body">
<form method="get" action="<?php print $DiffScript; ?>">
<div class="form">
<input type="hidden" name="action" value="diff" />
<input type="hidden" name="page" value="<?php print $args['page']; ?>" />
<table border="0">
<tr><td><strong><?php echo TMPL_Older; ?></strong></td>
<td><strong><?php echo TMPL_Newer; ?></strong></td><td></td></tr>
<?php
print $args['history'];
?>
<tr><td colspan="3">
<input type="submit" value="<?php echo TMPL_ButtonComputeDifference; ?>" /></td></tr>
</table>
</div>
</form>
<hr /><br />
<strong><?php echo TMPL_ChangesLastAuthor; ?></strong><br /><br />
<?php print $args['diff']; ?>
</div>
<?php
template_common_epilogue(array('twin' => $args['page'],
'edit' => '',
'editver' => 0,
'history' => '',
'timestamp' => '',
'nosearch' => 0));
}
?>