<?php
   $str="";
   $defects=get_rows('',"*","`tbReportNumber`='".$rep."' ","find_defects","tbFN");
if($defects!='')
{
		   foreach($defects as $value)
		   {
		   $str .= "<div class='b_line'><li style='width:140px;'>&nbsp;" . $value['tbCategory'] . "&nbsp;</li><li style='width:240px;'>&nbsp;" . $value['tbTopical'] . "&nbsp;</li><li style='width:300px;'>&nbsp;" . $value['tbDefection'] . "&nbsp;</li><li style='width:210px;'>&nbsp;" . $value['tbSerial_NO'] . "&nbsp;</li><li style='width:50px;'>&nbsp;" . $value['tbCritical'] . "&nbsp;</li><li style='width:50px;'>&nbsp;" . $value['tbMajor'] . "&nbsp;</li><li style='width:50px;'>&nbsp;" . $value['tbMinor'] . "&nbsp;</li><li style='width:80px; margin-left:20px;'><a onclick='editdefect(\"".$pre."\",\"".$value['tbFN']."\",\"".$value['tbReportNumber']."\");' title='Edit(编辑)' style='cursor:pointer;'><img src='pics/edit.png' /></a> <a onclick='deldefect(\"".$pre."\",\"".$value['tbFN']."\",\"".$value['tbReportNumber']."\");' title='Remove(删除)' style='cursor:pointer;'><img src='pics/remove.png' /></a></li></div>";
		   }
}
?>