'; //echo '
'; echo ''; echo ''; // $align = right_to_left() ? 'right' : 'left'; $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, $name_pattern); $title = $user_name.' ('.userdate($submit->time_modified, $apply->date_format).')'; if ($submit_ver==0) $title .= ' '.get_string('title_draft','apply'); echo '
'; echo $OUTPUT->heading($title, 3); echo '
'; //echo '
'; // 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 and $item->typ!='fixedtitle') { apply_print_line_space(); 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 and $item->typ!='fixedtitle') { apply_print_line_space(); 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 ''; if ($apply->email_notification_user) { $email_str = get_string('email_entry', 'apply'); echo ''; echo ''; echo ''; echo ''; 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 (!$apply->only_acked_accept) { if ($submit->execd==APPLY_EXECD_DONE) $checked = 'checked'; else $checked = ''; $execd_str = get_string('execd_entry', 'apply'); echo ''; echo ''; echo ''; echo ''; echo ''; } echo '
'.$email_str.'
      
'.$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 ''; 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 '
'; echo $OUTPUT->heading(get_string('no_submit_data', 'apply'), 3); echo $back_button; echo '
'; }