Exemple #1
0
<?php

$controller = getControllerName(class_basename(Route::currentRouteAction()));
?>
<section class="sidebar">
    <ul class="sidebar-menu">
        <li class="header">Thông tin</li>
        <li class="treeview {{($controller == 'IndexController')?'active':''}}">
            <a href="/">
                <i class="fa fa-info"></i>
                <span>Hướng dẫn</span>
            </a>
        </li>

        <li class="header">Công cụ Kacana</li>
        <li class="treeview {{($controller == 'ProductController')?'active':''}}">
            <a href="{{URL::to('/product')}}">
                <i class="fa fa-rocket text-red"></i>
                <span class="text-red" ><b>Product boot</b></span>
            </a>
        </li>
        <li class="treeview {{($controller == 'SocialController')?'active':''}}">
            <a href="{{URL::to('/social_account')}}">
                <i class="fa fa-globe"></i>
                <span>Tài khoản facebook</span>
            </a>
        </li>
        <li class="treeview {{($controller == 'CustomerController')?'active':''}}">
            <a href="{{URL::to('/customer')}}">
                <i class="fa fa-user"></i>
                <span>khách hàng</span>
Exemple #2
0
		<h1>Welcome to <?php 
    echo $brand;
    ?>
!</h1>
             <?php 
} else {
    ?>
	     <h1>Welcome to CLUB BAND!</h1>
	     
	     <?php 
}
?>
		<div class="login_logout_block">
			
			<?php 
if (!(getControllerName() == 'welcome' && getMethodName() == 'event')) {
    if (isLoggedIn()) {
        if ($user->role == '1') {
            echo '<a href="' . my_site_url() . 'admin" class="">Home</a> &nbsp;&nbsp;|&nbsp;&nbsp; ';
        } else {
            if ($user->role == '2') {
                echo '<a href="' . my_site_url() . 'consultant" class="">Home</a> &nbsp;&nbsp;|&nbsp;&nbsp; ';
            } else {
                if ($user->role == '4') {
                    echo '<a href="' . my_site_url() . 'musician/musicianhome" class="">Home</a> &nbsp;&nbsp;|&nbsp;&nbsp; ';
                    echo '<a href="' . my_site_url() . 'musician/musicianhome/editinfo" id="musicianeditinfobtn">Update Personal Info</a> &nbsp;&nbsp;|&nbsp;&nbsp; ';
                }
            }
        }
        if ($user->role == '1' || $user->role == '2') {
            echo '<a href="' . my_site_url() . 'musician" class="">Musicians</a> &nbsp;&nbsp;|&nbsp;&nbsp; ';
Exemple #3
0
<?php

$this->pageTitle = 'ACL Actions - ' . Yii::app()->name;
$this->breadcrumbs = array('ACL Actions' => array('actions', 'cid' => $_GET['cid']), getControllerName($_GET['cid']));
?>
<div class="widget-box">
    <div class="widget-header">
        <h5>Manage Controller (<?php 
echo AclController::get_controller($_GET['cid']);
?>
)</h5>
        <div class="widget-toolbar">
            <a data-action="settings" href="#"><i class="icon-cog"></i></a>
            <a data-action="reload" href="#"><i class="icon-refresh"></i></a>
            <a data-action="collapse" href="#"><i class="icon-chevron-up"></i></a>
            <a data-action="close" href="#"><i class="icon-remove"></i></a>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-plus"></i>', array('create', 'cid' => $_GET['cid']), array('data-rel' => 'tooltip', 'title' => 'Add', 'data-placement' => 'bottom'));
?>
        </div>
        <div class="widget-toolbar">
            <?php 
echo CHtml::link('<i class="icon-arrow-up"></i>', array('aclController/admin'), array('data-rel' => 'tooltip', 'title' => 'Controller', 'data-placement' => 'bottom'));
?>
        </div>
    </div><!--/.widget-header -->
    <div class="widget-body">
        <div class="widget-main">
            <?php