<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />

        <!-- blueprint CSS framework -->
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
        <!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
        <![endif]-->

        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />

        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    </head>

    <body>

        <div class="container" id="page">

            <div id="header">
                <div id="logo"><img width="40" height="40" src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo_itd.jpg" /> <?php echo CHtml::encode(Yii::app()->name); ?></div>
            </div><!-- header -->

            <div id="mainMbMenu">
                <?php
                $this->widget('application.extensions.mbmenu.MbMenu', array('items' => array(
                        array('label' => 'Home', 'url' => array('/site/index')),
                    /*
                        array('label' => 'Duty Letter', 'items' => array(
                                array('label' => 'Manage Duty Letter Request', 'url' => array('/surat_tugas/hrdRequestDutyLetter/index')),
                                array('label' => 'Manage Duty Letter', 'url' => array('/surat_tugas/hrdDutyLetter/index')),
                            ),
                        ),
                        array('label' => 'Master Employee', 'url' => array('/employee_master/HrdMEmployee/view')),
                        array('label' => 'Tester', 'url' => array('/testarie/HrdStatus/index')),
                     * 
                     */
                        array('label'=>'Surat Tugas', 'url'=>array('/surat_tugas'), 'visible' => !Yii::app()->user->isGuest, 'items'=>array(
                            array('label'=>'Request Duty Letter', 'url'=>array('/surat_tugas/HrdTRequestDutyLetter/index'),),
                            array('label'=>'Report Duty Letter', 'url'=>array('/surat_tugas/HrdTReportDutyLetter/admin'),),
                            array('label'=>'Duty Letter', 'url'=>array('/surat_tugas/HrdMDutyLetter/admin'),),
                            array('label'=>'Status', 'url'=>array('/surat_tugas/HrdRStatus/admin'),),
                        ),),
                        array('label'=> 'Data Induk Pegawai', 'url' => '#', 'visible' => !Yii::app()->user->isGuest, 'items'=>array(
                            array('label'=>'Dosen', 'url'=>array('/sdm/HrdMDosen/admin'), 'items'=>array(
                                array('label'=>'Riwayat Pengajaran', 'url'=>array('/sdm/HrdHRiwayatPengajaran/admin'),),
                                array('label'=>'Riwayat Pendidikan', 'url'=>array('/sdm/HrdHRiwayatPendidikan/admin'),),
                            ),),
                            array('label'=>'Staf', 'url'=>array('/sdm/HrdMStaf/admin'),),
                            array('label'=>'Pegawai', 'url'=>'#', 'items'=>array(
                                array('label'=>'Master Pegawai', 'url'=>array('/sdm/HrdMPegawai/admin'),),
                                array('label'=>'Detail Pegawai', 'url'=>array('/sdm/HrdDPegawai/admin'),),
                            ),),
                        ),),
                        array('label' => 'Admin', 'url' => array('/rbac/user/admin'), 'visible' => !Yii::app()->user->isGuest),
                        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)
                    ),
                ));
                ?>
            </div><!-- mainmenu -->
            <?php if (isset($this->breadcrumbs)): ?>
                <?php
                $this->widget('zii.widgets.CBreadcrumbs', array(
                    'links' => $this->breadcrumbs,
                ));
                ?><!-- breadcrumbs -->
            <?php endif ?>

<?php echo $content; ?>

            <div class="clear"></div>

            <div id="footer">
                Copyright &copy; <?php echo date('Y'); ?> by SDI IT Del.<br/>
                All Rights Reserved.<br/>

            </div><!-- footer -->

        </div><!-- page -->

    </body>
</html>
