当前位置: 首页>>代码示例>>PHP>>正文


PHP oxAdminDetails::render方法代码示例

本文整理汇总了PHP中oxAdminDetails::render方法的典型用法代码示例。如果您正苦于以下问题:PHP oxAdminDetails::render方法的具体用法?PHP oxAdminDetails::render怎么用?PHP oxAdminDetails::render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在oxAdminDetails的用法示例。


在下文中一共展示了oxAdminDetails::render方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: render

 /**
  * Loads selected article review information, returns name of template
  * file "article_review.tpl".
  *
  * @return string
  */
 public function render()
 {
     $myConfig = $this->getConfig();
     parent::render();
     $this->_aViewData["edit"] = $oArticle = oxNew("oxarticle");
     $soxId = $this->getEditObjectId();
     $sRevoxId = oxConfig::getParameter('rev_oxid');
     if ($soxId != "-1" && isset($soxId)) {
         // load object
         $oArticle->load($soxId);
         $oRevs = $this->_getReviewList($oArticle);
         foreach ($oRevs as $oRev) {
             if ($oRev->oxreviews__oxid->value == $sRevoxId) {
                 $oRev->selected = 1;
                 break;
             }
         }
         $this->_aViewData["allreviews"] = $oRevs;
         $this->_aViewData["editlanguage"] = $this->_iEditLang;
         if (isset($sRevoxId)) {
             $oReview = oxNew("oxreview");
             $oReview->load($sRevoxId);
             $this->_aViewData["editreview"] = $oReview;
             $oUser = oxNew("oxuser");
             $oUser->load($oReview->oxreviews__oxuserid->value);
             $this->_aViewData["user"] = $oUser;
         }
         //show "active" checkbox if moderating is active
         $this->_aViewData["blShowActBox"] = $myConfig->getConfigParam('blGBModerate');
     }
     return "article_review.tpl";
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:38,代码来源:article_review.php

示例2: render

 /**
  * Executes parent method parent::render(), creates oxnews object and
  * passes news text to smarty. Returns name of template file "news_text.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId();
     if (isset($soxId) && $soxId != "-1") {
         // load object
         $oNews = oxNew("oxnews");
         $iNewsLang = oxRegistry::getConfig()->getRequestParameter("newslang");
         if (!isset($iNewsLang)) {
             $iNewsLang = $this->_iEditLang;
         }
         $this->_aViewData["newslang"] = $iNewsLang;
         $oNews->loadInLang($iNewsLang, $soxId);
         foreach (oxRegistry::getLang()->getLanguageNames() as $id => $language) {
             $oLang = new stdClass();
             $oLang->sLangDesc = $language;
             $oLang->selected = $id == $this->_iEditLang;
             $this->_aViewData["otherlang"][$id] = clone $oLang;
         }
         // Disable editing for derived items.
         if ($oNews->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
         $this->_aViewData["edit"] = $oNews;
     }
     $this->_aViewData["editor"] = $this->_generateTextEditor("100%", 255, $oNews, "oxnews__oxlongdesc", "news.tpl.css");
     return "news_text.tpl";
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:34,代码来源:NewsText.php

示例3: render

 /**
  * Executes parent method parent::render(),
  * and returns name of template file
  * "object_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     if ($sType = $this->_getType()) {
         $oObject = oxNew($sType);
         if ($oObject->load($this->getEditObjectId())) {
             $oOtherLang = $oObject->getAvailableInLangs();
             if (!isset($oOtherLang[$iLang])) {
                 $oObject->loadInLang(key($oOtherLang), $this->getEditObjectId());
             }
             $this->_aViewData['edit'] = $oObject;
         }
         if ($oObject->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
     }
     $iLang = $this->getEditLang();
     $aLangs = oxRegistry::getLang()->getLanguageNames();
     foreach ($aLangs as $sLangId => $sLanguage) {
         $oLang = new stdClass();
         $oLang->sLangDesc = $sLanguage;
         $oLang->selected = $sLangId == $iLang;
         $this->_aViewData['otherlang'][$sLangId] = clone $oLang;
     }
     return 'object_seo.tpl';
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:33,代码来源:ObjectSeo.php

示例4: render

 /**
  * Collects article crosselling and attributes information, passes
  * them to Smarty engine and returns name or template file
  * "article_crossselling.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $this->_aViewData['edit'] = $oArticle = oxNew('oxarticle');
     // crossselling
     $sChosenArtCat = $this->_getCategoryTree("artcattree", oxConfig::getParameter("artcat"));
     // accessoires
     $sChosenArtCat2 = $this->_getCategoryTree("artcattree2", oxConfig::getParameter("artcat2"));
     $soxId = $this->getEditObjectId();
     if ($soxId != "-1" && isset($soxId)) {
         // load object
         $oArticle->load($soxId);
         if ($oArticle->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
     }
     $aColumns = array();
     $iAoc = oxConfig::getParameter("aoc");
     if ($iAoc == 1) {
         include_once 'inc/article_crossselling.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/article_crossselling.tpl";
     } elseif ($iAoc == 2) {
         include_once 'inc/article_accessories.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/article_accessories.tpl";
     }
     return "article_crossselling.tpl";
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:36,代码来源:article_crossselling.php

示例5: render

 /**
  * Executes parent method parent::render()
  * passes data to Smarty engine and returns name of template file "deliveryset_payment.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId();
     if (isset($soxId) && $soxId != "-1") {
         // load object
         $odeliveryset = oxNew("oxdeliveryset");
         $odeliveryset->setLanguage($this->_iEditLang);
         $odeliveryset->load($soxId);
         $oOtherLang = $odeliveryset->getAvailableInLangs();
         if (!isset($oOtherLang[$this->_iEditLang])) {
             // echo "language entry doesn't exist! using: ".key($oOtherLang);
             $odeliveryset->setLanguage(key($oOtherLang));
             $odeliveryset->load($soxId);
         }
         $this->_aViewData["edit"] = $odeliveryset;
         //Disable editing for derived articles
         if ($odeliveryset->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
     }
     $iAoc = oxRegistry::getConfig()->getRequestParameter("aoc");
     if ($iAoc == 1) {
         $oDeliverysetPaymentAjax = oxNew('deliveryset_payment_ajax');
         $this->_aViewData['oxajax'] = $oDeliverysetPaymentAjax->getColumns();
         return "popups/deliveryset_payment.tpl";
     } elseif ($iAoc == 2) {
         $oDeliverysetCountryAjax = oxNew('deliveryset_country_ajax');
         $this->_aViewData['oxajax'] = $oDeliverysetCountryAjax->getColumns();
         return "popups/deliveryset_country.tpl";
     }
     return "deliveryset_payment.tpl";
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:39,代码来源:DeliverySetPayment.php

示例6: render

 /**
  * Executes parent method parent::render() and returns name of template
  * file "statistic_service.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $sSql = "select count(*) from oxlogs where oxshopid = '" . $this->getConfig()->getShopId() . "'";
     $this->_aViewData['iLogCount'] = oxDb::getDb()->getOne($sSql, false, false);
     return "statistic_service.tpl";
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:13,代码来源:statistic_service.php

示例7: render

 /**
  * Executes parent method parent::render(), creates oxwrapping, oxshops and oxlist
  * objects, passes data to Smarty engine and returns name of template
  * file "wrapping_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId();
     if (isset($soxId) && $soxId != "-1") {
         // load object
         $oWrapping = oxNew("oxwrapping");
         $oWrapping->loadInLang($this->_iEditLang, $soxId);
         $oOtherLang = $oWrapping->getAvailableInLangs();
         if (!isset($oOtherLang[$this->_iEditLang])) {
             // echo "language entry doesn't exist! using: ".key($oOtherLang);
             $oWrapping->loadInLang(key($oOtherLang), $soxId);
         }
         $this->_aViewData["edit"] = $oWrapping;
         //Disable editing for derived articles
         if ($oWrapping->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
         // remove already created languages
         $aLang = array_diff(oxRegistry::getLang()->getLanguageNames(), $oOtherLang);
         if (count($aLang)) {
             $this->_aViewData["posslang"] = $aLang;
         }
         foreach ($oOtherLang as $id => $language) {
             $oLang = new stdClass();
             $oLang->sLangDesc = $language;
             $oLang->selected = $id == $this->_iEditLang;
             $this->_aViewData["otherlang"][$id] = clone $oLang;
         }
     }
     return "wrapping_main.tpl";
 }
开发者ID:Crease29,项目名称:oxideshop_ce,代码行数:39,代码来源:wrapping_main.php

示例8: render

 /**
  * Executes parent method parent::render(), creates discount category tree,
  * passes data to Smarty engine and returns name of template file "discount_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->getEditObjectId();
     if (isset($soxId) && $soxId != '-1') {
         // load object
         $oDiscount = oxNew('oxdiscount');
         $oDiscount->load($soxId);
         $this->_aViewData['edit'] = $oDiscount;
         //disabling derived items
         if ($oDiscount->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
         // generating category tree for artikel choose select list
         $this->_createCategoryTree("artcattree");
     }
     $iAoc = oxRegistry::getConfig()->getRequestParameter("aoc");
     if ($iAoc == 1) {
         $oDiscountArticlesAjax = oxNew('discount_articles_ajax');
         $this->_aViewData['oxajax'] = $oDiscountArticlesAjax->getColumns();
         return "popups/discount_articles.tpl";
     } elseif ($iAoc == 2) {
         $oDiscountCategoriesAjax = oxNew('discount_categories_ajax');
         $this->_aViewData['oxajax'] = $oDiscountCategoriesAjax->getColumns();
         return "popups/discount_categories.tpl";
     }
     return 'discount_articles.tpl';
 }
开发者ID:Crease29,项目名称:oxideshop_ce,代码行数:34,代码来源:discount_articles.php

示例9: render

 /**
  * Executes parent method parent::render(), creates delivery category tree,
  * passes data to Smarty engine and returns name of template file "delivery_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->getEditObjectId();
     $sChosenArtCat2 = oxConfig::getParameter("artcat2");
     if ($soxId != "-1" && isset($soxId)) {
         $sChosenArtCat2 = $this->_getCategoryTree("artcattree", $sChosenArtCat2);
         // load object
         $oDelivery = oxNew("oxdelivery");
         $oDelivery->load($soxId);
         $this->_aViewData["edit"] = $oDelivery;
         //Disable editing for derived articles
         if ($oDelivery->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
     }
     $aColumns = array();
     $iAoc = oxConfig::getParameter("aoc");
     if ($iAoc == 1) {
         include_once 'inc/delivery_articles.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/delivery_articles.tpl";
     } elseif ($iAoc == 2) {
         include_once 'inc/delivery_categories.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/delivery_categories.tpl";
     }
     return "delivery_articles.tpl";
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:35,代码来源:delivery_articles.php

示例10: render

 /**
  * Executes parent method parent::render(), creates oxorder and
  * oxuserpayment objects, passes data to Smarty engine and returns
  * name of template file "order_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId();
     if ($soxId != "-1" && isset($soxId)) {
         // load object
         $oOrder = oxNew("oxorder");
         $oOrder->load($soxId);
         // paid ?
         if ($oOrder->oxorder__oxpaid->value != "0000-00-00 00:00:00") {
             $oOrder->blIsPaid = true;
             $oOrder->oxorder__oxpaid = new oxField(oxUtilsDate::getInstance()->formatDBDate($oOrder->oxorder__oxpaid->value));
         }
         $this->_aViewData["edit"] = $oOrder;
         $this->_aViewData["paymentType"] = $oOrder->getPaymentType();
         $this->_aViewData["oShipSet"] = $oOrder->getShippingSetList();
         if ($oOrder->oxorder__oxdeltype->value) {
             // order user
             $oUser = oxNew('oxuser');
             $oUser->load($oOrder->oxorder__oxuserid->value);
             // order sum in default currency
             $dPrice = $oOrder->oxorder__oxtotalbrutsum->value / $oOrder->oxorder__oxcurrate->value;
             $this->_aViewData["oPayments"] = oxPaymentList::getInstance()->getPaymentList($oOrder->oxorder__oxdeltype->value, $dPrice, $oUser);
         }
         // any voucher used ?
         $this->_aViewData["aVouchers"] = $oOrder->getVoucherNrList();
     }
     $this->_aViewData["sNowValue"] = date("Y-m-d H:i:s", oxUtilsDate::getInstance()->getTime());
     return "order_main.tpl";
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:37,代码来源:order_main.php

示例11: render

 /**
  * Executes parent method parent::render(), creates delivery category tree,
  * passes data to Smarty engine and returns name of template file "delivery_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->getEditObjectId();
     if (isset($soxId) && $soxId != "-1") {
         $this->_createCategoryTree("artcattree");
         // load object
         $oDelivery = oxNew("oxdelivery");
         $oDelivery->load($soxId);
         $this->_aViewData["edit"] = $oDelivery;
         //Disable editing for derived articles
         if ($oDelivery->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
     }
     $iAoc = oxRegistry::getConfig()->getRequestParameter("aoc");
     if ($iAoc == 1) {
         $oDeliveryArticlesAjax = oxNew('delivery_articles_ajax');
         $this->_aViewData['oxajax'] = $oDeliveryArticlesAjax->getColumns();
         return "popups/delivery_articles.tpl";
     } elseif ($iAoc == 2) {
         $oDeliveryCategoriesAjax = oxNew('delivery_categories_ajax');
         $this->_aViewData['oxajax'] = $oDeliveryCategoriesAjax->getColumns();
         return "popups/delivery_categories.tpl";
     }
     return "delivery_articles.tpl";
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:33,代码来源:DeliveryArticles.php

示例12: render

 /**
  * Executes parent method parent::render(), creates discount category tree,
  * passes data to Smarty engine and returns name of template file "discount_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->getEditObjectId();
     if ($soxId != '-1' && isset($soxId)) {
         // load object
         $oDiscount = oxNew('oxdiscount');
         $oDiscount->load($soxId);
         $this->_aViewData['edit'] = $oDiscount;
         //disabling derived items
         if ($oDiscount->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
         // generating category tree for artikel choose select list
         $this->_getCategoryTree("artcattree", null);
     }
     $aColumns = array();
     $iAoc = oxConfig::getParameter("aoc");
     if ($iAoc == 1) {
         include_once 'inc/discount_articles.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/discount_articles.tpl";
     } elseif ($iAoc == 2) {
         include_once 'inc/discount_categories.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/discount_categories.tpl";
     }
     return 'discount_articles.tpl';
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:35,代码来源:discount_articles.php

示例13: render

 /**
  * Executes parent method parent::render(), creates oxlist object and
  * collects user groups information, passes data to Smarty engine,
  * returns name of template file "news_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     $myConfig = $this->getConfig();
     parent::render();
     // all usergroups
     $oGroups = oxNew("oxlist");
     $oGroups->init("oxgroups");
     $oGroups->selectString("select * from " . getViewName("oxgroups", $this->_iEditLang));
     $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId();
     if ($soxId != "-1" && isset($soxId)) {
         // load object
         $oNews = oxNew("oxnews");
         $oNews->loadInLang($this->_iEditLang, $soxId);
         $oOtherLang = $oNews->getAvailableInLangs();
         if (!isset($oOtherLang[$this->_iEditLang])) {
             // echo "language entry doesn't exist! using: ".key($oOtherLang);
             $oNews->loadInLang(key($oOtherLang), $soxId);
         }
         $this->_aViewData["edit"] = $oNews;
         // remove already created languages
         $this->_aViewData["posslang"] = array_diff(oxRegistry::getLang()->getLanguageNames(), $oOtherLang);
         foreach ($oOtherLang as $id => $language) {
             $oLang = new stdClass();
             $oLang->sLangDesc = $language;
             $oLang->selected = $id == $this->_iEditLang;
             $this->_aViewData["otherlang"][$id] = clone $oLang;
         }
     }
     if (oxRegistry::getConfig()->getRequestParameter("aoc")) {
         $oNewsMainAjax = oxNew('news_main_ajax');
         $this->_aViewData['oxajax'] = $oNewsMainAjax->getColumns();
         return "popups/news_main.tpl";
     }
     return "news_main.tpl";
 }
开发者ID:ioanok,项目名称:symfoxid,代码行数:42,代码来源:news_main.php

示例14: render

 /**
  * Executes parent method parent::render(), creates oxCategoryList and
  * oxshop objects, passes it's data to Smarty engine and returns name of
  * template file "shop_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     $myConfig = $this->getConfig();
     parent::render();
     $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId();
     if ($soxId != "-1" && isset($soxId)) {
         // load object
         $oShop = oxNew("oxshop");
         $isubjlang = oxRegistry::getConfig()->getRequestParameter("subjlang");
         if (!isset($isubjlang)) {
             $isubjlang = $this->_iEditLang;
         }
         if ($isubjlang && $isubjlang > 0) {
             $this->_aViewData["subjlang"] = $isubjlang;
         }
         $oShop->loadInLang($isubjlang, $soxId);
         $this->_aViewData["edit"] = $oShop;
         //oxSession::setVar( "actshop", $soxId);//echo "<h2>$soxId</h2>";
         oxRegistry::getSession()->setVariable("shp", $soxId);
     }
     $this->_aViewData['IsOXDemoShop'] = $myConfig->isDemoShop();
     if (!isset($this->_aViewData['updatenav'])) {
         $this->_aViewData['updatenav'] = oxRegistry::getConfig()->getRequestParameter('updatenav');
     }
     return "shop_main.tpl";
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:33,代码来源:shop_main.php

示例15: render

 /**
  * Executes parent method parent::render(), creates oxCategoryList object,
  * passes it's data to Smarty engine and returns name of template file
  * "selectlist_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $soxId = $this->_aViewData["oxid"] = $this->getEditObjectId();
     if (isset($soxId) && $soxId != "-1") {
         // load object
         $oCountry = oxNew("oxcountry");
         $oCountry->loadInLang($this->_iEditLang, $soxId);
         if ($oCountry->isForeignCountry()) {
             $this->_aViewData["blForeignCountry"] = true;
         } else {
             $this->_aViewData["blForeignCountry"] = false;
         }
         $oOtherLang = $oCountry->getAvailableInLangs();
         if (!isset($oOtherLang[$this->_iEditLang])) {
             // echo "language entry doesn't exist! using: ".key($oOtherLang);
             $oCountry->loadInLang(key($oOtherLang), $soxId);
         }
         $this->_aViewData["edit"] = $oCountry;
         // remove already created languages
         $aLang = array_diff(oxRegistry::getLang()->getLanguageNames(), $oOtherLang);
         if (count($aLang)) {
             $this->_aViewData["posslang"] = $aLang;
         }
         foreach ($oOtherLang as $id => $language) {
             $oLang = new stdClass();
             $oLang->sLangDesc = $language;
             $oLang->selected = $id == $this->_iEditLang;
             $this->_aViewData["otherlang"][$id] = clone $oLang;
         }
     } else {
         $this->_aViewData["blForeignCountry"] = true;
     }
     return "country_main.tpl";
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:42,代码来源:CountryMain.php


注:本文中的oxAdminDetails::render方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。