implemented checkbox to search for terminated subscribers

2.0@2434
Daniel Tiefnig 17 years ago
parent c0e79d4eac
commit 0f70b55f60

@ -55,6 +55,7 @@ sub search : Local {
$exact{$sf} = 1 if $c->request->params->{'exact_'.$sf};
}
}
$filter{terminated} = 1 if $c->request->params->{terminated};
$c->session->{search_filter} = { %filter };
$c->session->{exact_filter} = { %exact };
}
@ -74,6 +75,7 @@ sub search : Local {
$filter{$sf} =~ s/\%*$/\%/;
}
}
$c->stash->{terminated} = $filter{terminated};
my $offset = $c->request->params->{offset} || 0;
$offset = 0 if $offset !~ /^\d+$/;

@ -367,3 +367,7 @@ h3 {
#contentplace .padding6 {
padding: 6px;
}
.topbottomspace {
margin: 5px 0;
}

@ -19,9 +19,14 @@
<label class="search_label" for="search_by_uuid">UUID:</label>
<input type="text" id="search_by_uuid" name="search_uuid" value="[% search_uuid %]" />
<input type="checkbox" id="exact_uuid" name="exact_uuid" [% IF exact_uuid %]checked="checked"[% END %]/>
<input type="checkbox" id="exact_uuid" name="exact_uuid" [% IF exact_uuid %]checked="checked"[% END %] />
<label for="exact_uuid">exact match</label><br />
<div class="topbottomspace">
<input type="checkbox" id="include_terminated" name="terminated" [% IF terminated %]checked="checked"[% END %] />
<label for="include_terminated">include terminated subscribers</label><br />
</div>
<input type="submit" value="Search &#187;" class="but" />
</form>
</div>
@ -32,7 +37,7 @@
<div class="p1">
<table>
<tr><td>SIP URI</td><td class="tdcenter">Account ID</td></tr>
<tr class="table_header"><td>SIP URI</td><td class="tdcenter">Account ID</td></tr>
[% FOREACH subscriber = subscriber_list %]

Loading…
Cancel
Save