summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-06-15 19:06:25 +0000
committerDries Buytaert <dries@buytaert.net>2003-06-15 19:06:25 +0000
commiteb030cb9d8839bd08cb2bd1e4f954efe37047303 (patch)
treedcd7f9e913cbf5707208bfc36376e38632eb05c8 /includes
parenta0e0ea93371646a28c3dc71b0b077035ab6569d6 (diff)
downloadbrdo-eb030cb9d8839bd08cb2bd1e4f954efe37047303.tar.gz
brdo-eb030cb9d8839bd08cb2bd1e4f954efe37047303.tar.bz2
- Improvements: XHTML-ifications. Patch by GmbH.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc4
-rw-r--r--includes/theme.inc4
2 files changed, 4 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 1e4c249a7..228e6d339 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -808,7 +808,7 @@ function form($form, $method = "post", $action = 0, $options = 0) {
if (!$action) {
$action = request_uri();
}
- return "<form action=\"$action\" method=\"$method\"". ($options ? " $options" : "") .">\n$form</form>\n";
+ return "<form action=\"$action\" method=\"$method\"". ($options ? " $options" : "") .">\n$form\n</form>\n";
}
function form_item($title, $value, $description = 0) {
@@ -825,7 +825,7 @@ function form_checkbox($title, $name, $value = 1, $checked = 0, $description = 0
function form_textfield($title, $name, $value, $size, $maxlength, $description = 0) {
$size = $size ? " size=\"$size\"" : "";
- return form_item($title, "<input maxlength=\"$maxlength\" class=\"form-text\" name=\"edit[$name]\"$size value=\"". check_form($value) ."\" />", $description);
+ return form_item($title, "<input type=\"text\" maxlength=\"$maxlength\" class=\"form-text\" name=\"edit[$name]\"$size value=\"". check_form($value) ."\" />", $description);
}
function form_password($title, $name, $value, $size, $maxlength, $description = 0) {
diff --git a/includes/theme.inc b/includes/theme.inc
index 66ea4a4ac..8c4148a48 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -25,11 +25,11 @@ class BaseTheme {
$output .= "<html><head><title>". $title ? $title : variable_get(site_name, "drupal") ."</title>";
$output .= theme_head($main);
$output .= "</head><body bgcolor=\"$this->background\" text=\"$this->foreground". theme_onload_attribute(). "\">";
- $output .= "<table border=\"0\" cellspacing=\"4\" cellpadding=\"4\"><tr><td valign=\"top\" width=\"170\">";
+ $output .= "<table border=\"0\" cellspacing=\"4\" cellpadding=\"4\"><tr><td style=\"vertical-align: top; width: 170px;\">";
print $output;
$this->box(t("Navigation"), @implode("<br />", link_page())); theme_blocks("all", $this);
- print "</td><td valign=\"top\">";
+ print "</td><td style=\"vertical-align: top;\">";
}