<?php $this->widget('zii.widgets.CMenu',array(
'linkLabelWrapper' => 'span',
'items'=>array(
array('label'=>'Dashboard', 'url'=>array('/site/index'),'linkOptions'=>array('class'=>'dashboard')),
// array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
array('label'=>'Clients', 'url'=>array('/client/admin'),'linkOptions'=>array('class'=>'tables menudrop'),
'items'=>array(
array('label'=>'Create Client', 'url'=>array('client/create')),
array('label'=>'Manage Client', 'url'=>array('client/admin')),
)),
array('label'=>'Projects', 'url'=>array('/project/admin'),'linkOptions'=>array('class'=>'tables menudrop'),
'items'=>array(
array('label'=>'Create Project', 'url'=>array('project/create')),
array('label'=>'Manage Projects', 'url'=>array('project/admin')),
)),
array('label'=>'Task', 'url'=>array('/task/admin'),'linkOptions'=>array('class'=>'tables menudrop'),
'items'=>array(
array('label'=>'Create Task', 'url'=>array('task/create')),
array('label'=>'Manage Tasks', 'url'=>array('task/admin')),
)),
array('label'=>'Employies', 'url'=>array('/employee/admin'),'linkOptions'=>array('class'=>'users menudrop'),
'items'=>array(
array('label'=>'Create Employee', 'url'=>array('employee/create')),
array('label'=>'Manage Employies', 'url'=>array('employee/admin')),
)),
// array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
//array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
),
)); ?>
<ul id="yw2">
<li><a href="/taskmnger/index.php/site/index" class="dashboard"><span><em>Dashboard</em></span></a></li>
<li><a href="/taskmnger/index.php/client/admin" class="tables menudrop active"><span><em>Clients</em></span></a>
<ul style="display: block;">
<li class="active"><a href="/taskmnger/index.php/client/create"><span><em>Create Client</em></span></a></li>
<li><a href="/taskmnger/index.php/client/admin"><span><em>Manage Client</em></span></a></li>
</ul>
</li>
<li style="border-top: 1px solid rgb(221, 221, 221);"><a href="/taskmnger/index.php/project/admin" class="tables menudrop active"><span><em>Projects</em></span></a>
<ul style="display: block;">
<li><a href="/taskmnger/index.php/project/create"><span><em>Create Project</em></span></a></li>
<li><a href="/taskmnger/index.php/project/admin"><span><em>Manage Projects</em></span></a></li>
</ul>
</li>
<li style="border-top: 1px solid rgb(221, 221, 221);"><a href="/taskmnger/index.php/task/admin" class="tables menudrop active"><span><em>Task</em></span></a>
<ul style="display: block;">
<li><a href="/taskmnger/index.php/task/create"><span><em>Create Task</em></span></a></li>
<li><a href="/taskmnger/index.php/task/admin"><span><em>Manage Tasks</em></span></a></li>
</ul>
</li>
<li style="border-top: 1px solid rgb(221, 221, 221);"><a href="/taskmnger/index.php/employee/admin" class="users menudrop"><span><em>Employies</em></span></a>
<ul>
<li><a href="/taskmnger/index.php/employee/create"><span><em>Create Employee</em></span></a></li>
<li><a href="/taskmnger/index.php/employee/admin"><span><em>Manage Employies</em></span></a></li>
</ul>
</li>
</ul>
'linkLabelWrapper' => 'span',
'items'=>array(
array('label'=>'Dashboard', 'url'=>array('/site/index'),'linkOptions'=>array('class'=>'dashboard')),
// array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
array('label'=>'Clients', 'url'=>array('/client/admin'),'linkOptions'=>array('class'=>'tables menudrop'),
'items'=>array(
array('label'=>'Create Client', 'url'=>array('client/create')),
array('label'=>'Manage Client', 'url'=>array('client/admin')),
)),
array('label'=>'Projects', 'url'=>array('/project/admin'),'linkOptions'=>array('class'=>'tables menudrop'),
'items'=>array(
array('label'=>'Create Project', 'url'=>array('project/create')),
array('label'=>'Manage Projects', 'url'=>array('project/admin')),
)),
array('label'=>'Task', 'url'=>array('/task/admin'),'linkOptions'=>array('class'=>'tables menudrop'),
'items'=>array(
array('label'=>'Create Task', 'url'=>array('task/create')),
array('label'=>'Manage Tasks', 'url'=>array('task/admin')),
)),
array('label'=>'Employies', 'url'=>array('/employee/admin'),'linkOptions'=>array('class'=>'users menudrop'),
'items'=>array(
array('label'=>'Create Employee', 'url'=>array('employee/create')),
array('label'=>'Manage Employies', 'url'=>array('employee/admin')),
)),
// array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
//array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
),
)); ?>
<ul id="yw2">
<li><a href="/taskmnger/index.php/site/index" class="dashboard"><span><em>Dashboard</em></span></a></li>
<li><a href="/taskmnger/index.php/client/admin" class="tables menudrop active"><span><em>Clients</em></span></a>
<ul style="display: block;">
<li class="active"><a href="/taskmnger/index.php/client/create"><span><em>Create Client</em></span></a></li>
<li><a href="/taskmnger/index.php/client/admin"><span><em>Manage Client</em></span></a></li>
</ul>
</li>
<li style="border-top: 1px solid rgb(221, 221, 221);"><a href="/taskmnger/index.php/project/admin" class="tables menudrop active"><span><em>Projects</em></span></a>
<ul style="display: block;">
<li><a href="/taskmnger/index.php/project/create"><span><em>Create Project</em></span></a></li>
<li><a href="/taskmnger/index.php/project/admin"><span><em>Manage Projects</em></span></a></li>
</ul>
</li>
<li style="border-top: 1px solid rgb(221, 221, 221);"><a href="/taskmnger/index.php/task/admin" class="tables menudrop active"><span><em>Task</em></span></a>
<ul style="display: block;">
<li><a href="/taskmnger/index.php/task/create"><span><em>Create Task</em></span></a></li>
<li><a href="/taskmnger/index.php/task/admin"><span><em>Manage Tasks</em></span></a></li>
</ul>
</li>
<li style="border-top: 1px solid rgb(221, 221, 221);"><a href="/taskmnger/index.php/employee/admin" class="users menudrop"><span><em>Employies</em></span></a>
<ul>
<li><a href="/taskmnger/index.php/employee/create"><span><em>Create Employee</em></span></a></li>
<li><a href="/taskmnger/index.php/employee/admin"><span><em>Manage Employies</em></span></a></li>
</ul>
</li>
</ul>
hightlight your code
ReplyDelete