ljr/livejournal/htdocs/directorysearch.bml

206 lines
3.9 KiB
Plaintext
Executable File

<?_info
localblocks<=
crit<=
{FpRs}<tr bgcolor='<?emcolor?>'>
<td align='left' colspan='2'><b>%%name%%</b>
</tr>
<tr align='left'><td>&nbsp;</td><td>%%form%%</td></tr>
<=crit
bar<=
{FpRs}<tr bgcolor='<?emcolor?>' align='left'>
<td>&nbsp;</td>
<td><b>%%name%%</b></td>
</tr>
<tr align='left'><td>&nbsp;</td><td>%%form%%</td></tr>
<=bar
<=localblocks
_info?><?page
title=>Directory Search
body<=
<?_code
LJ::set_active_crumb('advsearch');
_code?>
<?h1 Search Directory h1?>
<?p
Fill in criteria below that you'd like to find user journals by. The results returned are the intersection of all search criteria. In other words, each restriction means "AND", not "OR".
p?>
<center>
<form style='margin-top: 1.5em' action='/directory.bml' method='get'>
<table cellpadding='4' cellspacing='0' border='0'>
<!--- location --->
<?crit
name=>By Location
code=>s_loc
form<=
<table>
<tr><td align='right'>Country:</td><td align='left'>
<?_code
LJ::load_codes({ "country" => \%countries });
return LJ::html_select({
'name' => 'loc_cn',
}, "", "", map { $_, $countries{$_} } "US", sort { $countries{$a} cmp $countries{$b} } keys %countries);
_code?>
</td></tr>
<tr><td align='right'>State/Province:</td><td align='left'><input name="loc_st" /></td></tr>
<tr><td align='right'>City:</td><td align='left'><input name="loc_ci" /></td></tr>
</table>
<=form
crit?>
<!---- update time ----->
<?crit
name=>By Journal Update Time
code=>s_ut
form<=
Updated in last
<select name="ut_days">
<option value="">-------</option>
<option value="1">day</option>
<option value="7">week</option>
<option value="30">month</option>
</select>
<=form
crit?>
<!---- age ----->
<?crit
name=>By Age
code=>s_age
form<=
Between
<input name="age_min" size='3' maxlength='3' /> and
<input name="age_max" size='3' maxlength='3' /> years old.
<=form
crit?>
<?_c DISABLED because of privacy policy. add later when 'public gender' option
<!---- gender ----->
<?crit
name=>By Gender
code=>s_gen
form<=
User is: <select name="gen_sel">
<option></option>
<option value="M">Male</option>
<option value="F">Female</option>
</select>
<=form
crit?>
_c?>
<!---- interest ----->
<?crit
name=>By Interest
code=>s_int
form<=
User likes: <input name="int_like" size='30' />
<=form
crit?>
<!---- has friend ----->
<?crit
name=>Has Friend
code=>s_fr
form<=
User lists <input name="fr_user" size='15' maxlength='15' /> as a friend.
<=form
crit?>
<!---- friend of ----->
<?crit
name=>Friend of
code=>s_fro
form<=
<input name="fro_user" size='15' maxlength='15' /> lists user as a friend.
<=form
crit?>
<?_c dead for now
<!---- client used ----->
<?crit
name=>Client Usage
code=>s_client
form<=
Has used update client named: <input name="client_match" SIZE='20' />
<=form
crit?>
_c?>
<?_c no index on this yet. need a userprop boolean.
<!----- other ------>
<?bar
name=>Other Criteria
form<=
<input type='checkbox' name="s_withpic" value='1' /> Only users with pictures
<=form
bar?>
_c?>
<!---- output formatting ----->
<?bar
name=>Display Options
form<=
<table>
<tr>
<td align='right'>
Output Format:
</td><td>
<select name="opt_format">
<option value="pics">By Picture</option>
<option value="simple">Simple</option>
</select>
</td></tr>
<tr>
<td align='right'>
Sorting Method:
</td><td>
<select name="opt_sort">
<option value="ut">Update Time</option>
<option value="user">User Name</option>
<option value="loc">Location</option>
</select>
</td></tr>
<tr>
<td align='right'>
Records per page:
</td><td>
<select name="opt_pagesize">
<option value="25">25</option>
<option value="50">50</option>
<option value="100" selected='selected'>100</option>
<option value="200">200</option>
</select>
</td></tr>
</table>
<=form
bar?>
<!--- submit --->
<tr bgcolor='<?emcolor?>'><td colspan='2' align='center'>
<input type='submit' value="Search!" />
<input type='reset' value="Clear Form" />
</td></tr>
</table>
</form>
</center>
<=body
page?><?_c <LJDEP>
form: htdocs/directory.bml
</LJDEP> _c?>