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>
13 <TD><FONT SIZE="-1"><I>(leave blank to show all users)</I></FONT></TD>
15 % my @part_export = qsearch( 'part_export', { 'exporttype' => 'sqlradius' } );
17 % qsearch( 'part_export', { 'exporttype' => 'sqlradius_withdomain' } );
19 % if ( grep { ! $_->option('hide_ip') } @part_export ) {
22 <TD ALIGN="right">IP address: </TD>
23 <TD><INPUT TYPE="text" NAME="ip"></TD>
27 <TD><FONT SIZE="-1"><I>(leave blank to show all IPs)</I></FONT></TD>
30 % if ( grep { $_->option('show_called_station') } @part_export ) {
33 <TD ALIGN="right">Destination prefix:</TD>
34 <TD><INPUT TYPE="text" NAME="prefix"></TD>
38 <TD><FONT SIZE="-1"><I>(country code or country code and prefix)</I></FONT></TD>
42 <TD><FONT SIZE="-1"><I>(leave blank to show all destinations)</I></FONT></TD>
49 <INPUT TYPE="radio" NAME="open_sessions" VALUE="0" onClick="open_changed(this);" CHECKED>Completed sessions<BR>
50 <INPUT TYPE="radio" NAME="open_sessions" VALUE="1" onClick="open_changed(this);">Open sessions
55 <TH COLSPAN=2>Session start</TD>
58 <% include( '/elements/tr-input-beginning_ending.html',
59 'prefix' => 'starttime',
64 <SCRIPT TYPE="text/javascript">
66 function open_changed(what) {
68 var value=get_open_value(what);
70 what.form.stoptime_beginning_text.disabled = true;
71 what.form.stoptime_ending_text.disabled = true;
72 what.form.stoptime_beginning_text.style.backgroundColor = '#dddddd';
73 what.form.stoptime_ending_text.style.backgroundColor = '#dddddd';
74 what.form.stoptime_beginning_button.style.display = 'none';
75 what.form.stoptime_ending_button.style.display = 'none';
76 what.form.stoptime_beginning_disabled.style.display = '';
77 what.form.stoptime_ending_disabled.style.display = '';
78 } else if ( value == '0' ) {
79 what.form.stoptime_beginning_text.disabled = false;
80 what.form.stoptime_ending_text.disabled = false;
81 what.form.stoptime_beginning_text.style.backgroundColor = '#ffffff';
82 what.form.stoptime_ending_text.style.backgroundColor = '#ffffff';
83 what.form.stoptime_beginning_button.style.display = '';
84 what.form.stoptime_ending_button.style.display = '';
85 what.form.stoptime_beginning_disabled.style.display = 'none';
86 what.form.stoptime_ending_disabled.style.display = 'none';
91 function get_open_value(what) {
93 for (var i=0; i < what.form.open_sessions.length; i++) {
94 if (what.form.open_sessions[i].checked) {
95 var rad_val = what.form.open_sessions[i].value;
104 <TH COLSPAN=2>Session end</TD>
107 <% include( '/elements/tr-input-beginning_ending.html',
108 'prefix' => 'stoptime',
114 <BR><INPUT TYPE="submit" VALUE="View sessions">
117 <% include('/elements/footer.html') %>
121 unless $FS::CurrentUser::CurrentUser->access_right('List rating data');