/** * Executes parent method parent::render(), passes data to Smarty engine * and returns name of template file "list_review.tpl". * * @return string */ public function render() { oxAdminList::render(); $this->_aViewData["menustructure"] = $this->getNavigation()->getDomXml()->documentElement->childNodes; $this->_aViewData["articleListTable"] = getViewName('oxarticles'); return "list_review.tpl"; }
/** * Calls parent::render() and returns name of template to render * * @return string */ public function render() { parent::render(); // passing display type back to view $this->_aViewData["displaytype"] = oxRegistry::getConfig()->getRequestParameter("displaytype"); return $this->_sThisTemplate; }
/** * Executes parent method parent::render() and returns name of template * file "shop_list.tpl". * * @return string */ public function render() { $myConfig = $this->getConfig(); parent::render(); $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId(); if (isset($soxId) && $soxId != self::NEW_SHOP_ID) { // load object $oShop = oxNew('oxShop'); if (!$oShop->load($soxId)) { $soxId = $myConfig->getBaseShopId(); $oShop->load($soxId); } $this->_aViewData['editshop'] = $oShop; } // default page number 1 $this->_aViewData['default_edit'] = 'shop_main'; $this->_aViewData['updatemain'] = $this->_blUpdateMain; $this->updateNavigation(); if ($this->_aViewData['updatenav']) { //skipping requirements checking when reloading nav frame oxRegistry::getSession()->setVariable("navReload", true); } //making sure we really change shops on low level if ($soxId && $soxId != self::NEW_SHOP_ID) { $myConfig->setShopId($soxId); oxRegistry::getSession()->setVariable('currentadminshop', $soxId); } return 'shop_list.tpl'; }
/** * Calls parent::render() and returns name of template to render * * @return string */ public function render() { $oTheme = oxNew('oxtheme'); parent::render(); // assign our list $this->_aViewData['mylist'] = $oTheme->getList(); return 'theme_list.tpl'; }
/** * Executes parent method parent::render() and returns name of template * file "Content_list.tpl". * * @return string */ public function render() { parent::render(); $sFolder = oxConfig::getParameter("folder"); $sFolder = $sFolder ? $sFolder : -1; $this->_aViewData["folder"] = $sFolder; $this->_aViewData["afolder"] = $this->getConfig()->getConfigParam('aCMSfolder'); return "content_list.tpl"; }
/** * Executes parent method parent::render() and returns current class template * name. * * @return string */ public function render() { parent::render(); $sFolder = oxRegistry::getConfig()->getRequestParameter("folder"); $sFolder = $sFolder ? $sFolder : -1; $this->_aViewData["folder"] = $sFolder; $this->_aViewData["afolder"] = $this->getConfig()->getConfigParam('aCMSfolder'); return $this->_sThisTemplate; }
/** * Calls parent::render() and returns name of template to render * * @return string */ public function render() { $sModulesDir = $this->getConfig()->getModulesDir(); $oModuleList = oxNew("oxModuleList"); $aModules = $oModuleList->getModulesFromDir($sModulesDir); parent::render(); // assign our list $this->_aViewData['mylist'] = $aModules; return 'module_list.tpl'; }
/** * Executes parent::render(), sets blacklist and preventdelete flag * * @return null */ public function render() { foreach ($this->getItemList() as $sId => $oUser) { if ($oUser->inGroup("oxidblacklist") || $oUser->inGroup("oxidblocked")) { $oUser->blacklist = "1"; } $oUser->blPreventDelete = false; if (!$this->_allowAdminEdit($sId)) { $oUser->blPreventDelete = true; } } return parent::render(); }
/** * Collects articles base data and passes them according to filtering rules, * returns name of template file "article_list.tpl". * * @return string */ public function render() { $myConfig = $this->getConfig(); $sPwrSearchFld = oxRegistry::getConfig()->getRequestParameter("pwrsearchfld"); $sPwrSearchFld = $sPwrSearchFld ? strtolower($sPwrSearchFld) : "oxtitle"; $oArticle = null; $oList = $this->getItemList(); if ($oList) { foreach ($oList as $key => $oArticle) { $sFieldName = "oxarticles__{$sPwrSearchFld}"; // formatting view if (!$myConfig->getConfigParam('blSkipFormatConversion')) { if ($oArticle->{$sFieldName}->fldtype == "datetime") { oxRegistry::get("oxUtilsDate")->convertDBDateTime($oArticle->{$sFieldName}); } elseif ($oArticle->{$sFieldName}->fldtype == "timestamp") { oxRegistry::get("oxUtilsDate")->convertDBTimestamp($oArticle->{$sFieldName}); } elseif ($oArticle->{$sFieldName}->fldtype == "date") { oxRegistry::get("oxUtilsDate")->convertDBDate($oArticle->{$sFieldName}); } } $oArticle->pwrsearchval = $oArticle->{$sFieldName}->value; $oList[$key] = $oArticle; } } parent::render(); // load fields if (!$oArticle && $oList) { $oArticle = $oList->getBaseObject(); } $this->_aViewData["pwrsearchfields"] = $oArticle ? $this->getSearchFields() : null; $this->_aViewData["pwrsearchfld"] = strtoupper($sPwrSearchFld); $aFilter = $this->getListFilter(); if (isset($aFilter["oxarticles"][$sPwrSearchFld])) { $this->_aViewData["pwrsearchinput"] = $aFilter["oxarticles"][$sPwrSearchFld]; } $sType = ''; $sValue = ''; $sArtCat = oxRegistry::getConfig()->getRequestParameter("art_category"); if ($sArtCat && strstr($sArtCat, "@@") !== false) { list($sType, $sValue) = explode("@@", $sArtCat); } $this->_aViewData["art_category"] = $sArtCat; // parent categorie tree $this->_aViewData["cattree"] = $this->getCategoryList($sType, $sValue); // manufacturer list $this->_aViewData["mnftree"] = $this->getManufacturerlist($sType, $sValue); // vendor list $this->_aViewData["vndtree"] = $this->getVendorList($sType, $sValue); return "article_list.tpl"; }
/** * Executes parent method parent::render(), gets entries with authors * and returns template file name "admin_guestbook.tpl". * * @return string */ public function render() { parent::render(); $oList = $this->getItemList(); if ($oList && $oList->count()) { $oDb = oxDb::getDb(); foreach ($oList as $oEntry) { // preloading user info .. if (isset($oEntry->oxgbentries__oxuserid) && $oEntry->oxgbentries__oxuserid->value) { $oEntry->oxuser__oxlname = new oxField($oDb->getOne("select oxlname from oxuser where oxid=" . $oDb->quote($oEntry->oxgbentries__oxuserid->value))); } } } $this->_aViewData["mylist"] = $oList; return $this->_sThisTemplate; }
/** * Executes parent method parent::render(), creates oxpricealarm object, * sends pricealarm to iAllCnts of chosen groups and returns name of template * file "pricealarm_send.tpl"/"pricealarm_done.tpl". * * @return string */ public function render() { parent::render(); $myConfig = $this->getConfig(); $oDB = oxDb::getDb(oxDb::FETCH_MODE_ASSOC); ini_set("session.gc_maxlifetime", 36000); $iStart = oxRegistry::getConfig()->getRequestParameter("iStart"); $iAllCnt = oxRegistry::getConfig()->getRequestParameter("iAllCnt"); // #1140 R $sSelect = "select oxpricealarm.oxid, oxpricealarm.oxemail, oxpricealarm.oxartid, oxpricealarm.oxprice " . "from oxpricealarm, oxarticles where oxarticles.oxid = oxpricealarm.oxartid " . "and oxpricealarm.oxsended = '0000-00-00 00:00:00'"; if (isset($iStart)) { $rs = $oDB->SelectLimit($sSelect, $myConfig->getConfigParam('iCntofMails'), $iStart); } else { $rs = $oDB->Execute($sSelect); } $iAllCntTmp = 0; if ($rs != false && $rs->recordCount() > 0) { while (!$rs->EOF) { $oArticle = oxNew("oxarticle"); $oArticle->load($rs->fields['oxid']); if ($oArticle->getPrice()->getBruttoPrice() <= $rs->fields['oxprice']) { $this->sendeMail($rs->fields['oxemail'], $rs->fields['oxartid'], $rs->fields['oxid'], $rs->fields['oxprice']); $iAllCntTmp++; } $rs->moveNext(); } } if (!isset($iStart)) { // first call $iStart = 0; $iAllCnt = $iAllCntTmp; } // adavance mail pointer and set parameter $iStart += $myConfig->getConfigParam('iCntofMails'); $this->_aViewData["iStart"] = $iStart; $this->_aViewData["iAllCnt"] = $iAllCnt; $this->_aViewData["actlang"] = oxRegistry::getLang()->getBaseLanguage(); // end ? if ($iStart < $iAllCnt) { $sPage = "pricealarm_send.tpl"; } else { $sPage = "pricealarm_done.tpl"; } return $sPage; }
/** * Executes parent method parent::render(), gets entries with authors * and returns template file name "admin_guestbook.tpl". * * @return string */ public function render() { parent::render(); $oList = $this->getItemList(); if ($oList && $oList->count()) { $oDb = oxDb::getDb(); foreach ($oList as $oEntry) { // preloading user info .. $sUserIdField = 'oxgbentries__oxuserid'; $sUserLastNameField = 'oxuser__oxlname'; if (isset($oEntry->{$sUserIdField}) && $oEntry->{$sUserIdField}->value) { $sSql = "select oxlname from oxuser where oxid=" . $oDb->quote($oEntry->{$sUserIdField}->value); $oEntry->{$sUserLastNameField} = new oxField($oDb->getOne($sSql, false, false)); } } } $this->_aViewData["mylist"] = $oList; return $this->_sThisTemplate; }
/** * Executes parent method parent::render() and returns name of template * file "order_list.tpl". * * @return string */ public function render() { parent::render(); $folders = $this->getConfig()->getConfigParam('aOrderfolder'); $folder = oxRegistry::getConfig()->getRequestParameter("folder"); // first display new orders if (!$folder && is_array($folders)) { $names = array_keys($folders); $folder = $names[0]; } $search = array('oxorderarticles' => 'ARTID', 'oxpayments' => 'PAYMENT'); $searchQuery = oxRegistry::getConfig()->getRequestParameter("addsearch"); $searchField = oxRegistry::getConfig()->getRequestParameter("addsearchfld"); $this->_aViewData["folder"] = $folder ? $folder : -1; $this->_aViewData["addsearchfld"] = $searchField ? $searchField : -1; $this->_aViewData["asearch"] = $search; $this->_aViewData["addsearch"] = $searchQuery; $this->_aViewData["afolder"] = $folders; return "order_list.tpl"; }
/** * Loads category tree, passes data to Smarty and returns name of * template file "category_list.tpl". * * @return string */ public function render() { $myConfig = $this->getConfig(); parent::render(); $oLang = oxRegistry::getLang(); $iLang = $oLang->getTplLanguage(); // parent category tree $oCatTree = oxNew("oxCategoryList"); $oCatTree->loadList(); // add Root as fake category // rebuild list as we need the root entry at the first position $aNewList = array(); $oRoot = new stdClass(); $oRoot->oxcategories__oxid = new oxField(null, oxField::T_RAW); $oRoot->oxcategories__oxtitle = new oxField($oLang->translateString("viewAll", $iLang), oxField::T_RAW); $aNewList[] = $oRoot; $oRoot = new stdClass(); $oRoot->oxcategories__oxid = new oxField("oxrootid", oxField::T_RAW); $oRoot->oxcategories__oxtitle = new oxField("-- " . $oLang->translateString("mainCategory", $iLang) . " --", oxField::T_RAW); $aNewList[] = $oRoot; foreach ($oCatTree as $oCategory) { $aNewList[] = $oCategory; } $oCatTree->assign($aNewList); $aFilter = $this->getListFilter(); if (is_array($aFilter) && isset($aFilter["oxcategories"]["oxparentid"])) { foreach ($oCatTree as $oCategory) { if ($oCategory->oxcategories__oxid->value == $aFilter["oxcategories"]["oxparentid"]) { $oCategory->selected = 1; break; } } } $this->_aViewData["cattree"] = $oCatTree; return "category_list.tpl"; }
/** * Executes parent method parent::render(), creates oxpricealarm object, * sends pricealarm to iAllCnts of chosen groups and returns name of template * file "pricealarm_send.tpl"/"pricealarm_done.tpl". * * @return string */ public function render() { parent::render(); $config = $this->getConfig(); ini_set("session.gc_maxlifetime", 36000); $start = (int) $config->getRequestParameter("iStart"); $limit = $config->getConfigParam('iCntofMails'); $activeAlertsAmount = $config->getRequestParameter("iAllCnt"); if (!isset($activeAlertsAmount)) { $activeAlertsAmount = $this->countActivePriceAlerts(); } $this->sendPriceChangeNotifications($start, $limit); // Advance mail pointer and set parameter $start += $limit; $this->_aViewData["iStart"] = $start; $this->_aViewData["iAllCnt"] = $activeAlertsAmount; $this->_aViewData["actlang"] = oxRegistry::getLang()->getBaseLanguage(); if ($start < $activeAlertsAmount) { $template = "pricealarm_send.tpl"; } else { $template = "pricealarm_done.tpl"; } return $template; }
/** * @return string */ public function render() { parent::render(); return "mibexample4_list.tpl"; }
/** * Executes parent method parent::render() and returns name of template * file "usergroup_list.tpl". * * @return string */ public function render() { parent::render(); return "usergroup_list.tpl"; }
/** * Executes parent method parent::render() and returns name of template * file "selectlist_list.tpl". * * @return string */ public function render() { parent::render(); $this->_aViewData['mylist'] = $this->_getLanguagesList(); return "language_list.tpl"; }
/** * Executes parent method parent::render() and returns name of template * file "user_list.tpl". * * @return string */ public function render() { parent::render(); return "wrapping_list.tpl"; }
/** * Executes parent method parent::render(), passes data to Smarty engine * and returns name of template file "list_review.tpl". * * @return string */ public function render() { oxAdminList::render(); $this->_aViewData["menustructure"] = $this->getNavigation()->getDomXml()->documentElement->childNodes; return "list_order.tpl"; }
/** * Executes parent method parent::render() and returns name of template * file "selectlist_list.tpl". * * @return string */ public function render() { parent::render(); return "country_list.tpl"; }