Exemplo n.º 1
0
    public function ready_master($request)
    {
        $page = FCore::LoadMaster();

        $page->apply_string("title", "Boyds Nest");
        $page->apply_string("meta", "");
        $page->apply_string("style", Html::CssInclude(BN_URL_CSS . "/sidemenu/sidemenu_1.php")."\n");
        $page->apply_string("style", Html::CssInclude(BN_URL_CSS . "/usermanual.css")."\n");
        $page->apply_string("javascript", "");

        $page_list = $this->load_local_object("actions/GetUserManualPageList");

        $params = array();
        $params["sidemenu_0"]   = FCore::LoadViewPHP(
                "sidemenu/layout_1",
                array(
                    'content'   => $this->load_local_php_view(
                            "views/sidemenu_pagelist", 
                            array('pagelist' => $page_list->get_data())),
                    'title'     => 'Manuals'
                ));
        if (BoydsnestSession::GetInstance()->get(USERS_ISMASTER))
        {
            $params["sidemenu_1"]   = FCore::LoadViewPHP(
                    "sidemenu/layout_1",
                    array(
                        'content'   => $this->load_local_php_view("views/mastermenu"),
                        'title'     => 'Master\'s Menu'
                    ));
        }
        $page->apply_param(
                    "main_content",
                    FCore::LoadViewPHP("content/mainAndSideMenus",$params)
                );

        $page->commit_applies();
        return $page;
    }
Exemplo n.º 2
0
<?php

require_once FCORE_FILE_BBCONSUMER;

$viewer = array();
$viewer['title']    = isset($title) && is_string($title) ?
                            $title :
                            "No Title";
$viewer['content']  = isset($content) && is_string($content) ?
                            BBConsumer::consume($content) :
                            "No Content";

echoln();
echoln();

echo FCore::LoadViewPHP("content/BasicTextViewer", $viewer);

echoln();
echoln();

echo $responses;

echoln();
echoln();

?>
Exemplo n.º 3
0
    public function error_message($request, $message)
    {
        $page = FCore::LoadMaster();

        $page->apply_string("title", "Boyds Nest");
        $page->apply_string("meta", "");
        $page->apply_string("javascript", "");
        $page->apply_string("main_content",
                FCore::LoadViewPHP(
                        "content/general_message",
                        array('message' => $message)));

        $page->commit_applies();
        return $page->get_page();
    }
Exemplo n.º 4
0

        <?php IsSetEcho($message); ?>

        <fieldset class="bn_fieldset">
            <legend>Page Content</legend>
            <form method="post" action="<?php echo buildurl(BN_URL_PAGE_ADMIN,
                array(ACTION => ACTION.ACTION_WRITE."content", DBForum::POST_ID => $page_info[DBForum::POST_ID])); ?>" >
                <input type="hidden" name="<?php echo DBForum::POST_ID; ?>" value="<?php echo $page_info[DBForum::POST_ID]; ?>" />
                <?php echo FCore::LoadViewPHP("form/BasicTextEditor",
                        array('title'   => "Content",
                              'name'    => DBDataType::CONTENT,
                              'content' => $page_info[DBDataType::CONTENT])); ?>
                <table>
                    <tr>
                        <td class="width_150">
                            Page Title:
                        </td>
                        <td class="width_150">
                            <input type="text" name="<?php echo PAGETITLE; ?>" value="<?php echo $page_info[PAGETITLE]; ?>" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Private:
                        </td>
                        <td>
                            <input type="checkbox" name="<?php echo PAGEPRIVATE; ?>" value="1" <?php if ($page_info[PAGEPRIVATE]) echo "checked=\"checked\""; ?> />
                        </td>
                    </tr>
                    <tr>
Exemplo n.º 5
0
<?php
$editor = array();
$editor['submit'] = "Update";
$editor['name'] = USERMANUAL_CONTENT;
if (isset($page_content)){ $editor['content'] = $page_content; }
if (isset($page_title)){ $editor['title'] = $page_title; }
?>
        <?php IsSetEcho($message); ?>
        <form action="<?php echo buildurl(BN_URL_PAGE_USERMANUAL, array(ACTION => ACTION.ACTION_WRITE)); ?>" method="post">
            <input type="hidden" name="<?php echo USERMANUAL_PAGEID; ?>" value="<?php echo $page_id; ?>" />
            <?php echo FCore::LoadViewPHP("form/BasicTextEditor", $editor); ?>
        </form>
Exemplo n.º 6
0
    public function view_alerts()
    {
        $master = $this->ready_master();
        $master->consume_string(
                "content",
                FCore::LoadViewPHP("content/general_message",
                        array('message' => 'this is still under construction')));

        return $master->get_page();
    }