当前位置: 首页>>代码示例>>PHP>>正文


PHP TbHtml::menuDivider方法代码示例

本文整理汇总了PHP中TbHtml::menuDivider方法的典型用法代码示例。如果您正苦于以下问题:PHP TbHtml::menuDivider方法的具体用法?PHP TbHtml::menuDivider怎么用?PHP TbHtml::menuDivider使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TbHtml的用法示例。


在下文中一共展示了TbHtml::menuDivider方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?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]))));
开发者ID:asopin,项目名称:portal,代码行数:18,代码来源:view.php

示例2: array

    <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 
开发者ID:crisu83,项目名称:yiistrap-docs,代码行数:31,代码来源:basics.php

示例3: number_format

</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>
开发者ID:coderay1100,项目名称:morena,代码行数:31,代码来源:view.php

示例4: array

/* @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>
开发者ID:coderay1100,项目名称:morena,代码行数:31,代码来源:error.php

示例5: getItem

 /**
  * @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;
 }
开发者ID:rizaldi-github,项目名称:yii-menu-module,代码行数:44,代码来源:MenuItem.php

示例6: testMenuDivider

 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);
 }
开发者ID:AlexanderGrant1,项目名称:AC41004,代码行数:8,代码来源:TbHtmlTest.php

示例7: array

<?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();
开发者ID:jackycgq,项目名称:advanced,代码行数:31,代码来源:mall.php

示例8: array

<?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')) {
    ?>
开发者ID:asopin,项目名称:portal,代码行数:31,代码来源:inside_menu.php

示例9: array

<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();
?>
开发者ID:cicb,项目名称:tpc,代码行数:30,代码来源:buscarBoleto.php

示例10: array

<?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));
?>
开发者ID:jerichozis,项目名称:portal,代码行数:31,代码来源:view.php

示例11: array

        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(),
开发者ID:crisu83,项目名称:yiistrap-docs,代码行数:31,代码来源:components.php

示例12: array

<?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();
开发者ID:jackycgq,项目名称:advanced,代码行数:30,代码来源:cms.php

示例13: array

<?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();
开发者ID:jackycgq,项目名称:advanced,代码行数:31,代码来源:system.php

示例14: array

                                            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')),
开发者ID:juankie,项目名称:gestcb9git,代码行数:31,代码来源:main.php

示例15: array

?>
</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>
开发者ID:coderay1100,项目名称:morena,代码行数:31,代码来源:view.php


注:本文中的TbHtml::menuDivider方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。