diff options
author | wei <> | 2006-01-13 13:03:01 +0000 |
---|---|---|
committer | wei <> | 2006-01-13 13:03:01 +0000 |
commit | f0737c5b52373f262a4c8cfd25d4e1bb6ff33aee (patch) | |
tree | e4ace9d8b7b9c65721330f13f59f684dce32b9da /tests/FunctionalTests/protected/pages | |
parent | 52ae5aef521fa7d800e09206342eb9ac17043cd8 (diff) |
Move SafeHtml to 3rdParty/SafeHtml. Add TSafeHtml component. Change TTextBox::getText() to use SafeHtml
Diffstat (limited to 'tests/FunctionalTests/protected/pages')
-rw-r--r-- | tests/FunctionalTests/protected/pages/Layout.php | 8 | ||||
-rw-r--r-- | tests/FunctionalTests/protected/pages/Layout.tpl | 36 | ||||
-rw-r--r-- | tests/FunctionalTests/protected/pages/ViewSource.page | 18 | ||||
-rw-r--r-- | tests/FunctionalTests/protected/pages/ViewSource.php | 12 | ||||
-rw-r--r-- | tests/FunctionalTests/protected/pages/config.xml | 10 |
5 files changed, 84 insertions, 0 deletions
diff --git a/tests/FunctionalTests/protected/pages/Layout.php b/tests/FunctionalTests/protected/pages/Layout.php new file mode 100644 index 00000000..2c6e02d6 --- /dev/null +++ b/tests/FunctionalTests/protected/pages/Layout.php @@ -0,0 +1,8 @@ +<?php
+
+class Layout extends TTemplateControl
+{
+
+}
+
+?>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/Layout.tpl b/tests/FunctionalTests/protected/pages/Layout.tpl new file mode 100644 index 00000000..36fabe71 --- /dev/null +++ b/tests/FunctionalTests/protected/pages/Layout.tpl @@ -0,0 +1,36 @@ +<!DOCTYPE html PUBLIC
+ "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<com:THead Title="PRADO QuickStart Tutorial">
+ <meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
+ <style type="text/css">
+ /*<![CDATA[*/
+ body
+ {
+ font-family: Georgia, "Times New Roman", Times, serif;
+ }
+ .w3c
+ {
+ margin-top: 2em;
+ display: block;
+ }
+ /*]]>*/
+ </style>
+</com:THead>
+<body>
+
+<com:TContentPlaceHolder ID="Content" />
+
+<div class="w3c">
+<a href="http://validator.w3.org/check?uri=referer">
+ Validate XHTML 1.0
+</a>
+<a href="?page=ViewSource&source=<%= $this->Request->ServiceParameter %>"
+ style="margin: 0 1em;"
+ onclick="window.open(this.href); return false;"
+ onkeypress="window.open(this.href); return false;">View Source</a>
+</div>
+</body>
+</html>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/ViewSource.page b/tests/FunctionalTests/protected/pages/ViewSource.page new file mode 100644 index 00000000..900c45f6 --- /dev/null +++ b/tests/FunctionalTests/protected/pages/ViewSource.page @@ -0,0 +1,18 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
+
+<com:THead Title="PRADO QuickStart Source View">
+<meta http-equiv="content-language" content="en"/>
+</com:THead>
+
+<body>
+<div id="sourceList">
+<com:TLiteral ID="SourceList" />
+</div>
+<div id="sourceView">
+<com:TTextHighlighter ID="Highlighter" ShowLineNumbers="true" CssClass="source">
+<com:TLiteral ID="SourceView" />
+</com:TTextHighlighter>
+</div>
+</body>
+</html>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/ViewSource.php b/tests/FunctionalTests/protected/pages/ViewSource.php new file mode 100644 index 00000000..eeaf0f80 --- /dev/null +++ b/tests/FunctionalTests/protected/pages/ViewSource.php @@ -0,0 +1,12 @@ +<?php
+
+class ViewSource extends TPage
+{
+ protected function onLoad($param)
+ {
+ $pageName = $this->Request->getParameter("source");
+ var_dump($pageName);
+ }
+}
+
+?>
\ No newline at end of file diff --git a/tests/FunctionalTests/protected/pages/config.xml b/tests/FunctionalTests/protected/pages/config.xml new file mode 100644 index 00000000..1a551a90 --- /dev/null +++ b/tests/FunctionalTests/protected/pages/config.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?>
+
+<configuration>
+ <paths>
+ <alias id="Pages" path="." />
+ </paths>
+ <pages MasterClass="Pages.Layout">
+ <page id="ViewSource" MasterClass="" />
+ </pages>
+</configuration>
\ No newline at end of file |