aboutsummaryrefslogtreecommitdiffstats
path: root/template/default
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2004-12-05 11:47:40 +0000
committerplegall <plg@piwigo.org>2004-12-05 11:47:40 +0000
commite4ce82fc27e1e10d697815928ef06c692a3f56da (patch)
tree4f344ae6e3d7a186846e83f870bd9c6a7ef03d28 /template/default
parentb3336f57d5d61eaa5d465b816962b12ea16c24ae (diff)
- search modified : possible to partially fill the date, allwords are
separated from more specific search, separation of HTML (in template) and PHP code) git-svn-id: http://piwigo.org/svn/trunk@634 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'template/default')
-rw-r--r--template/default/search.tpl47
1 files changed, 37 insertions, 10 deletions
diff --git a/template/default/search.tpl b/template/default/search.tpl
index 6cdb0b924..7c16d06ca 100644
--- a/template/default/search.tpl
+++ b/template/default/search.tpl
@@ -31,16 +31,43 @@
<tr>
<td colspan="2"><b>{L_SEARCH_DATE} :</b><br /><span class="small">{L_SEARCH_DATE_HINT}</span></td>
<td colspan="2" valign="middle">
- <table><tr><td>
- {L_SEARCH_DATE_FROM} :</td><td>
- {S_CALENDAR_DAY}&nbsp;{S_CALENDAR_MONTH}&nbsp;<input name="start_year" type="text" size="4" maxlength="4">&nbsp;
- <a href="#" name="#" onClick="document.post.start_day.value={TODAY_DAY};document.post.start_month.value={TODAY_MONTH};document.post.start_year.value={TODAY_YEAR};" />{L_TODAY}</a>
- </tr><tr><td>
- {L_SEARCH_DATE_TO} :</td><td>
- {E_CALENDAR_DAY}&nbsp;{E_CALENDAR_MONTH}&nbsp;<input name="end_year" type="text" size="4" maxlength="4">&nbsp;
- <a href="#" name="#" onClick="document.post.end_day.value={TODAY_DAY};document.post.end_month.value={TODAY_MONTH};document.post.end_year.value={TODAY_YEAR};" />{L_TODAY}</a>
- </td></tr></table>
- </td>
+ <table>
+ <tr>
+ <td>{L_SEARCH_DATE_FROM} :</td>
+ <td>
+ <select name="start_day">
+ <!-- BEGIN start_day -->
+ <option {start_day.SELECTED} value="{start_day.VALUE}">{start_day.OPTION}</option>
+ <!-- END start_day -->
+ </select>
+ <select name="start_month">
+ <!-- BEGIN start_month -->
+ <option {start_month.SELECTED} value="{start_month.VALUE}">{start_month.OPTION}</option>
+ <!-- END start_month -->
+ </select>
+ <input name="start_year" type="text" size="4" maxlength="4">&nbsp;
+ <a href="#" name="#" onClick="document.post.start_day.value={TODAY_DAY};document.post.start_month.value={TODAY_MONTH};document.post.start_year.value={TODAY_YEAR};" />{L_TODAY}</a>
+ </td>
+ </tr>
+ <tr>
+ <td>{L_SEARCH_DATE_TO} :</td>
+ <td>
+ <select name="end_day">
+ <!-- BEGIN end_day -->
+ <option {end_day.SELECTED} value="{end_day.VALUE}">{end_day.OPTION}</option>
+ <!-- END end_day -->
+ </select>
+ <select name="end_month">
+ <!-- BEGIN end_month -->
+ <option {end_month.SELECTED} value="{end_month.VALUE}">{end_month.OPTION}</option>
+ <!-- END end_month -->
+ </select>
+ <input name="end_year" type="text" size="4" maxlength="4">&nbsp;
+ <a href="#" name="#" onClick="document.post.end_day.value={TODAY_DAY};document.post.end_month.value={TODAY_MONTH};document.post.end_year.value={TODAY_YEAR};" />{L_TODAY}</a>
+ </td>
+ </tr>
+ </table>
+ </td>
</tr>
<tr class="admin">
<th colspan="4">{L_SEARCH_OPTIONS}</th>