Ignore:
Timestamp:
06/15/05 10:48:34 (18 years ago)
Author:
bastiaans
Message:

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

  • Use block to include link to archive search

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

  • Cleanup
  • Javascript moved to seperate .js file

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

  • Added search results and future showhosts block section

web/addons/toga/index.php:

  • Use block instead of include for archive search link

web/addons/toga/search.php:

  • Setup of working search style

web/addons/toga/libtoga.php:

  • searchDbase() will return a list of jobids matching the criteria
File:
1 edited

Legend:

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

    r138 r140  
    2929<BR>
    3030
    31 <SCRIPT TYPE="text/javascript" SRC="ts_picker.js"></SCRIPT>
    32 <SCRIPT TYPE="text/javascript">
    33         function setSort( sortbyval ) {
    34 
    35                 if( sortbyval != document.toga_form.sortby.value ) {
    36 
    37                         document.toga_form.sortby.value = sortbyval;
    38                         document.toga_form.sortorder.value = "asc";
    39 
    40                 } else {
    41 
    42                         if( document.toga_form.sortorder.value == "desc" )
    43                                 document.toga_form.sortorder.value = "asc";
    44                         else if( document.toga_form.sortorder.value == "asc" )
    45                                 document.toga_form.sortorder.value = "desc";
    46                 }
    47 
    48                 document.forms['toga_form'].submit();
    49         }
    50 
    51         function setFilter( filtername, filterval ) {
    52 
    53                 //document.toga_form.id.value = '';
    54                 //document.toga_form.queue.value = '';
    55                 //document.toga_form.state.value = '';
    56                 //document.toga_form.user.value = '';
    57                 var myfilterorder = document.toga_form.elements['filterorder'].value;
    58 
    59                 if( document.toga_form.elements[filtername] ) {
    60                         document.toga_form.elements[filtername].value = filterval;
    61                         if( myfilterorder != '')
    62                                 myfilterorder = myfilterorder + "," + filtername;
    63                         else
    64                                 myfilterorder = filtername;
    65                                
    66                 }
    67                 document.toga_form.elements['filterorder'].value = myfilterorder;
    68 
    69                 //setTimeout( "document.forms['toga_form'].submit();", 1000 );
    70 
    71                 document.forms['toga_form'].submit();
    72         }
    73 
    74         //function removeFilters( filters ) {
    75 
    76                 //var myfilter_fields = filters.split( " " );
    77                 //for( var i=0; i<myfilter_fields.length; i++ ) {
    78                         //removeFilter( myfilter_fields[i] );
    79                         //setTimeout( "removeFilter( "+myfilter_fields[i]+" );", 50 );
    80                 //}
    81                 // delay 100 ms before submit or fields might not be set
    82                 //document.forms['toga_form'].submit();", 100 );
    83 
    84                 //setTimeout( "document.forms['toga_form'].submit();", 1000 );
    85         //}
    86 
    87         //function removeFilter( filtername ) {
    88 
    89         //      var filterorder_fields = document.toga_form.elements['filterorder'].value.split( "," );
    90         //      var myfilterorder = '';
    91 
    92         //      for( var i=0; i<filterorder_fields.length; i++ ) {
    93         //              if( filterorder_fields[i] != filtername ) {
    94         //                      if( myfilterorder != '') {
    95         //                              myfilterorder = myfilterorder + "," + filterorder_fields[i];
    96         //                              //alert('myfilterorder = '+myfilterorder);
    97         //                      } else {
    98         //                              myfilterorder = filterorder_fields[i];
    99         //                              //alert('emyfilterorder = '+myfilterorder);
    100         //                      }
    101         //              }
    102         //      }
    103         //      document.toga_form.elements[filtername].value = '';
    104         //      document.toga_form.elements['filterorder'].value = myfilterorder;
    105         //}
    106 
    107 </SCRIPT>
     31<SCRIPT TYPE="text/javascript" SRC="libtoga.js"></SCRIPT>
    10832
    10933<INPUT TYPE="HIDDEN" NAME="sortby" VALUE="{sortby}">
     
    16185   <FONT SIZE="-1">
    16286   Columns&nbsp;&nbsp;{cols_menu}
    163    </FONT><!-- <BR>
    164    <FONT SIZE="-1">
    165     Set graph timeperiod from <INPUT TYPE="text" NAME="start" VALUE="{start}" SIZE=12 ALT="Start time"><a href="javascript:show_calendar('document.toga_form.start', document.toga_form.start.value);"><img src="cal.gif" width="16" height="16" border="0"></a> to <INPUT TYPE="text" NAME="stop" VALUE="{stop}" SIZE=12 ALT="Stop time"><a href="javascript:show_calendar('document.toga_form.stop', document.toga_form.stop.value);"><img src="cal.gif" width="16" height="16" border="0"></a><INPUT TYPE="submit" VALUE="Refresh graphs">
    166    </FONT> -->
     87   </FONT>
    16788  </TD>
    16889</TR>
Note: See TracChangeset for help on using the changeset viewer.