aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/search.tpl
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-10-10 21:41:07 +0000
committerrub <rub@piwigo.org>2008-10-10 21:41:07 +0000
commit5f8b608b54699429dcbc21dd45a0d2ee6d9b5584 (patch)
tree2a89d1aae58e18c5f8daa62d756e0a5e1f894fb1 /template/yoga/search.tpl
parent547a85d56bb4f3cc8f4412407054f2cd81e637e4 (diff)
jQuery Datepicker:
Move code source to template-common in order to use datepicker on version after butterfly git-svn-id: http://piwigo.org/svn/trunk@2704 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/yoga/search.tpl')
-rw-r--r--template/yoga/search.tpl17
1 files changed, 15 insertions, 2 deletions
diff --git a/template/yoga/search.tpl b/template/yoga/search.tpl
index 4f6ba4455..8562cac3d 100644
--- a/template/yoga/search.tpl
+++ b/template/yoga/search.tpl
@@ -1,4 +1,17 @@
{* $Id$ *}
+
+{* Example of datepicker
+{include file='include/datepicker.inc.tpl'}
+
+{literal}
+<script type="text/javascript">
+ pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, "#end_linked_date");
+ pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, "#start_linked_date", null);
+ jQuery().ready(function(){ $(".date_today").hide(); });
+</script>
+{/literal}
+*}
+
<div id="content" class="content">
<div class="titrePage">
@@ -74,7 +87,7 @@
<input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"/>
</li>
<li>
- <a href="#" onClick="document.search.start_day.value={$smarty.now|date_format:"%d"};document.search.start_month.value={$smarty.now|date_format:"%m"};document.search.start_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
+ <a class="date_today" href="#" onClick="document.search.start_day.value={$smarty.now|date_format:"%d"};document.search.start_month.value={$smarty.now|date_format:"%m"};document.search.start_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
</li>
</ul>
<ul>
@@ -93,7 +106,7 @@
<input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"/>
</li>
<li>
- <a href="#" onClick="document.search.end_day.value={$smarty.now|date_format:"%d"};document.search.end_month.value={$smarty.now|date_format:"%m"};document.search.end_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
+ <a class="date_today" href="#" onClick="document.search.end_day.value={$smarty.now|date_format:"%d"};document.search.end_month.value={$smarty.now|date_format:"%m"};document.search.end_year.value={$smarty.now|date_format:"%Y"};return false;">{'today'|@translate}</a>
</li>
</ul>
</fieldset>