[Tutos-commits] tutos/php/bugtracking bug_overview.php,1.57,1.58
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: Gero K. <gok...@us...> - 2009-11-25 19:15:16
|
Update of /cvsroot/tutos/tutos/php/bugtracking In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv21901/bugtracking Modified Files: bug_overview.php Log Message: fixes Index: bug_overview.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/bugtracking/bug_overview.php,v retrieving revision 1.57 retrieving revision 1.58 diff -u -d -r1.57 -r1.58 --- bug_overview.php 22 Oct 2009 11:11:33 -0000 1.57 +++ bug_overview.php 25 Nov 2009 19:15:07 -0000 1.58 @@ -2,8 +2,8 @@ /** * Copyright 1999 - 2009 by Gero Kohnert * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the * Free Software Foundation; version 2 of the License. * * CVS Info: $Id$ @@ -43,11 +43,11 @@ $r .= $this->blist[0]->exportXMLHeader(); $r .= $this->blist[0]->exportXML_Head(); $r .= "<bug_set>\n"; - foreach ($this->blist as $i => $b) { + foreach ($this->blist as $i => $b) { $r .= $b->exportXML_start(); $r .= $b->exportXML_body(); $r .= $b->exportXML_end(); - } + } $r .= "</bug_set>\n"; return $r; } else if ($this->format == "excel") { @@ -149,12 +149,12 @@ fpassthru($fh); fclose($fh); @unlink($tmpname); - return $r; + return $r; } else if ( $this->format == "stat") { return $this->statinfo(); } - + $n = count($this->blist); if ( 0 == $n) { $r .= $this->error($lang['Err0048']); @@ -216,7 +216,7 @@ if ( $this->filter['name'] != "" ) { $x = eregi_replace("(". $this->filter['name'] .")","<span class=\"found\">\\1</span>",$x); } -# $r .= " <td nowrap=\"nowrap\" align=\"right\">". makelink($b->getUrl(),$x) ."</td>\n"; + # $r .= " <td nowrap=\"nowrap\" align=\"right\">". makelink($b->getUrl(),$x) ."</td>\n"; $r .= " <td nowrap=\"nowrap\" align=\"right\">". $b->getLink($x) ."</td>\n"; $r .= " <td>". $b->creation->getDate() ."</td>\n"; @@ -375,7 +375,7 @@ unset($b); } - // we need it + // we need it $b = new bug($this->dbconn); $r .= $this->DataTableStart(); @@ -653,9 +653,6 @@ $this->layout_id = usebugtracking; - $this->header = ''; - $hpre = ''; - $this->filter = array(); $this->filter['refname'] = ''; $this->filter['name'] = ''; @@ -695,9 +692,9 @@ if ( isset($_GET['pid']) ) { $pid = $_GET['pid']; } -// if ( isset($_GET['solverid']) && is_int($_GET['solverid']) ) { -// $solverid = $_GET['solverid']; -// } + // if ( isset($_GET['solverid']) && is_int($_GET['solverid']) ) { + // $solverid = $_GET['solverid']; + // } if ( isset($_GET['state']) ) { @@ -872,20 +869,20 @@ $h = array(); $x = 0; if (false) { - while ( $x < $n1 ) { - $b = new bug($this->dbconn); - $b = $b->read($this->result1->get($x, "id"),$b); - $x++; - if ( ! $b->see_ok() ) { - continue; - } - if (! isset($h[$b->id]) ) { - $this->blist[] = &$b; - $h[$b->id] = 1; + while ( $x < $n1 ) { + $b = new bug($this->dbconn); + $b = $b->read($this->result1->get($x, "id"),$b); + $x++; + if ( ! $b->see_ok() ) { + continue; + } + if (! isset($h[$b->id]) ) { + $this->blist[] = &$b; + $h[$b->id] = 1; + } + unset($b); } - unset($b); - } - $this->result1->free(); + $this->result1->free(); } $x = 0; while ( $x < $n2 ) { @@ -932,7 +929,7 @@ text => $lang['NewEntry'], info => $lang['CreateNewBug'], category => array("bug","new","obj") - ); + ); $this->addMenu($x); } @@ -943,7 +940,7 @@ text => $lang['Printable'], info => $lang['PrintableInfo'], category => array("view","bug") - ); + ); $this->addMenu($x); $l = addUrlParameter($this->link1,"format=stat"); @@ -952,7 +949,7 @@ text => $lang['BugStats'], info => $lang['BugStatsInfo'], category => array("view","bug") - ); + ); $this->addMenu($x); } $l = addUrlParameter($this->link1,"format=excel"); @@ -960,7 +957,7 @@ text => $lang['Export'] ."(EXCEL)", info => $lang['ExportInfo'], category => array("bug","view") - ); + ); $this->addMenu($x); if (class_exists('url')) { @@ -973,4 +970,4 @@ $l = new Bug_overview($current_user); $l->display(); $dbconn->Close(); -?> +?> \ No newline at end of file |