You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

52 lines
1.7 KiB

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