From 82a351192f38cc73268ea7de7a48e2e0425d5cbf Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 28 May 2007 00:58:40 +0000 Subject: Fixed a bug when using renderer in TWizard's sidebar. --- .../protected/pages/Day3/CreateAdminUser.page | 13 ++++++++----- .../protected/pages/Day3/CreateEditUser.page | 6 +++++- .../protected/pages/Day3/CreateLoginUser.page | 16 ++++++++++------ .../protected/pages/Day3/CreateNewUser.page | 14 +++++++++----- 4 files changed, 32 insertions(+), 17 deletions(-) (limited to 'demos/blog-tutorial/protected/pages/Day3') diff --git a/demos/blog-tutorial/protected/pages/Day3/CreateAdminUser.page b/demos/blog-tutorial/protected/pages/Day3/CreateAdminUser.page index 95d7dac5..a91895a9 100644 --- a/demos/blog-tutorial/protected/pages/Day3/CreateAdminUser.page +++ b/demos/blog-tutorial/protected/pages/Day3/CreateAdminUser.page @@ -16,6 +16,9 @@ We will display the user list in a table. Each row of the table represents a sin
+We create two files protected/pages/users/AdminUser.page and protected/pages/users/AdminUser.php to save the page template and page class, respectively. +
@@ -28,13 +31,13 @@ We use TButtonColumn displays a column of "Delete" buttons. -
Complete page template is shown as follows:
+The complete page template is shown as follows:
+We create two files protected/pages/users/EditUser.page and protected/pages/users/EditUser.php to save the page template and page class, respectively. +
+As you may have guessed, the page template EditUser is largely the same as that of NewUser. Besides the difference in page title and the caption of the submit button, there are three main differences. @@ -30,7 +34,7 @@ As you may have guessed, the page template EditUser is largely the same <%@ Title="My Blog - Edit User" %> <com:TContent ID="Main"> - +
+We create two files protected/pages/users/LoginUser.page and protected/pages/users/LoginUser.php to save the page template and page class, respectively. +
+-Below we show the template for LoginPage. As we see, the page mainly contains a text box for collecting username and a text box for password. The username input is required, which is ensured by the TRequiredFieldValidator. The correctness of the password input is ensured by the TCustomValidator which invokes the page's validateUser() method when validation is performed. The page also has "login" button which invokes the page's loginButtonClicked() when it is clicked. +Below we show the template for LoginUser. As we see, the page mainly contains a text box for collecting username and a text box for password. The username input is required, which is ensured by the TRequiredFieldValidator. The correctness of the password input is ensured by the TCustomValidator which invokes the page's validateUser() method when validation is performed. The page also has "login" button which invokes the page's loginButtonClicked() when it is clicked.