0810納品

来源:互联网 发布:sql注入扫描工具 编辑:程序博客网 时间:2024/05/09 13:23

j:= 0 ;
for i in 1..count loop
 if j mod 3 =0 then
  if j = 0 then
   htp.p('<tr color="1">');
  end if;
  if j=3 then
   htp.p('<tr color="2">');
  end if;
  if j=6 then
   htp.p('<tr color="3">');
  end if;
  if array.(i) is not null then
   htp.p('<td>'||array2.(i)||' </td>');
   j := j++;
  end if;
  
 else
  if j mod 3 <> 0 then
   if array.(i) is not null then
    htp.p('<td>'||array2.(i)||' </td>');
    j:=j+1;
   end if ;
  end if;
 end if;
 if j mod 3 = 0 then
  htp.p('</tr>');
 end if;
end loop;

原创粉丝点击