function render_body() { dom::h3('', 'Raw SQL'); dom::push_form('lists.php'); dom::textarea("sql"); dom::br(); dom::hidden('action', 'sql'); dom::submit(); dom::pop(); list_instructors(); list_sections(); list_books(); list_courses(); }
function prof_special_request_form($username) { $courses = all_course_data(); dom::h3('section-title', 'Special Reqeusts'); dom::push_div('section'); dom::push_form(); dom::label('Course:'); dom::dropdown('course_id', $courses); dom::textinput('title', 'Title'); dom::label('Justification'); dom::textarea('justification'); dom::hidden('username', $username); dom::hidden('action', 'special_request'); dom::br(); dom::submit(); dom::pop(); dom::pop(); }