diff options
author | Thomas Renard <[email protected]> | 2012-12-27 19:18:21 +0100 |
---|---|---|
committer | Thomas Renard <[email protected]> | 2012-12-27 19:18:21 +0100 |
commit | 04d05dcc3f5d95ac1ba201820a4d10812b8068e7 (patch) | |
tree | b5f96c4b999223eaacb5fb4f1d81ad2e849b1e9d /plugins | |
parent | 4a0a3ca93ce2e1c360e3416fbddb0d666499baa8 (diff) | |
parent | 715a8239ac5cb67b49a2a66984303f27f11db2b3 (diff) |
Merge remote-tracking branch 'upstream/master' into owncloud
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/example/example.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/plugins/example/example.php b/plugins/example/example.php index eef604b4f..f3788ae8c 100644 --- a/plugins/example/example.php +++ b/plugins/example/example.php @@ -23,7 +23,9 @@ class Example extends Plugin { function save() { $example_value = db_escape_string($_POST["example_value"]); - echo "Value set to $example_value (not really)"; + $this->host->set($this, "example", $example_value); + + echo "Value set to $example_value"; } function get_prefs_js() { @@ -35,6 +37,13 @@ class Example extends Plugin { print "<div dojoType=\"dijit.layout.AccordionPane\" title=\"".__("Example Pane")."\">"; + print "<br/>"; + +// print_r($this->host->set($this, "example", rand(0,100))); +// print_r($this->host->get_all($this)); + + $value = $this->host->get($this, "example"); + print "<form dojoType=\"dijit.form.Form\">"; print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\"> @@ -47,7 +56,7 @@ class Example extends Plugin { notify_info(transport.responseText); } }); - this.reset(); + //this.reset(); } </script>"; @@ -58,7 +67,7 @@ class Example extends Plugin { print "<table width=\"100%\" class=\"prefPrefsList\">"; print "<tr><td width=\"40%\">".__("Sample value")."</td>"; - print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" name=\"example_value\"></td></tr>"; + print "<td class=\"prefValue\"><input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\" name=\"example_value\" value=\"$value\"></td></tr>"; print "</table>"; |