Public Method Details |
Bs_HtmlTable |
|
public void Bs_HtmlTable( string $matrix )
|
| |
**********************************************************************
Constructor
|
| Parameter |
|
| string |
$matrix |
|
|
Warning: documentation is missing. |
|
| Returns |
void |
|
clear |
|
public void clear( )
|
| |
**********************************************************************
Reset and clear the tableThe only thing that remains is the windrose.
|
| Returns |
void |
|
getNumRows |
|
public int getNumRows( )
|
| |
returns the number of rows (including title rows etc, just everything).
|
| Returns |
int |
| See Also |
getNumCols(), $_rowSize |
|
getNumCols |
|
public int getNumCols( )
|
| |
returns the number of cols (including title cols etc, just everything).
|
| Returns |
int |
| See Also |
getNumRows(), $_colSize |
|
initByMatrix |
|
public void initByMatrix( mixed $value )
|
| |
**********************************************************************
Init the content of the HtmlTable object.Only content is overwritten; attr.-, style-, hidding-, spanning-info etc. are preserved.If $value is not an array a 1 x 1 table is created.If $value is an 1-D array a 1 x m table is created. Table with 1-row/m-cols.If $value is an 2-D array a n x m table is created. Table with n-row/m-cols.n = size of array / m = size of inner arrayHash arrays and normal arrays are accepted. Also a 2-D array may have longershorter row-length. The table will take the longest row as its row size.NOTE: You may pass data by reference. Any change on that data will effectthe table content as well.NOTE: The content of a cell can be an other Bs_HtmlTable-object itself. Itis then also rendered as cascading table.
|
| Parameter |
|
| mixed |
$value |
|
|
a value, 1-D or 2-D array of data (HTML table content). |
|
| Returns |
void |
|
pushRow |
|
public integer pushRow( array $value, [ integer $rowPos ] )
|
| |
**********************************************************************
Inserts a ROW (any array of data) at postion $rowPos by pushing the other rows down.If no position is given or if the position is larger then the max rows,the array will append to the last row position.NOTE: If passed array is to short (meaning: there are more cols then array elements)the array will be blown up with NULL values.If it's to long, it will be cut.
|
| Parameter |
|
| array |
$value |
|
|
a value or 1-D array of HTML table content. |
|
|
| integer |
$rowPos |
= >>-1<< |
|
(opt) row position to push in the data. Default: at the end. |
|
| Returns |
integer The position the row was inserted. |
|
pushCol |
|
public integer pushCol( array $value, [ integer $colPos ] )
|
| |
**********************************************************************
Inserts a COL (any array of data) at postion $colPos by pushing the other cols to right.If no position is given or if the position is larger then the max cols,the array will append to the last col position.NOTE: If passed array is to short (meaning: there more cols then array elements)the array will be blown up with NULL values.It it's to long, it will be cut.
|
| Parameter |
|
| array |
$value |
|
|
a value or 1-D array of HTML table content. |
|
|
| integer |
$colPos |
= >>-1<< |
|
(opt) row position to push in the data. Default: at the end. |
|
| Returns |
integer The position the col was inserted. |
|
setRow |
|
public void setRow( integer $rowPos, mixed $value, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
Fill a table row with content given by a value or any 1-D array.Any data passing the table limits is truncated.
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| mixed |
$value |
|
|
or 1-D array of content |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) where to start inserting (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
eter $amount (opt) of cells to set (Default to table end OR in case of array: array-length) |
|
| Returns |
void |
|
setCol |
|
public void setCol( integer $colPos, mixed $value, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
Fill a table col with content given by a value or a 1-D array.Any data passing the table limits is truncated.
|
| Parameter |
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| mixed |
$value |
|
|
or 1-D array of content |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) where to start inserting (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
eter $amount (opt) of cells to set (Default to table end OR in case of array: array-length) |
|
| Returns |
void |
|
setArea |
|
public void setArea( integer $rowPos, integer $colPos, mixed $value, [ string $x, string $y ] )
|
| |
**********************************************************************
Fill a table area with a value, a 1-D array[row] or 2-D array[row][col].Begining at the position given be the coordinats params. Staring at (0/0).Any data passing the table limits is truncated.
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| mixed |
$value |
|
|
value, a 1-D array[row] or 2-D array[row][col] of HTML table content. |
|
|
| string |
$x |
= >>''<< |
|
(opt) amount of rows to set (Default to table end) |
|
|
| string |
$y |
= >>''<< |
|
(opt) amount of cols to set (Default to table end) |
|
| Returns |
void |
|
&getRow |
|
public array &getRow( integer $rowPos, [ string $what ] )
|
| |
**********************************************************************
Gets a 1-D array stream by *reference* of a row defined by the $rowPos.With the $what param it is possible to pick a cell part e.g. 'data'
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| string |
$what |
= >>NULL<< |
|
(opt) (Default a whole cell) |
|
| Returns |
array stream by *reference* of 'wath'. Or empty array if off limit. |
|
&getCol |
|
public array &getCol( integer $colPos, [ string $what ] )
|
| |
**********************************************************************
Gets a 1-D array stream by *reference* of a column defined by the $colPos.With the $what param it is possible to pick a cell part e.g. 'data'
|
| Parameter |
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| string |
$what |
= >>NULL<< |
|
(opt) (Default a whole cell) |
|
| Returns |
array stream by *reference* of 'wath'. Or empty array if off limit. |
|
&getArea |
|
public array &getArea( [ integer $rowPos, integer $colPos, string $x, string $y, string $what ] )
|
| |
**********************************************************************
Gets a 2-D array clip by *reference* of all the cells defined by the area.With the $what param it is possible to pick a cell part e.g. 'data'or 'attr' instead of the whole cell.
|
| Parameter |
|
| integer |
$rowPos |
= >>0<< |
|
(opt) Start of get row (Default 0) |
|
|
| integer |
$colPos |
= >>0<< |
|
(opt) Start of get col (Default 0) |
|
|
| string |
$x |
= >>''<< |
|
(opt) amount of row (Default ALL) |
|
|
| string |
$y |
= >>''<< |
|
(opt) amount of col (Default ALL) |
|
|
| string |
$what |
= >>NULL<< |
|
(opt) (Default a whole cell) |
|
| Returns |
array clip by *reference* of 'wath'. Or empty array if off limit. |
|
&getAreaStream |
|
public array &getAreaStream( integer $rowPos, integer $colPos, string $x, string $y, string $what )
|
| |
**********************************************************************
Same as $this->getArea()But gets a 1-D array stream by *reference* of all the cells defined bythe area. Handy to loop through the table data to change it.
|
| Parameter |
|
| integer |
$rowPos |
|
|
Warning: documentation is missing. |
|
|
| integer |
$colPos |
|
|
Warning: documentation is missing. |
|
|
| string |
$x |
|
|
Warning: documentation is missing. |
|
|
| string |
$y |
|
|
Warning: documentation is missing. |
|
|
| string |
$what |
|
|
Warning: documentation is missing. |
|
| Returns |
array stream by *reference* of 'wath'. Or empty array if off limit. |
|
hideRow |
|
public void hideRow( integer $rowPos, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
Hides (skips) the content of a row when rendering the table
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) number to skip (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
of cells (Default to table end) |
|
| Returns |
void |
|
hideCol |
|
public void hideCol( integer $colPos, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
Hides (skips) the content of a column when rendering the table
|
| Parameter |
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) number to skip (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
eter $amount of cells (Default to table end) |
|
| Returns |
void |
|
hideArea |
|
public void hideArea( integer $rowPos, integer $colPos, [ string $x, string $y ] )
|
| |
**********************************************************************
Hides (skips) the content of an area when rendering the table
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| string |
$x |
= >>''<< |
|
(opt) $x amount of rows |
|
|
| string |
$y |
= >>''<< |
|
(opt) $y amount of cols |
|
| Returns |
void |
|
spanRow |
|
public void spanRow( integer $rowPos, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
Row spanning
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) number to skip (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
eter $amount (opt) to span (Default to table end) |
|
| Returns |
void |
|
spanCol |
|
public void spanCol( integer $colPos, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
column spanning
|
| Parameter |
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) number to skip (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
eter $amount (opt) to span (Default to table end) |
|
| Returns |
void |
|
spanArea |
|
public void spanArea( integer $rowPos, integer $colPos, [ string $x, string $y ] )
|
| |
**********************************************************************
Area spanning. Returns FALSE if a span overlapping is detected.
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| string |
$x |
= >>''<< |
|
(opt) amount of row span (Default to table end) |
|
|
| string |
$y |
= >>''<< |
|
(opt) amount of col span (Default to table end) |
|
| Returns |
void |
|
setTableAttr |
|
public void setTableAttr( mixed $newAttr )
|
| |
**********************************************************************
Sets any TABLE attributes using name/value pair or hash array.Pass a hash array containing the name(s) and value(s) pair(s) you wish to set.If value = NULL only a name will be placed.The hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name="value" name="value"'
|
| Parameter |
|
| mixed |
$newAttr |
|
|
string OR hash array of attribute(s) e.g. 'width="50px ...' OR array('width'=>'50px', ...) |
|
| Returns |
void |
|
setTrAttr |
|
public void setTrAttr( integer $rowPos, mixed $newAttr )
|
| |
**********************************************************************
Sets any TR-tag attribute. (The HTML Table Row tag)Pass a hash array containing the name(s) and value(s) pair(s) you wish to set.If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more performant.If you use a string, then use the right syntax! 'name="value" name="value"'
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| mixed |
$newAttr |
|
|
string OR hash array of attribute(s) e.g. 'width="50px ...' OR array('width'=>'50px', ...) |
|
| Returns |
void |
|
setTdAttr |
|
public void setTdAttr( integer $rowPos, integer $colPos, mixed $newAttr )
|
| |
**********************************************************************
Sets any TD attribute (The HTML Table Data tag)Pass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name="value" name="value"'
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| mixed |
$newAttr |
|
|
string OR hash array of attribute(s) e.g. 'width="50px ...' OR array('width'=>'50px', ...) |
|
| Returns |
void |
|
setGlobalTrAttr |
|
public void setGlobalTrAttr( mixed $newAttr )
|
| |
**********************************************************************
Sets all TR attributes befor any other attr. are set. Following TRattributes are then merged on top.Pass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name="value" name="value"'
|
| Parameter |
|
| mixed |
$newAttr |
|
|
string OR hash array of attribute(s) e.g. 'width="50px ...' OR array('width'=>'50px', ...) |
|
| Returns |
void |
|
setGlobalTdAttr |
|
public void setGlobalTdAttr( mixed $newAttr )
|
| |
**********************************************************************
Sets all TD attributes befor any other attr. are set. Following TDattributes are then merged on top.Pass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name="value" name="value"'
|
| Parameter |
|
| mixed |
$newAttr |
|
|
string OR hash array of attribute(s) e.g. 'width="50px ...' OR array('width'=>'50px', ...) |
|
| Returns |
void |
|
setRowAttr |
|
public void setRowAttr( integer $rowPos, mixed $newAttr, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
Sets any attributes to one row by setting each TD tag.NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name="value" name="value"'
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| mixed |
$newAttr |
|
|
string OR hash array of attribute(s) e.g. 'width="50px ...' OR array('width'=>'50px', ...) |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) number to skip (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
of cells (Default to table end) |
|
| Returns |
void |
|
setColAttr |
|
public void setColAttr( integer $colPos, mixed $newAttr, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
Sets any STYLE attributes to one column by setting each TD tag.NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name="value" name="value"'
|
| Parameter |
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| mixed |
$newAttr |
|
|
string OR hash array of attribute(s) e.g. 'width="50px ...' OR array('width'=>'50px', ...) |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) number to skip (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
eter $amount of cells (Default to table end) |
|
| Returns |
void |
|
setAreaAttr |
|
public void setAreaAttr( integer $rowPos, integer $colPos, array $newAttr, [ string $x, string $y ] )
|
| |
**********************************************************************
Sets any TD attributes to an area of cells by setting each TD tag.Pass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name="value" name="value"'
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| array |
$newAttr |
|
|
hash array of attribute(s) e.g. array('width'=>'50px', ...) |
|
|
| string |
$x |
= >>''<< |
|
(opt) amount of row to set (Default to table end) |
|
|
| string |
$y |
= >>''<< |
|
(opt) amount of col to set (Default to table end) |
|
| Returns |
void |
|
setTableStyle |
|
public void setTableStyle( mixed $newStyle )
|
| |
**********************************************************************
Sets the STYLE-attr in the TABLE-tag using name/value pair or hash array.Pass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placed. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name:value; name:value;'
|
| Parameter |
|
| mixed |
$newStyle |
|
|
string OR hash array of attribute(s) e.g. 'font:arial;...' OR array('font'=>'arial', ...) |
|
| Returns |
void |
|
setTrStyle |
|
public void setTrStyle( integer $rowPos, mixed $newStyle )
|
| |
**********************************************************************
Sets the STYLE-attr in any TR-tagPass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name:value; name:value;'
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| mixed |
$newStyle |
|
|
string OR hash array of attribute(s) e.g. 'font:arial;...' OR array('font'=>'arial', ...) |
|
| Returns |
void |
|
setTdStyle |
|
public void setTdStyle( integer $rowPos, integer $colPos, mixed $newStyle )
|
| |
**********************************************************************
Sets the STYLE-attr in any TD-tagPass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name:value; name:value;'
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| mixed |
$newStyle |
|
|
string OR hash array of attribute(s) e.g. 'font:arial;...' OR array('font'=>'arial', ...) |
|
| Returns |
void |
|
setGlobalTrStyle |
|
public void setGlobalTrStyle( mixed $newStyle )
|
| |
**********************************************************************
Sets the STYLE-attr to all TR attributes befor any other attr. are set. Following TRstyles are then merged on top.Pass a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name:value; name:value;'
|
| Parameter |
|
| mixed |
$newStyle |
|
|
string OR hash array of attribute(s) e.g. 'font:arial;...' OR array('font'=>'arial', ...) |
|
| Returns |
void |
|
setGlobalTdStyle |
|
public void setGlobalTdStyle( mixed $newStyle )
|
| |
**********************************************************************
Sets the STYLE-attr to all TD attributes befor any other attr. are set. Following TDstyles are then merged on top.Pass a style-string OR a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name:value; name:value;'
|
| Parameter |
|
| mixed |
$newStyle |
|
|
string OR hash array of attribute(s) e.g. 'font:arial;...' OR array('font'=>'arial', ...) |
|
| Returns |
void |
|
setRowStyle |
|
public void setRowStyle( integer $rowPos, mixed $newStyle, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
Sets any STYLE attributes to one row by setting each TD tag.NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name:value; name:value;'
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| mixed |
$newStyle |
|
|
string OR hash array of attribute(s) e.g. 'font:arial;...' OR array('font'=>'arial', ...) |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) number to skip (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
of cells (Default to table end) |
|
| Returns |
void |
|
setColStyle |
|
public void setColStyle( integer $colPos, mixed $newStyle, [ integer $offset, string $amount ] )
|
| |
**********************************************************************
Sets any STYLE attributes to one col by setting each TD tag.NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name:value; name:value;'
|
| Parameter |
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| mixed |
$newStyle |
|
|
string OR hash array of attribute(s) e.g. 'font:arial;...' OR array('font'=>'arial', ...) |
|
|
| integer |
$offset |
= >>0<< |
|
(opt) number to skip (Default 0) |
|
|
| string |
$amount |
= >>''<< |
|
eter $amount of cells (Default to table end) |
|
| Returns |
void |
|
setAreaStyle |
|
public void setAreaStyle( integer $rowPos, integer $colPos, mixed $newStyle, [ string $x, string $y ] )
|
| |
**********************************************************************
Sets any STYLE attributes to an area of cells by setting each TD tag.Pass a style-string OR a hash array containing the name(s) and value(s) pair(s) you wish to set. If value = NULL only name will be placedThe hash array must have the form: array(name=>value, name=>value, name=>NULL, ...).NOTE: Using hash array is more perfomant.If you use a string, then use the right syntax! 'name:value; name:value;'
|
| Parameter |
|
| integer |
$rowPos |
|
|
the abs. row number starting with 0 |
|
|
| integer |
$colPos |
|
|
the abs. col number starting with 0 |
|
|
| mixed |
$newStyle |
|
|
string OR hash array of attribute(s) e.g. 'font:arial;...' OR array('font'=>'arial', ...) |
|
|
| string |
$x |
= >>''<< |
|
(opt) amount of row to set (Default to table end) |
|
|
| string |
$y |
= >>''<< |
|
(opt) amount of col to set (Default to table end) |
|
| Returns |
void |
|
setWindroseStyle |
|
public void setWindroseStyle( object A $htmlWindroseObj )
|
| |
**********************************************************************
Set a windrose objectThe windrose object has knowledge where to set a style at a RELATIVE positionof a HTML table such as North, Center, Zebra, ...It is recommended to pass the windrose object by reference. All changes to windrosewill then be reflected during the Html table rendering
|
| Parameter |
|
| object A |
$htmlWindroseObj |
|
|
Bs_HtmlTableWindrose object. RECOMMENDATION: pass by reference. |
|
| Returns |
void |
|
&renderTable |
|
public string &renderTable( [ string $useClassID, integer $indent ] )
|
| |
**********************************************************************
Renders the HTML tableHere we put all the data together.1) Global attrs and global styles are set first.2*)If windrose is set: windrose-attrs and -styles are set.3) Finally the set attrs and styles are merged on top.*)Special case in step 2) if $useClassID is TRUE. Instead of setting the stylewe add the CLASS-tag and style ID. This makes sens when you plan to use CSS.See Bs_HtmlTableWindrose->getCssBlock().
|
| Parameter |
|
| string |
$useClassID |
= >>FALSE,<< |
|
see above |
|
|
| integer |
$indent |
= >>2<< |
|
amount of space to indent at beginning |
|
| Returns |
string The HTML output. |
|
flipData |
|
public void flipData( )
|
| |
**********************************************************************
Flips a table data only by setting rows to cols and cols to rows
|
| Returns |
void |
|