Beispiel #1
0
            if ($content_data) {
                $header_info .= '<div id="headerInfo">' . $content_data['Content'] . '</div>';
                unset($content_data);
            }
        }
    }
    include LIB_DIR . 'contents/default.inc.php';
}
// main content grab
$main_content = ob_get_clean();
// template output
if ($sysconf['template']['base'] == 'html') {
    // create the template object
    $template = new simbio_template_parser($sysconf['template']['dir'] . '/' . $sysconf['template']['theme'] . '/index_template.html');
    // assign content to markers
    $template->assign('<!--PAGE_TITLE-->', $page_title);
    $template->assign('<!--CSS-->', $sysconf['template']['css']);
    $template->assign('<!--INFO-->', $info);
    $template->assign('<!--LIBRARY_NAME-->', $sysconf['library_name']);
    $template->assign('<!--LIBRARY_SUBNAME-->', $sysconf['library_subname']);
    $template->assign('<!--GMD_LIST-->', $gmd_list);
    $template->assign('<!--COLLTYPE_LIST-->', $colltype_list);
    $template->assign('<!--LOCATION_LIST-->', $location_list);
    $template->assign('<!--LANGUAGE_SELECT-->', $language_select);
    $template->assign('<!--ADVSEARCH_AUTHOR-->', $advsearch_author);
    $template->assign('<!--ADVSEARCH_TOPIC-->', $advsearch_topic);
    $template->assign('<!--HEADER_INFO-->', $header_info);
    $template->assign('<!--MAIN_CONTENT-->', $main_content);
    if ($metadata) {
        $template->assign('<!--METADATA-->', $metadata);
    }
Beispiel #2
0
    <form action="index.php?p=login" method="post">
    <div class="heading1">Username</div>
    <div><input type="text" name="userName" style="width: 80%;" /></div>
    <div class="heading1 marginTop">Password</div>
    <div><input type="password" name="passWord" style="width: 80%;" /></div>
    <div class="marginTop"><input type="submit" name="logMeIn" value="Logon" id="loginButton" />
        <input type="button" value="Home" id="homeButton" onclick="javascript: location.href = 'index.php';" />
    </div>
    </form>
</div>

<?php 
// main content
$main_content = ob_get_clean();
// page title
$page_title = $sysconf['library_name'] . ' :: Library Automation LOGIN';
if ($sysconf['template']['base'] == 'html') {
    // create the template object
    $template = new simbio_template_parser($sysconf['template']['dir'] . '/' . $sysconf['template']['theme'] . '/login_template.html');
    // assign content to markers
    $template->assign('<!--PAGE_TITLE-->', $page_title);
    $template->assign('<!--CSS-->', $sysconf['template']['css']);
    $template->assign('<!--MAIN_CONTENT-->', $main_content);
    // print out the template
    $template->printOut();
} else {
    if ($sysconf['template']['base'] == 'php') {
        require_once $sysconf['template']['dir'] . '/' . $sysconf['template']['theme'] . '/login_template.inc.php';
    }
}
exit;
Beispiel #3
0
    $current_module = trim($_GET['mod']);
}
// read privileges
$can_read = utility::havePrivilege($current_module, 'r');
// submenu
$sub_menu = $module->generateSubMenu(($current_module and $can_read) ? $current_module : '');
// start the output buffering for main content
ob_start();
// info
$info = __('Welcome To The Library Automation System, you are currently logged in as') . ' <strong>' . $_SESSION['realname'] . '</strong>';
//mfc
if ($current_module and $can_read) {
    // get content of module default content with AJAX
    $sysconf['page_footer'] .= "\n" . '<script type="text/javascript">' . 'jQuery(document).ready(function() { jQuery(\'#mainContent\').simbioAJAX(\'' . MODULES_WEB_ROOT_DIR . $current_module . '/index.php\', {method: \'get\'}); });' . '</script>';
} else {
    include 'default/home.php';
}
// page content
$main_content = ob_get_clean();
// assign content to markers
$template->assign('<!--PAGE_TITLE-->', $page_title);
$template->assign('<!--CSS-->', $sysconf['admin_template']['css']);
$template->assign('<!--MAIN_MENU-->', $main_menu);
$template->assign('<!--SUB_MENU-->', $sub_menu);
$template->assign('<!--INFO-->', $info);
$template->assign('<!--LIBRARY_NAME-->', $sysconf['library_name']);
$template->assign('<!--LIBRARY_SUBNAME-->', $sysconf['library_subname']);
$template->assign('<!--MAIN_CONTENT-->', $main_content);
$template->assign('<!--FOOTER-->', $sysconf['page_footer']);
// print out the template
$template->printOut();