summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-14 12:06:42 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-14 12:06:42 +0000
commit4a0b6f6114f19cebd796b3b1c6e5253edc3267c3 (patch)
tree6a42f880704f41d632c473c8d48545680a77bd58 /templates
parent856af471b7a6025f1438f09ff0d701dd78fd99ea (diff)
issue24, first trial of date search is now included
git-svn-id: file:///var/lib/svn/phpfspot/trunk@198 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'templates')
-rw-r--r--templates/calendar.tpl28
-rw-r--r--templates/index.tpl2
-rw-r--r--templates/search.tpl7
3 files changed, 36 insertions, 1 deletions
diff --git a/templates/calendar.tpl b/templates/calendar.tpl
new file mode 100644
index 0000000..1f52732
--- /dev/null
+++ b/templates/calendar.tpl
@@ -0,0 +1,28 @@
+<table class="calendar">
+ <tr>
+ <td><a href="{$prev_month}" class="prevMonth">&lt;&lt;</a></td>
+ <td colspan="5">
+ {$current_month}
+ </td>
+ <td><a href="{$next_month}" class="nextMonth">&gt;&gt;</a></td>
+ </tr>
+ <tr>
+ <td>M</td>
+ <td>T</td>
+ <td>W</td>
+ <td>T</td>
+ <td>F</td>
+ <td>S</td>
+ <td>S</td>
+ </tr>
+ <!-- matrix -->
+ {section name="row" loop=$rows step=1}
+ {section name="col" loop=8 step=1}
+ {if $matrix[row][col] }
+ {$matrix[row][col]}
+ {/if}
+ {/section}
+ {/section}
+ <!-- /matrix -->
+</table>
+
diff --git a/templates/index.tpl b/templates/index.tpl
index 5ff9b0e..4366679 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -12,7 +12,7 @@
<a href="javascript:showPhotoIndex();" onclick="click(this);" title="Show Photo Index">
<img src="resources/photo_index.png" alt="photo index" />
</a>
- <a href="javascript:Tags('reset', 0);" onclick="click(this);" title="Reset Selected Tags and Tag-Search">
+ <a href="javascript:resetAll();" onclick="click(this);" title="Reset Selected Tags and Tag-Search">
<img src="resources/reload.png" alt="reset tags" />
</a>
<a href="javascript:showCredits();" onclick="click(this);" title="Show's a little credit page">
diff --git a/templates/search.tpl b/templates/search.tpl
index 092006e..51c1877 100644
--- a/templates/search.tpl
+++ b/templates/search.tpl
@@ -10,6 +10,13 @@
Tag: <input type="text" name="searchfor" value="{$searchfor}" size="15" />
<input type="image" src="resources/doit.png" alt="Tag-Search" />
</form>
+ <form action="" onsubmit="startDateSearch(); return false;">
+ Date:<br />
+ {$from_date} <a href="javascript:showCalendar('from');"><img src="resources/date.png" id="frompic"/></a><br />
+ {$to_date} <a href="javascript:showCalendar('to');"><img src="resources/date.png" id="topic" /></a><br />
+ <input type="image" src="resources/doit.png" alt="Tag-Search" />
+ <div id='calendar'></div>
+ </form>
</td>
</tr>
</table>