Last change
on this file since 165 was
136,
checked in by scdev, 18 years ago
|
Q - Merged branches/2.0singleton into trunk. Completed updating classes to use singleton methods. Implemented tests. Fixed some bugs. Changed some interfaces.
|
File size:
1.8 KB
|
Rev | Line | |
---|
[1] | 1 | <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> |
---|
[136] | 2 | <?php $app->printHiddenSession() ?> |
---|
[28] | 3 | <input type="submit" name="op" value="<?php echo _("Cancel"); ?>" /> |
---|
[1] | 4 | <table class="list" border="0" cellspacing="0" cellpadding="4"> |
---|
| 5 | <tr> |
---|
[121] | 6 | <th class="sc-padleft" colspan="3"> </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> |
---|
[1] | 10 | </tr> |
---|
[42] | 11 | <?php |
---|
[1] | 12 | $first = true; |
---|
| 13 | foreach ($versions as $v) { ?> |
---|
| 14 | <tr> |
---|
| 15 | <?php if ($first) { ?> |
---|
[136] | 16 | <td class="sc-padleft sc-nowrap">[<a href="<?php echo $app->oHREF($_SERVER['PHP_SELF'] . '?op=view¤t=true&version_id=' . $v['version_id']); ?>">view</a>]</td> |
---|
[124] | 17 | <td class="sc-padleft sc-nowrap" colspan="2">(<?php echo _("Current record"); ?>)</td> |
---|
[1] | 18 | <?php } else { ?> |
---|
[136] | 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> |
---|
[1] | 22 | <?php } ?> |
---|
[124] | 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> |
---|
[1] | 26 | </tr> |
---|
[42] | 27 | <?php |
---|
[1] | 28 | $first = false; |
---|
[42] | 29 | } |
---|
[1] | 30 | ?> |
---|
| 31 | </table> |
---|
[121] | 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> |
---|
[28] | 33 | <input type="submit" name="op" value="<?php echo _("Cancel"); ?>" /> |
---|
[1] | 34 | </form> |
---|
Note: See
TracBrowser
for help on using the repository browser.