summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TForm.php
diff options
context:
space:
mode:
authorxue <>2006-01-19 05:37:08 +0000
committerxue <>2006-01-19 05:37:08 +0000
commit5c333928f7f328319f1de4486d5e7ce3a54fc2ce (patch)
tree91961c55d0d9bf40538cd5fec0a3afbb588a35b3 /framework/Web/UI/TForm.php
parentfd5e244960a5824de0b3e7193d373d15be25e4e2 (diff)
Added DummyDataSource. TDataGrid completed (tests pending).
Diffstat (limited to 'framework/Web/UI/TForm.php')
-rw-r--r--framework/Web/UI/TForm.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/framework/Web/UI/TForm.php b/framework/Web/UI/TForm.php
index 4cb97911..7155627a 100644
--- a/framework/Web/UI/TForm.php
+++ b/framework/Web/UI/TForm.php
@@ -11,13 +11,10 @@ class TForm extends TControl
protected function addAttributesToRender($writer)
{
$attributes=$this->getAttributes();
-// $writer->addAttribute('name',$this->getName());
$writer->addAttribute('method',$this->getMethod());
$writer->addAttribute('action',$this->getRequest()->getRequestURI());
if(($enctype=$this->getEnctype())!=='')
$writer->addAttribute('enctype',$enctype);
- $attributes->remove('name');
- $attributes->remove('method');
$attributes->remove('action');
$page=$this->getPage();
@@ -35,6 +32,7 @@ class TForm extends TControl
}*/
if($this->getDefaultButton()!=='')
{//todo
+ /*
$control=$this->findControl($this->getDefaultButton());
if(!$control)
$control=$page->findControl($this->getDefaultButton());
@@ -42,6 +40,7 @@ class TForm extends TControl
$page->getClientScript()->registerDefaultButtonScript($control,$writer,false);
else
throw new Exception('Only IButtonControl can be default button.');
+ */
}
$writer->addAttribute('id',$this->getClientID());
foreach($attributes as $name=>$value)
@@ -101,7 +100,7 @@ class TForm extends TControl
{
$this->setViewState('Enctype',$value,'');
}
-
+/*
public function getSubmitDisabledControls()
{
return $this->getViewState('SubmitDisabledControls',false);
@@ -111,7 +110,7 @@ class TForm extends TControl
{
$this->setViewState('SubmitDisabledControls',TPropertyValue::ensureBoolean($value),false);
}
-
+*/
public function getName()
{
return $this->getUniqueID();