summaryrefslogtreecommitdiff
path: root/httemplate/search/sqlradius.html
blob: 645505101cdf6eea83c52f034741129c9e2fc98c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<%= include( '/elements/header.html', 'Search RADIUS sessions' ) %>

<FORM NAME="OneTrueForm" ACTION="sqlradius.cgi" METHOD="GET">
<% #include( '/elements/table.html' ) %>
<%= ntable('#cccccc') %>
<TR>
  <TD ALIGN="right">Username: </TD>
  <TD><INPUT TYPE="text" NAME="username"></TD>
</TR>
<TR>
  <TD></TD>
  <TD><FONT SIZE="-1"><I>(leave blank to show all users)</I></FONT></TD>
</TR>

<% my @part_export = qsearch( 'part_export', { 'exporttype' => 'sqlradius' } );
   push @part_export,
     qsearch( 'part_export', { 'exporttype' => 'sqlradius_withdomain' } );
%>

<% if ( grep { ! $_->option('hide_ip') } @part_export ) { %>
  <TR>
    <TD ALIGN="right">IP address: </TD>
    <TD><INPUT TYPE="text" NAME="ip"></TD>
  </TR>
  <TR>
    <TD></TD>
    <TD><FONT SIZE="-1"><I>(leave blank to show all IPs)</I></FONT></TD>
  </TR>
<% } %>

<% if ( grep { $_->option('show_called_station') } @part_export ) { %>
  <TR>
    <TD ALIGN="right">Destination prefix:</TD>
    <TD><INPUT TYPE="text" NAME="prefix"></TD>
  </TR>
  <TR>
    <TD></TD>
    <TD><FONT SIZE="-1"><I>(country code or country code and prefix)</I></FONT></TD>
  </TR>
  <TR>
    <TD></TD>
    <TD><FONT SIZE="-1"><I>(leave blank to show all destinations)</I></FONT></TD>
  </TR>
<% } %>

<%= include( '/elements/tr-input-beginning_ending.html' ) %>

</TABLE>
<BR><INPUT TYPE="submit" VALUE="View sessions">
</FORM>

<%= include('/elements/footer.html') %>