summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-03-11 12:44:34 +0000
committerxue <>2006-03-11 12:44:34 +0000
commit492021fec24cb583e6bd2e95b3f6c9ea7a271b5f (patch)
tree368af4c583dcdf743a2d257526731548b030486c
parentdd52398a4334f10edf16792f832aed86014dba8a (diff)
Fixed bugs of using renderEndTag.
-rw-r--r--framework/Web/UI/WebControls/TColorPicker.php4
-rw-r--r--framework/Web/UI/WebControls/TDatePicker.php3
2 files changed, 5 insertions, 2 deletions
diff --git a/framework/Web/UI/WebControls/TColorPicker.php b/framework/Web/UI/WebControls/TColorPicker.php
index c417ea2d..3488c912 100644
--- a/framework/Web/UI/WebControls/TColorPicker.php
+++ b/framework/Web/UI/WebControls/TColorPicker.php
@@ -225,8 +225,8 @@ class TColorPicker extends TTextBox
$writer->addAttribute('width', '20');
$writer->addAttribute('height', '20');
$writer->renderBeginTag('img');
- $writer->renderEndTag('img');
- $writer->renderEndTag('span');
+ $writer->renderEndTag();
+ $writer->renderEndTag();
}
}
diff --git a/framework/Web/UI/WebControls/TDatePicker.php b/framework/Web/UI/WebControls/TDatePicker.php
index 70f116a8..8d6d45e4 100644
--- a/framework/Web/UI/WebControls/TDatePicker.php
+++ b/framework/Web/UI/WebControls/TDatePicker.php
@@ -447,6 +447,7 @@ class TDatePicker extends TTextBox
$writer->renderBeginTag('input');
$writer->renderEndTag();
+ $writer->renderEndTag();
}
protected function hasDayPattern()
@@ -600,6 +601,7 @@ class TDatePicker extends TTextBox
$writer->addAttribute('class', $this->getCssClass().' TDatePickerButton');
$writer->addAttribute('value',$this->getButtonText());
$writer->renderBeginTag("input");
+ $writer->renderEndTag();
}
/**
@@ -614,6 +616,7 @@ class TDatePicker extends TTextBox
$writer->addAttribute('src', $url);
$writer->addAttribute('class', $this->getCssClass().' TDatePickerImageButton');
$writer->renderBeginTag('img');
+ $writer->renderEndTag();
}
/**