advise_display_popup_substitute_selected

4.x advise.module advise_display_popup_substitute_selected()

File

modules/advise/advise.module, line 605

Code

function advise_display_popup_substitute_selected() {
  global $current_student_id, $fp, $screen;
  $rtn = "";

  advise_init_screen();
  fp_add_js(fp_get_module_path("advise") . "/js/advise.js");

  $sub_decimals_allowed = variable_get("sub_hours_decimals_allowed", 2);
  // Add our allowed substitution decimals as a js setting for later use.
  fp_add_js(array("subDecimalsAllowed" => $sub_decimals_allowed), "setting");


  $course_id = trim($_GET["course_id"]);
  $group_id = trim(addslashes($_GET["group_id"]));
  $semester_num = trim(addslashes($_GET["semester_num"]));
  $group_hours_remaining = trim(addslashes($_GET["group_hours_remaining"]));

  $rtn .= $screen->display_popup_substitute($course_id, $group_id, $semester_num, $group_hours_remaining);


  return $rtn;
}