diff options
Diffstat (limited to 'demos/quickstart/protected/controls')
| -rw-r--r-- | demos/quickstart/protected/controls/SampleLayout.php | 15 | ||||
| -rw-r--r-- | demos/quickstart/protected/controls/SampleLayout.tpl | 29 | 
2 files changed, 44 insertions, 0 deletions
| diff --git a/demos/quickstart/protected/controls/SampleLayout.php b/demos/quickstart/protected/controls/SampleLayout.php new file mode 100644 index 00000000..ee7f41ff --- /dev/null +++ b/demos/quickstart/protected/controls/SampleLayout.php @@ -0,0 +1,15 @@ +<?php
 +
 +class SampleLayout extends TTemplateControl
 +{
 +	public function toggleTopicPanel($sender,$param)
 +	{
 +		$this->TopicPanel->Visible=!$this->TopicPanel->Visible;
 +		if($this->TopicPanel->Visible)
 +			$sender->Text="Hide TOC";
 +		else
 +			$sender->Text="Show TOC";
 +	}
 +}
 +
 +?>
\ No newline at end of file diff --git a/demos/quickstart/protected/controls/SampleLayout.tpl b/demos/quickstart/protected/controls/SampleLayout.tpl new file mode 100644 index 00000000..f1237010 --- /dev/null +++ b/demos/quickstart/protected/controls/SampleLayout.tpl @@ -0,0 +1,29 @@ +<!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 Sample">
 +<meta http-equiv="content-language" content="en"/>
 +</com:THead>
 +
 +<body>
 +<com:TForm>
 +
 +<div class="samplebar">
 +<div style="float:left">
 +<a href="?">PRADO QuickStart Tutorial</a> Sample
 +</div>
 +<div style="text-align:right">
 +Copyright © 2005 <a href="http://www.pradosoft.com">PradoSoft</a>
 +</div>
 +</div>
 +</div>
 +<div style="margin:15px;">
 +<div>
 +<com:TContentPlaceHolder ID="body" />
 +</div>
 +
 +</div>
 +
 +</com:TForm>
 +</body>
 +</html>
\ No newline at end of file | 
