diff options
author | xue <> | 2007-09-11 02:09:27 +0000 |
---|---|---|
committer | xue <> | 2007-09-11 02:09:27 +0000 |
commit | 269c9a0010c2495db961c185e83fd52b33b04d73 (patch) | |
tree | a17692a7e974b103ca679606051b20472e9129e1 /tests/FunctionalTests/tickets/protected700/layout | |
parent | f5fa9b2249423f89f76b24a21d3014234b7f60f6 (diff) |
Fixed #692, #700.
Diffstat (limited to 'tests/FunctionalTests/tickets/protected700/layout')
-rw-r--r-- | tests/FunctionalTests/tickets/protected700/layout/MainLayout.php | 12 | ||||
-rw-r--r-- | tests/FunctionalTests/tickets/protected700/layout/MainLayout.tpl | 26 |
2 files changed, 38 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected700/layout/MainLayout.php b/tests/FunctionalTests/tickets/protected700/layout/MainLayout.php new file mode 100644 index 00000000..3e0a3d19 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected700/layout/MainLayout.php @@ -0,0 +1,12 @@ +<?php
+
+class MainLayout extends TTemplateControl
+{
+ public function logout($sender,$param)
+ {
+ $this->Application->getModule('auth')->logout();
+ $this->Response->reload();
+ }
+}
+
+?>
\ No newline at end of file diff --git a/tests/FunctionalTests/tickets/protected700/layout/MainLayout.tpl b/tests/FunctionalTests/tickets/protected700/layout/MainLayout.tpl new file mode 100644 index 00000000..acbfa0e6 --- /dev/null +++ b/tests/FunctionalTests/tickets/protected700/layout/MainLayout.tpl @@ -0,0 +1,26 @@ +<html>
+<com:THead />
+<body>
+
+<com:TForm>
+
+<h1><%= $this->Page->Title %></h1>
+
+<com:TContentPlaceHolder ID="Main" />
+
+<hr/>
+<ul>
+<li><a id="pageHome" href="<%=$this->Service->constructUrl('Home')%>">Home</a></li>
+<li><a id="pageAdminHome" href="<%=$this->Service->constructUrl('admin.Home')%>">admin.Home</a></li>
+<li><a id="pageAdminHome2" href="<%=$this->Service->constructUrl('admin.Home2')%>">admin.Home2</a></li>
+<li><a id="pageAdminUsersHome" href="<%=$this->Service->constructUrl('admin.users.Home')%>">admin.users.Home</a></li>
+<li><a id="pageAdminUsersHome2" href="<%=$this->Service->constructUrl('admin.users.Home2')%>">admin.users.Home2</a></li>
+<li><a id="pageContentHome" href="<%=$this->Service->constructUrl('content.Home')%>">content.Home</a></li>
+</ul>
+<hr/>
+<a href="<%=$this->Service->constructUrl('UserLogin')%>">Login</a> |
+<com:TLinkButton ID="Logout" Text="Logout" OnClick="logout" /> (<%= $this->User->Name %>)
+</com:TForm>
+
+</body>
+</html>
\ No newline at end of file |