diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-06-04 18:41:16 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-06-04 18:41:16 +0000 |
commit | 7862547b2ebd4c830b8c155e6f09cab1f41ce48d (patch) | |
tree | cb56e1b32fd569a9880f713e9a38d9f3d5718552 | |
parent | 61f2970e221f8612e51e7802cc127819c4caa369 (diff) |
initial import of smarty templates
git-svn-id: file:///var/lib/svn/phpfspot/trunk@3 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r-- | templates/body.tpl | 29 | ||||
-rw-r--r-- | templates/footer.tpl | 1 | ||||
-rw-r--r-- | templates/header.tpl | 7 | ||||
-rw-r--r-- | templates/index.tpl | 6 | ||||
-rw-r--r-- | templates/tags.tpl | 6 |
5 files changed, 49 insertions, 0 deletions
diff --git a/templates/body.tpl b/templates/body.tpl new file mode 100644 index 0000000..7b2812d --- /dev/null +++ b/templates/body.tpl @@ -0,0 +1,29 @@ +<div id="body"> +Picture Viewer + +<table> + <tr> + <td colspan="3"> + <img src="{$image_url}" /> + </td> + </tr> + <tr> + <td style="text-align: left;"> + { if $previous_url == "" } + + { else } + <a href="{$previous_url}">Previous</a> + { /if } + </td> + <td> </td> + <td style="text-align: right;"> + { if $next_url == "" } + + { else } + <a href="{$next_url}">Next</a> + { /if} + </td> + </tr> +</table> + +</div> diff --git a/templates/footer.tpl b/templates/footer.tpl new file mode 100644 index 0000000..5f85cab --- /dev/null +++ b/templates/footer.tpl @@ -0,0 +1 @@ +</html> diff --git a/templates/header.tpl b/templates/header.tpl new file mode 100644 index 0000000..0ead6cb --- /dev/null +++ b/templates/header.tpl @@ -0,0 +1,7 @@ +<!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" lang="en" xml:lang="en"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=charset=utf-8" /> + <title>{$page_title}</title> + <script type="text/javascript" src="rpc.php?mode=init&client=all"></script> + </head> diff --git a/templates/index.tpl b/templates/index.tpl new file mode 100644 index 0000000..eeb1de7 --- /dev/null +++ b/templates/index.tpl @@ -0,0 +1,6 @@ +{include file="header.tpl"} + <body> + {include file="tags.tpl"} + {include file="body.tpl"} + </body> +{include file="footer.tpl"} diff --git a/templates/tags.tpl b/templates/tags.tpl new file mode 100644 index 0000000..52751e2 --- /dev/null +++ b/templates/tags.tpl @@ -0,0 +1,6 @@ +<div id='tag'> + The following tags are available:<br /> +{foreach from=$tags item=tag } + <a href="?{$tag}">{$tag}</a> +{/foreach} +</div> |