menuDivider() публичный статический Метод

Generates a menu divider.
public static menuDivider ( array $htmlOptions = [] ) : string
$htmlOptions array additional HTML attributes.
Результат string the generated menu item.
Пример #1
0
<?php

/* @var $this UsersController */
/* @var $model User */
$this->breadcrumbs = array('Users' => array('index'), $model->id);
$this->menu = array(array('label' => 'Управління'), array('label' => 'Список користувачів', 'url' => array('index')), array('label' => 'Створити нового', 'url' => array('create')), array('label' => 'Редагувати дані', 'url' => array('update', 'id' => $model->id)));
if (Yii::app()->user->checkAccess(User::ROLE_ADMIN)) {
    $adminMenu = array(TbHtml::menuDivider(), array('label' => 'Адмінистративна частина'), array('label' => 'Видалити користувача', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Ви впевнені?')));
    $this->menu = array_merge($this->menu, $adminMenu);
}
?>

<?php 
echo TbHtml::pageHeader('Користувач "' . $model->first_name . ' ' . $model->last_name . '"', '');
?>

<?php 
$this->widget('bootstrap.widgets.TbDetailView', array('type' => 'bordered condensed', 'data' => $model, 'attributes' => array('username', 'email', array('name' => 'signin_time', 'value' => Yii::app()->dateFormatter->formatDateTime($model->signin_time, "long")), array('name' => 'last_login', 'value' => Yii::app()->dateFormatter->formatDateTime($model->last_login, "long")), array('name' => 'role', 'value' => $model->roles[$model->role]), array('name' => 'status', 'value' => $model->statusTypes[$model->status]))));
Пример #2
0
    <div class="bs-docs-example">
        <?php 
echo TbHtml::codeBlock('&lt;p>Sample text here...&lt;/p>');
?>
    </div>
    <pre class="prettyprint linenums">
&lt;?php echo TbHtml::codeBlock('&lt;p>Sample text here...&lt;/p>'); ?></pre>

</section>

<!-- Forms
    ================================================== -->
<section id="forms">

    <?php 
$dropdownConfig = array(array('label' => 'Action', 'url' => '#'), array('label' => 'Another action', 'url' => '#'), array('label' => 'Something else here', 'url' => '#'), TbHtml::menuDivider(), array('label' => 'Separate link', 'url' => '#'));
?>

    <div class="page-header">
        <h1>Forms</h1>
    </div>

    <h2>Default styles</h2>

    <div class="bs-docs-example">
        <?php 
echo TbHtml::beginFormTb();
?>
            <fieldset>
                <legend>Legend</legend>
                <?php 
Пример #3
0
</table>

<table class="items table table-condensed table-bordered table-striped table-hover">
	<tbody>
		<tr>
			<td style="color:white;width:35%;padding-left:50px;background-color:green;"><b>Total Amount of Take Home Pay</b></td>
			<td style="color:white;background-color:green;"><?php 
echo 'Rp. ' . number_format($totalPendapatan - $totalPengurangan, 2, ',', '.') . ',-';
?>
</td>
		</tr>
	</tbody>
</table>

</div>
</div>

<div class="span-6 last">
	<div id="sidebar">
<?php 
?>
	
	<div class="well" style="max-width: 340px; padding: 8px 0;">
    <?php 
echo TbHtml::navList(array(array('label' => 'Home', 'url' => array('/')), array('label' => 'My Profile', 'url' => array('/user/profile/profile')), array('label' => 'Change Password', 'url' => array('/user/profile/changepassword')), TbHtml::menuDivider(), array('label' => 'Payroll'), array('label' => 'Create Salary Slip', 'url' => array('/listgaji/create')), array('label' => 'Manage Payroll', 'url' => array('/listgaji')), array('label' => 'View Salary Slip Payroll', 'url' => array('/listgaji/view', 'id' => $model->id), 'active' => true), array('label' => 'Update Salary Slip Payroll', 'url' => array('/listgaji/update', 'id' => $model->id)), array('label' => 'Delete Salary Slip', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Are you sure to delete this item?')), array('label' => 'Another list header'), array('label' => 'Users Management', 'url' => array('/user/admin')), array('label' => 'About', 'url' => array('/site/page&view=about'))));
?>
</div>
<?php 
?>
	</div><!-- sidebar -->
</div>
Пример #4
0
/* @var $this ListgajiController */
/* @var $model Listgaji */
echo TbHtml::breadcrumbs(array('Home' => '/', 'Error'));
?>

<h2>Error <?php 
echo $code;
?>
</h2>

<div class="error">
<?php 
echo CHtml::encode($message);
?>
</div>
</div>
</div>
<div class="span-6 last">
	<div id="sidebar">
<?php 
?>
	
	<div class="well" style="max-width: 340px; padding: 8px 0;">
    <?php 
echo TbHtml::navList(array(array('label' => 'Home', 'url' => array('/')), array('label' => 'My Profile', 'url' => array('/user/profile/profile')), array('label' => 'Change Password', 'url' => array('/user/profile/changepassword')), TbHtml::menuDivider(), array('label' => 'Another list header'), array('label' => 'About', 'url' => array('/site/page&view=about'))));
?>
</div>
<?php 
?>
	</div><!-- sidebar -->
</div>
Пример #5
0
 /**
  * @param int $depthLimit
  * @param array $options
  * @param int $depth
  * @return array|string
  */
 public function getItem($depthLimit = 0, $options = array(), $depth = 0)
 {
     $itemOptions = isset($options['itemOptions']) ? $options['itemOptions'] : array();
     $linkOptions = isset($options['linkOptions']) ? $options['linkOptions'] : array();
     if ($this->target) {
         $linkOptions['target'] = $this->target;
     }
     $submenuOptions = isset($options['submenuOptions']) ? $options['submenuOptions'] : array();
     if (isset($options['submenuOptions'])) {
         unset($options['submenuOptions']);
     }
     $childItems = $this->getItems($depthLimit, $options, $depth + 1);
     if ($this->label == '---') {
         $item = TbHtml::menuDivider($itemOptions);
     } else {
         $item = array();
         $item['label'] = $this->label;
         if ($this->url) {
             $item['url'] = $this->getMenuUrl();
         }
         if ($this->icon) {
             $item['icon'] = $this->icon;
         }
         if ($itemOptions) {
             $item['itemOptions'] = $itemOptions;
         }
         if ($linkOptions) {
             $item['linkOptions'] = $linkOptions;
         }
         if ($submenuOptions) {
             $item['submenuOptions'] = $submenuOptions;
         }
         if ($childItems) {
             $item['items'] = $childItems;
         }
     }
     return $item;
 }
Пример #6
0
 public function testMenuDivider()
 {
     $I = $this->codeGuy;
     $html = TbHtml::menuDivider(array('class' => 'item'));
     $li = $I->createNode($html, 'li.divider');
     $I->seeNodeCssClass($li, 'item');
     $I->seeNodeEmpty($li);
 }
Пример #7
0
<?php

$this->beginContent('admin.views.layouts.main');
?>
    <div id="siderbar-nav">
        <?php 
$this->widget('bootstrap.widgets.TbNav', array('type' => TbHtml::NAV_TYPE_LIST, 'items' => array_merge(array(array('label' => 'Your Store'), array('label' => '商品分类', 'url' => array('/admin/itemCategory/admin'), 'icon' => 'bookmark'), array('label' => '商品列表', 'url' => array('/admin/item/list'), 'icon' => 'list'), TbHtml::menuDivider(), array('label' => 'CHILD MENU')), $this->menu)));
?>
    </div>

    <div id="siderbar-content">
        <div class="row-fluid">
            <div class="span12">
                <?php 
if (isset($this->breadcrumbs)) {
    ?>
                    <?php 
    $this->widget('bootstrap.widgets.TbBreadcrumb', array('homeUrl' => array('/admin'), 'links' => $this->breadcrumbs));
    ?>
<!-- breadcrumbs -->
                <?php 
}
?>
                <?php 
echo $content;
?>
            </div>
        </div>
    </div>
<?php 
$this->endContent();
Пример #8
0
<?php

/**
 * @var string $content
 */
$this->beginContent('application.modules.manage.views.layouts.inside');
?>
            <div class="masthead">
                    <?php 
$this->widget('bootstrap.widgets.TbNavbar', array('brandLabel' => Yii::t('main', Yii::app()->name), 'brandUrl' => array('/manage/'), 'collapse' => true, 'items' => array(array('class' => 'bootstrap.widgets.TbNav', 'items' => array(array('label' => 'Анкети претендентів', 'url' => array('/manage/profiles'), 'visible' => Yii::app()->user->checkAccess(User::ROLE_VOLONT)), ['label' => 'Вакансіі', 'items' => [['label' => 'Перелік вакансій', 'url' => array('/manage/vacancies'), 'visible' => Yii::app()->user->checkAccess(User::ROLE_VOLONT)], ['label' => 'Компанії', 'url' => array('/manage/companies'), 'visible' => Yii::app()->user->checkAccess(User::ROLE_VOLONT)]]], array('label' => 'Роботодавець', 'visible' => Yii::app()->user->checkAccess(User::ROLE_EMPL), 'url' => array('/manage/employer')), array('label' => 'Адміністративна частина', 'items' => array(array('label' => 'Користувачі', 'url' => array('/manage/users')), TbHtml::menuDivider(), array('label' => 'Довідник категорій', 'url' => ['/manage/categories'])), 'visible' => Yii::app()->user->checkAccess(User::ROLE_ADMIN) || Yii::app()->user->checkAccess(User::ROLE_MANAGER)))), array('class' => 'bootstrap.widgets.TbNav', 'htmlOptions' => array('class' => 'pull-right'), 'items' => array(array('label' => Yii::t('main', 'Hello') . ", " . Yii::app()->session['first_name'] . " " . Yii::app()->session['last_name'] . "!", 'items' => array(array('label' => 'Мій профайл', 'url' => array('/manage/profile/'))), 'visible' => !Yii::app()->user->isGuest), array('label' => Yii::t('main', 'Logout'), 'url' => array('/manage/logout'), 'visible' => !Yii::app()->user->isGuest), array('label' => Yii::t('main', 'Login'), 'url' => array('/manage/login'), 'visible' => Yii::app()->user->isGuest))))));
?>
            </div>
            <div class="row-fluid">
            <?php 
if (!empty($this->menu)) {
    ?>
                <div class="float-menu">
                    <span class="sticker"><?php 
    echo TbHtml::icon(TbHtml::ICON_TASKS);
    ?>
</span>
                    <?php 
    echo TbHtml::navList($this->menu);
    ?>
                </div>
            <?php 
}
?>
                <?php 
if (Yii::app()->user->hasFlash('error')) {
    ?>
Пример #9
0
<div class='controles'>
<h2>Buscar Boleto Y Referencias</h2>
<div class="form">
<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'form-ventaslevel1', 'enableClientValidation' => true, 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'method' => 'get', 'action' => array('reportes/buscarBoleto'), 'clientOptions' => array('validateOnSubmit' => true)));
?>
<div class='col-2'>
<?php 
$boton = TbHtml::buttonDropdown('Buscar', array(array('label' => 'Referencia', 'url' => '#', 'class' => 'tipo', 'data-tipo' => 'venta'), array('label' => 'No. Boleto', 'url' => '#', 'class' => 'tipo', 'data-tipo' => 'boleto'), array('label' => 'No. Boleto Reimpreso', 'url' => '#', 'class' => 'tipo', 'data-tipo' => 'reimpresion'), TbHtml::menuDivider(), array('label' => 'Reservación Farmatodo', 'url' => '#', 'class' => 'tipo', 'data-tipo' => 'reservado')), array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
		<?php 
echo TbHtml::textFieldControlGroup('ref', $ref > 0 ? $ref : '', array('span' => 4, 'placeholder' => 'Referencia o número de boleto', 'label' => 'Ingrese la referencia o el número de boleto:', 'id' => 'filtro', 'autofocus' => "autofocus", 'append' => $boton));
?>
	
</div>
    <div class="box1 text-left">
		<?php 
echo TbHtml::hiddenField('tipo');
//echo TbHtml::radioButtonList('tipo',isset($tipo)?$tipo:'venta',array(
//'venta'=>'Referencia',
//'boleto'=>'No. Boleto',
//'reimpresion'=>'Reimpresion',
//));
?>

    </div>

<?php 
$this->endWidget();
?>
Пример #10
0
<?php

/* @var $this ProfilesController
 * @var $model CvList
 * @var $vacanciesDataProvider CDataProvider
 * @var $this CController
 * @var $statuses CvStatuses[]
 * @var $status CvStatuses
 */
?>

<?php 
$this->breadcrumbs = array('Cv Lists' => array('index'), $model->id);
$this->menu = array(array('label' => 'Меню'), array('label' => 'Список претендентів', 'url' => array('index')), array('label' => 'Додати анкету', 'url' => array('create')), TbHtml::menuDivider(), array('label' => 'Адмінистративна частина'), array('label' => 'Видалити анкету', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => 'Ви впевнені, що бажаєте видатили цю анкету?'), 'visible' => Yii::app()->user->checkAccess(User::ROLE_ADMIN)));
?>

<?php 
echo TbHtml::pageHeader('Анкета "' . $model->firstLastName . '"', '');
if (!$model->recruiter_id) {
    Yii::app()->user->setFlash(TbHtml::ALERT_COLOR_WARNING, '<h4>Увага</h4> Для продовження роботи з кандидатом, вкажіть себе в полі &laquo;Рекрутер&raquo;');
}
$this->widget('bootstrap.widgets.TbAlert', array('block' => true));
?>

<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'cvstatus-form', 'enableClientValidation' => true, 'layout' => TbHtml::FORM_LAYOUT_HORIZONTAL, 'clientOptions' => array('validateOnSubmit' => true)));
/* @var $form CActiveForm*/
?>
    <?php 
echo $form->dropDownList($model, 'status', $model->statusTypes, array('span' => 5));
?>
Пример #11
0
        array('label' => 'Another action', 'url' => '#'),
        array('label' => 'Something else here', 'url' => '#'),
        TbHtml::menuDivider(),
        array('label' => 'Separate link', 'url' => '#'),
    )),
)); ?>
</pre>

    <hr class="bs-docs-separator">

    <h2>Nav lists</h2>

    <div class="bs-docs-example">
        <div class="well" style="max-width: 340px; padding: 8px 0;">
            <?php 
echo TbHtml::navList(array(array('label' => 'List header'), array('label' => 'Home', 'url' => '#', 'active' => true), array('label' => 'Library', 'url' => '#'), array('label' => 'Applications', 'url' => '#'), array('label' => 'Another list header'), array('label' => 'Profile', 'url' => '#'), array('label' => 'Settings', 'url' => '#'), TbHtml::menuDivider(), array('label' => 'Help', 'url' => '#')));
?>
        </div>
    </div>

    <pre class="prettyprint linenums">
&lt;div class="well" style="max-width: 340px; padding: 8px 0;">
    &lt;?php echo TbHtml::navList(array(
        array('label' => 'List header'),
        array('label' => 'Home', 'url' => '#', 'active' => true),
        array('label' => 'Library', 'url' => '#'),
        array('label' => 'Applications', 'url' => '#'),
        array('label' => 'Another list header'),
        array('label' => 'Profile', 'url' => '#'),
        array('label' => 'Settings', 'url' => '#'),
        TbHtml::menuDivider(),
Пример #12
0
<?php

$this->beginContent('admin.views.layouts.main');
?>
    <div id="siderbar-nav">
            <?php 
$this->widget('bootstrap.widgets.TbNav', array('type' => TbHtml::NAV_TYPE_LIST, 'items' => array_merge(array(array('label' => 'Your Website'), array('label' => '内容分类', 'url' => array('/admin/cmsCategory/admin'), 'icon' => 'list'), array('label' => '单页管理', 'url' => array('/admin/page/admin'), 'icon' => 'leaf'), array('label' => '帖子管理', 'url' => array('/admin/post/admin'), 'icon' => 'list'), TbHtml::menuDivider(), array('label' => 'CHILD MENU')), $this->menu)));
?>
        </div>
    <div id="siderbar-content">
        <div class="row-fluid">
            <div class="span12">
                <?php 
if (isset($this->breadcrumbs)) {
    ?>
                    <?php 
    $this->widget('bootstrap.widgets.TbBreadcrumb', array('homeUrl' => array('/admin'), 'links' => $this->breadcrumbs));
    ?>
<!-- breadcrumbs -->
                <?php 
}
?>
                <?php 
echo $content;
?>
            </div>
        </div>
    </div>
<?php 
$this->endContent();
Пример #13
0
<?php

$this->beginContent('admin.views.layouts.main');
?>
    <div id="siderbar-nav">
        <?php 
$this->widget('bootstrap.widgets.TbNav', array('type' => TbHtml::NAV_TYPE_LIST, 'items' => array_merge(array(array('label' => 'Settings'), array('label' => '店铺分类', 'url' => array('/admin/storeCategory/admin'), 'icon' => 'bookmark'), TbHtml::menuDivider(), array('label' => 'CHILD MENU')), $this->menu)));
?>
    </div>

    <div id="siderbar-content">
        <div class="row-fluid">
            <div class="span12">
                <?php 
if (isset($this->breadcrumbs)) {
    ?>
                    <?php 
    $this->widget('bootstrap.widgets.TbBreadcrumb', array('homeUrl' => array('/admin'), 'links' => $this->breadcrumbs));
    ?>
<!-- breadcrumbs -->
                <?php 
}
?>
                <?php 
echo $content;
?>
            </div>
        </div>
    </div>
<?php 
$this->endContent();
Пример #14
0
                                            array('label' => 'De facturación', 'url' => array('/osfacturacion/manage')),
                                            array('label' => 'Nomencladores', 'url' => '#',
                                                'items' => array(
                                                    array('label' => 'Nomencladores base', 'url' => array('/nomenclador/manage')),
                                                    array('label' => 'Prácticas', 'url' => array('/practica/manage')),
                                                    array('label' => 'Unidades para prácticas', 'url' => array('/unidad/manage')),
                                                    array('label' => 'Tipos de prácticas', 'url' => array('/practipo/manage')),
                                                )),
                                        )),
                                    array('label' => 'Profesionales', 'url' => '#',
                                        'items' => array(
                                            TbHtml::menuHeader('Distrito IX'),
//                                                   
                                            array('label' => 'Profesionales socios', 'url' => array('/entidad/manageProfesional')),
                                            array('label' => 'Sociedades', 'url' => array('/entidad/manageSociedad')),
                                            TbHtml::menuDivider(),
                                            array('label' => 'Otro distrito', 'url' =>  array('/entidad/manageProfesionalotro')),
                                        )),
                                    array('label' => Yii::t('app', 'Facturación'),
                                        'items' => array(
                                            array('label' => 'Boletas', 'url' => '#',
                                                'items' => array(
                                                    array('label' => 'Carga', 'url' => array('/carga/create')),
                                                    array('label' => 'Transacciones', 'url'=>'#',
                                                      'items' => array(  
                                                    array('label' => 'Captura',    'url' => array('/carga/capturar1')),
                                                    array('label' => 'Importación',    'url' => array('/carga/importartransac')),

                                                          )),
//                                                    array('label' => 'Administrar', 'url' => array('/carga/manage')),
                                                    array('label' => 'Descuento de coseguros', 'url' => array('/descuentocoseguro/coseguro')),
Пример #15
0
?>
</h2>
<hr/>
<?php 
$attributes = array('id', 'username');
$profileFields = ProfileField::model()->forOwner()->sort()->findAll();
if ($profileFields) {
    foreach ($profileFields as $field) {
        array_push($attributes, array('label' => UserModule::t($field->title), 'name' => $field->varname, 'type' => 'raw', 'value' => $field->widgetView($model->profile) ? $field->widgetView($model->profile) : ($field->range ? Profile::range($field->range, $model->profile->getAttribute($field->varname)) : $model->profile->getAttribute($field->varname))));
    }
}
array_push($attributes, 'password', 'email', 'activkey', 'create_at', 'lastvisit_at', array('name' => 'superuser', 'value' => User::itemAlias("AdminStatus", $model->superuser)), array('name' => 'status', 'value' => User::itemAlias("UserStatus", $model->status)));
$this->widget('zii.widgets.CDetailView', array('data' => $model, 'htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'attributes' => $attributes));
?>
</div>
</div>

<div class="span-6 last">
	<div id="sidebar">
<?php 
?>
	
	<div class="well" style="max-width: 340px; padding: 8px 0;">
    <?php 
echo TbHtml::navList(array(array('label' => 'Home', 'url' => array('/')), array('label' => 'My Profile', 'url' => array('/user/profile/profile')), array('label' => 'Change Password', 'url' => array('/user/profile/changepassword')), TbHtml::menuDivider(), array('label' => 'Users Management'), array('label' => 'Create User', 'url' => array('/user/admin/create')), array('label' => 'Manage Users', 'url' => array('/user/admin')), array('label' => 'View Users', 'url' => array('/user/admin/view', 'id' => $model->id), 'active' => true), array('label' => 'Update Users', 'url' => array('/user/admin/update', 'id' => $model->id)), array('label' => 'Delete Users', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => UserModule::t('Are you sure to delete this item?'))), array('label' => 'List Employee', 'url' => array('/user')), array('label' => 'Role Users Management', 'url' => array('/rights')), array('label' => 'Profile Header'), array('label' => 'Create Profile Field', 'url' => array('/user/profileField/create')), array('label' => 'Manage Profile Field', 'url' => array('/user/profileField/admin')), array('label' => 'Another list header'), array('label' => 'Payroll Management', 'url' => array('/listgaji')), array('label' => 'About', 'url' => array('/site/page&view=about'))));
?>
</div>
<?php 
?>
	</div><!-- sidebar -->
</div>
Пример #16
0
	<p class="muted">@todo</p>

</section>


<!-- Navbar
	================================================== -->
<section id="navbar">

	<?php 
$navbarNav = array('class' => 'bootstrap.widgets.TbNav', 'items' => array(array('label' => 'Home', 'url' => '#', 'active' => true), array('label' => 'Link', 'url' => '#'), array('label' => 'Link', 'url' => '#')));
?>

	<?php 
$navbarItems = array(array('class' => 'bootstrap.widgets.TbNav', 'items' => array(array('label' => 'Home', 'url' => '#', 'active' => true), array('label' => 'Link', 'url' => '#'), array('label' => 'Link', 'url' => '#'), array('label' => 'Dropdown', 'items' => array(array('label' => 'Action', 'url' => '#'), array('label' => 'Another action', 'url' => '#'), array('label' => 'Something else here', 'url' => '#'), TbHtml::menuDivider(), array('label' => 'Nav header'), array('label' => 'Separated link', 'url' => '#'), array('label' => 'One more separated link', 'url' => '#'))))), TbHtml::navbarSearchForm('#'), array('class' => 'bootstrap.widgets.TbNav', 'htmlOptions' => array('class' => 'pull-right'), 'items' => array(array('label' => 'Link', 'url' => '#'), array('label' => 'Dropdown', 'items' => $dropdownConfig))));
?>

	<div class="page-header">
		<h1>Navbar</h1>
	</div>

	<h2>Basic navbar</h2>

	<div class="bs-docs-example">
		<?php 
$this->widget('bootstrap.widgets.TbNavbar', array('brandLabel' => 'Title', 'items' => array($navbarNav)));
?>
	</div>

	<pre class="prettyprint linenums">
Пример #17
0
		<button class="btn" type="button" name="yt12" data-dismiss="modal">Close</button>
	</div>
	<?php 
$this->endWidget();
?>
</div>
		
	
	

<?php 
//=============== END OF BUTTON ADVANCED SEARCH, UPLOAD, DOWNLOAD ==============
?>
<br/><br/><br/><br/>


	</div><!-- content -->
</div>
<div class="span-6 last" style="float:left;">
	<div id="sidebar" style="float:left;">
	
	<div class="well" style="max-width: 340px; padding: 8px 0 float:left;">
    <?php 
echo TbHtml::navList(array(array('label' => 'Home', 'url' => array('/')), array('label' => 'My Profile', 'url' => array('/user/profile/profile')), array('label' => 'Change Password', 'url' => array('/user/profile/changepassword')), TbHtml::menuDivider(), array('label' => 'Payroll'), array('label' => 'My Slip', 'url' => array('/listgaji/mySlip'), 'active' => true), array('label' => 'Another list header'), array('label' => 'About', 'url' => array('/site/page&view=about'))));
?>
</div>
<?php 
?>
	</div><!-- sidebar -->
</div>
Пример #18
0
<?php 
echo TbHtml::breadcrumbs(array('Home' => array('/'), 'Users Management' => array('/user/admin'), 'List Employee'));
if (UserModule::isAdmin()) {
    $this->layout = '//layouts/column2';
}
?>

<h2><?php 
echo UserModule::t("List Employee");
?>
</h2>
<hr/>
<?php 
$this->widget('bootstrap.widgets.TbGridView', array('dataProvider' => $dataProvider, 'columns' => array(array('name' => 'username', 'type' => 'raw', 'value' => 'CHtml::link(CHtml::encode($data->username),array("user/view","id"=>$data->id))'), 'create_at', 'lastvisit_at')));
?>
</div>
</div>
<div class="span-6 last">
	<div id="sidebar">
<?php 
?>
	
	<div class="well" style="max-width: 340px; padding: 8px 0;">
    <?php 
echo TbHtml::navList(array(array('label' => 'Home', 'url' => array('/')), array('label' => 'My Profile', 'url' => array('/user/profile/profile')), array('label' => 'Change Password', 'url' => array('/user/profile/changepassword')), TbHtml::menuDivider(), array('label' => 'Users Management'), array('label' => 'Create User', 'url' => array('/user/admin/create')), array('label' => 'Manage Users', 'url' => array('/user/admin')), array('label' => 'List Employee', 'url' => array('/user'), 'active' => true), array('label' => 'Role Users Management', 'url' => array('/rights')), array('label' => 'Profile Header'), array('label' => 'Create Profile Field', 'url' => array('/user/profileField/create')), array('label' => 'Manage Profile Field', 'url' => array('/user/profileField/admin')), array('label' => 'Another list header'), array('label' => 'Payroll Management', 'url' => array('/listgaji')), array('label' => 'About', 'url' => array('/site/page&view=about'))));
?>
</div>
<?php 
?>
	</div><!-- sidebar -->
</div>
Пример #19
0
}
?>

            <?php 
echo $form->fileField($model, 'thumb_file');
?>
        </div>
        <?php 
echo $form->error($model, 'thumb_file');
?>
    </div>



    <?php 
$dropdownConfig = array(array('label' => '功能模块', 'url' => '#'), TbHtml::menuDivider(), array('label' => '单页', 'url' => '#'));
?>

    <?php 
echo $form->textFieldControlGroup($model, 'url', array('append' => TbHtml::buttonDropdown('更多', $dropdownConfig)));
?>



    <?php 
echo $form->dropDownListControlGroup($model, 'list_view', $this->getPostListViews());
?>

    <?php 
echo $form->dropDownListControlGroup($model, 'page_view', $this->getPostPageViews());
?>