-
Notifications
You must be signed in to change notification settings - Fork 0
/
entry_info.php
75 lines (64 loc) · 2.39 KB
/
entry_info.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
require_once('jbxl/jbxl_moodle_tools.php');
if ($submit) {
// echo $OUTPUT->box_start('boxaligncenter boxwidthwide');
$acked_str = ' - ';
$acked_link = ' - ';
$acked_time = ' - ';
$execd_str = ' - ';
$execd_link = ' - ';
$execd_time = ' - ';
//
if ($submit->version==$submit_ver) {
if ($submit->class!=APPLY_CLASS_DRAFT) {
if ($submit->acked==APPLY_ACKED_ACCEPT) {
$acked_str = get_string('acked_accept', 'apply');
$acked_link = jbxl_get_user_link($submit->acked_user, $name_pattern);
$acked_time = userdate($submit->acked_time);
}
else if ($submit->acked==APPLY_ACKED_REJECT) {
$acked_str = get_string('acked_reject', 'apply');
$acked_link = jbxl_get_user_link($submit->acked_user, $name_pattern);
$acked_time = userdate($submit->acked_time);
}
else if ($submit->acked==APPLY_ACKED_NOTYET) {
$acked_str = get_string('acked_notyet', 'apply');
}
}
//
if ($submit->class!=APPLY_CLASS_DRAFT) {
if ($submit->execd==APPLY_EXECD_DONE) {
$execd_str = get_string('execd_done', 'apply');
$execd_link = jbxl_get_user_link($submit->execd_user, $name_pattern);
$execd_time = userdate($submit->execd_time);
}
else {
$execd_str = get_string('execd_notyet', 'apply');
}
}
}
echo '<br />';
echo '<table border="1" class="entry_info>';
echo '<tr><td>';
echo '<table border="0">';
echo '<tr>';
echo '<td> '.get_string('title_ack', 'apply').': </td>';
echo '<td> '.$acked_str. ' </td>';
echo '<td> '.$acked_link.' </td>';
echo '<td> '.$acked_time.' </td>';
echo '</tr>';
if (!$apply->only_acked_accept) {
echo '<tr>';
echo '<td> '.get_string('title_exec', 'apply').': </td>';
echo '<td> '.$execd_str. ' </td>';
echo '<td> '.$execd_link.' </td>';
echo '<td> '.$execd_time.' </td>';
echo '</tr>';
}
echo '</table>';
echo '</td><tr>';
echo '</table>';
echo '<br />';
//
// echo $OUTPUT->box_end();
}