source: branches/posledni/forum/styles/WoWMoonclaw/template/memberlist_search.html

Last change on this file was 400, checked in by george, 16 years ago
  • Přidáno: Nové forum phpBB 3.
File size: 4.6 KB
Line 
1<!-- You should retain this javascript in your own template! -->
2
3<!-- IF S_IN_SEARCH_POPUP -->
4 <script type="text/javascript">
5 // <![CDATA[
6 function insert_user(user)
7 {
8 opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value = ( opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value.length && opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.type == "textarea" ) ? opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value + "\n" + user : user;
9 }
10
11 function insert_marked(users)
12 {
13 if (typeof(users.length) == "undefined")
14 {
15 if (users.checked)
16 {
17 insert_user(users.value);
18 }
19 }
20 else if (users.length > 0)
21 {
22 for (i = 0; i < users.length; i++)
23 {
24 if (users[i].checked)
25 {
26 insert_user(users[i].value);
27 }
28 }
29 }
30
31 self.close();
32 }
33
34 function insert_single(user)
35 {
36 opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value = user;
37 self.close();
38 }
39
40 /**
41 * Mark/unmark checklist
42 * id = ID of parent container, name = name prefix, state = state [true/false]
43 */
44 function marklist(id, name, state)
45 {
46 var parent = document.getElementById(id);
47 if (!parent)
48 {
49 eval('parent = document.' + id);
50 }
51
52 if (!parent)
53 {
54 return;
55 }
56
57 var rb = parent.getElementsByTagName('input');
58
59 for (var r = 0; r < rb.length; r++)
60 {
61 if (rb[r].name.substr(0, name.length) == name)
62 {
63 rb[r].checked = state;
64 }
65 }
66 }
67 // ]]>
68 </script>
69<!-- ENDIF -->
70
71<form method="post" action="{S_MODE_ACTION}" name="search">
72
73<table class="tablebg" width="100%" cellspacing="1">
74<tr>
75 <th colspan="4">{L_FIND_USERNAME}</th>
76</tr>
77<tr>
78 <td class="row3" colspan="4"><span class="gensmall">{L_FIND_USERNAME_EXPLAIN}</span></td>
79</tr>
80<tr>
81 <td class="row1"><b class="genmed">{L_USERNAME}:</b></td>
82 <td class="row2"><input class="post" type="text" name="username" value="{USERNAME}" /></td>
83 <td class="row1"><b class="genmed">{L_ICQ}:</b></td>
84 <td class="row2"><input class="post" type="text" name="icq" value="{ICQ}" /></td>
85</tr>
86<tr>
87<!-- IF S_EMAIL_SEARCH_ALLOWED -->
88 <td class="row1"><b class="genmed">{L_EMAIL}:</b></td>
89 <td class="row2"><input class="post" type="text" name="email" value="{EMAIL}" /></td>
90<!-- ELSE -->
91 <td colspan="2" class="row1">&nbsp;</td>
92<!-- ENDIF -->
93 <td class="row1"><b class="genmed">{L_AIM}:</b></td>
94 <td class="row2"><input class="post" type="text" name="aim" value="{AIM}" /></td>
95</tr>
96<tr>
97 <td class="row1"><b class="genmed">{L_JOINED}:</b></td>
98 <td class="row2"><select name="joined_select">{S_JOINED_TIME_OPTIONS}</select> <input class="post" type="text" name="joined" value="{JOINED}" /></td>
99 <td class="row1"><b class="genmed">{L_YIM}:</b></td>
100 <td class="row2"><input class="post" type="text" name="yahoo" value="{YAHOO}" /></td>
101</tr>
102<tr>
103<!-- IF S_VIEWONLINE -->
104 <td class="row1"><b class="genmed">{L_LAST_ACTIVE}:</b></td>
105 <td class="row2"><select name="active_select">{S_ACTIVE_TIME_OPTIONS}</select> <input class="post" type="text" name="active" value="{ACTIVE}" /></td>
106<!-- ELSE -->
107 <td colspan="2" class="row1">&nbsp;</td>
108<!-- ENDIF -->
109 <td class="row1"><b class="genmed">{L_MSNM}:</b></td>
110 <td class="row2"><input class="post" type="text" name="msn" value="{MSNM}" /></td>
111</tr>
112<tr>
113 <td class="row1"><b class="genmed">{L_POSTS}:</b></td>
114 <td class="row2"><select name="count_select">{S_COUNT_OPTIONS}</select> <input class="post" type="text" name="count" value="{COUNT}" /></td>
115 <td class="row1"><b class="genmed">{L_JABBER}:</b></td>
116 <td class="row2"><input class="post" type="text" name="jabber" value="{JABBER}" /></td>
117</tr>
118<tr>
119 <td class="row1"><b class="genmed">{L_SORT_BY}:</b></td>
120 <td class="row2" nowrap="nowrap"><select name="sk">{S_SORT_OPTIONS}</select> <select name="sd">{S_ORDER_SELECT}</select>&nbsp;</td>
121<!-- IF S_IP_SEARCH_ALLOWED -->
122 <td class="row1"><b class="genmed">{L_POST_IP}:</b></td>
123 <td class="row2"><input class="post" type="text" name="ip" value="{IP}" /></td>
124</tr>
125<tr>
126 <td class="row1"><b class="genmed">{L_GROUP}:</b></td>
127 <td class="row2" nowrap="nowrap"><select name="search_group_id">{S_GROUP_SELECT}</select></td>
128 <td class="row1">&nbsp;</td>
129 <td class="row2">&nbsp;</td>
130</tr>
131<!-- ELSE -->
132 <td class="row1"><b class="genmed">{L_GROUP}:</b></td>
133 <td class="row2" nowrap="nowrap"><select name="search_group_id">{S_GROUP_SELECT}</select></td>
134</tr>
135<!-- ENDIF -->
136<tr>
137 <td class="cat" colspan="4" align="center"><input class="btnmain" type="submit" name="submit" value="{L_SEARCH}" />&nbsp;&nbsp;<input class="btnlite" type="reset" value="{L_RESET}" /></td>
138</tr>
139</table>
140{S_FORM_TOKEN}
141</form>
142
143<br clear="all" />
Note: See TracBrowser for help on using the repository browser.