diff options
author | Daniel <darthdaniel85@gmail.com> | 2014-10-23 17:46:06 -0500 |
---|---|---|
committer | Daniel <darthdaniel85@gmail.com> | 2014-10-23 17:47:25 -0500 |
commit | a31c1f2ff0f4c996e0b90b1743b775af4cf58e6a (patch) | |
tree | 5c4b82d153bbe3dde8ca60d87e1efc23a9fefeab /framework/Wsat/pages/TWsatScaffolding.php | |
parent | 6258436ce62988d1178c7c394d5093dbac52056f (diff) |
Scaffolding 10%
Diffstat (limited to 'framework/Wsat/pages/TWsatScaffolding.php')
-rw-r--r-- | framework/Wsat/pages/TWsatScaffolding.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/framework/Wsat/pages/TWsatScaffolding.php b/framework/Wsat/pages/TWsatScaffolding.php index 7352b2ae..9bbeec3a 100644 --- a/framework/Wsat/pages/TWsatScaffolding.php +++ b/framework/Wsat/pages/TWsatScaffolding.php @@ -17,10 +17,7 @@ class TWsatScaffolding extends TPage public function onInit($param) { parent::onInit($param); - if (!$this->IsPostBack) - { - $this->startVisual(); - } + $this->startVisual(); } private function startVisual() @@ -29,11 +26,12 @@ class TWsatScaffolding extends TPage foreach ($scf_generator->getAllTableNames() as $tableName) { $dynChb = new TCheckBox(); - $dynChb->ID = $tableName; + $dynChb->ID = "cb_$tableName"; $dynChb->Text = ucfirst($tableName); $dynChb->Checked = true; + $this->registerObject("cb_$tableName", $dynChb); $this->tableNames->getControls()->add($dynChb); - + $this->tableNames->getControls()->add("</br>"); } } @@ -42,7 +40,8 @@ class TWsatScaffolding extends TPage if ($this->IsValid) { $scf_generator = new TWsatScaffoldingGenerator(); - $scf_generator->renderAllTablesInformation(); + // echo $this->cb_student->Text; + // $scf_generator->renderAllTablesInformation(); } } |