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) { unset($_POST[$rkw_fields_name]); $_POST[$rkw_fields_name] = $strRkwValue; } //End foreach $_POST[rkw_create_datetime] = date('Y-m-d H:i:s'); print "Insert : " . DataInsertString('backup_keyword') . "<br /><br />";
<?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'; //①serviceid, ② 受注登録フラグ jas_services_save($serviceid, false);