Jump to content

Query string


sandy1028

Recommended Posts

<?php
echo '<HTML>
<HEAD>
<TITLE>Bandwidth Monitoring</TITLE>

</HEAD>
<body leftMargin=0 topMargin=0  bgcolor="#CFE8F5">
<img src="./banner1024.jpg" border=0 usemap="#cdachome"></img>
<p><br/>
</p>

<CENTER>
  <H2><font size="4" color="#006699" face="Arial">Bandwidth Monitoring</font></H2>
  <p style="font-size:1.2em;"> </p>
<BR><BR>

<TABLE>
<TR><TD>
<FORM name="bw">
<TABLE align="center" cellspacing="4" cellpadding="4">
            <TR>

              <TD>Start: </TD>
              <TD>
                <SELECT name="start">
                  <OPTION value="24 hours ago" selected>24 Hours Ago
                  <OPTION value="10 minutes ago" >10 Minutes Ago
                  <OPTION value="30 minutes ago" >30 Minutes Ago
                  <OPTION value="1 hour ago" >1 Hour Ago
                  <OPTION value="6 hours ago" >6 Hours Ago
                  <OPTION value="18 hours ago" >18 Hours Ago
                  <OPTION value="3 days ago" >3 Days Ago
                  <OPTION value="1 week ago" >1 Week Ago
                  <OPTION value="2 weeks ago" >2 Weeks Ago
                  <OPTION value="1 month ago" >1 Month Ago
                  <OPTION value="3 months ago" >3 Months Ago
                  <OPTION value="6 months ago" >6 Months Ago
                  <OPTION value="9 months ago" >9 Months Ago
                </SELECT>
<TD>End:

                <SELECT name="end">
                  <OPTION value="now">Now
                  <OPTION value="24 hours ago" >24 Hours Ago
                  <OPTION value="5 minutes ago" >5 Minutes Ago
                  <OPTION value="10 minutes ago" >10 Minutes Ago
                  <OPTION value="30 minutes ago" >30 Minutes Ago
                  <OPTION value="1 hour ago" >1 Hour Ago
                  <OPTION value="6 hours ago" >6 Hours Ago
                  <OPTION value="18 hours ago" >18 Hours Ago
                  <OPTION value="3 days ago" >3 Days Ago
                  <OPTION value="1 week ago" >1 Week Ago
                  <OPTION value="2 weeks ago" >2 Weeks Ago
                  <OPTION value="1 month ago" >1 Month Ago
                  <OPTION value="3 months ago" >3 Months Ago
                  <OPTION value="6 months ago" >6 Months Ago
                  <OPTION value="9 months ago" >9 Months Ago
                </SELECT></TD>
            </TR>
            <TR>';
?>
<TR>
    <TD align=left><LABEL><FONT face=Arial color=#006699>Date
    </FONT></LABEL></TD>
    <TD align=left><SELECT name=date_from>
                         <OPTION value=-- selected>--
                        <OPTION value=between>between
                        <OPTION value=before>before
                        <OPTION value=after>after
                        <OPTION value=equals>equals</OPTION></SELECT></TD>
    <TD align=left><INPUT name=st_date>
        <FONT face=Arial color=#006699></FONT>
        <A HREF="#" disabled="true" onClick="cal.select(document.forms['bw'].end_date,'anchor1','yyyy-MM-dd'); return false;"  NAME="anchor1" ID="anchor1" ><img src = "../../gridmon/GRID/images/calendar.gif" border=1 border-color="red"></img></A>
        </TD></TR>
  <TR>
    <TD></TD>
    <TD><LABEL><FONT face=Arial color=#006699>and</FONT></LABEL></TD>
<TD align=left><INPUT name=end_date><FONT face=Arial color=#006699></FONT>
<A HREF="#" disabled="true" onClick="cal.select(document.forms['bw'].end_date,'anchor2','yyyy-MM-dd'); return false;"  NAME="anchor2" ID="anchor2" ><img src = "../../gridmon/GRID/images/calendar.gif" border=1 border-color="red"></img></A>
</TD></TR>

<tr>
              <td>Limit</td>
              <td> <input type="text" name="limit" value="20" size="3" maxlength="3/>
        </td>
            </tr>
            <TR>
              <TD colspan="4" align="center">
                <INPUT name="submit" type="submit" value="Get Traffic Data">
              </TD>
            </TR>
          </TABLE>


<br/><br/>

<br/>
  <br/>
  <br/>
<TABLE style="border-collapse: collapse; border: 4px solid #006699;">
<TR>
<TD>
  <img src="linegraph_24.php?v1=bandwidth_utilization" alt="Bandwidth_utilization of 24hrs days" style="border:0;"/></img>


</TD>
</TR>
</TABLE>


<br/>


 

Hi,

 

I have to develop a page similar to this.

 

http://pheezer.uits.iupui.edu/tp2traffic/

 

How to pass the query string by default which shows the data.

Later when the submit is clicked again the value changes both in graph as well as in table.

Link to comment
Share on other sites

By default the table should display values without submit button.

That is before pressing a submit button there should be values in the table.

The queries I have written which data should be present in the table.

 

I should pass the query string to a table by defualt for 24hrs data and also pass the data to table selecting the option by the user

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.