summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
Diffstat (limited to 'demos')
-rw-r--r--demos/quickstart/protected/application.xml2
-rw-r--r--demos/quickstart/protected/controls/Layout.php2
-rw-r--r--demos/quickstart/protected/controls/Layout.tpl2
-rw-r--r--demos/quickstart/protected/controls/zh/TopicList.tpl108
-rw-r--r--demos/quickstart/protected/pages/GettingStarted/fr/Introduction.page2
-rw-r--r--demos/quickstart/protected/pages/GettingStarted/zh/Introduction.page21
6 files changed, 132 insertions, 5 deletions
diff --git a/demos/quickstart/protected/application.xml b/demos/quickstart/protected/application.xml
index 777dd86b..b744b2a0 100644
--- a/demos/quickstart/protected/application.xml
+++ b/demos/quickstart/protected/application.xml
@@ -25,10 +25,8 @@
<service id="page" class="TPageService" DefaultPage="GettingStarted.Introduction" />
</services>
-<!--
<parameters>
<parameter id="languages" value="('en'=>'English', 'fr'=>'Français', 'zh' => '中文(简体)')" />
</parameters>
--->
</application> \ No newline at end of file
diff --git a/demos/quickstart/protected/controls/Layout.php b/demos/quickstart/protected/controls/Layout.php
index e4f2fc1a..3973db8f 100644
--- a/demos/quickstart/protected/controls/Layout.php
+++ b/demos/quickstart/protected/controls/Layout.php
@@ -29,7 +29,7 @@ class Layout extends TTemplateControl
$this->languages->dataBind();
}
- public function language_links($sender, $param)
+ public function languageLinkCreated($sender, $param)
{
$item = $param->Item;
if($item->ItemType == TListItemType::Item || $item->ItemType == TListItemType::AlternatingItem)
diff --git a/demos/quickstart/protected/controls/Layout.tpl b/demos/quickstart/protected/controls/Layout.tpl
index 6c2b717f..ac41d1de 100644
--- a/demos/quickstart/protected/controls/Layout.tpl
+++ b/demos/quickstart/protected/controls/Layout.tpl
@@ -30,7 +30,7 @@
</td>
<td valign="top">
-<com:TRepeater ID="languages" OnItemCreated="language_links">
+<com:TRepeater ID="languages" OnItemCreated="languageLinkCreated">
<prop:HeaderTemplate>
<div class="languages">Available Languages: <ul>
</prop:HeaderTemplate>
diff --git a/demos/quickstart/protected/controls/zh/TopicList.tpl b/demos/quickstart/protected/controls/zh/TopicList.tpl
new file mode 100644
index 00000000..00fa2280
--- /dev/null
+++ b/demos/quickstart/protected/controls/zh/TopicList.tpl
@@ -0,0 +1,108 @@
+<div id="toc">
+
+<div class="topic">
+<div>PRADO初步</div>
+<ul>
+ <li><a href="?page=GettingStarted.Introduction">概况</a></li>
+ <li><a href="?page=GettingStarted.AboutPrado">什么是PRADO?</a></li>
+ <li><a href="?page=GettingStarted.Installation">安装</a></li>
+ <li><a href="?page=GettingStarted.NewFeatures">版本新功能</a></li>
+ <li><a href="?page=GettingStarted.Upgrading">从v2.x和v1.x升级</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>范例教程</div>
+<ul>
+ <li><a href="?page=GettingStarted.HelloWorld">创建第一个PRADO应用</a></li>
+ <li><a href="?page=Fundamentals.Hangman">Hangman游戏</a></li>
+ <li><a href="?page=Tutorial.CurrencyConverter">货币转换程序</a></li>
+ <li><a href="?page=Tutorial.AjaxChat">AJAX聊天程序</a></li>
+ <li><a href="?page=GettingStarted.CommandLine">命令行工具</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>基础概念</div>
+<ul>
+ <li><a href="?page=Fundamentals.Architecture">框架结构</a></li>
+ <li><a href="?page=Fundamentals.Components">部件</a></li>
+ <li><a href="?page=Fundamentals.Controls">控件</a></li>
+ <li><a href="?page=Fundamentals.Pages">页面</a></li>
+ <li><a href="?page=Fundamentals.Modules">模块</a></li>
+ <li><a href="?page=Fundamentals.Services">服务</a></li>
+ <li><a href="?page=Fundamentals.Applications">应用</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>各种配置</div>
+<ul>
+ <li><a href="?page=Configurations.Overview">概况</a></li>
+ <li><a href="?page=Configurations.Templates1">模板(1)</a></li>
+ <li><a href="?page=Configurations.Templates2">模板(2)</a></li>
+ <li><a href="?page=Configurations.Templates3">模板(3)</a></li>
+ <li><a href="?page=Configurations.AppConfig">应用配置</a></li>
+ <li><a href="?page=Configurations.PageConfig">页面配置</a></li>
+ <li><a href="?page=Configurations.UrlMapping">URL映射</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>控件使用参考</div>
+<ul>
+ <li><a href="?page=Controls.Standard">基本控件</a></li>
+ <li><a href="?page=Controls.Validation">验证控件</a></li>
+ <li><a href="?page=Controls.List">列表控件</a></li>
+ <li><a href="?page=Controls.Data">数据控件</a></li>
+ <li><a href="?page=ActiveControls.Home">Active控件(AJAX)</a></li>
+ <li><a href="?page=Controls.NewControl">创建新控件</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>服务使用参考</div>
+<ul>
+ <li><a href="?page=Fundamentals.Services">页面服务</a></li>
+ <li><a href="?page=Services.SoapService">SOAP服务</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>使用数据库</div>
+<ul>
+ <li><a href="?page=Database.DAO">数据存取对象(DAO)</a></li>
+ <li><a href="?page=Database.ActiveRecord">Active Record</a></li>
+ <li><a href="?page=Database.Scaffold">Active Record Scaffold</a></li>
+ <li><a href="?page=Database.SqlMap">SqlMap Data Mapper</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>高级教程</div>
+<ul>
+ <li><a href="?page=Advanced.Collections">Collections</a></li>
+ <li><a href="?page=Advanced.Auth">验证和授权</a></li>
+ <li><a href="?page=Advanced.Security">安全</a></li>
+ <li><a href="?page=Advanced.Assets">资源</a></li>
+ <li><a href="?page=Advanced.MasterContent">Master and Content</a></li>
+ <li><a href="?page=Advanced.Themes">Themes and Skins</a></li>
+ <li><a href="?page=Advanced.State">Persistent State</a></li>
+ <li><a href="?page=Advanced.Logging">日志</a></li>
+ <li><a href="?page=Advanced.Error">错误处理</a></li>
+ <li><a href="?page=Advanced.I18N">多语言支持</a></li>
+ <li><a href="?page=Advanced.Performance">Performance Tuning</a></li>
+</ul>
+</div>
+
+<div class="topic">
+<div>客户端编程</div>
+<ul>
+ <li><a href="?page=Advanced.Scripts">JavaScript介绍</a></li>
+ <li><a href="?page=Advanced.Scripts1">Prototype Library Part I</a></li>
+ <li><a href="?page=Advanced.Scripts2">Prototype Library Part II</a></li>
+ <li><a href="?page=Advanced.Scripts3">Javascript Cookbook</a></li>
+</ul>
+</div>
+
+</div> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/GettingStarted/fr/Introduction.page b/demos/quickstart/protected/pages/GettingStarted/fr/Introduction.page
index 376f552c..469a7ef6 100644
--- a/demos/quickstart/protected/pages/GettingStarted/fr/Introduction.page
+++ b/demos/quickstart/protected/pages/GettingStarted/fr/Introduction.page
@@ -1,4 +1,4 @@
<com:TContent ID="body" >
-<h1 id="101">French Intro</h1>
+<h1>French Intro</h1>
<div class="last-modified">$Id$</div></com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/GettingStarted/zh/Introduction.page b/demos/quickstart/protected/pages/GettingStarted/zh/Introduction.page
new file mode 100644
index 00000000..12bcd2a0
--- /dev/null
+++ b/demos/quickstart/protected/pages/GettingStarted/zh/Introduction.page
@@ -0,0 +1,21 @@
+<com:TContent ID="body" >
+<h1>欢迎使用PRADO快速教程</h1>
+
+<div id="intro" class="block-content">
+<p>
+本教程旨在帮助您快速掌握用PRADO v3.x构建Web应用。
+</p>
+<p>
+如果您觉得本教程没能满足您的需求,您也可以参考以下资源:
+</p>
+</div>
+<ul class="block-content" id="intro-links">
+ <li><a href="http://www.pradosoft.com/docs/classdoc/">PRADO类库文档</a></li>
+ <li><a href="http://www.pradosoft.com/docs/manual/">PRADO API文档</a></li>
+ <li><a href="http://www.pradosoft.com/forum/">PRADO论坛</a></li>
+ <li><a href="http://www.pradosoft.com/wiki/">PRADO Wiki</a></li>
+ <li><a href="http://trac.pradosoft.com/prado/">PRADO Trac</a></li>
+</ul>
+
+<div class="last-modified">$Id: $</div>
+</com:TContent> \ No newline at end of file