<?php
<html>
<head>
<link rel="stylesheet" type="text/css" href="<{system.htdocs}>styles/<{system.service.config('color')}>/default.css" />
<title>SEARCH</title>
</head>
<body marginwidth="10" marginheight="10" topmargin="10" leftmargin="10" rightmargin="10" bottomargin="10" bgcolor="<{system.color('body_bg')}>">
<form method="get" name="form">
<input type="hidden" name="command" value="admin/categories/category/search" />
<input type="hidden" name="id" value="<{category.id}>" />
<input type="hidden" name="page" value="<{page}>" />
<input type="hidden" name="temp" value="1" />
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="<{system.color('content_bg')}>"><img src="<{system.htdocs}>styles/<{system.service.config('color')}>/topleft.gif" alt="["></td>
<td bgcolor="<{system.color('content_bg')}>">
<table border="0" cellspacing="0" cellpadding="0" height="24">
<tr>
<td height="1" bgcolor="<{system.color('border')}>"><img src="<{system.htdocs}>images/blank.gif" width="1" height="1" /></td>
</tr>
<tr>
<td height="23"><a href="<{system.url}>">Details</a></td>
</tr>
</table>
</td>
<td bgcolor="<{system.color('content_bg')}>"><img src="<{system.htdocs}>styles/<{system.service.config('color')}>/topmiddle.gif" alt="|"></td>
<td bgcolor="<{system.color('content_bg')}>"><img src="<{system.htdocs}>styles/<{system.service.config('color')}>/topleft.gif" alt="["></td>
<td bgcolor="<{system.color('content_bg')}>">
<table border="0" cellspacing="0" cellpadding="0" height="24">
<tr>
<td height="1" bgcolor="<{system.color('border')}>"><img src="<{system.htdocs}>images/blank.gif" width="1" height="1" /></td>
</tr>
<tr>
<td height="23"><a href="<{system.url('modify')}>">Modify</a></td>
</tr>
</table>
</td>
<td bgcolor="<{system.color('content_bg')}>"><img src="<{system.htdocs}>styles/<{system.service.config('color')}>/topmiddle.gif" alt="|"></td>
<td bgcolor="<{system.color('highlight_bg')}>"><img src="<{system.htdocs}>styles/<{system.service.config('color')}>/topleft.gif" alt="["></td>
<td bgcolor="<{system.color('highlight_bg')}>">
<table border="0" cellspacing="0" cellpadding="0" height="24">
<tr>
<td height="1" bgcolor="<{system.color('border')}>"><img src="<{system.htdocs}>images/blank.gif" width="1" height="1" /></td>
</tr>
<tr>
<td height="23"><a href="<{system.url('search')}>"><font color="#000000">Users</font></a></td>
</tr>
</table>
</td>
<td bgcolor="<{system.color('highlight_bg')}>"><img src="<{system.htdocs}>styles/<{system.service.config('color')}>/topmiddle.gif" alt="|"></td>
<td bgcolor="<{system.color('content_bg')}>"><img src="<{system.htdocs}>styles/<{system.service.config('color')}>/topleft.gif" alt="["></td>
<td bgcolor="<{system.color('content_bg')}>">
<table border="0" cellspacing="0" cellpadding="0" height="24">
<tr>
<td height="1" bgcolor="<{system.color('border')}>"><img src="<{system.htdocs}>images/blank.gif" width="1" height="1" /></td>
</tr>
<tr>
<td height="23"><a href="<{system.url('delete')}>">Delete</a></td>
</tr>
</table>
</td>
<td bgcolor="<{system.color('content_bg')}>"><img src="<{system.htdocs}>styles/<{system.service.config('color')}>/topmiddle.gif" alt="|"></td>
<td><img src="<{system.htdocs}>styles/<{system.service.config('color')}>/topright.gif" alt="]"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" bgcolor="<{system.color('border')}>">
<tr>
<td>
<table border="0" cellspacing="1" cellpadding="0" width="100%">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="25" bgcolor="<{system.color('link')}>" background="<{system.htdocs}>styles/<{system.color}>/titlebg.gif">
<tr>
<td><font color="#ffffff"><b> Search</b></font></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="10" width="100%" bgcolor="<{system.color('content_bg')}>">
<tr>
<td>
<table border="0" cellspacing="10" cellpadding="0">
<tr>
<td width="100">Type:</td>
<td>
<select name="type">
<option value=""> - All - </option>
<option value="new"<%if:"{system.param('type')} eq 'new'"%> selected="selected"<%end%>>New</option>
<option value="active"<%if:"{system.param('type')} eq 'active'"%> selected="selected"<%end%>>Active</option>
<option value="disabled"<%if:"{system.param('type')} eq 'disabled'"%> selected="selected"<%end%>>Disabled</option>
</select>
</td>
</tr>
<tr>
<td width="100">Interval:</td>
<td><input type="text" name="interval" value="<{interval}>" size="5" /></td>
</tr>
<tr>
<td width="100">Action:</td>
<td>
<input type="radio" name="action" value=""<%if:"length {system.param('action')} == 0"%> checked="checked"<%end%> />Display
<input type="radio" name="action" value="email"<%if:"{system.param('action')} eq 'email'"%> checked="checked"<%end%> />E-mail
<input type="radio" name="action" value="delete"<%if:"{system.param('action')} eq 'delete'"%> checked="checked"<%end%> />Delete
</td>
</tr>
<%if:"length {system.param('action')} == 0"%>
<tr>
<td width="100">Display:</td>
<td>
<table cellspacing="0" cellpadding="0">
<tr>
<td width="100"><input type="checkbox" name="d_email" value="on"<%if:"{system.service.config('d_email')} eq 'on'"%> checked="checked"<%end%> />E-mail</td>
<td width="100"><input type="checkbox" name="d_category" value="on"<%if:"{system.service.config('d_category')} eq 'on'"%> checked="checked"<%end%> />Category</td>
<td><input type="checkbox" name="d_date_created" value="on"<%if:"{system.service.config('d_date_created')} eq 'on'"%> checked="checked"<%end%> />Date created</td>
</tr>
<tr>
<td width="100"><input type="checkbox" name="d_status" value="on"<%if:"{system.service.config('d_status')} eq 'on'"%> checked="checked"<%end%> />Status</td>
<td width="100"><input type="checkbox" name="d_package" value="on"<%if:"{system.service.config('d_package')} eq 'on'"%> checked="checked"<%end%> />Package</td>
<td><input type="checkbox" name="d_date_online" value="on"<%if:"{system.service.config('d_date_online')} eq 'on'"%> checked="checked"<%end%> />Date online</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100">Sort by:</td>
<td>
<select name="sort">
<option value="name"<%if:"{sort} eq 'name'"%> selected="selected"<%end%>>Name</option>
<option value="email"<%if:"{sort} eq 'email'"%> selected="selected"<%end%>>E-mail</option>
<option value="package_id"<%if:"{sort} eq 'package_id'"%> selected="selected"<%end%>>Package</option>
<option value="category_id"<%if:"{sort} eq 'category_id'"%> selected="selected"<%end%>>Category</option>
<option value="status"<%if:"{sort} eq 'status'"%> selected="selected"<%end%>>Status</option>
<option value="date_created"<%if:"{sort} eq 'date_created'"%> selected="selected"<%end%>>Date created</option>
<option value="date_online"<%if:"{sort} eq 'date_online'"%> selected="selected"<%end%>>Date online</option>
</select> <input type="radio" name="order" value="asc"<%if:"{order} eq 'ASC'"%> checked="checked"<%end%> />Ascending <input type="radio" name="order" value="desc"<%if:"{order} eq 'DESC'"%> checked="checked"<%end%> />Descending
</td>
</tr>
<%end%>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="3" width="100%" bgcolor="<{system.color('highlight_bg')}>">
<tr>
<td<%if:"{system.env('HTTP_USER_AGENT')} !~ /mozilla/4/i || {system.env('HTTP_USER_AGENT')} =~ /compatible/i"%> class="buttons"<%end%>><input type="submit" value="Submit" /></td>
</tr>
</table>
</td>
</tr>
<%if:"{search.count} > 0"%>
<%if:"{system.param('action')} eq 'email'"%>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="10" width="100%" bgcolor="<{system.color('content_bg')}>">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="10">
<tr>
<td width="100">Saved template:</td>
<td>
<select name="email" onchange="document.form.submit()">
<option value=""> - Select One - </option>
<%emails%>
<option value="<{email.id}>"<%if:"{system.param('email')} == {email.id}"%> selected="selected="<%end%>><{email.name}></option>
<%end%>
</select>
</td>
</tr>
<tr>
<td width="100">Subject:</td>
<td><input type="text" name="subject" size="60" value="<%if:"{email}"%><{email.subject}><%end%>" /></td>
</tr>
<tr>
<td width="100">Message:</td>
<td><textarea name="message" cols="100" rows="10"><%if:"{email}"%><{email.message}><%end%></textarea></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="3" width="100%" bgcolor="<{system.color('highlight_bg')}>">
<tr>
<td<%if:"{system.env('HTTP_USER_AGENT')} !~ /mozilla/4/i || {system.env('HTTP_USER_AGENT')} =~ /compatible/i"%> class="buttons"<%end%>><input type="submit" value="Finish" onclick="document.form.method = 'post'" /></td>
</tr>
</table>
</td>
</tr>
<%else_if:"{system.param('action')} eq 'delete'"%>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="20" width="100%" bgcolor="<{system.color('content_bg')}>">
<tr>
<td>Are you sure you want to delete the <b><{search.count}></b> account<%if:"{search.count} != 1"%>s<%end%>?</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="3" width="100%" bgcolor="<{system.color('highlight_bg')}>">
<tr>
<td<%if:"{system.env('HTTP_USER_AGENT')} !~ /mozilla/4/i || {system.env('HTTP_USER_AGENT')} =~ /compatible/i"%> class="buttons"<%end%>><input type="submit" value="Finish" onclick="document.form.method = 'post'" /></td>
</tr>
</table>
</td>
</tr>
<%else%>
<%users%>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="10" width="100%" bgcolor="<{system.color('content_bg')}>">
<tr>
<td>
<table border="0" cellspacing="10" cellpadding="0">
<tr>
<td><b><{user.name}></b> [ <a href="<{system.url('/admin/users/user')}>&id=<{user.id}>">Display</a> ]</td>
</tr>
</table>
<table border="0" cellspacing="10" cellpadding="0">
<%if:"{system.service.config('d_email')}"%>
<tr>
<td width="100">E-mail:</td>
<td><{user.email}> [ <a href="<{system.url('/admin/users/user/email')}>&id=<{user.id}>">E-mail</a> ]</td>
</tr>
<%end%>
<%if:"{system.service.config('d_status')}"%>
<tr>
<td width="100">Status:</td>
<td><%if:"{user.status} == 1"%>Enabled<%else%>Disabled<%end%></td>
</tr>
<%end%>
<%if:"{system.service.config('d_package')}"%>
<tr>
<td width="100">Package:</td>
<td><{user.package.name}> [ <a href="<{system.url('/admin/packages/package')}>&id=<{user.package.id}>">Display</a> ]</td>
</tr>
<%end%>
<%if:"{system.service.config('d_category')}"%>
<tr>
<td width="100">Category:</td>
<td><%if:"{user.category}"%><{user.category.name}> [ <a href="<{system.url('/admin/categories/category')}>&id=<{user.category.id}>">Display</a> ]<%else%>None<%end%></td>
</tr>
<%end%>
<%if:"{system.service.config('d_date_created')}"%>
<tr>
<td width="100">Date created:</td>
<td><{user.date_created}></td>
</tr>
<%end%>
<%if:"{system.service.config('d_date_online')}"%>
<tr>
<td width="100">Date online:</td>
<td><{user.date_online}></td>
</tr>
<%end%>
</table>
</td>
</tr>
</table>
</td>
</tr>
<%end%>
<%if:"{page} > 1 || {page} * {amount} < {search.count}"%>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="3" width="100%" bgcolor="<{system.color('highlight_bg')}>">
<tr>
<td<%if:"{system.env('HTTP_USER_AGENT')} !~ /mozilla/4/i || {system.env('HTTP_USER_AGENT')} =~ /compatible/i"%> class="buttons"<%end%>>
<%if:"{page} > 1"%>
<input type="submit" value="Previous" onclick="document.form.page.value--" />
<%end%>
<%if:"{page} * {amount} < {search.count}"%>
<input type="submit" value="Next" onclick="document.form.page.value++" />
<%end%>
</td>
<td align="right"><{start}> to <{finish}> of <{search.count}> total</td>
</tr>
</table>
</td>
</tr>
<%end%>
<%end%>
<%else%>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="20" width="100%" bgcolor="<{system.color('content_bg')}>">
<tr>
<td>No users found in the database.</td>
</tr>
</table>
</td>
</tr>
<%end%>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
?>