本文整理汇总了PHP中BsHtml类的典型用法代码示例。如果您正苦于以下问题:PHP BsHtml类的具体用法?PHP BsHtml怎么用?PHP BsHtml使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了BsHtml类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: run
/**
* Runs the widget.
*/
public function run()
{
$links = $this->createPageLinks();
if (!empty($links)) {
echo BsHtml::pagination($links, $this->htmlOptions);
}
}
开发者ID:nsarvar,项目名称:performance,代码行数:10,代码来源:BsPager.php
示例2: run
public function run()
{
list($name, $id) = $this->resolveNameID();
if (isset($this->htmlOptions['id'])) {
$id = $this->htmlOptions['id'];
} else {
$this->htmlOptions['id'] = $this->hidden ? $id . '_hidden' : $id;
}
if (isset($this->htmlOptions['name'])) {
$name = $this->htmlOptions['name'];
} else {
$this->htmlOptions['name'] = $this->hidden ? $name . '_hidden' : $name;
}
if ($this->hasModel()) {
echo $this->hidden ? BsHtml::activeHiddenField($this->model, $this->attribute, $this->htmlOptions) : BsHtml::activeTelFieldControlGroup($this->model, $this->attribute, $this->htmlOptions);
} else {
echo $this->hidden ? CHtml::hiddenField($name, $this->value, $this->htmlOptions) : CHtml::textField($name, $this->value, $this->htmlOptions);
}
$options = CJavaScript::encode($this->options);
$js = "jQuery('#{$id}').{$this->mode}picker({$options});";
if (isset($this->language)) {
$this->registerScriptFile($this->i18nScriptFile);
$js = "jQuery('#{$id}').{$this->mode}picker(jQuery.extend({showMonthAfterYear:false}, jQuery.datepicker.regional['{$this->language}'], {$options}));";
}
$cs = Yii::app()->getClientScript();
$assets = Yii::app()->getAssetManager()->publish(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets');
$cs->registerCssFile($assets . self::ASSETS_NAME . '.css');
$cs->registerScriptFile($assets . self::ASSETS_NAME . '.js', CClientScript::POS_END);
$cs->registerScript(__CLASS__, $this->defaultOptions ? 'jQuery.{$this->mode}picker.setDefaults(' . CJavaScript::encode($this->defaultOptions) . ');' : '');
$cs->registerScript(__CLASS__ . '#' . $id, $js);
}
开发者ID:nsarvar,项目名称:performance,代码行数:31,代码来源:CJuiDateTimePicker.php
示例3: renderButton
/**
* Renders a link button.
* @param string $id the ID of the button
* @param array $button the button configuration which may contain 'label', 'url', 'imageUrl' and 'options' elements.
* @param integer $row the row number (zero-based)
* @param mixed $data the data object associated with the row
*/
protected function renderButton($id, $button, $row, $data)
{
if (isset($button['visible']) && !$this->evaluateExpression($button['visible'], array('row' => $row, 'data' => $data))) {
return;
}
$url = BsArray::popValue('url', $button, '#');
if ($url !== '#') {
$url = $this->evaluateExpression($url, array('data' => $data, 'row' => $row));
}
$imageUrl = BsArray::popValue('imageUrl', $button, false);
$label = BsArray::popValue('label', $button, $id);
$options = BsArray::popValue('options', $button, array());
BsArray::defaultValue('data-title', $label, $options);
BsArray::defaultValue('title', $label, $options);
BsArray::defaultValue('data-toggle', 'tooltip', $options);
if ($icon = BsArray::popValue('icon', $button, false)) {
echo CHtml::link(BsHtml::icon($icon), $url, $options);
} else {
if ($imageUrl && is_string($imageUrl)) {
echo CHtml::link(CHtml::image($imageUrl, $label), $url, $options);
} else {
echo CHtml::link($label, $url, $options);
}
}
}
开发者ID:Aprende-php,项目名称:workshop,代码行数:32,代码来源:BsButtonColumn.php
示例4: renderButtons
/**
* Renders the buttons in this form.
* @return string the rendering result.
*/
public function renderButtons()
{
$buttons = array();
foreach ($this->getButtons() as $button) {
$buttons[] = $this->renderElement($button);
}
return !empty($buttons) ? BsHtml::tag('div', array('class' => 'form-actions'), implode("\n", $buttons)) : '';
}
开发者ID:Aprende-php,项目名称:workshop,代码行数:12,代码来源:BsForm.php
示例5: renderDataCellContent
/**
* Renders the data cell content.
* @param integer $row the row number (zero-based).
* @param mixed $data the data associated with the row.
*/
protected function renderDataCellContent($row, $data)
{
/* @var $am CAuthManager|AuthBehavior */
$am = Yii::app()->getAuthManager();
$labelType = $this->active || $am->hasParent($this->itemName, $data['name']) || $am->hasChild($this->itemName, $data['name']) ? 'info' : '';
/* @var $controller AuthItemController */
$controller = $this->grid->getController();
echo BsHtml::labelBs($controller->getItemTypeText($data['item']->type), array('color' => $labelType));
}
开发者ID:shnellpavel,项目名称:bcgroup_lk,代码行数:14,代码来源:AuthItemTypeColumn.php
示例6: renderMenuItem
/**
* Renders the content of a menu item.
* Note that the container and the sub-menus are not rendered here.
* @param array $item the menu item to be rendered. Please see {@link items} on what data might be in the item.
* @return string
* @since 1.1.6
*/
protected function renderMenuItem($item)
{
$icon = isset($item['icon']) ? BsHtml::icon($item['icon']) . ' ' : '';
if (isset($item['url'])) {
$label = $this->linkLabelWrapper === null ? $item['label'] : CHtml::tag($this->linkLabelWrapper, $this->linkLabelWrapperHtmlOptions, $item['label']);
return CHtml::link($icon . $label, $item['url'], isset($item['linkOptions']) ? $item['linkOptions'] : array());
} else {
return CHtml::tag('span', isset($item['linkOptions']) ? $item['linkOptions'] : array(), $icon . $item['label']);
}
}
开发者ID:snapfrozen,项目名称:snapcms,代码行数:17,代码来源:SnapMenu.php
示例7: renderDataCellContent
/**
* Renders the data cell content.
* @param integer $row the row number (zero-based).
* @param mixed $data the data associated with the row.
*/
protected function renderDataCellContent($row, $data)
{
/* @var $am CAuthManager|AuthBehavior */
$am = Yii::app()->getAuthManager();
if ($am->hasParent($this->itemName, $data['name'])) {
echo BsHtml::linkButton(BsHtml::icon(BsHtml::GLYPHICON_REMOVE), array('color' => BsHtml::BUTTON_COLOR_LINK, 'size' => BsHtml::BUTTON_SIZE_MINI, 'url' => array('removeParent', 'itemName' => $this->itemName, 'parentName' => $data['name']), 'rel' => 'tooltip', 'title' => Yii::t('AuthModule.main', 'Remove')));
} else {
if ($am->hasChild($this->itemName, $data['name'])) {
echo BsHtml::linkButton(BsHtml::icon(BsHtml::GLYPHICON_REMOVE), array('color' => BsHtml::BUTTON_COLOR_LINK, 'size' => BsHtml::BUTTON_SIZE_MINI, 'url' => array('removeChild', 'itemName' => $this->itemName, 'childName' => $data['name']), 'rel' => 'tooltip', 'title' => Yii::t('AuthModule.main', 'Remove')));
}
}
}
开发者ID:shnellpavel,项目名称:bcgroup_lk,代码行数:17,代码来源:AuthItemRemoveColumn.php
示例8: renderCore
/**
* This function renders a built in button type.
* The implementation is essentially a direct copy from
* CFormButtonElement::render, the only difference is it uses BsHtml.
* @return string the rendering result.
*/
public function renderCore()
{
$attributes = $this->attributes;
$method = self::$coreTypes[$this->type];
if ($method === 'linkButton') {
if (!isset($attributes['params'][$this->name])) {
$attributes['params'][$this->name] = 1;
}
} elseif ($method === 'htmlButton') {
$attributes['type'] = $this->type === 'htmlSubmit' ? 'submit' : ($this->type === 'htmlReset' ? 'reset' : 'button');
$attributes['name'] = $this->name;
} else {
$attributes['name'] = $this->name;
}
if ($method === 'imageButton') {
return BsHtml::imageButton(isset($attributes['src']) ? $attributes['src'] : '', $attributes);
} else {
return BsHtml::$method($this->label, $attributes);
}
}
开发者ID:Aprende-php,项目名称:workshop,代码行数:26,代码来源:BsFormButtonElement.php
示例9: run
public function run()
{
$type = $this->type;
echo BsHtml::openTag('div', array('id' => $this->id));
/*** Nav tabs ***/
echo BsHtml::$type($this->_labels);
/*** Tab panes ***/
echo BsHtml::openTag('div', array('class' => 'tab-content'));
foreach ($this->_content as $content) {
$class = 'tab-pane' . ($content['active'] == true ? ' active' : '');
echo BsHtml::tag('div', array('class' => $class, 'id' => $content['id'], 'role' => 'tabpanel'), $content['content']);
}
echo BsHtml::closeTag('div');
echo BsHtml::closeTag('div');
/*** clientScript ***/
$cs = Yii::app()->getClientScript();
$navs = '
$("#' . $this->id . ' ul.nav a").on("click",function(e){
e.preventDefault();
$(this).tab("show");
})
';
$cs->registerScript("navs-" . $this->id, $navs);
}
开发者ID:Aprende-php,项目名称:workshop,代码行数:24,代码来源:BsNavs.php
示例10: array
<?php
/* @var $this SimplePageController */
/* @var $model SimplePage */
$this->menu = array(array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Создать страницу', 'url' => array('create')));
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#simple-page-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>
<?php
echo BsHtml::pageHeader('Управление текстовыми страницами');
?>
<div class="panel panel-default">
<!-- <div class="panel-heading">-->
<!-- <h3 class="panel-title">--><?php
//echo BsHtml::button('Advanced search',array('class' =>'search-button', 'icon' => BsHtml::GLYPHICON_SEARCH,'color' => BsHtml::BUTTON_COLOR_PRIMARY), '#');
?>
<!--</h3>-->
<!-- </div>-->
<div class="panel-body">
<!-- <p>-->
<!-- You may optionally enter a comparison operator (<b><</b>, <b><=</b>, <b>></b>, <b>>=</b>, <b>-->
<!-- <></b>-->
<!-- or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.-->
<!-- </p>-->
<!-- <div class="search-form" style="display:none">-->
<!-- --><?php
//$this->renderPartial('_search',array(
// 'model'=>$model,
// ));
?>
开发者ID:shnellpavel,项目名称:bcgroup_lk,代码行数:31,代码来源:admin.php
示例11: array
<?php
/* @var $this EmpresaController */
/* @var $model Empresa */
?>
<?php
$this->breadcrumbs = array('Empresas' => array('index'), $model->emp_rut);
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Empresa', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Empresa', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Update Empresa', 'url' => array('update', 'id' => $model->emp_rut)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Delete Empresa', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->emp_rut), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Empresa', 'url' => array('admin')));
?>
<?php
echo BsHtml::pageHeader('View', 'Empresa ' . $model->emp_rut);
?>
<?php
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('emp_rut', 'tem_id', 'are_id', 'emp_nombre', 'emp_direccion', 'emp_fono', 'emp_email', 'emp_fecha_creacion', 'emp_desabilitado')));
开发者ID:Aprende-php,项目名称:workshop,代码行数:17,代码来源:view.php
示例12: array
<?php
}
?>
<?php
}
?>
</div>
<div id="sidebar" class="col-lg-3">
<?php
$this->beginWidget('bootstrap.widgets.BsPanel', array('title' => 'Menu', 'contentCssClass' => '', 'htmlOptions' => array('class' => 'panel sticky'), 'type' => BsHtml::PANEL_TYPE_PRIMARY));
?>
<div class="btn-group btn-group-vertical">
<?php
echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_THUMBS_UP) . ' Save');
?>
<?php
$this->widget('application.widgets.SnapMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'nav nav-stacked')));
?>
</div>
<?php
$this->endWidget();
?>
</div>
</div>
开发者ID:snapfrozen,项目名称:boxomatic,代码行数:30,代码来源:_form.php
示例13: array
<?php
/* @var $this EvaluacionController */
/* @var $model Evaluacion */
?>
<?php
$this->breadcrumbs = array('Evaluacions' => array('index'), $model->EVA_ID);
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Evaluacion', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Evaluacion', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-edit', 'label' => 'Update Evaluacion', 'url' => array('update', 'id' => $model->EVA_ID)), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Delete Evaluacion', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->EVA_ID), 'confirm' => 'Are you sure you want to delete this item?')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Evaluacion', 'url' => array('admin')));
?>
<?php
echo BsHtml::pageHeader('View', 'Evaluacion ' . $model->EVA_ID);
?>
<?php
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed table-hover'), 'data' => $model, 'attributes' => array('EVA_ID', 'TRA_ID', 'EMP_ID', 'MOD_ID', 'EVA_NOTA', 'EVA_FECHA', 'EVA_INICIO')));
开发者ID:ripazha,项目名称:modeva,代码行数:17,代码来源:view.php
示例14: array
<?php
/* @var $this UsuarioController */
/* @var $model Usuario */
?>
<?php
$this->breadcrumbs = array('Usuarios' => array('index'), 'Create');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Usuario', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Usuario', 'url' => array('admin')));
?>
<?php
echo BsHtml::pageHeader('Create', 'Usuario');
?>
<?php
$this->renderPartial('_form', array('model' => $model));
开发者ID:ripazha,项目名称:modeva,代码行数:17,代码来源:create.php
示例15: array
<?php
/* @var $this SurveyController */
/* @var $simplePage SimplePage */
/* @var $dataProvider MultiLocatedSurveysDataProvider */
$columns = array(array("name" => "Название проекта", 'type' => 'raw', 'value' => '$data->title'), array("name" => "Aнкета", 'type' => 'raw', 'value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/view\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Открыть</a>\''), array('class' => "QuotasInfoDataColumn", 'quotaType' => 'limit', "name" => "Требуется анкет"), array("name" => "Сделано анкет", 'class' => "QuotasInfoDataColumn", 'quotaType' => 'totalCount', 'needLink' => true, 'needShowQuotaType' => 'limit'), array("name" => "Массив данных в SPSS", 'type' => 'raw', 'value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/exportSPSSStructure\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Скачать синтаксис</a>
<br/>
<a href="\'.Yii::app()->createUrl(\'survey/exportSPSSData\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Скачать данные</a>\''), array("name" => "Массив данных в Excel", 'type' => 'raw', 'value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/exportExcel\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Скачать</a>\''), array("name" => "Быстрая аналитика", 'type' => 'raw', 'value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/quickAnalytics\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" target="_blank">Открыть</a>\''), array("name" => "Полная аналитика", 'class' => 'DownloadFilesColumn', 'fileType' => AttachedFile::FILE_TYPE_FULL_ANALYTICS, 'nullValue' => array('value' => '\'<a href="\'.Yii::app()->createUrl(\'survey/orderAnalytics\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" class="offer-analytics" target="_blank">Не предусмотрено, заказать</a>\'', 'type' => 'raw'), 'linkValue' => 'Посмотреть структуру будущего отчёта'));
if (Yii::app()->user->checkAccess('survey.edit')) {
$columns[] = array('name' => '', 'type' => 'raw', 'value' => '\'<a class="update" data-title="Редактировать" title="" data-toggle="tooltip" href="\'.Yii::app()->createUrl(\'survey/update\', array(\'id\' => $data->sid, \'location\' => $data->location)).\'" data-original-title="Редактировать">
<span class="glyphicon glyphicon-pencil"></span>
</a>\'', 'htmlOptions' => array('class' => 'button-column'));
}
?>
<?php
if ($simplePage) {
echo '<h1>' . $simplePage->title . '</h1>';
echo BsHtml::tag('div', array('class' => 'page-text'), $simplePage->content);
} else {
echo '<h1>Активные проекты</h1>';
}
$this->widget('bootstrap.widgets.BsGridView', array('id' => 'surveys-grid', 'dataProvider' => $dataProvider, 'columns' => $columns));
开发者ID:shnellpavel,项目名称:bcgroup_lk,代码行数:23,代码来源:activeIndex.php
示例16: array
<?php
/* @var $this PreguntaController */
/* @var $model Pregunta */
$this->breadcrumbs = array('Preguntas' => array('admin'), $model->pre_descripcion => array('view', 'id' => $model->pre_id), 'Editar');
$this->menu = array(array('label' => 'Registrar', 'url' => array('create')), array('label' => 'Cancelar', 'url' => array('admin')));
?>
<div class="row">
<div class="col-md-6 col-md-offset-3">
<?php
if ($id == false) {
echo BsHtml::alert(BsHtml::ALERT_COLOR_DANGER, BsHtml::bold('Campo faltante') . " " . 'Debe agregar un achivo de imagen.');
}
?>
<?php
echo BsHtml::pageHeader('Modificar', 'Pregunta');
?>
<?php
$this->renderPartial('_form', array('model' => $model));
?>
</div>
</div>
开发者ID:Aprende-php,项目名称:workshop,代码行数:22,代码来源:update.php
示例17: array
<?php
/* @var $this PortfolioController */
/* @var $model Portfolio */
?>
<?php
$this->breadcrumbs = array('Portfolios' => array('admin'), 'Create');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Portfolio', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Portfolio', 'url' => array('admin')));
?>
<div class="box box-primary">
<div class="box-header">
<?php
echo BsHtml::pageHeader('Create', 'Portfolio');
?>
</div>
<?php
$this->renderPartial('_form', array('model' => $model));
?>
</div>
开发者ID:syukrikhafidh,项目名称:appdefault,代码行数:20,代码来源:create.php
示例18: array
<?php
/* @var $this SkillController */
/* @var $model Skill */
?>
<?php
$this->breadcrumbs = array('Skills' => array('admin'), $model->title => array('view', 'id' => $model->id_skill), 'Update');
$this->menu = array(array('icon' => 'glyphicon glyphicon-list', 'label' => 'List Skill', 'url' => array('index')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Create Skill', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-list-alt', 'label' => 'View Skill', 'url' => array('view', 'id' => $model->id_skill)), array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Manage Skill', 'url' => array('admin')));
?>
<div class="box box-primary">
<div class="box-header">
<?php
echo BsHtml::pageHeader('Update', 'Skill ' . $model->id_skill);
?>
</div>
<?php
$this->renderPartial('_form', array('model' => $model));
?>
</div>
开发者ID:syukrikhafidh,项目名称:appdefault,代码行数:20,代码来源:update.php
示例19: array
<div class = "b-admin_menu">
<?php
$this->widget('bootstrap.widgets.BsNavbar', array('collapse' => true, 'brandLabel' => BsHtml::icon(BsHtml::GLYPHICON_HOME), 'brandUrl' => Yii::app()->homeUrl, 'position' => BsHtml::NAVBAR_POSITION_STATIC_TOP, 'items' => array(array('class' => 'bootstrap.widgets.BsNav', 'type' => 'navbar', 'activateParents' => true, 'items' => array(array('label' => Yii::t('admin', 'Hello') . ', ' . Yii::app()->user->username . '!', 'url' => array('/user/profile'), 'items' => array(array('label' => Yii::t('admin', 'Change your password'), 'url' => array('/user/profile/changepassword'), 'icon' => BsHtml::GLYPHICON_PAPERCLIP), array('label' => Yii::t('admin', 'Your profile'), 'url' => array('/user/profile'), 'icon' => BsHtml::GLYPHICON_USER), array('label' => Yii::t('admin', 'User Management'), 'url' => array('/user/admin/admin'), 'icon' => BsHtml::GLYPHICON_COG), array('label' => Yii::t('admin', 'Add New User'), 'url' => array('/user/admin/create'), 'icon' => BsHtml::GLYPHICON_PLUS_SIGN), array('label' => Yii::t('admin', 'Add custom field'), 'url' => array('/user/profileField/create'), 'icon' => BsHtml::GLYPHICON_PLUS_SIGN), array('label' => Yii::t('admin', 'Manage fields'), 'url' => array('/user/profileField/admin'), 'icon' => BsHtml::GLYPHICON_LIST)), 'visible' => Yii::app()->user->checkAccess('admin')), array('label' => Yii::t('admin', 'Settings'), 'url' => array('/helper/settings/admin'), 'icon' => BsHtml::GLYPHICON_COG, 'visible' => Yii::app()->user->checkAccess('admin')), array('label' => Yii::t('admin', 'Messages'), 'url' => array('/emails/emails/admin'), 'items' => array(array('label' => Yii::t('admin', 'Management'), 'url' => array('/emails/emails/admin')), array('label' => Yii::t('admin', 'Add message'), 'url' => array('/emails/emails/create')), array('label' => Yii::t('admin', 'Send'), 'url' => array('/emails/emails/send'))), 'visible' => Yii::app()->user->checkAccess('user')))), array('class' => 'bootstrap.widgets.BsNav', 'type' => 'navbar', 'activateParents' => true, 'items' => array(array('label' => Yii::t('admin', 'Logout'), 'pull' => BsHtml::NAVBAR_NAV_PULL_RIGHT, 'url' => array('/user/logout'))), 'htmlOptions' => array('pull' => BsHtml::NAVBAR_NAV_PULL_RIGHT)))));
?>
</div>
开发者ID:blrtromax,项目名称:seobility,代码行数:6,代码来源:_admin_menu.php
示例20: array
<?php
/* @var $this RoleController */
/* @var $model Role */
/* @var $form BSActiveForm */
?>
<?php
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'role-form', 'enableAjaxValidation' => false));
?>
<div class="box-body">
<p class="help-block">Fields with <span class="required">*</span> are required.</p>
<?php
echo $form->errorSummary($model);
?>
<?php
echo $form->textFieldControlGroup($model, 'kd_role', array('maxlength' => 15));
?>
<?php
echo $form->textFieldControlGroup($model, 'role_name', array('maxlength' => 30));
?>
</div>
<div class="box-footer">
<?php
echo BsHtml::submitButton('Submit', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
</div>
<?php
$this->endWidget();
开发者ID:syukrikhafidh,项目名称:appdefault,代码行数:31,代码来源:_form.php
注:本文中的BsHtml类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论