$sect->writeText('Text before the list'); $enum = new PHPRtfLite_List_Enumeration($rtf); $enum->addItem('hello world'); $enum->addItem('foo'); $enum->addItem('bar'); $subEnum = new PHPRtfLite_List_Enumeration($rtf); $subEnum->addItem('hello world'); $subEnum->addItem('foo'); $subEnum->addItem('bar'); $enum->addList($subEnum); $sect->addEnumeration($enum); $subSubNumList = new PHPRtfLite_List_Numbering($rtf); $subSubNumList->addItem('hello world'); $subSubNumList->addItem('foo'); $subSubNumList->addItem('bar'); $subNumList = new PHPRtfLite_List_Numbering($rtf); $subNumList->addItem('hello world'); $subNumList->addItem('foo'); $subNumList->addItem('bar'); $subNumList->addList($subSubNumList); $font = new PHPRtfLite_Font('26', 'Tahoma', '#f00'); $numList = new PHPRtfLite_List_Numbering($rtf, null, $font); $numList->addItem('hello world'); $numList->addItem('foo'); $numList->addItem('bar'); $numList->addList($subNumList); $numList->addItem('foobar'); $sect->addNumbering($numList); // save rtf document $rtf->save($dir . '/generated/' . basename(__FILE__, '.php') . '.rtf');
$pdf->Write(4, "\n"); } } unset($value); } if ($hourglass === false) { // in hourglass there's more code after family.php is included if ($screen_mode == 'STAR' or $screen_mode == 'STARSIZE') { include_once CMS_ROOTPATH . "report_descendant.php"; generate(); printchart(); } if ($screen_mode == 'RTF') { // initialize rtf generation // *** Save rtf document to file *** $rtf->save($file_name); echo '<br><br><a href="' . $file_name . '">' . __('Download RTF report.') . '</a>'; echo '<br><br>' . __('TIP: Don\'t use Wordpad to open this file (the lay-out will be wrong!). It\'s better to use a text processor like Word or OpenOffice Writer.'); $text = '<br><br><form method="POST" action="' . $uri_path . 'family.php?show_sources=1" style="display : inline;">'; $text .= '<input type="hidden" name="id" value="' . $family_id . '">'; $text .= '<input type="hidden" name="main_person" value="' . $main_person . '">'; $text .= '<input type="hidden" name="database" value="' . $database . '">'; $text .= '<input type="hidden" name="screen_mode" value="">'; if ($descendant_report == true) { $text .= '<input type="hidden" name="descendant_report" value="' . $descendant_report . '">'; } $text .= '<input class="fonts" type="Submit" name="submit" value="' . __('Back') . '">'; $text .= '</form> '; echo $text; } elseif ($screen_mode != 'PDF') { include_once CMS_ROOTPATH . "footer.php";