From ea9e7eb535b460218b693d4e5fec80297eb3e360 Mon Sep 17 00:00:00 2001
From: wei <>
Date: Thu, 3 May 2007 01:37:21 +0000
Subject: Add northwind db demo.
---
demos/northwind-db/protected/pages/Home.page | 12 ++++++++++
demos/northwind-db/protected/pages/Home.php | 28 +++++++++++++++++++++++
demos/northwind-db/protected/pages/northwind.gif | Bin 0 -> 25177 bytes
3 files changed, 40 insertions(+)
create mode 100644 demos/northwind-db/protected/pages/Home.page
create mode 100644 demos/northwind-db/protected/pages/Home.php
create mode 100644 demos/northwind-db/protected/pages/northwind.gif
(limited to 'demos/northwind-db/protected/pages')
diff --git a/demos/northwind-db/protected/pages/Home.page b/demos/northwind-db/protected/pages/Home.page
new file mode 100644
index 00000000..e2c3668e
--- /dev/null
+++ b/demos/northwind-db/protected/pages/Home.page
@@ -0,0 +1,12 @@
+
+
+
+Welcome to PRADO!
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/demos/northwind-db/protected/pages/Home.php b/demos/northwind-db/protected/pages/Home.php
new file mode 100644
index 00000000..06035069
--- /dev/null
+++ b/demos/northwind-db/protected/pages/Home.php
@@ -0,0 +1,28 @@
+getRecordClassList(Prado::getPathOfNamespace('Application.database.*'));
+ $this->class_list->dataSource = $classes;
+ $this->class_list->dataBind();
+ }
+
+ protected function getRecordClassList($directory)
+ {
+ $list=array();
+ $folder=@opendir($directory);
+ while($entry=@readdir($folder))
+ {
+ if($entry[0]==='.')
+ continue;
+ else if(is_file($directory.'/'.$entry))
+ $list[] = str_replace('.php', '', $entry);
+ }
+ closedir($folder);
+ return $list;
+ }
+}
+
+?>
\ No newline at end of file
diff --git a/demos/northwind-db/protected/pages/northwind.gif b/demos/northwind-db/protected/pages/northwind.gif
new file mode 100644
index 00000000..34e1f2ed
Binary files /dev/null and b/demos/northwind-db/protected/pages/northwind.gif differ
--
cgit v1.2.3