summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord
diff options
context:
space:
mode:
authorctrlaltca@gmail.com <>2011-06-08 15:36:00 +0000
committerctrlaltca@gmail.com <>2011-06-08 15:36:00 +0000
commitf7ac5047d795e83d63f70bec45422073627800bd (patch)
tree649c29f23493b82e40f196e3786925d6e7cc9ce5 /framework/Data/ActiveRecord
parentf70d017d69274a49bfccd8003ddfc27e6132edd1 (diff)
patch for #331
Diffstat (limited to 'framework/Data/ActiveRecord')
-rw-r--r--framework/Data/ActiveRecord/Scaffold/TScaffoldView.php12
-rw-r--r--framework/Data/ActiveRecord/Scaffold/TScaffoldView.tpl10
2 files changed, 12 insertions, 10 deletions
diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldView.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldView.php
index 04420e9a..6201009f 100644
--- a/framework/Data/ActiveRecord/Scaffold/TScaffoldView.php
+++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldView.php
@@ -4,7 +4,7 @@
*
* @author Wei Zhuo <weizhuo[at]gmail[dot]com>
* @link http://www.pradosoft.com/
- * @copyright Copyright &copy; 2005-2008 PradoSoft
+ * @copyright Copyright &copy; 2005-2008 PradoSoft
* @license http://www.pradosoft.com/license/
* @version $Id$
* @package System.Data.ActiveRecord.Scaffold
@@ -113,8 +113,8 @@ class TScaffoldView extends TScaffoldBase
{
$this->getListView()->setVisible(false);
$this->getEditView()->setVisible(true);
- $this->getAddButton()->setVisible(false);
- $this->getSearchControl()->setVisible(false);
+ $this->_panForNewButton->setVisible(false);
+ $this->_panForSearch->setVisible(false);
$this->getEditView()->getCancelButton()->setVisible(true);
$this->getEditView()->getClearButton()->setVisible(false);
}
@@ -126,8 +126,8 @@ class TScaffoldView extends TScaffoldBase
{
$this->getListView()->setVisible(true);
$this->getEditView()->setVisible(false);
- $this->getAddButton()->setVisible(true);
- $this->getSearchControl()->setVisible(true);
+ $this->_panForNewButton->setVisible(true);
+ $this->_panForSearch->setVisible(true);
}
/**
@@ -140,4 +140,4 @@ class TScaffoldView extends TScaffoldBase
$this->showEditView($sender, $param);
}
}
-
+
diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldView.tpl b/framework/Data/ActiveRecord/Scaffold/TScaffoldView.tpl
index 01cceb07..eea39526 100644
--- a/framework/Data/ActiveRecord/Scaffold/TScaffoldView.tpl
+++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldView.tpl
@@ -1,9 +1,11 @@
<div class="scaffold_view">
-<com:TScaffoldSearch ID="_search" ListViewID="_listView" />
+<com:TPanel ID="_panForSearch">
+ <com:TScaffoldSearch ID="_search" ListViewID="_listView" />
+</com:TPanel>
<com:TScaffoldListView ID="_listView" EditViewID="_editView" />
-<span class="auxilary-button buttons">
-<com:TButton ID="_newButton" Text="Add new record" CssClass="new-button" CommandName="new" />
-</span>
+<com:TPanel ID="_panForNewButton" CssClass="auxilary-button buttons">
+ <com:TButton ID="_newButton" Text="Add new record" CssClass="new-button" CommandName="new" />
+</com:TPanel>
<com:TScaffoldEditView ID="_editView" Visible="false"/>
</div> \ No newline at end of file