Last change
on this file since 22 was
22,
checked in by scdev, 19 years ago
|
More bugs and shifting things about.
|
File size:
1.0 KB
|
Rev | Line | |
---|
[1] | 1 | <?php |
---|
[22] | 2 | if (!is_a($lock, 'RecordLock')) { |
---|
[1] | 3 | return null; |
---|
| 4 | } |
---|
| 5 | ?> |
---|
| 6 | <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> |
---|
| 7 | <?php App::printHiddenSession() ?> |
---|
| 8 | <input type="hidden" name="lock_id" value="<?php echo $lock->getID(); ?>" /> |
---|
| 9 | |
---|
| 10 | <p><?php |
---|
| 11 | printf(_("The record <strong>%s</strong> is currently being edited by <strong>%s</strong> (%d minutes elapsed). You cannot modify the record while it is locked by another user."), |
---|
| 12 | $lock->getTitle(), |
---|
| 13 | $lock->getEditor(), |
---|
| 14 | date('i', $lock->getSecondsElapsed() + 60) |
---|
| 15 | ); |
---|
| 16 | ?></p> |
---|
| 17 | |
---|
| 18 | <?php if ($lock->getSecondsElapsed() > $lock->timeout) { ?> |
---|
| 19 | <p><?php printf(_("You can force unlock the record if you believe the editing session has expired. You might want to confirm with before doing this."), $lock->getEditor()) ?></p> |
---|
[20] | 20 | <input type="submit" class="formsubmitbutton" name="unlock" value="<?php echo _("Unlock"); ?>" /> |
---|
[1] | 21 | <?php } ?> |
---|
| 22 | |
---|
[20] | 23 | <input type="submit" class="formsubmitbutton" name="cancel" value="<?php echo _("Cancel"); ?>" /> |
---|
[1] | 24 | </form> |
---|
Note: See
TracBrowser
for help on using the repository browser.