1 <% include( '/elements/header.html', 'Search RADIUS sessions' ) %>
3 <FORM NAME="OneTrueForm" ACTION="sqlradius.cgi" METHOD="GET">
4 % #include( '/elements/table.html' )
6 <% ntable('#cccccc') %>
8 <TD ALIGN="right">Username: </TD>
9 <TD><INPUT TYPE="text" NAME="username"></TD>
11 <% include( '/elements/tr-checkbox.html',
12 'field' => 'summarize',
13 'label' => 'Summarize',
19 <TD><FONT SIZE="-1"><I>(leave blank to show all users)</I></FONT></TD>
21 % my @part_export = qsearch( 'part_export', { 'exporttype' => 'sqlradius' } );
23 % qsearch( 'part_export', { 'exporttype' => 'sqlradius_withdomain' } );
25 % if ( grep { ! $_->option('hide_ip') } @part_export ) {
28 <TD ALIGN="right">IP address: </TD>
29 <TD><INPUT TYPE="text" NAME="ip"></TD>
33 <TD><FONT SIZE="-1"><I>(leave blank to show all IPs)</I></FONT></TD>
36 % if ( grep { $_->option('show_called_station') } @part_export ) {
39 <TD ALIGN="right">Destination prefix:</TD>
40 <TD><INPUT TYPE="text" NAME="prefix"></TD>
44 <TD><FONT SIZE="-1"><I>(country code or country code and prefix)</I></FONT></TD>
48 <TD><FONT SIZE="-1"><I>(leave blank to show all destinations)</I></FONT></TD>
55 <INPUT TYPE="radio" NAME="session_status" VALUE="" onClick="enable_stop(true);" CHECKED>All sessions<BR>
56 <INPUT TYPE="radio" NAME="session_status" VALUE="closed" onClick="enable_stop(true);">Completed sessions<BR>
57 <INPUT TYPE="radio" NAME="session_status" VALUE="open" onClick="enable_stop(false);">Open sessions
62 <TH COLSPAN=2>Session start</TD>
65 <% include( '/elements/tr-input-beginning_ending.html',
66 'prefix' => 'starttime',
71 <SCRIPT TYPE="text/javascript">
73 function enable_stop(value) {
75 var f = document.OneTrueForm;
77 f.stoptime_beginning_text.disabled = false;
78 f.stoptime_ending_text.disabled = false;
79 f.stoptime_beginning_text.style.backgroundColor = '#ffffff';
80 f.stoptime_ending_text.style.backgroundColor = '#ffffff';
81 f.stoptime_beginning_button.style.display = '';
82 f.stoptime_ending_button.style.display = '';
83 f.stoptime_beginning_disabled.style.display = 'none';
84 f.stoptime_ending_disabled.style.display = 'none';
86 f.stoptime_beginning_text.disabled = true;
87 f.stoptime_ending_text.disabled = true;
88 f.stoptime_beginning_text.style.backgroundColor = '#dddddd';
89 f.stoptime_ending_text.style.backgroundColor = '#dddddd';
90 f.stoptime_beginning_button.style.display = 'none';
91 f.stoptime_ending_button.style.display = 'none';
92 f.stoptime_beginning_disabled.style.display = '';
93 f.stoptime_ending_disabled.style.display = '';
101 <TH COLSPAN=2>Session end</TD>
104 <% include( '/elements/tr-input-beginning_ending.html',
105 'prefix' => 'stoptime',
111 <BR><INPUT TYPE="submit" VALUE="View sessions">
114 <% include('/elements/footer.html') %>
118 unless $FS::CurrentUser::CurrentUser->access_right('List rating data');