本文整理汇总了PHP中BsHtml::link方法的典型用法代码示例。如果您正苦于以下问题:PHP BsHtml::link方法的具体用法?PHP BsHtml::link怎么用?PHP BsHtml::link使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BsHtml
的用法示例。
在下文中一共展示了BsHtml::link方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: adminLink
public static function adminLink($url, $text = 'Create')
{
$view = '';
if (Yii::app()->user->checkAccess('admin')) {
$view .= '<div class = "b-admin_edit">';
$view .= BsHtml::link(Yii::t('main', $text), $url, array('icon' => BsHtml::GLYPHICON_PENCIL, 'class' => 'btn btn-default btn-sm'));
$view .= '</div>';
}
return $view;
}
示例2: array
</tr>
<?php
}
?>
<tr>
<th></th>
<th>Итого</th>
<th></th>
<th></th>
<th><?php
echo $totalCost;
?>
</th>
<th><?php
echo $totalDuration;
?>
</th>
<th></th>
</tr>
</tbody>
</table>
<?php
echo $form->textAreaControlGroup($formModel, 'comment', array('disabled' => "disabled"));
?>
<div style="margin: 20px 0">
<?php
echo BsHtml::link('Примеры наших работ', '/clients/primeryi-rabot', array('target' => '_blank'));
?>
</div>
示例3: array
</div>
<div class="col-xs-6">
<div class="checkbox aw_check">
<input type="checkbox" id="hasPhoto" name="hasPhoto">
<label for="hasPhoto">
С фото
</label>
</div>
</div>
</div>
</div>
<div class="sf_el">
</div>
<!--div class="sf_el text-right">
<?php
echo BsHtml::link('Подробный поиск', '#', array('onclick' => 'return false;'));
?>
</div-->
</div>
</div>
<?php
echo BsHtml::linkButton('Найти', array('color' => BsHtml::BUTTON_COLOR_SUCCESS, 'block' => true, 'icon' => BsHtml::GLYPHICON_SEARCH, 'url' => '#', 'onclick' => 'return false;', 'id' => 'sa_submit'));
?>
<div class="add_search_area">
<?php
echo BsHtml::link('Подробный поиск', '#', array('onclick' => 'return false;'));
?>
</div>
示例4: foreach
<?php
if (Yii::app()->db->createCommand()->select('COUNT(`id`)')->from('region')->queryScalar() > 1) {
?>
<?php
$regions = Yii::app()->db->createCommand()->select('id, name')->from('region')->order('zIndex ASC, id ASC')->queryAll();
?>
<div id="regionArea">
<div class="container">
<div id="changeRegion">
<?php
foreach ($regions as $region) {
?>
<?php
echo BsHtml::link($region['name'], '#', array('region_id' => $region['id']));
?>
<span>|</span>
<?php
}
?>
</div>
</div>
</div>
<?php
}