Example #1
0
}
//End for
/** ▲ キーワードIDの取得 ***/
print "<p>製品内容</p>";
print "<pre>";
var_dump($arrKwId);
print "</pre>";
//JASへの反映
foreach ($arrKwId as $intKey => $arrKwIdValue) {
    switch ($arrKwIdValue['type']) {
        case 'products':
            #製品固定のとき
            print "固定 : kwid : " . $arrKwIdValue[kw_id] . "<br /><br />";
            //製品固定のJASへの反映
            //1,productid 2,受注登録フラグ
            $intKwId = jas_products_save($arrKwIdValue['item_id'], true);
            break;
        case 'service':
            #製品成果のとき
            print "成果 : kwid : " . $arrKwIdValue[kw_id] . "<br /><br />";
            //1,serviceid 2,受注登録フラグ
            $intKwId = jas_services_save($arrKwIdValue['item_id'], true);
            break;
    }
    //End switch
    #exit;
    /* ▼ * JASのキーワードのクライアントID、クライアント名、顧客担当IDのひもづけ *******/
    if ((int) $intKwId !== 0) {
        require 'cin/SQLConnect_jas.php';
        /** ▼ ** キーワードの履歴を保存する ****/
        foreach ($arrRkw as $rkw_fields_name => $strRkwValue) {
Example #2
0
<?php

//月額固定の登録・更新
// テスト
#ini_set('include_path', '/var/www/vtigercrm');
#require_once('include/utils/utils.php');
#require_once('include/logging.php');
// テスト
#require_once('cin/defalut.php');
require_once 'cin/defalut.php';
require_once 'cin/common/client_common.php';
require_once 'cin/common/charger_common.php';
require_once 'cin/common/keyword_common.php';
//①$productid => productid, ② 受注登録フラグ
jas_products_save($productid, false);