/[cvs]/nfo/php/libs/org.netfrag.glib/DataSource/Generic.php
ViewVC logotype

Diff of /nfo/php/libs/org.netfrag.glib/DataSource/Generic.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by joko, Fri Mar 28 06:45:26 2003 UTC revision 1.12 by joko, Sat Mar 29 08:00:48 2003 UTC
# Line 15  Line 15 
15   * $Id$   * $Id$
16   *   *
17   * $Log$   * $Log$
18     * Revision 1.12  2003/03/29 08:00:48  joko
19     * modified ErrorBoxing
20     *
21   * Revision 1.11  2003/03/28 06:45:26  joko   * Revision 1.11  2003/03/28 06:45:26  joko
22   * VERBOSE mode   * VERBOSE mode
23   *   *
# Line 788  class DataSource_Generic extends DesignP Line 791  class DataSource_Generic extends DesignP
791    
792        // trace        // trace
793          //if (constants::get('VERBOSE') && $this->_debug[notice]) {          //if (constants::get('VERBOSE') && $this->_debug[notice]) {
794          if (constants::get('VERBOSE')) {          if (constants::get('VERBOSE') or constants::get('ERRORS_ONLY')) {
795            //print "_result = " . Dumper($this->_result);            //print "_result = " . Dumper($this->_result);
796            //print "<div><b><font color=\"darkgreen\">Debug:</font></b> DataSource::Generic->_result_count = <b>" . $this->_result_count . "</b></div>";            //print "<div><b><font color=\"darkgreen\">Debug:</font></b> DataSource::Generic->_result_count = <b>" . $this->_result_count . "</b></div>";
797            $this->draw_status_box();            $this->draw_status_box();
# Line 804  class DataSource_Generic extends DesignP Line 807  class DataSource_Generic extends DesignP
807            
808      $boxcount++;      $boxcount++;
809    
810        $box = container();
811    
812      // box client code (javascript)      // box client code (javascript)
813      $code_js = "      $code_js = "
814      <script language=\"javascript\">      <script language=\"javascript\">
# Line 820  class DataSource_Generic extends DesignP Line 825  class DataSource_Generic extends DesignP
825      ";      ";
826      //$script = html_script($code_js);      //$script = html_script($code_js);
827      //print $script->render();      //print $script->render();
828      print $code_js;      $box->add( $code_js );
829            
830      // box style      // box style
831      $style = container(      $style = container(
832        html_style("text/css", '.boxlabel_darkgreen { color: darkgreen; font-weight:bold; }'),        html_style("text/css", '.boxlabel_darkgreen { color: darkgreen; font-weight:bold; }'),
833        html_style("text/css", '.box_dsg { background: #20ab39; color: white; border: 2px black groove; width:640px; padding:10px; margin:40px; }')        html_style("text/css", '.box_dsg { background: #20ab39; color: white; border: 2px black groove; width:640px; padding:10px; margin:40px; }')
834      );      );
835      print $style->render();      $box->add( $style );
836            
837      // box content      // box content
838      $statusbox = html_div('box_dsg');      $statusbox = html_div('box_dsg');
# Line 845  class DataSource_Generic extends DesignP Line 850  class DataSource_Generic extends DesignP
850        $statusbox->add( html_span('boxlabel_darkgreen', "Arguments:"), Dumper($call[args]), html_br() );        $statusbox->add( html_span('boxlabel_darkgreen', "Arguments:"), Dumper($call[args]), html_br() );
851      }      }
852      $statusbox->add( html_span('boxlabel_darkgreen', "Count:"), $this->get_result_count(), html_br() );      $statusbox->add( html_span('boxlabel_darkgreen', "Count:"), $this->get_result_count(), html_br() );
853      print $statusbox->render();      $box->add( $statusbox );
854    
855        print $box->render();
856    
857    }    }
858    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed