本文整理汇总了PHP中X2Html::loadingIcon方法的典型用法代码示例。如果您正苦于以下问题:PHP X2Html::loadingIcon方法的具体用法?PHP X2Html::loadingIcon怎么用?PHP X2Html::loadingIcon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类X2Html
的用法示例。
在下文中一共展示了X2Html::loadingIcon方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderItems
/**
* Renders the data items for the grid view.
*/
public function renderItems()
{
if ($this->dataProvider->getItemCount() > 0 || $this->showTableOnEmpty) {
$pagerDisplayed = $this->dataProvider->getPagination()->getPageCount() > 1;
if ($this->fixedHeader) {
echo '</div>';
}
$this->renderContentBeforeHeader();
echo '<div class="x2grid-header-container">';
echo '<table class="', $this->itemsCssClass, '"' . ($this->showHeader || !$this->hideFullHeader ? '' : "style='display: none;'") . '>';
$this->renderTableHeader();
echo '</table></div>';
if ($this->fixedHeader) {
echo '</div></div>';
}
echo '<div class="x2grid-body-container' . (!$pagerDisplayed ? ' x2grid-no-pager' : '') . '"><table class="' . $this->itemsCssClass . ($this->fixedHeader ? ' x2-gridview-body-with-fixed-header' : '') . "\">\n";
ob_start();
$this->renderTableBody();
$body = ob_get_clean();
$this->renderTableFooter();
echo $body;
// TFOOT must appear before TBODY according to the standard.
echo '</table>';
echo '</div>';
} else {
$this->renderEmptyText();
}
echo X2Html::loadingIcon(array('class' => 'x2-gridview-updating-anim', 'style' => 'display: none'));
}
示例2: array
</li>
</ul>
<?php
}
?>
<?php
// echo X2Html::fa ('fa-expand', array (
// 'class' => 'email-fullscreen-button x2-icon-button fa-lg x2-hide',
// ));
echo X2Html::fa('fa-level-down', array('class' => 'email-reattach-button x2-icon-button fa-lg x2-hide', 'style' => 'visibility: hidden;', 'title' => CHtml::encode(Yii::t('app', 'Reattach email form'))));
?>
</div>
<?php
$formConfig = array('enableAjaxValidation' => false, 'method' => 'post');
$form = $this->beginWidget('CActiveForm', $formConfig);
echo X2Html::loadingIcon(array('id' => 'email-sending-icon', 'style' => 'display: none'));
echo $this->specialFields;
echo $form->hiddenField($this->model, 'modelId');
echo CHtml::hiddenField('associationType', $associationType);
echo $form->hiddenField($this->model, 'modelName');
echo CHtml::hiddenField('contactFlag', $this->contactFlag);
?>
<div class='email-inputs form'>
<div class="row">
<div id="inline-email-errors" class="error" style="display:none"></div>
<?php
echo $form->errorSummary($this->model, Yii::t('app', "Please fix the following errors:"), null);
?>
</div>
<div class="row email-input-row credId-row"
<?php