summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/body.tpl29
-rw-r--r--templates/footer.tpl1
-rw-r--r--templates/header.tpl7
-rw-r--r--templates/index.tpl6
-rw-r--r--templates/tags.tpl6
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 == "" }
+ &nbsp;
+ { else }
+ <a href="{$previous_url}">Previous</a>
+ { /if }
+ </td>
+ <td>&nbsp;</td>
+ <td style="text-align: right;">
+ { if $next_url == "" }
+ &nbsp;
+ { 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&amp;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>