コード例 #1
0
function admin_content_page()
{
    $key = hm_get('key');
    $id = hm_get('id');
    $action = hm_get('action');
    $setting_page = get_admin_setting_page();
    if (isset($setting_page[$key])) {
        $func = $setting_page[$key]['function'];
        $func_input = $setting_page[$key]['function_input'];
        if (!function_exists($func)) {
            echo _('Không tìm thấy hàm : ') . $func;
        } else {
            call_user_func($func, $func_input);
        }
    } else {
        require_once BASEPATH . HM_ADMINCP_DIR . '/' . LAYOUT_DIR . '/' . 'admincp_404.php';
    }
}
コード例 #2
0
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="topnavbar">
            <ul class="nav navbar-nav">
                <li><a href="?run=dashboard.php"><span class="glyphicon glyphicon-home"></span><?php 
echo _('Tổng quan');
?>
</a></li>
                <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
                    class="glyphicon glyphicon-list-alt"></span><?php 
echo _('Cài đặt');
?>
<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <?php 
$setting_page = get_admin_setting_page();
foreach ($setting_page as $page) {
    ?>
						<li><a href="?run=setting.php&key=<?php 
    echo $page['key'];
    ?>
"><?php 
    echo $page['label'];
    ?>
</a></li>
						<?php 
}
?>
                    </ul>
                </li>
				<li><a href="?run=media.php"><span class="glyphicon glyphicon-picture"></span><?php