loadTemplatefile("index_admin.tpl.php", true, true); $template->setVariable("TITLE", _AT('pa_title_admin_index')); $template->setVariable("MESSAGE", _AT('pa_note_admin')); $template->setVariable("FORM_NAME", "photo_form"); $template->setVariable("FORM_ACTION", $link); $template->setVariable("SELECT_NAME", "course_id"); for ($i=0; $isetCurrentBlock("OPTION_VALUE"); $template->setVariable("VALUE", $courses[$i]['id']); $template->setVariable("TEXT", $courses[$i]['title']); $template->parseCurrentBlock("OPTION_VALUE"); } $template->setVariable("SUBMIT_NAME", "submit"); $template->setVariable("SUBMIT_VALUE", _AT('pa_tag_go')); $template->parseCurrentBlock(); $template->show(); ?>