Ignore:
Timestamp:
08/05/05 12:55:27 (18 years ago)
Author:
bastiaans
Message:

web/addons/toga/templates/search.tpl:

  • Removed graph timeperiod selection -> to be placed in header

web/addons/toga/templates/header.tpl:

  • Added graph timeperiod selection when browsing jobarchive
  • Now a user can change graphing timeperiods for the node detail graphs from the archive!

web/addons/toga/host_view.php:

  • Added correct parsing of timeperiod

web/addons/toga/index.php:

  • Added placement of graph timeperiod selection and variables

web/addons/toga/search.php:

  • Small cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/toga/templates/header.tpl

    r187 r189  
    66<META http-equiv="refresh" content="{refresh}{redirect}" >
    77<LINK rel="stylesheet" href="./styles.css" type="text/css">
     8<SCRIPT LANGUAGE="javascript" SRC="ts_picker.js"></SCRIPT>
     9<SCRIPT LANGUAGE="javascript">
     10
     11        function setPeriodTimestamps() {
     12
     13                document.{form_name}.period_start.value = document.{form_name}.period_start_pick.value;
     14                document.{form_name}.period_stop.value = document.{form_name}.period_stop_pick.value;
     15        }
     16
     17</SCRIPT>
    818</HEAD>
    919<BODY BGCOLOR="#FFFFFF">
    1020
    11 <FORM ACTION="./?c={cluster}&view={view}" METHOD="GET" NAME="{form_name}">
     21<FORM ACTION="./" METHOD="GET" NAME="{form_name}">
     22<INPUT TYPE="HIDDEN" NAME="c" VALUE="{cluster}">
     23<INPUT TYPE="HIDDEN" NAME="view" VALUE="{view}">
    1224<TABLE WIDTH="100%">
    1325<TR>
     
    3547     {metric_menu} &nbsp;&nbsp;
    3648     {range_menu}&nbsp;&nbsp;
    37      {sort_menu}
     49     {sort_menu}&nbsp;&nbsp;
     50<!-- START BLOCK : timeperiod -->
     51    <INPUT TYPE="HIDDEN" NAME="period_start" VALUE="{period_start}">
     52    <INPUT TYPE="HIDDEN" NAME="period_stop" VALUE="{period_stop}">
     53    <INPUT TYPE="HIDDEN" NAME="h" VALUE="{hostname}">
     54    <BR><BR><B>Graph timeperiod/ from
     55    <INPUT TYPE="text" NAME="period_start_pick" VALUE="{period_start}" ALT="Start time" DISABLED="TRUE">
     56    <a href="javascript:show_calendar('document.{form_name}.period_start_pick', document.{form_name}.period_start_pick.value);" alt="Click to select a date/time" title="Click to select a date/time">
     57    <img src="cal.gif" width="16" height="16" border="0"></a>
     58    <a href="#" onClick="javascript: document.{form_name}.period_start_pick.value=''" alt="Click here to clear field" title="Click here to clear field">
     59    <IMG SRC="redcross.jpg" BORDER=0></A>
     60    to <INPUT TYPE="text" NAME="period_stop_pick" VALUE="{period_stop}" ALT="Stop time" DISABLED="TRUE">
     61    <a href="javascript:show_calendar('document.{form_name}.period_stop_pick', document.{form_name}.period_stop_pick.value);" alt="Click to select a date/time" title="Click to select a date/time">
     62    <img src="cal.gif" width="16" height="16" border="0"></a>
     63    <a href="#" onClick="javascript: document.{form_name}.period_stop_pick.value=''" alt="Click here to clear field" title="Click here to clear field">
     64    </B>
     65    <IMG SRC="redcross.jpg" BORDER=0></A>
     66
     67<!-- START BLOCK : hostview -->
     68    <INPUT TYPE="HIDDEN" NAME="job_start" VALUE="{job_start}">
     69    <INPUT TYPE="HIDDEN" NAME="job_stop" VALUE="{job_stop}">
     70<!-- END BLOCK : hostview -->
     71    <INPUT TYPE="submit" onClick="setPeriodTimestamps();" VALUE="Refresh graphs">
     72<!-- END BLOCK : timeperiod -->
    3873     </TD>
    3974     <TD>
Note: See TracChangeset for help on using the changeset viewer.