示例#1
0
function makePage($pageName)
{
    global $pages;
    foreach ($pages as $page) {
        if ($page["name"] == $pageName) {
            makeHead($page);
            if ($page["name"] != "intro") {
                echo '
						<body>
						<div class="mainBlock">
					';
                makeHeader($page);
                makeMenu($page);
                makeNavigation($page);
                echo '
						</div>
						</body>
					';
            } else {
                makeNavigation($page);
            }
            makeScripts($page);
        }
    }
}
示例#2
0
    $navigation = makeNavigation($thisCatalogue->heading, $tocs, $facet);
    $content = makeHead($thisCatalogue, $navigation, $facet);
    $content .= makeList($structure, $thisCatalogue);
    $content .= $foot;
    $fileName = fileNameTrans($folderName . '/' . $thisCatalogue->heading) . '-' . $facet . '.html';
    $datei = fopen($fileName, "w");
    fwrite($datei, $content, 3000000);
    fclose($datei);
    $count++;
}
unset($structures);
// Erzeugen der Seite mit den Word Clouds
$navigation = makeNavigation($thisCatalogue->heading, $tocs, 'jqcloud');
$content = makeHead($thisCatalogue, $navigation, 'jqcloud');
$content .= makeCloudPageContent($data, $facets, $folderName);
$content .= $foot;
$fileName = fileNameTrans($folderName . '/' . $thisCatalogue->heading) . '-wordCloud.html';
$datei = fopen($fileName, "w");
fwrite($datei, $content, 3000000);
fclose($datei);
// Erzeugen der Seite mit den Doughnut Charts
$navigation = makeNavigation($thisCatalogue->heading, $tocs, 'doughnut');
$content = makeHead($thisCatalogue, $navigation, 'doughnut');
$content .= makeDoughnutPageContent($data, $facets, $folderName);
$content .= $foot;
$fileName = fileNameTrans($folderName . '/' . $thisCatalogue->heading) . '-doughnut.html';
$datei = fopen($fileName, "w");
fwrite($datei, $content, 3000000);
fclose($datei);
// Lösche die von storeBeacon erzeugte temporäre Datei
//unlink($folderName.'/beaconStore-'.$thisCatalogue->key);
示例#3
0
    if ($catalogue->cloudFacets != array()) {
        $navigation = makeNavigation($catalogue->fileName, $tocs, 'jqcloud');
        $content = makeHead($catalogue, $navigation, 'jqcloud');
        $content .= makeCloudPageContent($data, $catalogue->cloudFacets, $catalogue->fileName);
        $content .= $foot;
        $fileName = fileNameTrans($_SESSION['folderName'] . '/' . $catalogue->fileName) . '-wordCloud.html';
        $datei = fopen($fileName, "w");
        fwrite($datei, $content, 3000000);
        fclose($datei);
        if (file_exists($fileName)) {
            echo 'Datei ' . $fileName . ' wurde erstellt.<br/>';
        }
    }
    // Erzeugen der Seite mit den Doughnut Charts
    if ($catalogue->doughnutFacets != array()) {
        $navigation = makeNavigation($catalogue->fileName, $tocs, 'doughnut');
        $content = makeHead($catalogue, $navigation, 'doughnut');
        $content .= makeDoughnutPageContent($data, $catalogue->doughnutFacets, $_SESSION['folderName']);
        $content .= $foot;
        $fileName = fileNameTrans($_SESSION['folderName'] . '/' . $catalogue->fileName) . '-doughnut.html';
        $datei = fopen($fileName, "w");
        fwrite($datei, $content, 3000000);
        fclose($datei);
        if (file_exists($fileName)) {
            echo 'Datei ' . $fileName . ' wurde erstellt.<br/>
					';
        }
    }
    zipFolderContent($_SESSION['folderName'], $catalogue->fileName);
    if (file_exists($_SESSION['folderName'] . '/' . $catalogue->fileName . '.zip')) {
        echo 'Zip-Archiv ' . $_SESSION['folderName'] . '/' . $catalogue->fileName . '.zip wurde erstellt.<br/>';