| 91 | |
---|
| 92 | function chartstyle_header() { |
---|
| 93 | |
---|
| 94 | global $chart_styles; |
---|
| 95 | |
---|
| 96 | if (@$_REQUEST['nslookup'] == 'on') { |
---|
| 97 | $nslookup = 'checked="checked"'; |
---|
| 98 | } else { |
---|
| 99 | $nslookup = False; |
---|
| 100 | } |
---|
| 101 | if (@$_REQUEST['rolling'] == 'on') { |
---|
| 102 | $rolling = 'checked="checked"'; |
---|
| 103 | } else { |
---|
| 104 | $rolling = False; |
---|
| 105 | } |
---|
| 106 | |
---|
| 107 | $output = '<div style="margin: 30px auto 30px auto; width: 850px; text-align: left;"><form action='.$_SERVER['SCRIPT_NAME'].'> |
---|
| 108 | <table> |
---|
| 109 | <tr> |
---|
| 110 | <td>Start Date: <input type="text" name="startdate" value="'.$_REQUEST['startdate'].'" size="10" /></td> |
---|
| 111 | <td>Start Time: <input type="text" name="starttime" value="'.$_REQUEST['starttime'].'" size="5" /></td> |
---|
| 112 | <td>End Date: <input type="text" name="enddate" value="'.$_REQUEST['enddate'].'" size="10" /></td> |
---|
| 113 | <td>End Time: <input type="text" name="endtime" value="'.$_REQUEST['endtime'].'" size="5" /></td> |
---|
| 114 | <td>Chart Style: <select name="style" size=1>'; |
---|
| 115 | |
---|
| 116 | foreach ($chart_styles as $style=>$file) { |
---|
| 117 | if (@$_REQUEST['style'] == $style) { |
---|
| 118 | $output .= '<option selected="selected">'.$style.'</option>'."\n"; |
---|
| 119 | } else { |
---|
| 120 | $output .= '<option>'.$style.'</option>'."\n"; |
---|
| 121 | } |
---|
| 122 | } |
---|
| 123 | |
---|
| 124 | $output .= ' </select><td>Nslookup: <input type="checkbox" name="nslookup" '.$nslookup.'/><td> |
---|
| 125 | </select><td>Rolling chart: <input type="checkbox" name="rolling" '.$rolling.'/><td> |
---|
| 126 | <td><input type="hidden" name="probe" value="'.$_REQUEST['probe'].'" /><input type="hidden" name="action" value="chart" /><input type="submit" value="Chart!" /></td> |
---|
| 127 | </tr> |
---|
| 128 | </table> |
---|
| 129 | </form></div>'; |
---|
| 130 | |
---|
| 131 | // <tr><td><input type="hidden" name="probe" value="'.$_REQUEST['probe'].'" /><select name="timeframe"><option $ |
---|
| 132 | |
---|
| 133 | return $output; |
---|
| 134 | } |
---|