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


PHP TbHtml::linkButton方法代码示例

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


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

示例1: renderButtons

 /**
  * Renders the form buttons
  */
 protected function renderButtons()
 {
     echo TbHtml::submitButton(Yii::t('FilterForm', 'Apply filter'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY));
     $controller = Yii::app()->controller;
     // Disable when no filter is defined
     echo TbHtml::linkButton(Yii::t('FilterForm', 'Clear filter'), array('color' => TbHtml::BUTTON_COLOR_INFO, 'disabled' => $this->model->isEmpty(), 'url' => $controller->createUrl($controller->route)));
 }
开发者ID:pweisenburger,项目名称:xbmc-video-server,代码行数:10,代码来源:VideoFilter.php

示例2: 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 TbHtml::linkButton(TbHtml::icon(TbHtml::ICON_REMOVE), array('color' => TbHtml::BUTTON_COLOR_LINK, 'size' => TbHtml::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 TbHtml::linkButton(TbHtml::icon(TbHtml::ICON_REMOVE), array('color' => TbHtml::BUTTON_COLOR_LINK, 'size' => TbHtml::BUTTON_SIZE_MINI, 'url' => array('removeChild', 'itemName' => $this->itemName, 'childName' => $data['name']), 'rel' => 'tooltip', 'title' => Yii::t('AuthModule.main', 'Remove')));
         }
     }
 }
开发者ID:ivko,项目名称:yii-auth,代码行数:17,代码来源:AuthItemRemoveColumn.php

示例3: array

echo LazyImage::image($artwork->getUrl());
?>
	</div>
	
	<h3>
		<?php 
echo $season->getDisplayName();
?>
	</h3>
	
	<p>
		<?php 
echo $season->getEpisodesString();
?>
	</p>
	
	<?php 
if (Yii::app()->user->role !== User::ROLE_SPECTATOR) {
    ?>
		<div class="season-download">
			<?php 
    echo TbHtml::linkButton(Yii::t('TVShows', 'Watch the whole season'), array('color' => TbHtml::BUTTON_COLOR_SUCCESS, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'url' => $this->createUrl('tvShow/getSeasonPlaylist', array('tvshowId' => $season->tvshowid, 'season' => $season->season)), 'class' => 'fa fa-play')) . ' ' . Yii::t('TVShows', 'or choose individual episodes from the list below');
    ?>
		</div>
		<?php 
}
?>
</div>

<?php 
$this->widget('EpisodeList', array('dataProvider' => $dataProvider));
开发者ID:Tebro,项目名称:xbmc-video-server,代码行数:31,代码来源:_episodes.php

示例4: operator

<?php

Yii::app()->clientScript->registerScriptFile(Yii::app()->request->baseUrl . '/js/jquery-ui.min.js', CClientScript::POS_HEAD);
$this->widget('bootstrap.widgets.TbAlert');
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\$.fn.yiiGridView.update('option-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<p>
<?php 
echo Yii::t('info', 'You may optionally enter a comparison operator (&lt;, &lt;=, &gt;, &gt;=, &lt;&gt; or =) at the beginning of each of your search values to specify how the comparison should be done.');
?>
</p>

<?php 
echo TbHtml::linkButton(Yii::t('label', 'Advanced Search'), array('url' => '#', 'class' => 'search-button', 'color' => TbHtml::BUTTON_COLOR_PRIMARY));
?>
<div class="search-form hide">
<?php 
echo $this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'option-grid', 'type' => array(TbHtml::GRID_TYPE_STRIPED, TbHtml::GRID_TYPE_BORDERED, TbHtml::GRID_TYPE_CONDENSED), 'dataProvider' => $model->search(), 'filter' => $model, 'rowCssClassExpression' => '"items[]_{$data->id}"', 'columns' => array(array('class' => 'CCheckBoxColumn', 'id' => 'check', 'selectableRows' => 2), array('name' => 'name', 'header' => Yii::t('label', 'Name'), 'value' => '$data->getName()'), 'id', 'type', 'sort_order', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 20px'), 'buttons' => array('delete' => array('label' => Yii::t('label', 'Delete'), 'options' => array("class" => "dlink", 'title' => Yii::t('label', 'Delete'))), 'update' => array('label' => Yii::t('label', 'Update'), 'options' => array("class" => "update vlink", 'title' => Yii::t('label', 'Update'))), 'view' => array('label' => Yii::t('label', 'View'), 'options' => array("class" => "view vlink", 'title' => Yii::t('label', 'View')))), 'template' => '{view} {update} {delete}')), 'afterAjaxUpdate' => 'js:reSortGrid'));
?>
<div class="hlinks hide">
<div class="uid"></div>
<div class="sortLink"><?php 
echo $this->createUrl('sort');
?>
</div>
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:31,代码来源:_manage.php

示例5: array

:</strong>
					<?php 
            echo TbHtml::encode($field->widgetView($model->profile) ? $field->widgetView($model->profile) : ($field->range ? Profile::range($field->range, $model->profile->getAttribute($field->varname)) : $model->profile->getAttribute($field->varname)));
            ?>
			</div>
			<br/>
		<?php 
        }
    }
}
?>
	<div class="row buttons">
		<?php 
echo TbHtml::button(UserModule::t('Save'), array('color' => TbHtml::BUTTON_COLOR_SUCCESS, 'submit' => ''));
?>
		<?php 
echo TbHtml::linkButton(UserModule::t('Cancel'), array('color' => TbHtml::BUTTON_COLOR_DANGER, 'url' => Yii::app()->request->getUrlReferrer()));
?>
	</div>

<?php 
$this->endWidget();
?>

</div><!-- form -->
<div class="hlinks hide">
<div class="uid"><?php 
echo $model->id;
?>
</div>
</div>
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:31,代码来源:_update.php

示例6: array

<?php

/* @var $this GamestepController */
?>

    <h1>Игра окончена</h1>
<?php 
echo TbHtml::muted(Yii::app()->session['loser']);
echo TbHtml::linkButton('Играть еще раз', array('color' => TbHtml::BUTTON_COLOR_INFO, 'url' => array('start')));
开发者ID:tatyanayavkina,项目名称:yii_city_game,代码行数:9,代码来源:end.php

示例7: array

<?php

$this->breadcrumbs = array('Groups' => array('index'), 'Manage');
$this->tab = array(array('label' => Yii::t('group', 'Users'), 'url' => array('/user/admin'), 'active' => false), array('label' => Yii::t('group', 'Groups'), 'url' => array('/group/admin'), 'active' => true));
$this->menu = array(array('label' => 'Create Group', 'url' => array('/group/create'), 'active' => Yii::app()->controller->action->id == 'create'), array('label' => 'Manage Groups', 'url' => array('/group/admin'), 'active' => Yii::app()->controller->action->id == 'admin'), array('label' => 'List Group', 'url' => array('/group/index'), 'active' => Yii::app()->controller->action->id == 'index'));
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\$.fn.yiiGridView.update('group-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<h1>Manage Groups</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php 
echo TbHtml::linkButton(UserModule::t('Advanced Search'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'url' => '#', 'class' => 'search-button'));
?>
<div class="search-form" style="display:none">
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
</div><!-- search-form -->

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'group-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array('id', 'name', array('class' => 'bootstrap.widgets.TbButtonColumn', 'htmlOptions' => array('style' => 'width: 20px'), 'template' => '{view},{update}'))));
开发者ID:Rudianasaja,项目名称:cycommerce,代码行数:26,代码来源:admin.php

示例8: array

?>
    </p>

    <?php 
$form = $this->beginWidget('\\TbActiveForm', array('id' => $this->forgotFormId, 'enableAjaxValidation' => true));
?>

    <fieldset>
        <?php 
echo $form->textFieldControlGroup($model, 'email', array('label' => false, 'placeholder' => $model->getAttributeLabel('email'), 'block' => true));
?>
    </fieldset>

    <div class="row">
        <div class="forgot-submit col-xs-8">
            <?php 
echo TbHtml::submitButton(Helper::t('views', 'Recover Account'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'block' => true));
?>
        </div>
        <div class="forgot-cancel col-xs-4">
            <?php 
echo TbHtml::linkButton(Helper::t('views', 'Cancel'), array('url' => array('/account/authenticate/login'), 'color' => TbHtml::BUTTON_COLOR_LINK, 'size' => TbHtml::BUTTON_SIZE_LARGE, 'block' => true));
?>
        </div>
    </div>

    <?php 
$this->endWidget();
?>

</div>
开发者ID:azamath,项目名称:yii-account,代码行数:31,代码来源:forgot.php

示例9: array

<div class="span10" style="float: none;margin-left: auto; margin-right: auto;">
<?php 
$box = $this->beginWidget('yiiwheels.widgets.box.WhBox', array('title' => 'Suspended Sales', 'headerIcon' => 'icon-pause'));
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\$.fn.yiiGridView.update('sale-suspended-grid', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>


<?php 
//echo CHtml::link('Advanced Search','#',array('class'=>'search-button btn'));
?>
<!-- <div class="search-form" style="display:none"> -->
<?php 
$this->renderPartial('_search', array('model' => $model));
?>
<!-- </div><!-- search-form -->

<?php 
echo TbHtml::linkButton(Yii::t('app', 'Return Sale'), array('color' => TbHtml::BUTTON_COLOR_INFO, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'icon' => 'white undo', 'url' => $this->createUrl('SaleItem/index')));
?>
 

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'sale-suspended-grid', 'dataProvider' => $model->search(), 'columns' => array('id', 'sale_time', array('name' => 'client_id', 'value' => '($data->client_id == null) ? "" : $data->client->first_name . " " . $data->client->last_name'), array('name' => 'employee_id', 'value' => '($data->employee_id == null) ? "" : $data->employee->first_name . " " . $data->employee->last_name'), 'sub_total', array('name' => 'unsuspend', 'value' => 'CHtml::link("Unsuspend", Yii::app()->createUrl("SaleItem/UnsuspendSale",array("sale_id"=>$data->primaryKey)), 
                                array("class"=>"btn btn-info btn-small"))', 'type' => 'raw'), array('class' => 'bootstrap.widgets.TbButtonColumn', 'template' => '{delete}'))));
?>

<?php 
$this->endWidget();
?>

</div>
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:31,代码来源:admin.php

示例10: array

<?php

/* @var $this BackendController */
/* @var $model Backend */
$this->pageTitle = $title = Yii::t('Backend', 'Manage backends');
?>

<h2><?php 
echo $title;
?>
</h2>

<?php 
echo FormHelper::helpBlock(Yii::t('Backend', 'This is where you configure your backends. A 
	backend is an instance of XBMC that the application connects to and serves 
	library contents from. If you specify more than one backend, a new item 
	will appear in the main menu, allowing you to easily switch backends.'));
?>

<?php 
echo TbHtml::linkButton(Yii::t('Backend', 'Create new backend'), array('color' => TbHtml::BUTTON_COLOR_PRIMARY, 'url' => array('create')));
?>

<hr />

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('type' => TbHtml::GRID_TYPE_STRIPED, 'dataProvider' => Backend::model()->dataProvider, 'enableSorting' => false, 'template' => '{items}', 'columns' => array('name', 'hostname', 'port', 'tcp_port', array('name' => 'default', 'header' => Yii::t('Backend', 'Default'), 'type' => 'raw', 'value' => function ($data) {
    return $data->default ? TbHtml::icon(TbHtml::ICON_OK) : '';
}), 'macAddress', 'subnetMask', array('class' => 'bootstrap.widgets.TbButtonColumn', 'template' => '{update} {delete}'))));
开发者ID:Tebro,项目名称:xbmc-video-server,代码行数:29,代码来源:admin.php

示例11: renderWatchInBrowserButton

 /**
  * Renders the "Watch as in browser" button
  */
 private function renderWatchInBrowserButton()
 {
     // Swap the button URL for the first item link
     $buttonOptions = $this->getWatchButtonsOptions();
     $buttonOptions['class'] = 'fa fa-play';
     $buttonOptions['url'] = array('watchInBrowser', 'url' => $this->_links[0]->url);
     // Add logging
     TbHtml::addCssClass('loggable-link', $buttonOptions);
     $buttonOptions = array_merge($buttonOptions, $this->getLoggableLinkOptions());
     echo TbHtml::linkButton(Yii::t('RetrieveMediaWidget', 'Watch in browser'), $buttonOptions);
 }
开发者ID:pweisenburger,项目名称:xbmc-video-server,代码行数:14,代码来源:RetrieveMediaWidget.php

示例12: array

<?php

// solo si es un update
    if (!$model->isNewRecord){
        

        echo TbHtml::linkButton(Yii::t('app','DOMICILIOS PROFESIONALES +'), array(
          'url' => Yii::app()->createUrl("domicilio/create", array("identidad" => $model->identidad,'modelclass'=>  get_class($model_domicilioprofesional))),
          'color' => TbHtml::BUTTON_COLOR_WARNING,
          'name' => 'button-4',
          'title'=>'Agregar Domicilio',  
          'size' => TbHtml::BUTTON_SIZE_SMALL,
          'data-update-dialog-title' => Yii::t('app','Domicilio Agregar'),
          'id' => 'button-2',
          'class' => 'update-dialog-open-link',
          'style'=>'margin:5px 0;',

      ));
    
    //Dibujo la grilla para ingresar los N domicilios profesionales
        $this->renderPartial('//domicilio/grilla_domicilioprofesional', array(
        'model' => $model_domicilioprofesional,
         'viewbutton'=>true,
        
        ));
//         echo "<div class='oculto' id='titulocontacto'>";
//       echo TbHtml::labelTb('Contacto', array('color' => TbHtml::LABEL_COLOR_WARNING, 'style' => 'margin-top:30px;margin-bottom:20px;font-size:13px;padding:5px;'));
//            echo "</div>";
     
        $model_contacto->iddomicilio="NULL";
        echo "<div class='oculto centrado' id='grillacontacto'>";
开发者ID:juankie,项目名称:gestcb9git,代码行数:31,代码来源:_domicilioprofesional.php

示例13: array

                    </tr>    

                </tbody>

            </table>
        </div>
    
        <div id="return_policy" style="width:200px; margin:0 auto;">
            <div id="return_policy"><?php 
    echo Yii::app()->settings->get('site', 'returnPolicy');
    ?>
</div>
        </div> 

        <div id="mybutton">
            <?php 
    echo TbHtml::linkButton(Yii::t('app', 'Print'), array('color' => TbHtml::BUTTON_COLOR_SUCCESS, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'icon' => 'print white', 'onclick' => '{printpage();}'));
    ?>
 
            <?php 
    echo TbHtml::linkButton(Yii::t('app', 'Edit'), array('color' => TbHtml::BUTTON_COLOR_SUCCESS, 'size' => TbHtml::BUTTON_SIZE_SMALL, 'icon' => 'pencil white', 'url' => $this->createUrl('ReceivingItem/EditReceiving', array('receiving_id' => $receiving_id))));
    ?>
 
        </div>
    <?php 
}
?>
    
</div>
    
开发者ID:noonnightcoder,项目名称:bakou-pos-apsara,代码行数:29,代码来源:_receipt.php

示例14: array

<?php

Yii::app()->clientScript->registerScript('search', "\r\n\$('.search-button').click(function(){\r\n\t\$('.search-form').toggle();\r\n\treturn false;\r\n});\r\n\$('.search-form form').submit(function(){\r\n\t\$('#sparepart-grid').yiiGridView('update', {\r\n\t\tdata: \$(this).serialize()\r\n\t});\r\n\treturn false;\r\n});\r\n");
?>

<h1>Pilih jenis Spare-parts yang akan diadakan</h1>

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'sparepart-grid', 'type' => TbHtml::GRID_TYPE_HOVER, 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('header' => 'No', 'value' => '$data->ID_SPAREPART'), array('name' => 'NAMA_BARANG', 'header' => 'Nama Barang'), array('header' => 'Harga Satuan', 'value' => '$data->HARGA_SATUAN'), array('header' => 'Stok', 'value' => '$data->STOK'), array('header' => 'Aksi', 'type' => 'raw', 'value' => 'CHtml::link(\'pilih\', array(\'sparepart/insert\', \'id\'=>$data->ID_SPAREPART,\'peng\'=>$_GET[\'id\']))')), 'emptyText' => TbHtml::linkButton("Buat Nama Sparepart Baru", array("submit" => array("sparepart/create", "id" => $_GET["id"]), "color" => TbHtml::BUTTON_COLOR_INFO))));
?>

<?php 
$this->renderPartial('/relasiPengadaanSparepart/view', array('model' => RelasiPengadaanSparepart::model(), "id" => $model->ID_PENGADAAN));
开发者ID:aunorafiq,项目名称:jks,代码行数:13,代码来源:create2.php

示例15: array

<?php

/* @var $this PenerbitController */
/* @var $model Penerbit */
$this->breadcrumbs = array('Penerbits' => array('index'), 'Manage');
$this->menu = array(array('label' => 'List Penerbit', 'url' => array('index')), array('label' => 'Create Penerbit', '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\$('#penerbit-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'penerbit-grid', 'type' => TbHtml::GRID_TYPE_HOVER, 'dataProvider' => $model->search(), 'filter' => $model, 'columns' => array(array('header' => 'No', 'value' => '$this->grid->dataProvider->pagination->currentPage*$this->grid->dataProvider->pagination->pageSize + $row+1'), array('name' => 'NAMA_PENERBIT', 'header' => 'Nama Penerbit'), array('header' => 'No Tlp', 'value' => '$data->NO_TLP'), array('header' => 'Alamat', 'value' => '$data->ALAMAT')), 'emptyText' => TbHtml::linkButton("Buat Penerbit Baru", array("submit" => array("penerbit/create"), "color" => TbHtml::BUTTON_COLOR_INFO))));
开发者ID:aunorafiq,项目名称:jks,代码行数:11,代码来源:admin.php


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