From 6b685cc4e496c5eabbb3e6415fb7fdf0474bf0f1 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 23 Dec 2006 00:22:48 +0000 Subject: add currency-converter tutorial --- demos/currency-converter/protected/.htaccess | 1 + demos/currency-converter/protected/pages/Home.page | 51 ++++++++++++++++++++++ demos/currency-converter/protected/pages/Home.php | 15 +++++++ .../protected/runtime/global.cache | 1 + 4 files changed, 68 insertions(+) create mode 100644 demos/currency-converter/protected/.htaccess create mode 100644 demos/currency-converter/protected/pages/Home.page create mode 100644 demos/currency-converter/protected/pages/Home.php create mode 100644 demos/currency-converter/protected/runtime/global.cache (limited to 'demos/currency-converter/protected') diff --git a/demos/currency-converter/protected/.htaccess b/demos/currency-converter/protected/.htaccess new file mode 100644 index 00000000..3418e55a --- /dev/null +++ b/demos/currency-converter/protected/.htaccess @@ -0,0 +1 @@ +deny from all \ No newline at end of file diff --git a/demos/currency-converter/protected/pages/Home.page b/demos/currency-converter/protected/pages/Home.page new file mode 100644 index 00000000..47b91344 --- /dev/null +++ b/demos/currency-converter/protected/pages/Home.page @@ -0,0 +1,51 @@ +<%@ Theme="Basic" %> + + + + + +
+ Currency Converter +
+ + + + +
+
+ + + + +
+
+ Amount in Other Currency: + +
+
+ + + $('<%= $this->total->ClientID %>').innerHTML = "calculating..." + + +
+
+
+ + \ No newline at end of file diff --git a/demos/currency-converter/protected/pages/Home.php b/demos/currency-converter/protected/pages/Home.php new file mode 100644 index 00000000..dcf9339e --- /dev/null +++ b/demos/currency-converter/protected/pages/Home.php @@ -0,0 +1,15 @@ +Page->IsValid) + { + $rate = floatval($this->currencyRate->Text); + $dollars = floatval($this->dollars->Text); + $this->total->Text = $rate * $dollars; + } + } +} +?> \ No newline at end of file diff --git a/demos/currency-converter/protected/runtime/global.cache b/demos/currency-converter/protected/runtime/global.cache new file mode 100644 index 00000000..81ed6269 --- /dev/null +++ b/demos/currency-converter/protected/runtime/global.cache @@ -0,0 +1 @@ +a:1:{s:35:"prado:securitymanager:validationkey";s:38:"44099869715766197794850216601377650299";} \ No newline at end of file -- cgit v1.2.3