PATH:
home
/
letacommog
/
letaweb
/
admin
/
widgets
<?php class CTab extends CWidget { public $navigations = array(); public $headerCssClass = ''; public $contentCssClass = 'tab_contents'; public $headerView = '_header_view'; public $contentView = 'tab/_content_view'; public $htmlOptions = array(); public $viewData = array(); public function init() { parent::init(); } public function run() { $this->renderNavigation(); $this->renderContent(); } public function renderNavigation() { echo CHtml::openTag('ul', $this->htmlOptions)."\n"; $this->renderNavigationItems($this->navigations); echo CHtml::closeTag('ul'); } public function renderNavigationItems($tabs) { foreach ($tabs as $tab) { $visible = !isset($tab['visible']) || !$tab['visible']; if (!$visible) { return; } echo CHtml::openTag('li'); echo CHtml::openTag('a', array('href' => '#'.$tab['path'])); echo Language::term($tab['label']); echo CHtml::closeTag('a'); echo CHtml::closeTag('li'); } } public function renderContent() { echo CHtml::openTag('div', array('class' => $this->contentCssClass))."\n"; $owner = $this->getOwner(); $render = $owner instanceof CController ? 'renderPartial' : 'render'; $data = $this->viewData; $data['index'] = 1; $data['widget'] = $this; $owner->$render($this->contentView, $data); echo CHtml::closeTag('div'); } }
[+]
..
[+]
views
[-] Pagination.php
[edit]
[-] CWidgetCustomModule.php
[edit]
[-] CWidgetModuleRenderer.php
[edit]
[-] CWidgetZone.php
[edit]
[-] CTab.php
[edit]
[-] CWidgetRow.php
[edit]
[-] CWidgetEcommerce.php
[edit]
[+]
modules
[-] CWidgetCMS.php
[edit]
[-] CPanel.php
[edit]
[-] ActiveDataProvider.php
[edit]
[-] CPager.php
[edit]
[-] CWidgetModule.php
[edit]
[-] CWidgetColumn.php
[edit]
[-] CTabContent.php
[edit]
[-] CWidgetStructure.php
[edit]
[-] CPriceTable.php
[edit]