aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/search.tpl
blob: f841c131e679e7b27f93473d7a6d430bedf0c79d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<div id="content">

  <div class="titrePage">
    <ul class="categoryActions">
      <li><a href="{U_HELP}" onclick="popuphelp(this.href); return false;" title="{lang:Help}"><img src="{themeconf:icon_dir}/help.png" class="button" alt="(?)"></a></li>
      <li><a href="{U_HOME}" title="{lang:return to homepage}" rel="home"><img src="{themeconf:icon_dir}/home.png" class="button" alt="{lang:home}"/></a></li>
    </ul>
    <h2>{lang:Search}</h2>
  </div>

<!-- TO DO -->
<form method="post" name="post" action="{S_SEARCH_ACTION}">
<!-- BEGIN errors -->
<div class="errors">
  <ul>
    <!-- BEGIN error -->
    <li>{errors.error.ERROR}</li>
    <!-- END error -->
  </ul>
</div>
<!-- END errors -->
<table width="100%" align="center" cellpadding="2">
  <tr>
    <td width="50%" colspan="2"><b>{lang:search_keywords} : </b>
    <td colspan="2" valign="top">
	  <input type="text" style="width: 300px" name="search_allwords" size="30" />
	  <br />
	  <input type="radio" name="mode" value="AND" checked="checked" /> {lang:search_mode_and}<br />
	  <input type="radio" name="mode" value="OR" /> {lang:search_mode_or}
	</td>
  </tr>
  <tr>
    <td colspan="2"><b>{lang:search_author} :</b>
    <td colspan="2" valign="middle">
	  <input type="text" style="width: 300px" name="search_author" size="30" />
	</td>
  </tr>

  <tr>
    <td colspan="2"><b>{lang:Search tags} :</b></td>
    <td colspan="2" valign="middle">
      {TAG_SELECTION}
      <br /><label><input type="radio" name="tag_mode" value="AND" checked="checked" /> {lang:All tags}</label>
      <br /><label><input type="radio" name="tag_mode" value="OR" /> {lang:Any tag}</label>
    </td>
  </tr>

  <tr>
    <td colspan="2"><b>{lang:search_date} :</b>
    <td colspan="2" valign="middle">
      <table>
        <tr>
          <td>{lang: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};" />{lang:today}</a>
          </td>
        </tr>
        <tr>
          <td>{lang: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};" />{lang:today}</a>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr class="admin">
    <th colspan="4">{lang:search_options}</th>
  </tr>
  <tr>
    <td width="25%" ><b>{lang:search_categories} : </b>
    <td width="25%" nowrap="nowrap">
	  <select style="width:200px" name="cat[]" multiple="multiple" size="8">
      <!-- BEGIN category_option -->
        <option value="{category_option.VALUE}">{category_option.OPTION}</option>
      <!-- END category_option -->
      </select>
	</td>
    <td width="25%" nowrap="nowrap"><b>{lang:search_subcats_included} : </b></td>
    <td width="25%" nowrap="nowrap">
	  <input type="radio" name="subcats-included" value="1" checked="checked" />{lang:yes}&nbsp;&nbsp;
	  <input type="radio" name="subcats-included" value="0" />{lang:no}
	</td>
   </tr>
   <tr>
    <td width="25%" nowrap="nowrap"><b>{lang:search_date_type} : </b></td>
    <td width="25%" nowrap="nowrap">
	  <input type="radio" name="date_type" value="date_creation" checked="checked" />{lang:Creation date}<br />
	  <input type="radio" name="date_type" value="date_available" />{lang:Post date}
	</td>
	<td><b>{lang:search_sort} : </b></td>
    <td nowrap="nowrap">
	  <input type="radio" name="sd" value="AND" />{lang:search_ascending}<br />
	  <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending}
	</td>
  </tr>
<!--  <tr>
    <td width="25%" nowrap="nowrap"><b>{L_SEARCH_WITHIN} : </b></td>
    <td width="25%" nowrap="nowrap">
	  <input type="radio" name="search_fields" value="all" checked="checked" />{L_SEARCH_ALL}<br />
	  <input type="radio" name="search_fields" value="imgonly" />{L_SEARCH_IMG_ONLY}<br />
	  <input type="radio" name="search_fields" value="commentsonly" />{L_SEARCH_COMMENTS_ONLY}
	</td>
  </tr>
  <tr>
    <td><b>{lang:search_sort} : </b></td>
    <td nowrap="nowrap">
	  {S_SELECT_SORT_KEY}<br />
	  <input type="radio" name="sd" value="a" />{lang:search_ascending}<br />
	  <input type="radio" name="sd" value="d" checked="checked" />{lang:search_descending}
	</td>
    <td nowrap="nowrap"><b>{L_DISPLAY_RESULTS} : </b></td>
    <td nowrap="nowrap">
	  <input type="radio" name="show_results" value="images" checked="checked" />{L_IMAGES}&nbsp;&nbsp;
	  <input type="radio" name="show_results" value="comments" /> {L_COMMENTS}
	</td>
  </tr>
  -->
<tr>
<td align="center" valign="bottom" colspan="4" height="38">
<input type="submit" name="submit" value="{lang:submit}" class="bouton" />&nbsp;&nbsp;
<input type="reset" value="{lang:reset}" class="bouton" />
</td>
</table>
</form>

<script type="text/javascript"><!--
document.post.search_allwords.focus();
//--></script>

</div> <!-- content -->