'; echo '
'; echo ''; echo ''; // $align = right_to_left() ? 'right' : 'left'; $student = $DB->get_record('user', array('id'=>$submit->user_id)); $user_name = apply_get_user_name($student, $name_pattern); $title = $user_name.' ('.userdate($submit->time_modified, '%Y/%m/%d %H:%M').')'; if ($submit_ver==0) $title .= ' '.get_string('title_draft','apply'); echo $OUTPUT->heading($title, 3); // if ($err_message!='') { echo $OUTPUT->box_start('mform error boxaligncenter boxwidthwide'); echo $err_message; echo $OUTPUT->box_end(); } // echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide'); 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); echo $OUTPUT->box_start('apply_print_item'); if ($item->typ!='pagebreak' and $item->label!=APPLY_SUBMIT_ONLY_TAG and $item->label!=APPLY_ADMIN_REPLY_TAG and $item->label!=APPLY_ADMIN_ONLY_TAG) { if (isset($value->value)) { apply_print_item_show_value($item, $value->value); } else { apply_print_item_show_value($item, false); } } else if ($item->label==APPLY_ADMIN_REPLY_TAG or $item->label==APPLY_ADMIN_ONLY_TAG) { if (isset($value->value)) { apply_print_item_submit($item, $value->value); } else { apply_print_item_submit($item, false); } } echo $OUTPUT->box_end(); } require('entry_info.php'); echo $OUTPUT->box_end(); // echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide'); echo ''; $accept = ''; $reject = ''; if ($submit->acked==APPLY_ACKED_ACCEPT) $accept = 'checked'; else if ($submit->acked==APPLY_ACKED_REJECT) $reject = 'checked'; $accept_str = get_string('accept_entry', 'apply'); $reject_str = get_string('reject_entry', 'apply'); // echo ''; echo ''; echo ''; echo ''; echo ''; if ($submit->execd==APPLY_EXECD_DONE) $checked = 'checked'; else $checked = ''; $execd_str = get_string('execd_entry', 'apply'); echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'.$accept_str.'    '.$reject_str.'
'.$execd_str.'      
'; echo $OUTPUT->box_end(); // $submit_value = 'value="'.get_string('operate_submit_button', 'apply').'"'; $back_value = 'value="'.get_string('back_button', 'apply').'"'; $reset_value = 'value="'.get_string('clear').'"'; $submit_button = ''; $back_button = ''; $reset_button = ''; // echo ''; echo ''; echo ''; // echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'.$submit_button.'   '.$reset_button.'   '.$back_button.'
'; echo '
'; echo '
'; echo ''; } // else { $back_button = $OUTPUT->single_button($back_url, get_string('back_button', 'apply')); // echo $OUTPUT->heading(get_string('no_submit_data', 'apply'), 3); echo '
'; echo $back_button; echo '
'; }