예제 #1
0
<title>redaxo - documentation - main</title>
</head>
<link rel=stylesheet type=text/css href=../../../../redaxo/css/style.css>
<body bgcolor=#FAF9F5>
<?php 
include '../../classes/config.inc.php';
include '../../classes/class.doc.inc.php';
$Doc = new Doc();
$Doc->Lang = $_GET[lang];
$Doc->DocPath = '../../source/';
$Doc->Doc = $_GET[doc];
$Doc->CodeStart = "<table bgcolor=#D7D6D3 style=border:1px;border-style:solid;border-color:#000000><tr><td>";
$Doc->CodeEnd = "</td></tr></table>";
$Index = $Doc->loadIndex();
print "<b><span class=headline>" . $Index[$_GET[chapter]] . "</span></b><br>";
$DocChapter = $Doc->loadChapter($_GET[chapter]);
$c = 1;
if (is_array($DocChapter)) {
    foreach ($DocChapter as $var) {
        print "<a name=title" . $var[id] . "></a>\n<br>";
        print "<table bgcolor=#AAB9A8 width=100%><tr><td><font color=#FFFFFF>";
        print "<b>" . $_GET[chapter] . "." . $c . " " . $var[title] . "</b>";
        print "</td></tr></table>";
        print "<br><br>";
        print $var[text];
        print "<br>";
        $c++;
    }
}
$menuUrl = strrchr($_SERVER[REQUEST_URI], "?");
?>
예제 #2
0
$pdf->saveState();
$pdf->setStrokeColor(0, 0, 0, 1);
$pdf->line(20, 40, 578, 40);
$pdf->line(20, 822, 578, 822);
$pdf->addText(50, 34, 6, 'redaxo open source cms - docu - pdf - http://www.redaxo.de');
$pdf->restoreState();
$pdf->closeObject();
$pdf->addObject($all, 'all');
$pdf->ezSetDy(-100);
$fontPath = eregi_replace("index.php\$", "fonts/", __FILE__);
$mainFont = $fontPath . 'Helvetica.afm';
$pdf->selectFont($mainFont);
$pages = array();
$cat = 1;
foreach ($Index as $K => $I) {
    $DocChapter = $Doc->loadChapter($K, 'pdf');
    $pdf->saveState();
    $pdf->setColor(0.666, 0.73, 0.66);
    $pdf->filledRectangle($pdf->ez['leftMargin'], $pdf->y - $pdf->getFontHeight(14) + $pdf->getFontDecender(14), $pdf->ez['pageWidth'] - $pdf->ez['leftMargin'] - $pdf->ez['rightMargin'], $pdf->getFontHeight(14));
    $pdf->setColor(0, 0, 0);
    $pdf->ezText('<C:dest:' . $K . '>' . $cat . '. ' . $I, 14, array('justification' => 'left', 'leading' => 15));
    $pdf->restoreState();
    $pdf->ezText("\n", 12, array('justification' => 'left', 'leading' => 13));
    $pages[$K][0] = $pdf->ezWhatPageNumber($pdf->ezGetCurrentPageNumber());
    $chap = 1;
    foreach ($DocChapter as $var) {
        $pdf->saveState();
        $pdf->setColor(0.9, 0.9, 0.9);
        $pdf->filledRectangle($pdf->ez['leftMargin'], $pdf->y - $pdf->getFontHeight(12) + $pdf->getFontDecender(12), $pdf->ez['pageWidth'] - $pdf->ez['leftMargin'] - $pdf->ez['rightMargin'], $pdf->getFontHeight(12));
        $pdf->setColor(0, 0, 0);
        $pdf->ezText('<C:dest:' . $K . '_' . $var[id] . '>' . $cat . '.' . $chap . ' ' . $var[title], 12, array('justification' => 'left', 'leading' => 13));