コード例 #1
0
            }
        }
    }
    if ($sitepage) {
        // draw customized job buttons...
        $path = getDBCell("sitepage_master", "TEMPLATE_PATH", "SPM_ID = {$spm}");
        if ($aclf->checkAccessToFunction("B_LIVE_AUTHORING")) {
            $clustereditbar->addAction($lang->get("wysiwyg", 'WYSIWYG Editor'), "window.open('" . $c["docroot"] . "modules/sma/sma.php?page={$spid}&v={$variation}&sid={$sid}', 'Preview','Width=800px,Height=700px,help=no,status=yes,scrollbars=yes,resizable=yes');");
        }
    }
    if (!$isArticle) {
        $clustereditbar->setVariationSelector($variations, $variation);
    }
}
if ($isArticle) {
    $clustereditbar->setVariationSelector(getChannelVariations($chid), $variation);
}
if ($sitepage && !($action == $lang->get("edit_all") || $action == $lang->get("save") || $action == $lang->get("save_back") || $action == "editsingle" || $action == "delete" || $action == "addci") && $aclf->checkAccessToFunction("B_PREVIEW_PAGE")) {
    $clustereditbar->add("preview", $lang->get("sp_preview"), "BUTTON", "window.open('" . $c["devdocroot"] . $path . "?page={$spid}&v={$variation}', 'Preview','Width=800px,Height=600px,help=no,status=yes,scrollbars=yes,resizable=yes');");
}
if (isset($clustereditbar) && (!$clusterEditState || $isArticle)) {
    $clusterPanel->add($clustereditbar);
}
$clustereditbar->addAction('separator');
if ($sitepage && ($aclf->checkAccessToFunction("B_EXPIRE_LAUNCH") || $aclf->checkAccessToFunction("B_LAUNCH_TREE") || $aclf->checkAccessToFunction("B_RELAUNCH_TREE") || $aclf->checkAccessToFunction("B_EXPIRE_TREE") || $aclf->checkAccessToFunction("B_DESTROY_TREE")) && !($action == $lang->get("edit_all") || $action == $lang->get("save") || $action == $lang->get("save_back") || $action == "editsingle")) {
    if ($aclf->checkAccessToFunction("B_EXPIRE_LAUNCH")) {
        if ($spid != "") {
            if (isSPVarLiveEx($spid, $variation)) {
                $clustereditbar->addAction($lang->get("sp_expire"));
            }
            $clustereditbar->add("action", $lang->get("sp_launch"), "submit", getWaitupScreen());
コード例 #2
0
$rowOrderFilter = "VERSION=0 AND CHID=" . $selch->selected;
if (value("action") == "up") {
    $article = value("article", "NUMERIC");
    moveRowUp("channel_articles", "ARTICLE_ID", $article, "POSITION", $rowOrderFilter);
} else {
    if (value("action") == "down") {
        $article = value("article", "NUMERIC");
        moveRowDown("channel_articles", "ARTICLE_ID", $article, "POSITION", $rowOrderFilter);
    }
}
$filtermenu = new StdMenu("");
require_once $c["path"] . "modules/channels/menu.inc.php";
$oid = value("oid", "NUMERIC");
if ($selch->selected != "0" && $selch->selected != "-1" && $selch->selected != 0) {
    sortTableRows("channel_articles", "ARTICLE_ID", "POSITION", $rowOrderFilter);
    $form = new ArticleSelectForm($selch->selected);
    $form->newAction = "modules/channels/edit.php?sid={$sid}&action=createarticle";
    $form->buttonbar->setVariationSelector(getChannelVariations($selch->selected), variation());
    $form->editAction = $c["docroot"] . "modules/channels/edit.php";
    $form->addFilterRule($lang->get("name"), "ca.TITLE");
    $form->addFilterRule($lang->get("category"), "cc.NAME", "LEFT JOIN channel_categories cc ON cc.CH_CAT_ID = ca.CH_CAT_ID");
    $form->addFilterRule($lang->get("Author"), "cv.LAST_USER");
    // preparation for adding a "grab from Multipage"-Button
    $grabAction = "modules/channels/wz_import.php?sid={$sid}";
    $form->buttonbar->add("new", $lang->get("channel_importarticles", "Import articles"), "button", "document.location.href='" . $c["docroot"] . $grabAction . "';", "navelement");
    $page->add($form);
}
// SELECT `channel_articles`.* FROM channel_categories, channel_articles WHERE ((`channel_categories`.`NAME` = 'Erfolge') AND (`channel_articles`.`CH_CAT_ID` = channel_categories.CH_CAT_ID))
$page->addMenu($selch);
$page->addMenu($filtermenu);
$page->draw();