Ignore:
Timestamp:
06/14/05 16:51:35 (18 years ago)
Author:
bastiaans
Message:

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

  • Setup for search results template

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

  • Misc testing stuff for remembering filter order

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

  • Template for search

web/addons/toga/index.php:

  • Testing stuff from remembering filter order
  • Do not add filters in a search window

web/addons/toga/overview.php:

  • Extra test field for filterorder

web/addons/toga/search.php:

  • First good setup for search page

web/addons/toga/libtoga.php:

  • Added class TarchDbase? for searching SQL dbase for archived jobs
  • Added TarchRrd? for future generation of RRD Graphs for archived jobs
  • Cleaned up old RRD file generation code (we can graph on the fly!)
File:
1 edited

Legend:

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

    r135 r138  
    5555                //document.toga_form.state.value = '';
    5656                //document.toga_form.user.value = '';
     57                var myfilterorder = document.toga_form.elements['filterorder'].value;
    5758
    5859                if( document.toga_form.elements[filtername] ) {
    5960                        document.toga_form.elements[filtername].value = filterval;
     61                        if( myfilterorder != '')
     62                                myfilterorder = myfilterorder + "," + filtername;
     63                        else
     64                                myfilterorder = filtername;
     65                               
    6066                }
     67                document.toga_form.elements['filterorder'].value = myfilterorder;
     68
     69                //setTimeout( "document.forms['toga_form'].submit();", 1000 );
    6170
    6271                document.forms['toga_form'].submit();
    6372        }
     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
    64107</SCRIPT>
    65108
     
    71114<INPUT TYPE="HIDDEN" NAME="user" VALUE="{f_user}">
    72115<INPUT TYPE="HIDDEN" NAME="id" VALUE="{f_id}">
     116<INPUT TYPE="HIDDEN" NAME="filterorder" VALUE="{f_order}">
    73117
    74118<TABLE WIDTH="90%" CELLPADDING="8" CELLSPACING="3" BORDER=0>
Note: See TracChangeset for help on using the changeset viewer.