-
Notifications
You must be signed in to change notification settings - Fork 0
/
preview_submit_page.php
52 lines (45 loc) · 1.59 KB
/
preview_submit_page.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
<?php
//
// submit用のプレビューページを生成
//
//print the items
echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide');
{
//echo '<form action="" method="post" onsubmit=" ">';
//echo '<fieldset>'; // for mobile viewer
$params = array('apply_id' => $apply->id, 'required' => 1);
$countreq = $DB->count_records('apply_item', $params);
if ($countreq>0) {
echo '<span class="apply_required_mark">(*)';
echo get_string('items_are_required', 'apply');
echo '</span>';
}
//
echo $OUTPUT->box_start('generalbox');
{
foreach ($items as $item) {
//
if ($item->typ!='pagebreak') {
if ($item->label!=APPLY_ADMIN_REPLY_TAG and $item->label!=APPLY_ADMIN_ONLY_TAG and $item->typ!='fixedtitle') {
apply_print_line_space();
echo $OUTPUT->box_start('apply_print_item');
apply_print_item_submit($item, '', false);
echo $OUTPUT->box_end();
}
}
else {
echo '<hr class="apply_pagebreak" />';
}
}
if ($Table_in) { // テーブルはまだ閉じられていない.
echo $OUTPUT->box_start('apply_print_item');
apply_close_table_tag();
echo $OUTPUT->box_end();
//echo '<div style="color:#c00000">['.get_string('not_close_table','apply').']</div>';
}
}
echo $OUTPUT->box_end();
//echo '</fieldset>'; // for mobile viewer
//echo '</form>';
}
echo $OUTPUT->box_end();