diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-23 10:03:32 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-11-23 10:03:32 +0100 |
commit | 93934b0ef0cac682681764050f485e8231838b30 (patch) | |
tree | 1b15c018e9460736d2eeaae8193a57583528f628 /sqlbox/sqlbox_form.php | |
parent | cb68bde9de9060e369103a3e5a8d217ed4104b8e (diff) | |
parent | 1e7e0ed272a3fa984241314dc01a871d3fa03c35 (diff) | |
download | sqltutor-plugin-93934b0ef0cac682681764050f485e8231838b30.tar.gz sqltutor-plugin-93934b0ef0cac682681764050f485e8231838b30.tar.bz2 sqltutor-plugin-93934b0ef0cac682681764050f485e8231838b30.zip |
Merge branch 'master' of ssh://git.bnfr.net/git/sqltutor-plugin
Diffstat (limited to 'sqlbox/sqlbox_form.php')
-rw-r--r-- | sqlbox/sqlbox_form.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sqlbox/sqlbox_form.php b/sqlbox/sqlbox_form.php new file mode 100644 index 0000000..946fad4 --- /dev/null +++ b/sqlbox/sqlbox_form.php @@ -0,0 +1,17 @@ +<?php + +defined('MOODLE_INTERNAL') || die(); + +require_once($CFG->libdir.'/formslib.php'); + +class mod_sqlbox_form extends moodleform { + + public function definition() { + $mform = &$this->_form; + $mform->addElement('header', 'sqlbox_general', 'SQLBox'); + $mform->addElement('text', 'sqlbox_query', 'SQL Query', 'size="50"'); + $mform->addElement('submit', 'sqlbox_button', 'Submit'); + } +} + +?> |