From 27ed7fa794e36462fcd93a736c37e833b4c957d4 Mon Sep 17 00:00:00 2001 From: mohrt Date: Fri, 21 Feb 2003 20:21:58 +0000 Subject: [PATCH] move demo files to demo directory --- configs/test.conf | 5 --- index.php | 25 ------------- templates/footer.tpl | 2 -- templates/header.tpl | 6 ---- templates/index.tpl | 83 -------------------------------------------- 5 files changed, 121 deletions(-) delete mode 100644 configs/test.conf delete mode 100644 index.php delete mode 100644 templates/footer.tpl delete mode 100644 templates/header.tpl delete mode 100644 templates/index.tpl diff --git a/configs/test.conf b/configs/test.conf deleted file mode 100644 index 5eac748e..00000000 --- a/configs/test.conf +++ /dev/null @@ -1,5 +0,0 @@ -title = Welcome to Smarty! -cutoff_size = 40 - -[setup] -bold = true diff --git a/index.php b/index.php deleted file mode 100644 index ebfe5750..00000000 --- a/index.php +++ /dev/null @@ -1,25 +0,0 @@ -compile_check = true; -$smarty->debugging = true; - -$smarty->assign("Name","Fred Irving Johnathan Bradley Peppergill"); -$smarty->assign("FirstName",array("John","Mary","James","Henry")); -$smarty->assign("LastName",array("Doe","Smith","Johnson","Case")); -$smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"), - array("I", "J", "K", "L"), array("M", "N", "O", "P"))); - -$smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"), - array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234"))); - -$smarty->assign("option_values", array("NY","NE","KS","IA","OK","TX")); -$smarty->assign("option_output", array("New York","Nebraska","Kansas","Iowa","Oklahoma","Texas")); -$smarty->assign("option_selected", "NE"); - -$smarty->display('index.tpl'); - -?> diff --git a/templates/footer.tpl b/templates/footer.tpl deleted file mode 100644 index e04310fd..00000000 --- a/templates/footer.tpl +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/templates/header.tpl b/templates/header.tpl deleted file mode 100644 index af8f6138..00000000 --- a/templates/header.tpl +++ /dev/null @@ -1,6 +0,0 @@ - - -{popup_init src="/javascripts/overlib.js"} -{$title} - {$Name} - - diff --git a/templates/index.tpl b/templates/index.tpl deleted file mode 100644 index c4d5eeeb..00000000 --- a/templates/index.tpl +++ /dev/null @@ -1,83 +0,0 @@ -{config_load file=test.conf section="setup"} -{include file="header.tpl" title=foo} - -
-
-{* bold and title are read from the config file *}
-{if #bold#}{/if}
-{* capitalize the first letters of each word of the title *}
-Title: {#title#|capitalize}
-{if #bold#}{/if}
-
-The current date and time is {$smarty.now|date_format:"%Y-%m-%d %H:%M:%S"}
-
-Tooltip example: Move your mouse over the Help link to see an example of a tooltip using Smarty's popup function.
-
-The value of global assigned variable $SCRIPT_NAME is {$SCRIPT_NAME}
-
-Example of accessing server environment variable SERVER_NAME: {$smarty.server.SERVER_NAME}
-
-The value of {ldelim}$Name{rdelim} is {$Name}
-
-variable modifier example of {ldelim}$Name|upper{rdelim}
-
-{$Name|upper}
-
-
-An example of a section loop:
-
-{section name=outer loop=$FirstName}
-{if %outer.index% is odd by 2}
-	{%outer.rownum%} . {$FirstName[outer]} {$LastName[outer]}
-{else}
-	{%outer.rownum%} * {$FirstName[outer]} {$LastName[outer]}
-{/if}
-{sectionelse}
-	none
-{/section}
-
-An example of section looped key values:
-
-{section name=sec1 loop=$contacts}
-	phone: {$contacts[sec1].phone}
- fax: {$contacts[sec1].fax}
- cell: {$contacts[sec1].cell}
-{/section} -

- -testing strip tags -{strip} - - - - -
- - This is a test - -
-{/strip} - -

- -This is an example of the html_select_date function: - -
-{html_select_date start_year=1998 end_year=2010} -
- -This is an example of the html_select_time function: - -
-{html_select_time use_24_hours=false} -
- -This is an example of the html_options function: - -
- -
- -{include file="footer.tpl"}