Created
September 17, 2009 14:40
-
-
Save mifix/188527 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* makePlain2ColTable | |
* | |
* Tabelle ohne Rahmen mit 2 Spalten | |
* | |
* @param array arr_data Assoziativer Array mit Daten f�r TabSpalten | |
* @param array col_param Breite, H�he & Ausrichting von Spalte 1 und 2 | |
* @param array tab_pos Postition der Tabelle | |
* @returns yPostition | |
**/ | |
function makePlain2ColTable($arr_data, $col_param, $tab_pos) { | |
$this->SetY($tab_pos[1]); | |
foreach($arr_data as $key => $value) | |
{ | |
$this->SetX($tab_pos[0]); | |
parent::setFont('', 'B'); | |
$this->Cell($col_param[0], $col_param[1], $key, 0, 0, $col_param[2]); | |
parent::setFont('', ''); | |
$this->Cell($col_param[3], $col_param[4], $value, 0, 0, $col_param[5]); | |
$this->Ln(); | |
} | |
return $this->getY(); | |
} // end of member function makePlain2ColTable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment