Changeset 7655 for trunk/admin/inc/class.html_tables.inc.php
- Timestamp:
- 12/14/12 14:30:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/class.html_tables.inc.php
r2 r7655 102 102 $rparms = array(); 103 103 $mrow = $stop; 104 for($rno=0;$rno<$mrow; $rno++)104 for($rno=0;$rno<$mrow;++$rno) 105 105 { 106 106 // Build GroupKey … … 131 131 $grno = $start; 132 132 $gkey = $rows[$start]['#gkey']; 133 for($rno=$start+1;$rno<$stop; $rno++)133 for($rno=$start+1;$rno<$stop;++$rno) 134 134 { 135 135 $rowspan = 1; … … 142 142 $row = $rows[$rno]; 143 143 144 for($pc=0;$pc<count($row); $pc++)144 for($pc=0;$pc<count($row);++$pc) 145 145 { 146 146 $c = $row[$cols[$pc]]; … … 155 155 } 156 156 } 157 $rno++;157 ++$rno; 158 158 $rkey = $rows[$rno]['#gkey']; 159 159 } … … 173 173 */ 174 174 //print_r($rows); 175 for($rno=$start;$rno<$stop; $rno++)175 for($rno=$start;$rno<$stop;++$rno) 176 176 { 177 177 // let user have a hack at the row... … … 314 314 $html .= "<table width=\"98%\" bgcolor=\"#000000\">\n"; 315 315 $f = array(); 316 for($fno=0;$fno<$noflds; $fno++)316 for($fno=0;$fno<$noflds;++$fno) 317 317 { 318 318 $f[]=$fno; … … 320 320 // Column Headings 321 321 $html .= "\t<tr bgcolor=\"#D3DCFF\">\n"; 322 for($cno=0;$cno<$nocols; $cno++)322 for($cno=0;$cno<$nocols;++$cno) 323 323 { 324 324 $html .= "\t\t<td align=\"center\">$cno</td>\n"; 325 325 } 326 326 $html .= "\t</tr >\n"; 327 for($rno=0;$rno<$norows; $rno++)327 for($rno=0;$rno<$norows;++$rno) 328 328 { 329 329 $html .= "\t<tr bgcolor=\"#D3DCFF\">\n"; 330 for($cno=0;$cno<$nocols; $cno++)330 for($cno=0;$cno<$nocols;++$cno) 331 331 { 332 332 $c = $layout[$rno][$cno]; … … 359 359 reset($cols); 360 360 // while(list($cno,$name) = each($cols)) 361 for($fno=0;$fno<$noflds; $fno++)361 for($fno=0;$fno<$noflds;++$fno) 362 362 { 363 363 $name = $cols[$fno]; … … 412 412 $mrows = count($tlayout); 413 413 $mcols = count($tlayout[0]); 414 for($pr=0;$pr<$mrows; $pr++)415 { 416 for($pc=0;$pc<$mcols; $pc++)414 for($pr=0;$pr<$mrows;++$pr) 415 { 416 for($pc=0;$pc<$mcols;++$pc) 417 417 { 418 418 if(isset($tlayout[$pr][$pc])) … … 425 425 { 426 426 unset($tlayout[$pr + $rowspan][$pc]); 427 $rowspan++;427 ++$rowspan; 428 428 } 429 429 while(($pc + $colspan < $mcols) && ($tlayout[$pr][$pc+$colspan] == $cno)) 430 430 { 431 431 unset($tlayout[$pr][$pc+$colspan]); 432 $colspan++;432 ++$colspan; 433 433 } 434 434 if($colspan > 1 && $rowspan > 1) 435 435 { 436 for($r=$pr+1;$r<$pr+$rowspan; $r++)436 for($r=$pr+1;$r<$pr+$rowspan;++$r) 437 437 { 438 for($c=$pc+1;$c<$pc+$colspan; $c++)438 for($c=$pc+1;$c<$pc+$colspan;++$c) 439 439 { 440 440 unset($tlayout[$r][$c]);
Note: See TracChangeset
for help on using the changeset viewer.