'; include('./html/html.css'); echo ''; if ($submit->user_id!=$USER->id) { require_capability('mod/apply:viewreports', $context); } $student = $DB->get_record('user', array('id'=>$submit->user_id)); if ($apply->date_format=='') $apply->date_format = get_string('date_format_default', 'apply'); $user_name = jbxl_get_user_name($student, $apply->name_pattern); $title = $user_name.' ('.userdate($submit->time_modified, $apply->date_format).')'; if ($submit->class==APPLY_CLASS_DRAFT) $title .= ' '.get_string('class_draft', 'apply').''; else if ($submit->class==APPLY_CLASS_CANCEL) $title .= ' '.get_string('class_cancel','apply').''; if ($submit->version!=$submit_ver) $title .= '  Ver.'.$submit_ver.''; // preview icon if ($this_action!='preview') { $preview_img = $OUTPUT->pix_icon('t/preview', get_string('preview')); $preview_url = new moodle_url('/mod/apply/preview.php'); $preview_url->params(array('id'=>$cm->id, 'courseid'=>$courseid, 'action'=>$this_action)); $preview_url->params(array('submit_id'=>$submit->id, 'submit_ver'=>$submit_ver, 'user_id'=>$user_id)); $title .= '  '.$preview_img.''; } echo '
'; echo $OUTPUT->heading(format_text($title), 4); echo '
'; //echo '
'; // echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide entry_view'); foreach ($items as $item) { //get the values $params = array('submit_id'=>$submit->id, 'item_id'=>$item->id, 'version'=>$submit_ver); $value = $DB->get_record('apply_value', $params); if ($item->typ!='pagebreak' and $item->label!=APPLY_SUBMIT_ONLY_TAG and $item->label!=APPLY_ADMIN_ONLY_TAG and $item->typ!='fixedtitle') { echo $OUTPUT->box_start('apply_print_item'); apply_print_line_space(); if (isset($value->value)) { apply_print_item_show_value($item, $value->value); } else { apply_print_item_show_value($item, false); } echo $OUTPUT->box_end(); } // else if ($item->label==APPLY_ADMIN_ONLY_TAG and has_capability('mod/apply:viewreports', $context) and $item->typ!='fixedtitle') { echo $OUTPUT->box_start('apply_print_item'); apply_print_line_space(); if (isset($value->value)) { apply_print_item_show_value($item, $value->value); } else { apply_print_item_show_value($item, false); } echo $OUTPUT->box_end(); } } // if ($Table_in) { // テーブルはまだ閉じられていない. echo $OUTPUT->box_start('apply_print_item'); apply_close_table_tag(); echo $OUTPUT->box_end(); //echo '
['.get_string('not_close_table','apply').']
'; } require('entry_info.php'); echo $OUTPUT->box_end(); //require('entry_button.php');