1 var this_debug; 2 3 function show_rowspans(rows) { 4 5 if(!useComplexTables) return; 6 var str = ""; 7 8 for(var i=0; i < rows.length; i++) { 9 str+="ROW" + i + "\n"; 10 11 for(var col=0; col<rows[i].length; col++) { 12 str += "[" + col + "]"; 13 str+= "text="+rows[i][col].text + " "; 14 str+=" type="+rows[i][col].type + " "; 15 str+= " rowspan=" +rows[i][col].rowspan + " "; 16 str+= " colspan=" +rows[i][col].colspan + " "; 17 } 18 str += "\n"; 19 } 20 21 22 this_debug(str,'show_rowspans'); 23 24 str = ""; 25 for(var i=0; i < rows.length; i++) { 26 for(var col=0; col<rows[i].length; col++) { 27 str+= "|"+rows[i][col].text + " "; 28 } 29 str += "|\n"; 30 } 31 this_debug(str,'show_rowspans'); 32 33 } 34 35 function debug_row(rows,row,col,which) { 36 37 var not_found = ""; 38 try { 39 this_debug("row:"+row 40 +",column:"+col 41 +", rowspans:"+ rows[row][col].rowspan 42 +", colspans:"+ rows[row][col].colspan 43 +", text:"+rows[row][col].text, 44 which); 45 }catch(ex) { 46 not_found+="row:"+row +",column:"+col; 47 } 48 if(not_found) this_debug(not_found,"not_found"); 49 } 50 <?php } ?> 51 52