diff options
author | ctrlaltca@gmail.com <> | 2011-06-02 19:27:21 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-06-02 19:27:21 +0000 |
commit | 0daa38a4f5bb43d7332d681a98ccb693bc579230 (patch) | |
tree | 2b6435d1cdd4acddac1281aba120957ecc7cfe1a /demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload | |
parent | 3490b6226263b05d980d040a8fbf933c23979ab6 (diff) |
further documentation updates: everything else plus some things that were not even listed. Only T*RatingList has been left out
Diffstat (limited to 'demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload')
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload/Home.page | 15 | ||||
-rw-r--r-- | demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload/Home.php | 21 |
2 files changed, 36 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload/Home.page b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload/Home.page new file mode 100644 index 00000000..ac82e02e --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload/Home.page @@ -0,0 +1,15 @@ +<com:TContent ID="body">
+
+<h1>TActiveFileUpload Sample</h1>
+
+<p>
+Please choose a file to upload:
+</p>
+
+<com:TActiveFileUpload OnFileUpload="fileUploaded" />
+
+<br/>
+
+<com:TActiveLabel ID="Result" />
+
+<div class="last-modified">$Id$</div></com:TContent>
\ No newline at end of file diff --git a/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload/Home.php b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload/Home.php new file mode 100644 index 00000000..d5cf990a --- /dev/null +++ b/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveFileUpload/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 |