$cd_custom_contract = isset($HTTP_POST_VARS['cd_custom_contract']) ? quote_smart($HTTP_POST_VARS['cd_custom_contract']) : ""; $cd_custom_orderpage = isset($HTTP_POST_VARS['cd_custom_orderpage']) ? quote_smart($HTTP_POST_VARS['cd_custom_orderpage']) : ""; $gateway_id = isset($HTTP_POST_VARS['gateway_id']) ? quote_smart($HTTP_POST_VARS['gateway_id']) : ""; if (!$gateway_id) { $gateway_id = $_SESSION['gw_id']; } if ($trans_activity) { $bank_check = 18; } if ($cd_pay_bimonthly == 'bimonthly') { $cd_payperiod = 14; } //if($cd_pay_bimonthly=='trimonthly') $cd_payperiod = 10; $send_reseller_rates_email = isset($HTTP_POST_VARS['send_reseller_rates_email']) ? quote_smart($HTTP_POST_VARS['send_reseller_rates_email']) : ""; $send_merchant_rates_email = isset($HTTP_POST_VARS['send_merchant_rates_email']) ? quote_smart($HTTP_POST_VARS['send_merchant_rates_email']) : ""; func_company_ext_entry($userid, $master_currency, $visa_currency, $scanorder_merchantid, $scanorder_password, $customerservice_email, $cnn_cs); if ($strVoiceauthFee == "") { $strVoiceauthFee = 0; } if ($strChargeBack == "") { $strChargeBack = 0; } if ($strCredit == "") { $strCredit = 0; } if ($strDiscountRate == "") { $strDiscountRate = 0; } if ($strTransactionFee == "") { $strTransactionFee = 0; }
} } $invalidlogin = ""; $sessionlogin = isset($HTTP_SESSION_VARS["sessionlogin"]) ? $HTTP_SESSION_VARS["sessionlogin"] : ""; $username = isset($HTTP_POST_VARS['username']) ? quote_smart($HTTP_POST_VARS['username']) : ""; $volume = isset($HTTP_POST_VARS['volume']) ? quote_smart($HTTP_POST_VARS['volume']) : ""; $avgticket = isset($HTTP_POST_VARS['avgticket']) ? quote_smart($HTTP_POST_VARS['avgticket']) : ""; $chargeper = isset($HTTP_POST_VARS['chargeper']) ? quote_smart($HTTP_POST_VARS['chargeper']) : ""; $rad_order_type = isset($HTTP_POST_VARS['rad_order_type']) ? quote_smart($HTTP_POST_VARS['rad_order_type']) : ""; $prepro = isset($HTTP_POST_VARS['prepro']) ? quote_smart($HTTP_POST_VARS['prepro']) : ""; $rebill = isset($HTTP_POST_VARS['rebill']) ? quote_smart($HTTP_POST_VARS['rebill']) : ""; $currpro = isset($HTTP_POST_VARS['currpro']) ? quote_smart($HTTP_POST_VARS['currpro']) : ""; $billingdesc = isset($HTTP_POST_VARS['billingdesc']) ? quote_smart($HTTP_POST_VARS['billingdesc']) : ""; $mastercurrency = isset($HTTP_POST_VARS['currencymaster']) ? quote_smart($HTTP_POST_VARS['currencymaster']) : ""; $visacurrency = isset($HTTP_POST_VARS['currencyvisa']) ? quote_smart($HTTP_POST_VARS['currencyvisa']) : ""; func_company_ext_entry($sessionlogin, $mastercurrency, $visacurrency, $cnn_cs); if ($volume == "") { $volume = 0; } if ($avgticket == "") { $avgticket = 0; } if ($chargeper == "") { $chargeper = 0; } $str_update_query = "update cs_companydetails set avgticket = '{$avgticket}', chargebackper = '{$chargeper}', "; $str_update_query .= "transaction_type = '{$rad_order_type}', preprocess = '{$prepro}', recurbilling = '{$rebill}', currprocessing = '{$currpro}', billingdescriptor='{$billingdesc}' "; $str_update_query .= "where userid={$sessionlogin}"; if (!mysql_query($str_update_query, $cnn_cs)) { echo mysql_errno() . ": " . mysql_error() . "<BR>"; echo "Cannot execute update query.";
exit; } else { $rst_currencydetails = mysql_fetch_array($rst_currency); $mastercurrency = $rst_currencydetails[1]; $visacurrency = $rst_currencydetails[2]; } if ($show_select_value = mysql_fetch_array($run_select_qry)) { $str_update_query = "update cs_companydetails set company_type = '{$company_type}', other_company_type = '{$other_company_type}', customer_service_phone = '{$customerservice_phone}', "; $str_update_query .= "email = '{$email}' where userid={$sessionlogin}"; if (!mysql_query($str_update_query, $cnn_cs)) { echo mysql_errno() . ": " . mysql_error() . "<BR>"; echo "Cannot execute update query."; exit; } if ($customerservice_email != "") { func_company_ext_entry($sessionlogin, $customerservice_email, $cnn_cs); } } } include 'includes/header.php'; ?> <script language="JavaScript" src="scripts/general.js"></script> <script language="javascript"> function HelpWindow() { advtWnd=window.open("aboutprocess.htm","Help","'status=1,scrollbars=1,width=500,height=450,left=0,top=0'"); advtWnd.focus(); } </script> <?php beginTable(); ?>