1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/styles/subsilver2/template/memberlist_search.html Wed Mar 07 16:41:10 2012 +0400
1.3 @@ -0,0 +1,143 @@
1.4 +<!-- You should retain this javascript in your own template! -->
1.5 +
1.6 +<!-- IF S_IN_SEARCH_POPUP -->
1.7 + <script type="text/javascript">
1.8 + // <![CDATA[
1.9 + function insert_user(user)
1.10 + {
1.11 + 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;
1.12 + }
1.13 +
1.14 + function insert_marked(users)
1.15 + {
1.16 + if (typeof(users.length) == "undefined")
1.17 + {
1.18 + if (users.checked)
1.19 + {
1.20 + insert_user(users.value);
1.21 + }
1.22 + }
1.23 + else if (users.length > 0)
1.24 + {
1.25 + for (i = 0; i < users.length; i++)
1.26 + {
1.27 + if (users[i].checked)
1.28 + {
1.29 + insert_user(users[i].value);
1.30 + }
1.31 + }
1.32 + }
1.33 +
1.34 + self.close();
1.35 + }
1.36 +
1.37 + function insert_single(user)
1.38 + {
1.39 + opener.document.forms['{S_FORM_NAME}'].{S_FIELD_NAME}.value = user;
1.40 + self.close();
1.41 + }
1.42 +
1.43 + /**
1.44 + * Mark/unmark checklist
1.45 + * id = ID of parent container, name = name prefix, state = state [true/false]
1.46 + */
1.47 + function marklist(id, name, state)
1.48 + {
1.49 + var parent = document.getElementById(id);
1.50 + if (!parent)
1.51 + {
1.52 + eval('parent = document.' + id);
1.53 + }
1.54 +
1.55 + if (!parent)
1.56 + {
1.57 + return;
1.58 + }
1.59 +
1.60 + var rb = parent.getElementsByTagName('input');
1.61 +
1.62 + for (var r = 0; r < rb.length; r++)
1.63 + {
1.64 + if (rb[r].name.substr(0, name.length) == name)
1.65 + {
1.66 + rb[r].checked = state;
1.67 + }
1.68 + }
1.69 + }
1.70 + // ]]>
1.71 + </script>
1.72 +<!-- ENDIF -->
1.73 +
1.74 +<form method="post" action="{S_MODE_ACTION}" name="search">
1.75 +
1.76 +<table class="tablebg" width="100%" cellspacing="1">
1.77 +<tr>
1.78 + <th colspan="4">{L_FIND_USERNAME}</th>
1.79 +</tr>
1.80 +<tr>
1.81 + <td class="row3" colspan="4"><span class="gensmall">{L_FIND_USERNAME_EXPLAIN}</span></td>
1.82 +</tr>
1.83 +<tr>
1.84 + <td class="row1"><b class="genmed">{L_USERNAME}:</b></td>
1.85 + <td class="row2"><input class="post" type="text" name="username" value="{USERNAME}" /></td>
1.86 + <td class="row1"><b class="genmed">{L_ICQ}:</b></td>
1.87 + <td class="row2"><input class="post" type="text" name="icq" value="{ICQ}" /></td>
1.88 +</tr>
1.89 +<tr>
1.90 +<!-- IF S_EMAIL_SEARCH_ALLOWED -->
1.91 + <td class="row1"><b class="genmed">{L_EMAIL}:</b></td>
1.92 + <td class="row2"><input class="post" type="text" name="email" value="{EMAIL}" /></td>
1.93 +<!-- ELSE -->
1.94 + <td colspan="2" class="row1"> </td>
1.95 +<!-- ENDIF -->
1.96 + <td class="row1"><b class="genmed">{L_AIM}:</b></td>
1.97 + <td class="row2"><input class="post" type="text" name="aim" value="{AIM}" /></td>
1.98 +</tr>
1.99 +<tr>
1.100 + <td class="row1"><b class="genmed">{L_JOINED}:</b></td>
1.101 + <td class="row2"><select name="joined_select">{S_JOINED_TIME_OPTIONS}</select> <input class="post" type="text" name="joined" value="{JOINED}" /></td>
1.102 + <td class="row1"><b class="genmed">{L_YIM}:</b></td>
1.103 + <td class="row2"><input class="post" type="text" name="yahoo" value="{YAHOO}" /></td>
1.104 +</tr>
1.105 +<tr>
1.106 +<!-- IF S_VIEWONLINE -->
1.107 + <td class="row1"><b class="genmed">{L_LAST_ACTIVE}:</b></td>
1.108 + <td class="row2"><select name="active_select">{S_ACTIVE_TIME_OPTIONS}</select> <input class="post" type="text" name="active" value="{ACTIVE}" /></td>
1.109 +<!-- ELSE -->
1.110 + <td colspan="2" class="row1"> </td>
1.111 +<!-- ENDIF -->
1.112 + <td class="row1"><b class="genmed">{L_MSNM}:</b></td>
1.113 + <td class="row2"><input class="post" type="text" name="msn" value="{MSNM}" /></td>
1.114 +</tr>
1.115 +<tr>
1.116 + <td class="row1"><b class="genmed">{L_POSTS}:</b></td>
1.117 + <td class="row2"><select name="count_select">{S_COUNT_OPTIONS}</select> <input class="post" type="text" name="count" value="{COUNT}" /></td>
1.118 + <td class="row1"><b class="genmed">{L_JABBER}:</b></td>
1.119 + <td class="row2"><input class="post" type="text" name="jabber" value="{JABBER}" /></td>
1.120 +</tr>
1.121 +<tr>
1.122 + <td class="row1"><b class="genmed">{L_SORT_BY}:</b></td>
1.123 + <td class="row2" nowrap="nowrap"><select name="sk">{S_SORT_OPTIONS}</select> <select name="sd">{S_ORDER_SELECT}</select> </td>
1.124 +<!-- IF S_IP_SEARCH_ALLOWED -->
1.125 + <td class="row1"><b class="genmed">{L_POST_IP}:</b></td>
1.126 + <td class="row2"><input class="post" type="text" name="ip" value="{IP}" /></td>
1.127 +</tr>
1.128 +<tr>
1.129 + <td class="row1"><b class="genmed">{L_GROUP}:</b></td>
1.130 + <td class="row2" nowrap="nowrap"><select name="search_group_id">{S_GROUP_SELECT}</select></td>
1.131 + <td class="row1"> </td>
1.132 + <td class="row2"> </td>
1.133 +</tr>
1.134 +<!-- ELSE -->
1.135 + <td class="row1"><b class="genmed">{L_GROUP}:</b></td>
1.136 + <td class="row2" nowrap="nowrap"><select name="search_group_id">{S_GROUP_SELECT}</select></td>
1.137 +</tr>
1.138 +<!-- ENDIF -->
1.139 +<tr>
1.140 + <td class="cat" colspan="4" align="center"><input class="btnmain" type="submit" name="submit" value="{L_SEARCH}" /> <input class="btnlite" type="reset" value="{L_RESET}" /></td>
1.141 +</tr>
1.142 +</table>
1.143 +{S_FORM_TOKEN}
1.144 +</form>
1.145 +
1.146 +<br clear="all" />