loadTemplateFile("instructor_config.tpl.php"); $template->setVariable("TITLE", _AT('pa_title_instructor_config')); $template->setVariable("CONFIG_NOTE", _AT('pa_note_instructor_config')); $mode=get_config_mode($_SESSION['pa']['course_id']); $template->setVariable("CONFIG_STRING", _AT('pa_tag_config_string')); if ($mode==CONFIG_ENABLED){ $template->setVariable("CONFIG_VALUE", _AT('pa_tag_config_enabled')); $template->setVariable("CHECKED1", "checked=\"checked\""); } else { $template->setVariable("CONFIG_VALUE", _AT('pa_tag_config_disabled')); $template->setVariable("CHECKED2", "checked=\"checked\""); } $template->setVariable("FORM_NAME", "config_form"); $template->setVariable("ACTION", $_SERVER['PHP_SELF']); $template->setVariable("RADIO_VALUE1", "make_enabled"); $template->setVariable("RADIO_STRING1", _AT('yes')); $template->setVariable("RADIO_VALUE2", "make_disabled"); $template->setVariable("RADIO_STRING2", _AT('no')); $template->setVariable("SUBMIT_VALUE", _AT('pa_button_config_change')); $template->show(); ?>