diff options
author | wei <> | 2006-07-14 09:20:45 +0000 |
---|---|---|
committer | wei <> | 2006-07-14 09:20:45 +0000 |
commit | 4b78404c20490a615459267426ce9e6737bf4485 (patch) | |
tree | be68ab7a2155980b05e5ab9f454e991e93007563 /demos/sqlmap/protected/pages/Sample/ProductList.php | |
parent | 143980b6dab8ad87c44518e5b7befb614fb83b85 (diff) |
Moving files.
Diffstat (limited to 'demos/sqlmap/protected/pages/Sample/ProductList.php')
-rw-r--r-- | demos/sqlmap/protected/pages/Sample/ProductList.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/demos/sqlmap/protected/pages/Sample/ProductList.php b/demos/sqlmap/protected/pages/Sample/ProductList.php new file mode 100644 index 00000000..a35c40ea --- /dev/null +++ b/demos/sqlmap/protected/pages/Sample/ProductList.php @@ -0,0 +1,18 @@ +<?php
+
+class ProductList extends TPage
+{
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+ if(!$this->IsPostBack)
+ {
+ $sqlmap = $this->Application->Modules['petshop-sqlmap'];
+ $products = $sqlmap->queryForList('SelectAllProducts');
+ $this->productList->setDataSource($products);
+ $this->productList->dataBind();
+ }
+ }
+}
+
+?>
\ No newline at end of file |