From db77666426e101c2bb374947af6193570b564e10 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 20 Nov 2012 20:27:07 +0100 Subject: sqlbox: Add a simple form using formslib --- sqlbox/sqlbox_form.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sqlbox/sqlbox_form.php (limited to 'sqlbox/sqlbox_form.php') diff --git a/sqlbox/sqlbox_form.php b/sqlbox/sqlbox_form.php new file mode 100644 index 0000000..6569595 --- /dev/null +++ b/sqlbox/sqlbox_form.php @@ -0,0 +1,18 @@ +libdir.'/formslib.php'); + +class mod_sqlbox_form extends moodleform { + + public function definition() { + $mform = $this->_form; + $mform->addElement('header', 'general', 'SQLBox'); + $mform->addElement('text', 'query', 'Query', 'size="50"'); + $mform->addElement('editor', 'query2', 'Query2'); + $mform->addElement('submit', 'button', 'Submit'); + } +} + +?> -- cgit