/** * 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')); }
</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