diff options
author | xue <> | 2006-04-02 01:48:18 +0000 |
---|---|---|
committer | xue <> | 2006-04-02 01:48:18 +0000 |
commit | f826b0ae6b8f11f8da1a5a6251e9a1fe6e6c1e85 (patch) | |
tree | 74d1aa11100d867bebcc94d1d871d896df055087 /demos/quickstart/protected/pages/Controls/Samples | |
parent | 3f003a625159217eddedeaa02c999f76f351525e (diff) |
Added TFileUpload and TJavascriptLogger tutorials.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TFileUpload/Home.page | 17 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TFileUpload/Home.php | 21 |
2 files changed, 38 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TFileUpload/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TFileUpload/Home.page new file mode 100644 index 00000000..30168e1a --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TFileUpload/Home.page @@ -0,0 +1,17 @@ +<com:TContent ID="body">
+
+<h1>TFileUpload Sample</h1>
+
+<p>
+Please choose a file to upload:
+</p>
+
+<com:TFileUpload OnFileUpload="fileUploaded" />
+
+<com:TButton Text="Upload" />
+
+<br/>
+
+<com:TLabel ID="Result" />
+
+</com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/Controls/Samples/TFileUpload/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TFileUpload/Home.php new file mode 100644 index 00000000..d5cf990a --- /dev/null +++ b/demos/quickstart/protected/pages/Controls/Samples/TFileUpload/Home.php @@ -0,0 +1,21 @@ +<?php
+
+class Home extends TPage
+{
+ public function fileUploaded($sender,$param)
+ {
+ if($sender->HasFile)
+ {
+ $this->Result->Text="
+ You just uploaded a file:
+ <br/>
+ Name: {$sender->FileName}
+ <br/>
+ Size: {$sender->FileSize}
+ <br/>
+ Type: {$sender->FileType}";
+ }
+ }
+}
+
+?>
\ No newline at end of file |