Esempio n. 1
0
?>
 :</B> &nbsp;
        <INPUT NAME="time_sep[0]" TYPE="radio" VALUE="hour" <?php 
echo @chk_check($time_sep[0], "hour");
?>
 checked> <?php 
echo gettext("Hour");
?>
        <INPUT NAME="time_sep[0]" TYPE="radio" VALUE="day" <?php 
echo @chk_check($time_sep[0], "day");
?>
> <?php 
echo gettext("Day");
?>
        <INPUT NAME="time_sep[0]" TYPE="radio" VALUE="month" <?php 
echo @chk_check($time_sep[0], "month");
?>
 onclick="document.getElementById('timesep1').value='between'"> <?php 
echo gettext("Month");
?>
        <BR>
	<input type="hidden" name="time[0][1]" value="<=">
<?php 
echo '<SELECT NAME="time_sep[1]" id="timesep1">
         <OPTION VALUE=" "  ' . @chk_select($time_sep[1], " ") . '>' . gettext("{ time }") . '
         <OPTION VALUE="on" ' . @chk_select($time_sep[1], "on") . ' selected>' . gettext("on") . '
         <OPTION VALUE="between"' . @chk_select($time_sep[1], "between") . '>' . gettext("between") . '
        </SELECT>';
echo '<input type="hidden" name="time[0][1]" value=">=">';
echo '<input type="hidden" name="time[1][1]" value="<=">';
// First initialize for select inputs
Esempio n. 2
0
         <TD VALIGN="top">
         <!--
         Logarithmic y-axis temporarily disabled, as the bars seem
         to be displayed in a wrong way, although the y-axis grid lines
         look correct
         -->
         <!--
           <INPUT TYPE="checkbox" NAME="yaxis_scale" VALUE="1" ' . chk_check($yaxis_scale, "1") . '>&nbsp;
           <B>' . gettext("Y-axis logarithmic") . '</B>
           <BR>
         --> 
           <INPUT TYPE="hidden" NAME="yaxis_scale" VALUE="0">
         
           

           <INPUT TYPE="checkbox" NAME="yaxis_grid" VALUE="1"  ' . chk_check($yaxis_grid, "1") . '>&nbsp;
           <B>' . gettext("Show Y-axis grid-lines") . '</B>
         </TD>
        </TR>
        </TABLE>
	</ul></li>

        </TD></TR>
     </TABLE>';
echo '</FORM><P><HR>';
echo '
 <!-- ************ JavaScript for Hiding Details ******************** -->
 <script type="text/javascript">
// <![CDATA[
function loopElements(el,level){
        for(var i=0;i<el.childNodes.length;i++){
Esempio n. 3
0
echo '&nbsp;&nbsp;<B>Plot Margins: (left x right x top x bottom)</B>
        &nbsp;<INPUT TYPE="text" NAME="pmargin0" SIZE=4 VALUE="' . $pmargin0 . '">
        &nbsp;<B>x</B>
        &nbsp;<INPUT TYPE="text" NAME="pmargin1" SIZE=4 VALUE="' . $pmargin1 . '">
        &nbsp;<B>x</B>
        &nbsp;<INPUT TYPE="text" NAME="pmargin2" SIZE=4 VALUE="' . $pmargin2 . '">
        &nbsp;<B>x</B>
        &nbsp;<INPUT TYPE="text" NAME="pmargin3" SIZE=4 VALUE="' . $pmargin3 . '">
        &nbsp;&nbsp;<BR>';
echo '&nbsp;&nbsp;<B>Plot type:</B> &nbsp;&nbsp;
            <INPUT TYPE="radio" NAME="chart_style" 
                   VALUE="bar" ' . chk_check($chart_style, "bar") . '> bar &nbsp;&nbsp
            <INPUT TYPE="radio" NAME="chart_style" 
                   VALUE="line" ' . chk_check($chart_style, "line") . '> line &nbsp;&nbsp
            <INPUT TYPE="radio" NAME="chart_style" 
                   VALUE="pie" ' . chk_check($chart_style, "pie") . '> pie ';
echo '<br><b>Chart Begin:</B>&nbsp;
        <SELECT NAME="chart_begin_hour">
         <OPTION VALUE=" "  ' . chk_select($chart_begin_hour, " ") . '>{hour}' . "\n";
echo '<OPTION VALUE="00" ' . chk_select($chart_begin_hour, "00") . '>0
  		 <OPTION VALUE="01" ' . chk_select($chart_begin_hour, "01") . '>1
  		 <OPTION VALUE="02" ' . chk_select($chart_begin_hour, "02") . '>2
  		 <OPTION VALUE="03" ' . chk_select($chart_begin_hour, "03") . '>3
  	     <OPTION VALUE="04" ' . chk_select($chart_begin_hour, "04") . '>4
  		 <OPTION VALUE="05" ' . chk_select($chart_begin_hour, "05") . '>5
 		 <OPTION VALUE="06" ' . chk_select($chart_begin_hour, "06") . '>6
 		 <OPTION VALUE="07" ' . chk_select($chart_begin_hour, "07") . '>7
 		 <OPTION VALUE="08" ' . chk_select($chart_begin_hour, "08") . '>8
 		 <OPTION VALUE="09" ' . chk_select($chart_begin_hour, "09") . '>9';
for ($i = 10; $i <= 23; $i++) {
    echo "<OPTION VALUE=\"{$i}\" " . chk_select($chart_begin_hour, $i) . " >{$i}\n";
Esempio n. 4
0
 function PrintForm()
 {
     if (!is_array($this->criteria[0])) {
         $this->criteria = array();
     }
     echo '<TD><SELECT NAME="tcp_flags[0]"><OPTION VALUE=" " ' . chk_select($this->criteria[0], " ") . '>' . gettext("{ flags }");
     echo '                              <OPTION VALUE="is" ' . chk_select($this->criteria[0], "is") . '>' . gettext("is");
     echo '                              <OPTION VALUE="contains" ' . chk_select($this->criteria[0], "contains") . '>' . gettext("contains") . '</SELECT>';
     echo '   <FONT>';
     echo '    <INPUT TYPE="checkbox" NAME="tcp_flags[8]" VALUE="128" ' . chk_check($this->criteria[8], "128") . '> [RSV1] &nbsp';
     echo '    <INPUT TYPE="checkbox" NAME="tcp_flags[7]" VALUE="64"  ' . chk_check($this->criteria[7], "64") . '> [RSV0] &nbsp';
     echo '    <INPUT TYPE="checkbox" NAME="tcp_flags[6]" VALUE="32"  ' . chk_check($this->criteria[6], "32") . '> [URG] &nbsp';
     echo '    <INPUT TYPE="checkbox" NAME="tcp_flags[5]" VALUE="16"  ' . chk_check($this->criteria[5], "16") . '> [ACK] &nbsp';
     echo '    <INPUT TYPE="checkbox" NAME="tcp_flags[3]" VALUE="8"   ' . chk_check($this->criteria[4], "8") . '> [PSH] &nbsp';
     echo '    <INPUT TYPE="checkbox" NAME="tcp_flags[4]" VALUE="4"   ' . chk_check($this->criteria[3], "4") . '> [RST] &nbsp';
     echo '    <INPUT TYPE="checkbox" NAME="tcp_flags[2]" VALUE="2"   ' . chk_check($this->criteria[2], "2") . '> [SYN] &nbsp';
     echo '    <INPUT TYPE="checkbox" NAME="tcp_flags[1]" VALUE="1"   ' . chk_check($this->criteria[1], "1") . '> [FIN] &nbsp';
     echo '  </FONT>';
 }
Esempio n. 5
0
echo '<P>
        <CENTER>
        <TABLE BORDER=0>
        <TR><TD>
            <FONT>
            <B>' . gettext("Sort order") . ':</B>
            <INPUT TYPE="radio" NAME="sort_order" 
                   VALUE="none" ' . chk_check($sort_order, "none") . '> ' . gettext("none") . ' |
            <INPUT TYPE="radio" NAME="sort_order" 
                   VALUE="time_a" ' . chk_check($sort_order, "time_a") . '> ' . gettext("timestamp (ascend)") . ' |
            <INPUT TYPE="radio" NAME="sort_order" 
                   VALUE="time_d" ' . chk_check($sort_order, "time_d") . '> ' . gettext("timestamp (descend)") . ' |
            <INPUT TYPE="radio" NAME="sort_order" 
                   VALUE="sip_a" ' . chk_check($sort_order, "sip_a") . '> ' . gettext("source IP") . ' |
            <INPUT TYPE="radio" NAME="sort_order" 
                   VALUE="dip_a" ' . chk_check($sort_order, "dip_a") . '> ' . gettext("dest. IP") . '
            <BR>
            <CENTER><INPUT TYPE="submit" class="button" NAME="submit" VALUE="' . gettext("Query DB") . '"></CENTER>
             </FONT>
             </TD>
        </TR>
        </TABLE>
		</CENTER>
		</ul>
		<hr>';
echo '
 <!-- ************ JavaScript for Hiding Details ******************** -->
 <script type="text/javascript">
// <![CDATA[
function loopElements(el,level){
	for(var i=0;i<el.childNodes.length;i++){