當前位置: 首頁>>代碼示例>>PHP>>正文


PHP products_minierp::keywordsParseRule方法代碼示例

本文整理匯總了PHP中products_minierp::keywordsParseRule方法的典型用法代碼示例。如果您正苦於以下問題:PHP products_minierp::keywordsParseRule方法的具體用法?PHP products_minierp::keywordsParseRule怎麽用?PHP products_minierp::keywordsParseRule使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在products_minierp的用法示例。


在下文中一共展示了products_minierp::keywordsParseRule方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: explode

     $diameter[] = "{$d} millimeters";
 }
 //foreach($_POST as $key=>$value) $_POST[$key] = $value);
 $products_id = tep_db_prepare_input($_POST['products_id']);
 $make_template = tep_db_prepare_input($_POST['make_template']);
 $pname = tep_db_prepare_input($_POST['pname']);
 $pshortname = tep_db_prepare_input($_POST['pshortname']);
 $pdesc = tep_db_prepare_input($_POST['pdesc']);
 $topicname = tep_db_prepare_input($_POST['topicname']);
 $colname = tep_db_prepare_input($_POST['colname']);
 $height = tep_db_prepare_input($_POST['desc2_he']);
 $width = tep_db_prepare_input($_POST['desc2_wi']);
 $weight = tep_db_prepare_input($_POST['desc2_we']);
 $diameter = $diameter[$_POST['desc2_di']];
 $pkeys = tep_db_prepare_input($_POST['pkeys']);
 $pkeys = $class_pm->keywordsParseRule($pkeys);
 //$pspoint = tep_db_prepare_input($_POST['pspoint']);
 $addtoamvd = tep_db_prepare_input($_POST['addtoamvd']);
 $amvdcatid = tep_db_prepare_input($_POST['amvdcatid']);
 $improved_image = tep_db_prepare_input($_POST['improved_image']);
 $improved_content = tep_db_prepare_input($_POST['improved_content']);
 $gender = tep_db_prepare_input($_POST['gender']);
 $agegroup = tep_db_prepare_input($_POST['agegroup']);
 $att_colls = tep_db_prepare_input($_POST['att_colls']);
 $att_symbols = tep_db_prepare_input($_POST['att_symbols']);
 $att_topics = tep_db_prepare_input($_POST['att_topics']);
 $att_colls_array = explode(",", $att_colls);
 $att_symbols_array = explode(",", $att_symbols);
 $att_topics_array = explode(",", $att_topics);
 $languages_id = '2';
 $draft = new design_draft(null, $products_id);
開發者ID:blasiuscosa,項目名稱:manobo-2008,代碼行數:31,代碼來源:designs-finalize.php

示例2: array

 $name = tep_db_prepare_input($_POST['name']);
 $description = tep_db_prepare_input($_POST['description']);
 $keywords = tep_db_prepare_input($_POST['keywords']);
 $sellingpoints = tep_db_prepare_input($_POST['sellingpoints']);
 $sellingpointsamde = tep_db_prepare_input($_POST['sellingpointsamde']);
 $sellingpointslaid = tep_db_prepare_input($_POST['sellingpointslaid']);
 if ($sellingpointslaid != '') {
     if ($sellingpoints == '' && $languages_id == 3) {
         $sellingpoints = $sellingpointslaid;
     }
 }
 $promoname = tep_db_prepare_input($_POST['promoname']);
 $shortname = tep_db_prepare_input($_POST['shortname']);
 $topicname = tep_db_prepare_input($_POST['topicname']);
 $colname = tep_db_prepare_input($_POST['colname']);
 $keywords = $class_pm->keywordsParseRule($keywords);
 $class_pm->saveDescription($products_id, $languages_id, $name, $description, $keywords, $shortname, $sellingpoints, $promoname, $topicname, $colname, $sellingpointsamde);
 $q = tep_db_query("SELECT jc.jng_sp_id, jc.jng_sp_catalog_id, sp.languages_id FROM jng_sp_catalog jc LEFT JOIN jng_sp sp ON sp.jng_sp_id=jc.jng_sp_id WHERE jc.products_id={$products_id}");
 $sp_list = array();
 $sp_list_amazon = array();
 $sp_list_spid = array();
 $sp_used_selling_points_amde = array_keys(getSalesPartnerUseAmazonLogistic());
 while ($row = tep_db_fetch_array($q)) {
     if (in_array($row['jng_sp_id'], $sp_used_selling_points_amde)) {
         $sp_list_amazon[$row['jng_sp_catalog_id']] = $row['languages_id'];
     } else {
         $sp_list[$row['jng_sp_catalog_id']] = $row['languages_id'];
     }
     $sp_list_spid[$row['jng_sp_catalog_id']] = $row['jng_sp_id'];
 }
 //Update selling points which use non-amazon Selling Points
開發者ID:blasiuscosa,項目名稱:manobo-2008,代碼行數:31,代碼來源:product-detail-description1.php


注:本文中的products_minierp::keywordsParseRule方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。