use strict;return sub{my $this = shift;my $C = $this->{C};$this->out("<table border=0 cellpadding=0 cellspacing=1 class=atkMainTable>\n<tr><td class=atkHeader>Search</td></tr>\n<tr><td><table class=atkInnerTable cellpadding=4 cellspacing=3 width=100\%>\n\n	<tr>\n		<td class=atkEditorLeft><span>ID</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{id}</td>\n	</tr>\n	<tr>\n		<td class=atkEditorLeft><span>Keyword</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{keyword}</td>\n	</tr>\n");if ( $C->{User}{privHandler}{priv}{master_users_downlines} ) {$this->out("	<tr>\n		<td class=atkEditorLeft><span>Referer</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{referer_id}</td>\n	</tr>\n");}$this->out("");if ( $C->{User}{privHandler}{priv}{master_users_roles} ) {$this->out("	<tr>\n		<td class=atkEditorLeft><span>Role</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{role}</td>\n	</tr>\n");}$this->out("	<tr>\n		<td class=atkEditorLeft><span>Affiliate program</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{affprog}</td>\n	</tr>\n	<tr>\n		<td class=atkEditorLeft><span>Show only confirmed</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{registered_only}</td>\n	</tr>\n	<tr>\n		<td class=atkEditorLeft><span>Show only unconfirmed</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{registered_no}</td>\n	</tr>\n	<tr>\n		<td class=atkEditorLeft><span>IP address&nbsp;<a class=\"jinTableLink\" href=\"#\" onclick=\'alert(\"Searches in the Registration IP and Last login IP fields. You need to specify full IP Address (e.g. 123.234.12.34), or you can use `\%` as a wildcard (e.g. 123.234.\%)\"); return false\'>[?]</a></span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{ip_address}</td>\n	</tr>\n\n");if ( $C->{User}{privHandler}{priv}{master_plugins_surveys} ) {$this->out("	<tr>\n		<td class=atkEditorLeft><span>survey answered</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{surveys}</td>\n	</tr>\n");}$this->out("\n	<tr>\n		<td class=atkEditorLeft><span>Show only administrator`s messages - opt-out</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{no_admin_mail}</td>\n	</tr>\n\n	<tr>\n		<td class=atkEditorLeft><span>Show only referer`s messages - opt-out</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{no_upline_mail}</td>\n	</tr>\n\n	<tr>\n		<td class=atkEditorLeft><span>Receive SMS allowed</span></td>\n		<td class=atkEditorRight>$C->{SearchForm}{receive_sms}</td>\n	</tr>\n\n");$C->{CFSearchForm} = $C->{SearchForm}{CustomFieldsForm};$this->out("");if ( $C->{CFSearchForm} ) {$this->out("");my $in = $C->{CFSearchForm}{fields};my $loop = ref($in) eq "ARRAY" ? $in : ref($in) eq "CODE" ? &{$in} : [];$C->{ITERATION}{f} = -1;for my $f (@$loop) {$C->{ITERATION}{f}++;$C->{f} = $f;$this->out("");$C->{ctrl} = "$C->{CFSearchForm}{$C->{f}}";$this->out("");if ( $C->{ctrl} ) {$this->out("			<tr>\n				<td class=atkEditorLeft>$C->{CFSearchForm}{names}{$C->{f}}</td>\n				<td class=atkEditorRight>$C->{ctrl}</td>\n			</tr>\n");}$this->out("");}$this->out("");}$this->out("\n");if ( $C->{TableLabelsEnabled} ) {$this->out("	<tr>\n		<td class=atkEditorLeft><span>Label</span></td>\n		<td class=atkEditorRight>\n");{my $G = (ref $this)->get("/zen/table/lister_search_labelling.html", $this->{param}) or die "no skel /zen/table/lister_search_labelling.html";my $ctx = $this->{C};my $out = $G->execute($ctx);$this->out(@$out) if $out;}$this->out("		</td>\n	</tr>\n");}$this->out("\n</table></td></tr>\n<tr>\n	<td class=atkEditorControl>\n	<input type=submit class=\"btn btn-primary\" value=\"Search\">\n	</td>\n</tr>\n</table>\n");}