This source file is subject to version 2.0 of the GPL license, that is bundled with this package in the file LICENSE. If you did not receive a copy of the oscMall System license and are unable to obtain it through the world-wide-web, please send a note to license@systemsmanager.net so we can mail you a copy immediately. */ $tabsArray = array(); $tabsArray[] = array('id' => 'tab-banner', 'filename' => 'tab_banner.php', 'text' => TEXT_AFFILIATE_BANNERS); $tabsArray[] = array('id' => 'tab-product', 'filename' => 'tab_product.php', 'text' => TEXT_AFFILIATE_BANNERS_PRODUCT); $tabsArray[] = array('id' => 'tab-build', 'filename' => 'tab_build.php', 'text' => TEXT_AFFILIATE_BANNERS_BUILD); $tabsArray[] = array('id' => 'tab-text', 'filename' => 'tab_text.php', 'text' => TEXT_AFFILIATE_BANNERS_TEXT); require DIR_WS_CLASSES . 'jQuery.php'; $jQuery = new jQuery(); $jQuery->loadPlugin(array('tabs', 'facebox', 'button', 'form')); $tabPanel = $jQuery->getPluginClass('tabs'); $tabPanel->setID('initialPane'); for ($tabCounter = 0, $tabTotal = sizeof($tabsArray); $tabCounter < $tabTotal; $tabCounter++) { $tabPanel->addTab($tabsArray[$tabCounter]['id'], $tabsArray[$tabCounter]['text']); ob_start(); include 'includes/modules/affiliate_banners/' . $tabsArray[$tabCounter]['filename']; $tabContent = ob_get_contents(); ob_end_clean(); $tabPanel->addTabContent($tabsArray[$tabCounter]['id'], $tabContent); unset($tabContent); } $backButton = $jQuery->getPluginClass('button'); $backButton->setID('backButton'); $backButton->setText(IMAGE_BACK); $backButton->setHref(smn_href_link(FILENAME_ACCOUNT, 'ID=' . $store_id)); $buildLinkButton = $jQuery->getPluginClass('button');