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 |
* |
* |
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(); |
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\"> |
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'); |
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 |
|
|