} else { $is_success = 0; $user_id = mysql_insert_id(); $user_reference_num = func_User_Ref_No($user_id); $is_success = func_update_single_field('cs_companydetails', 'ReferenceNumber', $user_reference_num, 'userId', $user_id, $cnn_cs); if ($is_success == 1) { /************** to sent registration mail to the company*********/ $qry_select_sent = "Select mail_id,mail_sent from cs_registrationmail"; $rst_select_sent = mysql_query($qry_select_sent, $cnn_cs); if (mysql_num_rows($rst_select_sent) > 0) { $mail_sent = mysql_result($rst_select_sent, 0, 1); } $email_from = $email1; $email_to = $email1; $email_subject = "Registration Confirmation"; $transactiontype = func_get_merchant_name($transaction_type); $email_message = func_getreplymailbody_admin($companyname, $username, $password, $user_reference_num, $transactiontype, $how_about_us, $voulmeNumber); if (!func_send_mail($email_from, $email_to, $email_subject, $email_message)) { print "An error encountered while sending the mail."; } if ($mail_sent == 1) { $email_from = $email1; $email_to = $email; $email_subject = "Registration Confirmation"; $email_message = func_getreplymailbody_gateway($companyname, $username, $password, $companyname1, $email1, $url1, $user_reference_num); if (!func_send_mail($email_from, $email_to, $email_subject, $email_message)) { print "An error encountered while sending the mail."; exit; } } }
$urls .= "<p><a href='" . $url['cs_URL'] . "' >" . $url['cs_URL'] . "</a></p>"; } $merchant_name = $arr_qry_company['merchantName']; $toll_free_number = $arr_qry_company['tollFreeNumber']; $retrieval_number = $arr_qry_company['retrievalNumber']; $security_number = $arr_qry_company['securityNumber']; $processor = $arr_qry_company['processor']; $billing_descriptor = $arr_qry_company['billingdescriptor']; $charge_back = $arr_qry_company['chargeback']; $credit = $arr_qry_company['credit']; $transaction_fee = $arr_qry_company['transactionfee']; $voice_authorization_fee = $arr_qry_company['voiceauthfee']; $discount_rate = $arr_qry_company['discountrate']; $reserve = $arr_qry_company['reserve']; $company_status = $arr_qry_company['activeuser']; $merchant_type = func_get_merchant_name($arr_qry_company['transaction_type']); $customer_service_cancel = $arr_qry_company['auto_cancel']; $customer_service_cancel_dt = $arr_qry_company['time_frame']; $shipping_cancel = $arr_qry_company['shipping_cancel']; $shipping_cancel_dt = $arr_qry_company['shipping_timeframe']; $auto_approve = $arr_qry_company['auto_approve']; $volumenumber = $arr_qry_company['volumenumber']; $avgticket = $arr_qry_company['avgticket']; $charge_back_per = $arr_qry_company['chargebackper']; $previous_processing = $arr_qry_company['preprocess']; $recurring_billing = $arr_qry_company['recurbilling']; $currently_processing = $arr_qry_company['currprocessing']; $title = $arr_qry_company['stitle']; $first_name = $arr_qry_company['first_name']; $family_name = $arr_qry_company['family_name']; $date_of_birth = $arr_qry_company['sdateofbirth'];
$mydirLicense = dir($str_current_path . '..//UserDocuments//License//'); $mydirArticles = dir($str_current_path . '..//UserDocuments//Articles//'); $mydirHistory = dir($str_current_path . '..//UserDocuments//History//'); // $mydirContract = dir($str_current_path.'..//UserDocuments//Contract//'); $myLicenceFileList = func_read_file_uploaded_name($mydirLicense, $company_id); $myArticlesFileList = func_read_file_uploaded_name($mydirArticles, $company_id); $myHistoryFileList = func_read_file_uploaded_name($mydirHistory, $company_id); // $myContractFileList = func_read_file_uploaded_name($mydirContract,$company_id); $myLicenceFileArray = split(",", $myLicenceFileList); $myArticlesFileArray = split(",", $myArticlesFileList); $myHistoryFileArray = split(",", $myHistoryFileList); // $myContractFileArray = split(",",$myContractFileList); if ($myLicenceFileList != "" || $myArticlesFileList != "" || $myHistoryFileList != "") { $has_documents = true; } $str_merchant_name = func_get_merchant_name($showval[27]); if ($showval[28] == 1) { $str_bg_color = $str_active_color; } else { $str_bg_color = $str_non_active_color; } if ($str_merchant_name != $str_prev_merchant_name) { $i_active = 0; $i_non_active = 0; switch ($str_merchant_name) { case "Adult": $arr_merchant_types[0] = ""; break; case "Card Swipe": $arr_merchant_types[1] = ""; break;
</tr> <?php for ($i = 1; $i <= $numrows; $i++) { $value = mysql_fetch_row($rst_selectdetails); ?> <tr height ='20'> <td valign="middle" class='cl1'><font face="verdana" size="1"> <?php echo $i; ?> </font></td> <td valign="middle" class='cl1'><font face="verdana" size="1"> <?php echo $value[0]; ?> </font></td> <td valign="middle" class='cl1'><font face="verdana" size="1"> <?php echo func_get_merchant_name($value[1]); ?> </font></td> <td valign="middle" class='cl1'><font face="verdana" size="1"> <?php echo $value[2]; ?> </font></td> <td valign="middle" class='cl1'><font face="verdana" size="1"> <?php echo $value[3]; ?> </font></td> </tr> <?php } ?>
$rst_selectcompany = mysql_query($qry_selectcompany, $cnn_cs); if (mysql_num_rows($rst_selectcompany) != 0) { ?> <table width="100%" border="1" cellspacing="0" cellpadding="0"> <tr bgcolor="#CCCCCC"> <td width="50%" height="20" align="center" valign="middle"><span class="subhd">Company Name</span></td> <td width="20%" align="center" valign="middle"><span class="subhd">Company Type</span></td> <td width="10%" align="center" valign="middle"><span class="subhd">Owed $</span></td> <td width="10%" align="center" valign="middle"><span class="subhd">Invoice</span></td> <td width="10%" align="center" valign="middle"><span class="subhd">Wire Instruction</span></td> </tr> <?php for ($i = 0; $i < mysql_num_rows($rst_selectcompany); $i++) { $iUserId = mysql_result($rst_selectcompany, $i, 0); $strCompanyName = mysql_result($rst_selectcompany, $i, 1); $strCompanyType = func_get_merchant_name(mysql_result($rst_selectcompany, $i, 2)); ?> <tr> <td height="25" valign="middle"><font face="verdana" size="1"><?php echo $strCompanyName; ?> </font></td> <td height="25" valign="middle"><font face="verdana" size="1"><?php echo $strCompanyType; ?> </font></td> <td height="25" align="center" valign="middle"><font face="verdana" size="1"> </font></td> <td align="center" valign="middle"><font face="verdana" size="1"><a href="javascript:func_popup_invoice(<?php echo $iUserId; ?>