");
// Get the student's name
student = database.cursor("select * from cl_person where " +
"p_id = " + cursor.e_student);
student.next();
write("" + trim(student.p_name) + " | ");
student.close();
// Get the student's manager's name
mgr = database.cursor("select * from cl_person where " +
"p_id = " + cursor.e_manager);
mgr.next();
write("" + trim(mgr.p_name) + " | ");
mgr.close();
// Date of enroll request
write("" + dbdate(cursor.e_request_dt) +
" | ");
// Fill in the current approval/denial/unknown status
apprcheck = "";
denycheck = "";
if (cursor.e_appr_deny == "A")
apprcheck = " checked";
else if (cursor.e_appr_deny == "D")
denycheck = " checked";
write(" | ");
write(" | ");
write("
");
}