summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-12-07 23:05:00 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-12-07 23:05:00 +0000
commitbd033cda8fa93ade32d6fdef53a4d46397e1a372 (patch)
tree90762b961b4d20baa28ae76dd0377e149aa33c5d /themes
parentba2b39624b25ccc1626071d27cca6598d776106b (diff)
Move form.html.php from themes/default/views to core/views
Diffstat (limited to 'themes')
-rw-r--r--themes/default/views/form.html.php62
1 files changed, 0 insertions, 62 deletions
diff --git a/themes/default/views/form.html.php b/themes/default/views/form.html.php
deleted file mode 100644
index 86f1e38a..00000000
--- a/themes/default/views/form.html.php
+++ /dev/null
@@ -1,62 +0,0 @@
-<? defined("SYSPATH") or die("No direct script access."); ?>
-<?
-print($open);
-
-// Not sure what to do with these, but at least show that we received them.
-if ($class) {
- print "<!-- unused class in form.html.php: $class -->";
-}
-if ($title) {
- print "<!-- unused title in form.html.php: $title -->";
-}
-
-if (!function_exists("DrawForm")) {
- function DrawForm($inputs, $level=1) {
- $error_messages = array();
- $prefix = str_repeat(" ", $level);
-
- foreach ($inputs as $input) {
- if ($input->type == 'group') {
- print "$prefix<fieldset>\n";
- print "$prefix <legend>$input->name</legend>\n";
- print "$prefix <ul>\n";
-
- DrawForm($input->inputs, $level + 2);
- print "$prefix </ul>\n";
-
- // Since hidden fields can only have name and value attributes lets just render it now
- $hidden_prefix = "$prefix ";
- foreach ($input->hidden as $hidden) {
- print "$prefix {$hidden->render()}\n";
- }
- print "$prefix</fieldset>\n";
- } else {
- if ($input->error_messages()) {
- print "$prefix<li class=\"gError\">\n";
- } else {
- print "$prefix<li>\n";
- }
-
- if ($input->label()) {
- print "$prefix {$input->label()}\n";
- }
- print "$prefix {$input->render()}\n";
- if ($input->message()) {
- print "$prefix <p>{$input->message()}</p>\n";
- }
- if ($input->error_messages()) {
- foreach ($input->error_messages() as $error_message) {
- print "$prefix <p class=\"gError\">\n";
- print "$prefix $error_message\n";
- print "$prefix </p>\n";
- }
- }
- print "$prefix</li>\n";
- }
- }
- }
-}
-DrawForm($inputs);
-
-print($close);
-?>