• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP oxAdminDetails类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: 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


示例2: save

 /**
  * Saves main wrapping parameters.
  *
  * @return null
  */
 public function save()
 {
     parent::save();
     $soxId = $this->getEditObjectId();
     $aParams = oxRegistry::getConfig()->getRequestParameter("editval");
     // checkbox handling
     if (!isset($aParams['oxwrapping__oxactive'])) {
         $aParams['oxwrapping__oxactive'] = 0;
     }
     // shopid
     $aParams['oxwrapping__oxshopid'] = oxRegistry::getSession()->getVariable("actshop");
     $oWrapping = oxNew("oxwrapping");
     if ($soxId != "-1") {
         $oWrapping->loadInLang($this->_iEditLang, $soxId);
         // #1173M - not all pic are deleted, after article is removed
         oxRegistry::get("oxUtilsPic")->overwritePic($oWrapping, 'oxwrapping', 'oxpic', 'WP', '0', $aParams, $this->getConfig()->getPictureDir(false));
     } else {
         $aParams['oxwrapping__oxid'] = null;
         //$aParams = $oWrapping->ConvertNameArray2Idx( $aParams);
     }
     $oWrapping->setLanguage(0);
     $oWrapping->assign($aParams);
     $oWrapping->setLanguage($this->_iEditLang);
     $oWrapping = oxRegistry::get("oxUtilsFile")->processFiles($oWrapping);
     $oWrapping->save();
     // set oxid if inserted
     $this->setEditObjectId($oWrapping->getId());
 }
开发者ID:ioanok,项目名称:symfoxid,代码行数:33,代码来源:wrapping_main.php


示例3: save

 /**
  * Saves deliveryset information changes.
  *
  * @return mixed
  */
 public function save()
 {
     parent::save();
     $soxId = $this->getEditObjectId();
     $aParams = oxConfig::getParameter("editval");
     // shopid
     $sShopID = oxSession::getVar("actshop");
     $aParams['oxdeliveryset__oxshopid'] = $sShopID;
     $oDelSet = oxNew("oxdeliveryset");
     if ($soxId != "-1") {
         $oDelSet->loadInLang($this->_iEditLang, $soxId);
     } else {
         $aParams['oxdeliveryset__oxid'] = null;
     }
     // checkbox handling
     if (!isset($aParams['oxdeliveryset__oxactive'])) {
         $aParams['oxdeliveryset__oxactive'] = 0;
     }
     //$aParams = $oDelSet->ConvertNameArray2Idx( $aParams);
     $oDelSet->setLanguage(0);
     $oDelSet->assign($aParams);
     $oDelSet->setLanguage($this->_iEditLang);
     $oDelSet = oxUtilsFile::getInstance()->processFiles($oDelSet);
     $oDelSet->save();
     // set oxid if inserted
     $this->setEditObjectId($oDelSet->getId());
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:32,代码来源:deliveryset_main.php


示例4: save

 /**
  * Saves main orders configuration parameters.
  *
  * @return string
  */
 public function save()
 {
     parent::save();
     $soxId = $this->getEditObjectId();
     $aParams = oxConfig::getParameter("editval");
     // shopid
     $sShopID = oxSession::getVar("actshop");
     $aParams['oxorder__oxshopid'] = $sShopID;
     $oOrder = oxNew("oxorder");
     if ($soxId != "-1") {
         $oOrder->load($soxId);
     } else {
         $aParams['oxorder__oxid'] = null;
     }
     $oOrder->assign($aParams);
     $aDynvalues = oxConfig::getParameter("dynvalue");
     if (isset($aDynvalues)) {
         // #411 Dodger
         $oPayment = oxNew("oxuserpayment");
         $oPayment->load($oOrder->oxorder__oxpaymentid->value);
         $oPayment->oxuserpayments__oxvalue->setValue(oxUtils::getInstance()->assignValuesToText($aDynvalues));
         $oPayment->save();
     }
     // keeps old delivery cost
     $oOrder->reloadDelivery(false);
     // keeps old discount
     $oOrder->reloadDiscount(false);
     $oOrder->recalculateOrder();
     // set oxid if inserted
     $this->setEditObjectId($oOrder->getId());
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:36,代码来源:order_main.php


示例5: 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


示例6: 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


示例7: save

 /**
  * Saves user extended information.
  *
  * @return mixed
  */
 public function save()
 {
     parent::save();
     $soxId = $this->getEditObjectId();
     if (!$this->_allowAdminEdit($soxId)) {
         return false;
     }
     $aParams = oxRegistry::getConfig()->getRequestParameter("editval");
     $oUser = oxNew("oxuser");
     if ($soxId != "-1") {
         $oUser->load($soxId);
     } else {
         $aParams['oxuser__oxid'] = null;
     }
     // checkbox handling
     $aParams['oxuser__oxactive'] = $oUser->oxuser__oxactive->value;
     $blNewsParams = oxRegistry::getConfig()->getRequestParameter("editnews");
     if (isset($blNewsParams)) {
         $oNewsSubscription = $oUser->getNewsSubscription();
         $oNewsSubscription->setOptInStatus((int) $blNewsParams);
         $oNewsSubscription->setOptInEmailStatus((int) oxRegistry::getConfig()->getRequestParameter("emailfailed"));
     }
     $oUser->assign($aParams);
     $oUser->save();
     // set oxid if inserted
     $this->setEditObjectId($oUser->getId());
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:32,代码来源:user_extend.php


示例8: save

 /**
  * Saves news text.
  *
  * @return mixed
  */
 public function save()
 {
     parent::save();
     $soxId = $this->getEditObjectId();
     $aParams = oxRegistry::getConfig()->getRequestParameter("editval");
     $oNews = oxNew("oxnews");
     $iNewsLang = oxRegistry::getConfig()->getRequestParameter("newslang");
     if (!isset($iNewsLang)) {
         $iNewsLang = $this->_iEditLang;
     }
     if ($soxId != "-1") {
         $oNews->loadInLang($iNewsLang, $soxId);
     } else {
         $aParams['oxnews__oxid'] = null;
     }
     // Disable editing for derived items.
     if ($oNews->isDerived()) {
         return;
     }
     $oNews->setLanguage(0);
     $oNews->assign($aParams);
     $oNews->setLanguage($iNewsLang);
     $oNews->save();
     // set oxid if inserted
     $this->setEditObjectId($oNews->getId());
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:31,代码来源:NewsText.php


示例9: save

 /**
  * Speichert den Standort mit den jeweiligen Parameter
  * Saves selection list parameters changes.
  *
  * @return mixed
  */
 public function save()
 {
     parent::save();
     $this->resetContentCache();
     $soxId = $this->getEditObjectId();
     $aParams = oxConfig::getParameter("editval");
     if (!isset($aParams['stores__store_active'])) {
         $aParams['stores__store_active'] = 0;
     }
     $oShoplocator = oxNew("shoplocator");
     if (isset($aParams['stores__store_address'])) {
         $address = str_replace(' ', '', $aParams['stores__store_address']) . "+" . $aParams['stores__store_city'] . "+" . $aParams['stores__store_zip'];
         $pc = file_get_contents('http://maps.googleapis.com/maps/api/geocode/json?address=' . $address . '&sensor=false');
         $output = json_decode($pc);
         $aParams['stores__store_latitude'] = $output->results[0]->geometry->location->lat;
         $aParams['stores__store_logitude'] = $output->results[0]->geometry->location->lng;
     }
     if ($soxId != "-1") {
         $oShoplocator->load($soxId);
     } else {
         $aParams['stores__oxid'] = null;
     }
     //Disable editing for derived articles
     if ($oShoplocator->isDerived()) {
         return;
     }
     $oShoplocator->assign($aParams);
     $oShoplocator->save();
     // set oxid if inserted
     $this->setEditObjectId($oShoplocator->getId());
 }
开发者ID:spoilie,项目名称:OXID_EShop_ShopLocator,代码行数:37,代码来源:admin_shoplocator_main.php


示例10: 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


示例11: render

 /**
  * Executes parent method parent::render(), creates oxOrder, passes
  * it's data to Smarty engine and returns name of template file
  * "order_overview.tpl".
  *
  * @return string
  */
 public function render()
 {
     $myConfig = $this->getConfig();
     parent::render();
     $oOrder = oxNew("oxOrder");
     $oCur = $myConfig->getActShopCurrencyObject();
     $oLang = oxRegistry::getLang();
     $soxId = $this->getEditObjectId();
     if ($soxId != "-1" && isset($soxId)) {
         // load object
         $oOrder->load($soxId);
         $this->_aViewData["edit"] = $oOrder;
         $this->_aViewData["aProductVats"] = $oOrder->getProductVats();
         $this->_aViewData["orderArticles"] = $oOrder->getOrderArticles();
         $this->_aViewData["giftCard"] = $oOrder->getGiftCard();
         $this->_aViewData["paymentType"] = $this->_getPaymentType($oOrder);
         $this->_aViewData["deliveryType"] = $oOrder->getDelSet();
         $sTsProtectsField = 'oxorder__oxtsprotectcosts';
         if ($oOrder->{$sTsProtectsField}->value) {
             $this->_aViewData["tsprotectcosts"] = $oLang->formatCurrency($oOrder->{$sTsProtectsField}->value, $oCur);
         }
     }
     // orders today
     $dSum = $oOrder->getOrderSum(true);
     $this->_aViewData["ordersum"] = $oLang->formatCurrency($dSum, $oCur);
     $this->_aViewData["ordercnt"] = $oOrder->getOrderCnt(true);
     // ALL orders
     $dSum = $oOrder->getOrderSum();
     $this->_aViewData["ordertotalsum"] = $oLang->formatCurrency($dSum, $oCur);
     $this->_aViewData["ordertotalcnt"] = $oOrder->getOrderCnt();
     $this->_aViewData["afolder"] = $myConfig->getConfigParam('aOrderfolder');
     $this->_aViewData["alangs"] = $oLang->getLanguageNames();
     $this->_aViewData["currency"] = $oCur;
     return "order_overview.tpl";
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:42,代码来源:order_overview.php


示例12: save

 /**
  * Saves selection list parameters changes.
  *
  * @return mixed
  */
 public function save()
 {
     parent::save();
     $soxId = $this->getEditObjectId();
     $aParams = oxRegistry::getConfig()->getRequestParameter("editval");
     if (!isset($aParams['oxmanufacturers__oxactive'])) {
         $aParams['oxmanufacturers__oxactive'] = 0;
     }
     // shopid
     $sShopID = oxRegistry::getSession()->getVariable("actshop");
     $aParams['oxmanufacturers__oxshopid'] = $sShopID;
     $oManufacturer = oxNew("oxmanufacturer");
     if ($soxId != "-1") {
         $oManufacturer->loadInLang($this->_iEditLang, $soxId);
     } else {
         $aParams['oxmanufacturers__oxid'] = null;
     }
     //$aParams = $oManufacturer->ConvertNameArray2Idx( $aParams);
     $oManufacturer->setLanguage(0);
     $oManufacturer->assign($aParams);
     $oManufacturer->setLanguage($this->_iEditLang);
     $oManufacturer = oxRegistry::get("oxUtilsFile")->processFiles($oManufacturer);
     $oManufacturer->save();
     // set oxid if inserted
     $this->setEditObjectId($oManufacturer->getId());
 }
开发者ID:ioanok,项目名称:symfoxid,代码行数:31,代码来源:manufacturer_main.php


示例13: 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
     $this->_createCategoryTree("artcattree");
     // accessoires
     $this->_createCategoryTree("artcattree2");
     $soxId = $this->getEditObjectId();
     if ($soxId != "-1" && isset($soxId)) {
         // load object
         $oArticle->load($soxId);
         if ($oArticle->isDerived()) {
             $this->_aViewData['readonly'] = true;
         }
     }
     $iAoc = oxRegistry::getConfig()->getRequestParameter("aoc");
     if ($iAoc == 1) {
         $oArticleCrossellingAjax = oxNew('article_crossselling_ajax');
         $this->_aViewData['oxajax'] = $oArticleCrossellingAjax->getColumns();
         return "popups/article_crossselling.tpl";
     } elseif ($iAoc == 2) {
         $oArticleAccessoriesAjax = oxNew('article_accessories_ajax');
         $this->_aViewData['oxajax'] = $oArticleAccessoriesAjax->getColumns();
         return "popups/article_accessories.tpl";
     }
     return "article_crossselling.tpl";
 }
开发者ID:mibexx,项目名称:oxid_yttutorials,代码行数:35,代码来源:article_crossselling.php


示例14: render

 /**
  * Executes parent method parent::render(), creates oxpricealarm object
  * and passes it's data to Smarty engine. Returns name of template file
  * "pricealarm_main.tpl".
  *
  * @return string
  */
 public function render()
 {
     $config = $this->getConfig();
     parent::render();
     $shopId = $config->getShopId();
     //articles price in subshop and baseshop can be different
     $this->_aViewData['iAllCnt'] = 0;
     $query = "\n            SELECT oxprice, oxartid\n            FROM oxpricealarm\n            WHERE oxsended = '000-00-00 00:00:00' AND oxshopid = '{$shopId}' ";
     $result = oxDb::getDb()->select($query);
     if ($result != false && $result->count() > 0) {
         $simpleCache = array();
         while (!$result->EOF) {
             $price = $result->fields[0];
             $articleId = $result->fields[1];
             if (isset($simpleCache[$articleId])) {
                 if ($simpleCache[$articleId] <= $price) {
                     $this->_aViewData['iAllCnt'] += 1;
                 }
             } else {
                 $article = oxNew("oxArticle");
                 if ($article->load($articleId)) {
                     $articlePrice = $simpleCache[$articleId] = $article->getPrice()->getBruttoPrice();
                     if ($articlePrice <= $price) {
                         $this->_aViewData['iAllCnt'] += 1;
                     }
                 }
             }
             $result->fetchRow();
         }
     }
     return "pricealarm_mail.tpl";
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:39,代码来源:PriceAlarmMail.php


示例15: render

 /**
  * Collects article attributes and selection lists, passes them to Smarty engine,
  * returns name of template file "article_attribute.tpl".
  *
  * @return string
  */
 public function render()
 {
     parent::render();
     $this->_aViewData['edit'] = $oArticle = oxNew('oxarticle');
     $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_attribute.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/article_attribute.tpl";
     } elseif ($iAoc == 2) {
         include_once 'inc/article_selection.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/article_selection.tpl";
     }
     return "article_attribute.tpl";
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:31,代码来源:article_attribute.php


示例16: render

 public function render()
 {
     parent::render();
     $aResult = $this->_getModuleManager()->getResultFile();
     $this->addTplParam('aModules', $aResult);
     return $this->_sThisTemplate;
 }
开发者ID:OXIDprojects,项目名称:debugax,代码行数:7,代码来源:helper_admin_modules.php


示例17: save

 /**
  * Saves category description text to DB.
  *
  * @return mixed
  */
 public function save()
 {
     parent::save();
     $myConfig = $this->getConfig();
     $soxId = $this->getEditObjectId();
     $aParams = oxRegistry::getConfig()->getRequestParameter("editval");
     $oCategory = oxNew("oxCategory");
     $iCatLang = oxRegistry::getConfig()->getRequestParameter("catlang");
     $iCatLang = $iCatLang ? $iCatLang : 0;
     if ($soxId != "-1") {
         $oCategory->loadInLang($iCatLang, $soxId);
     } else {
         $aParams['oxcategories__oxid'] = null;
     }
     //Disable editing for derived items
     if ($oCategory->isDerived()) {
         return;
     }
     $oCategory->setLanguage(0);
     $oCategory->assign($aParams);
     $oCategory->setLanguage($iCatLang);
     $oCategory->save();
     // set oxid if inserted
     $this->setEditObjectId($oCategory->getId());
 }
开发者ID:Alpha-Sys,项目名称:oxideshop_ce,代码行数:30,代码来源:CategoryText.php


示例18: save

 /**
  * Saves deliveryset information changes.
  *
  * @return mixed
  */
 public function save()
 {
     parent::save();
     $soxId = $this->getEditObjectId();
     $aParams = oxRegistry::getConfig()->getRequestParameter("editval");
     $oDelSet = oxNew("oxdeliveryset");
     if ($soxId != "-1") {
         $oDelSet->loadInLang($this->_iEditLang, $soxId);
     } else {
         $aParams['oxdeliveryset__oxid'] = null;
     }
     // checkbox handling
     if (!isset($aParams['oxdeliveryset__oxactive'])) {
         $aParams['oxdeliveryset__oxactive'] = 0;
     }
     //Disable editing for derived articles
     if ($oDelSet->isDerived()) {
         return;
     }
     //$aParams = $oDelSet->ConvertNameArray2Idx( $aParams);
     $oDelSet->setLanguage(0);
     $oDelSet->assign($aParams);
     $oDelSet->setLanguage($this->_iEditLang);
     $oDelSet = oxRegistry::get("oxUtilsFile")->processFiles($oDelSet);
     $oDelSet->save();
     // set oxid if inserted
     $this->setEditObjectId($oDelSet->getId());
 }
开发者ID:Crease29,项目名称:oxideshop_ce,代码行数:33,代码来源:deliveryset_main.php


示例19: 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


示例20: 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 ($soxId != "-1" && isset($soxId)) {
         // 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;
         }
     }
     $aColumns = array();
     $iAoc = oxConfig::getParameter("aoc");
     if ($iAoc == 1) {
         include_once 'inc/deliveryset_payment.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/deliveryset_payment.tpl";
     } elseif ($iAoc == 2) {
         include_once 'inc/deliveryset_country.inc.php';
         $this->_aViewData['oxajax'] = $aColumns;
         return "popups/deliveryset_country.tpl";
     }
     return "deliveryset_payment.tpl";
 }
开发者ID:JulianaSchuster,项目名称:oxid-frontend,代码行数:40,代码来源:deliveryset_payment.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP oxBase类代码示例发布时间:2022-05-23
下一篇:
PHP owa_coreAPI类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap