Skip to content

Instantly share code, notes, and snippets.

@mifix
Created September 17, 2009 14:40
Show Gist options
  • Save mifix/188527 to your computer and use it in GitHub Desktop.
Save mifix/188527 to your computer and use it in GitHub Desktop.
/**
* 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