示例#1
0
<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];
$Index = $Doc->loadIndex();
print "<b>Redaxo " . ucfirst($Doc->Doc) . " Documentation</b><br><br>";
$chap = 1;
foreach ($Index as $key => $var) {
    print "<a href=main.php?doc=" . $_GET[doc] . "&lang=" . $_GET[lang] . "&chapter=" . $key . " target=main class=title>" . $chap . ". " . $var . "</a><br>";
    if ($_GET[chapter] == $key) {
        $Titles = $Doc->loadChapterTitles($key);
        if (is_array($Titles)) {
            $title = 1;
            foreach ($Titles as $k => $v) {
                print "&nbsp;";
                print "<a href=main.php?doc=" . $_GET[doc] . "&lang=" . $_GET[lang] . "&chapter=" . $key . "#title" . $k . " target=main class=black>" . $chap . "." . $title . " " . $v . "</a><br>";
                $title++;
            }
        }
    }
    $chap++;
}
?>
<br><br>
<a href="../../pdf/index.php?lang=<?php 
echo $_GET[lang];
示例#2
0
    }
    $cat++;
}
$pdf->ezStopPageNumbers(1, 1);
$pdf->ezInsertMode(1, 1, 'before');
$pdf->ezNewPage();
$pdf->setColor(0.666, 0.73, 0.66);
$pdf->ezText("<u>\n\nRedaxo " . ucfirst($Doc->Doc) . " Documentation</u>", 18, array('justification' => 'center'));
$pdf->setColor(0, 0, 0);
$pdf->ezText("redaxo cms http://www.redaxo.de\n\n", 15, array('justification' => 'center'));
$cat = 1;
foreach ($Index as $K => $I) {
    $chapter[0][name] = $cat . ". " . $I;
    $pdf->ezTable($chapter, array('name' => ''), '', array('shadeCol2' => array(0.666, 0.73, 0.66), 'showLines' => 0, 'showHeadings' => 0, 'shaded' => 2, 'xPos' => '30', 'xOrientation' => 'right', 'width' => 510, 'cols' => array('name' => array('justification' => 'left'))));
    $pdf->ezText('', 4, array('justification' => 'center'));
    $Titles = $Doc->loadChapterTitles($K);
    $c = 0;
    unset($data);
    foreach ($Titles as $key => $var) {
        $data[$c][name] = '<c:ilink:doc' . $K . '_' . $key . '>' . $cat . '.' . ($c + 1) . ' ' . $var . '</c:ilink>';
        $data[$c][page] = $pages[$K][$key];
        $c++;
    }
    $pdf->ezTable($data, array('name' => '', 'page' => ''), '', array('shadeCol2' => array(0.9399999999999999, 0.93, 0.92), 'showLines' => 0, 'showHeadings' => 0, 'shaded' => 2, 'xPos' => '90', 'xOrientation' => 'right', 'width' => 450, 'cols' => array('name' => array('justification' => 'left'), 'page' => array('width' => 100, 'justification' => 'right'))));
    $pdf->ezText('', 4, array('justification' => 'center'));
    $cat++;
}
$docName = "redaxo_" . $_GET[doc] . '_' . $Doc->Lang;
$pdf->ezDownload($options = array('filename' => $docName));
/*
$pdfcode = $pdf->output();