source: trunk/services/templates/versions_list.ihtml @ 376

Last change on this file since 376 was 295, checked in by quinn, 16 years ago

Updated example config file. Added admin2.inc.css and minor corrections into HTML. Module maker fixes.

File size: 1.8 KB
Line 
1<form method="post" action="<?php echo oTxt($_SERVER['PHP_SELF']); ?>" class="sc-form">
2<?php $app->printHiddenSession() ?>
3<input type="submit" name="op" value="<?php echo _("Cancel"); ?>" />
4<table class="list">
5<tr>
6    <th class="sc-padleft" colspan="3">&nbsp;</th>
7    <th class="sc-padleft"><?php echo _("ID"); ?></th>
8    <th class="sc-padleft"><?php echo _("Saved"); ?></th>
9    <th class="sc-padleft"><?php echo _("By"); ?></th>
10</tr>
11<?php
12$first = true;
13foreach ($versions as $v) { ?>
14<tr>
15    <?php if ($first) { ?>
16    <td class="sc-padleft sc-nowrap">[<a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=view&current=true&version_id=' . $v['version_id']); ?>">view</a>]</td>
17    <td class="sc-padleft sc-nowrap" colspan="2">(<?php echo _("Current record"); ?>)</td>
18    <?php } else { ?>
19    <td class="sc-padleft sc-nowrap">[<a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=view&version_id=' . $v['version_id']); ?>">view</a>]</td>
20    <td class="sc-padleft sc-nowrap">[<a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=diff&version_id=' . $v['version_id']); ?>">diff</a>]</td>
21    <td class="sc-padleft sc-nowrap">[<a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=restore&version_id=' . $v['version_id']); ?>">restore</a>]</td>
22    <?php } ?>
23    <td class="sc-padleft sc-nowrap"><?php echo $v['version_id']; ?></td>
24    <td class="sc-padleft sc-nowrap"><?php echo date('d M Y H:i:s', strtotime($v['version_datetime'])); ?></td>
25    <td class="sc-padleft sc-nowrap"><?php echo $v['editor']; ?></td>
26</tr>
27<?php
28$first = false;
29}
30?>
31</table>
32<div class="sc-help"><?php printf(_("When there are more than %s versions, those over %s days old are deleted."), $version->getParam('min_qty'), $version->getParam('min_days')); ?></div>
33<input type="submit" name="op" value="<?php echo _("Cancel"); ?>" />
34</form>
Note: See TracBrowser for help on using the repository browser.