<!-- |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
<!-- Risk Disclosure -->
<table width="700" cellpadding="2" cellspacing="1" border="0" bgcolor="#ffffff">
<tr>
<td colspan="2" class="section_title"><br/><div style="width:700px; border-style:solid; border-color:345691; border-width:0px 0px 1px 0px;">Risk Disclosure</div></td>
</tr>
<tr>
<td align="center">
<div align="left" class="label" style="width:700px;">
<table class="label"><tr><td>
<input type="checkbox" value="1" name="customer_account[risk_disclosure]" <?php echo (isset($_POST['customer_account']['risk_disclosure'])) ? ' checked ':''; ?> /></td><td>
<span class="required">*</span> I have received a copy of this Risk Disclosure Statement and have thoroughly read and fully understood it prior to executing the within Customer Agreement</td></tr></table>
</div>
</td>
</tr>
</table>
<!-- End Risk Disclosure -->
<!-- |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
<!-- Customer Section -->
<table width="700" cellpadding="1" cellspacing="0" border="0" bgcolor="#ffffff">
<tr>
<td colspan="4" class="section_title"><br/><div style="width:700px; border-style:solid; border-color:345691; border-width:0px 0px 1px 0px;">Customer Information</div></td>
</tr>
<tr>
<td colspan="4" align="center"><div align="left" class="label_small" style="width:700px; height:55px;">Customer Information and Identification: As a government regulated futures commission merchant, GFS Securities & Futures is required to obtain certain customer information to verify your identity in accordance with the anti-money laundering procedures required by the USA Patriots Act and set forth in the regulations promulgated by the National Futures Association. In order to approve and open your account, please provide complete information in response to the following application.</div></td>
</tr>
<?php $intCustType = 0; ?>
<?php include( '../applications/app_parts/customer_general_info_trs.php' ); ?>
<tr>
<td colspan="4" class="sub_section_title"><div style="width:700px; border-style:solid; border-color:f0f0f0; border-width:0px 0px 1px 0px;">Physical Address</div></td>
</tr>
<?php include( '../applications/app_parts/customer_physical_add_trs.php' ); ?>
<tr>
<td colspan="4" class="sub_section_title"><div style="width:700px; border-style:solid; border-color:f0f0f0; border-width:0px 0px 1px 0px;">Mailing Address</div></td>
</tr>
<tr>
<td colspan="4">
<div align="left" class="label" style="width:700px;">
<table class="label"><tr><td>
<input id="<?php echo $intCustType; ?>_same_as" type="checkbox" onclick="populateMailingAddress(<?php echo $intCustType; ?>);" /></td><td>
Same as Physical Address</td></tr></table>
</div>
</td>
</tr>
<?php include( '../applications/app_parts/customer_mail_add_trs.php' ); ?>
<tr>
<td colspan="4" class="sub_section_title"><div style="width:700px; border-style:solid; border-color:f0f0f0; border-width:0px 0px 1px 0px;">Employment Information</div></td>
</tr>
<tr>
<td colspan="4" align="center"><div align="left" class="label_small" style="width:700px; height:20px;">If you are unemployed, please type "na" in the required fields below.</div></td>
</tr>
<?php include( '../applications/app_parts/customer_employment_info_trs.php' ); ?>
</table>
<!-- End Customer Section -->
<!-- |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| -->
<!-- Investment Expericence -->
<table width="700" cellpadding="2" cellspacing="1" border="0" bgcolor="#ffffff">
<tr>
<td colspan="2" class="section_title"><div style="width:700px; border-style:solid; border-color:345691; border-width:0px 0px 1px 0px;">Investment Experience</div></td>
</tr>
<tr>
<td colspan="4" align="center"><div align="left" class="label_small" style="width:700px; height:30px;">Please note that your application will not be processed if the following section is not completed in full. Subject to the Privacy Notice set forth in the Customer Agreement, GFS Securities & Futures, Inc. will not disclose, share, sell or divulge any of this information to any external organizations.</div></td>
</tr>
<?php include( '../applications/app_parts/customer_investment_exp_trs.php' ); ?>
<tr>
<td colspan="4"><br/></td>
</tr>
</table>
<!-- End Investment Expericence -->
function populateMailingAddress( customer_type ) {
var same = document.getElementById(customer_type + '_same_as');
var ma1 = document.getElementById(customer_type + '_mail_add_one');
var ma2 = document.getElementById(customer_type + '_mail_add_two');
var ma3 = document.getElementById(customer_type + '_mail_add_three');
var ma = document.getElementById(customer_type + '_mail_apt');
var mc = document.getElementById(customer_type + '_mail_city');
var ms = document.getElementById(customer_type + '_mail_state');
var mco = document.getElementById(customer_type + '_mail_country');
var mz = document.getElementById(customer_type + '_mail_zip');
if( same.checked == true ) {
var pa1 = document.getElementById(customer_type + '_phys_add_one');
var pa2 = document.getElementById(customer_type + '_phys_add_two');
var pa3 = document.getElementById(customer_type + '_phys_add_three');
var pa = document.getElementById(customer_type + '_phys_apt');
var pc = document.getElementById(customer_type + '_phys_city');
var ps = document.getElementById(customer_type + '_phys_state');
var pco = document.getElementById(customer_type + '_phys_country');
var pz = document.getElementById(customer_type + '_phys_zip');
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bank_zip'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' bank zip code or postal code';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bank_country'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' bank country';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bank_phone'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' bank phone number';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bank_name'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' bank name';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bank_reference'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' a contact person at your bank';
}
// Fincial Questionaire Validation
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bankruptcy'] )) {
$arrErrors[] = 'Please answer question 1 of the Financial Questionaire '. $strForCustomer;
}
else if( 'Yes' == $_POST['customer'][$intCustomerType]['bankruptcy'] && 0 == strlen( $_POST['customer'][$intCustomerType]['bankruptcy_details'] )) {
$arrErrors[] = 'You answered "Yes" to quesiton 1 of the Financial Questionaire'.$strForCustomer.', please provide details';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['other_interest'] )) {
$arrErrors[] = 'Please answer question 2 of the Financial Questionaire '. $strForCustomer;
}
else if( 'Yes' == $_POST['customer'][$intCustomerType]['other_interest'] && 0 == strlen( $_POST['customer'][$intCustomerType]['other_interest_details'] )) {
$arrErrors[] = 'You answered "Yes" to quesiton 2 of the Financial Questionaire'.$strForCustomer.', please provide details';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['other_poa'] )) {
$arrErrors[] = 'Please answer question 3 of the Financial Questionaire '. $strForCustomer;
}
else if( 'Yes' == $_POST['customer'][$intCustomerType]['other_poa'] && 0 == strlen( $_POST['customer'][$intCustomerType]['other_poa_details'] )) {
$arrErrors[] = 'You answered "Yes" to quesiton 3 of the Financial Questionaire'.$strForCustomer.', please provide details';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['previous_gfs_client'] )) {
$arrErrors[] = 'Please answer question 4 of the Financial Questionaire '. $strForCustomer;
}
else if( 'Yes' == $_POST['customer'][$intCustomerType]['previous_gfs_client'] && ( 0 == strlen( $_POST['customer'][$intCustomerType]['previous_gfs_account_name']) || 0 == strlen( $_POST['customer'][$intCustomerType]['previous_gfs_account'] ))) {
$arrErrors[] = 'You answered "Yes" to quesiton 4 of the Financial Questionaire'.$strForCustomer.', please provide entity name and account number';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['other_brokerage'] )) {
$arrErrors[] = 'Please answer question 5 of the Financial Questionaire '. $strForCustomer;
}
else if( 'Yes' == $_POST['customer'][$intCustomerType]['other_brokerage'] && 0 == strlen( $_POST['customer'][$intCustomerType]['other_brokerage_name'] )) {
$arrErrors[] = 'You answered "Yes" to quesiton 5 of the Financial Questionaire'.$strForCustomer.', please provide details';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['previous_complaint'] )) {
$arrErrors[] = 'Please answer question 7 of the Financial Questionaire '. $strForCustomer;
}
else if( 'Yes' == $_POST['customer'][$intCustomerType]['previous_complaint'] && 0 == strlen( $_POST['customer'][$intCustomerType]['previous_complaint_details'] )) {
$arrErrors[] = 'You answered "Yes" to quesiton 7 of the Financial Questionaire'.$strForCustomer.', please provide details';
}
} // End foreach
// Customer Account validation
if( FALSE == isset($_POST['customer_account']['risk_disclosure'] )) {
$arrErrors[] = 'Please review and make sure that you understand the Risk Disclosure Statement';
}
if( FALSE == isset($_POST['customer_account']['customer_account_letter'] )) {
$arrErrors[] = 'Please review and make sure that you understand the Customer Account Letter';
}
if( FALSE == isset($_POST['customer_account']['customer_agreement'] )) {
$arrErrors[] = 'Please review and make sure that you understand the Customer Agreement';
}
if( FALSE == isset($_POST['customer_account']['electronic_trading_agreement'] )) {
$arrErrors[] = 'Please review and make sure that you understand the Electronic Trading Agreement';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['gender'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' gender';
}
/*
if( 0 == strlen( $_POST['customer'][$intCustomerType]['ssn'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' SSN or Tax ID';
}
*/
if( 0 == strlen( $_POST['customer'][$intCustomerType]['dependants'] )) {
$arrErrors[] = 'Please enter the number of dependants '.$strForCustomer.'';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['country_citizenship'] )) {
$arrErrors[] = 'Please enter the country of citizenship '.$strForCustomer;
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bus_address_one'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' business address';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bus_city'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' business city';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bus_state'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' business state';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bus_zip'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' business zip code or postal code';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bus_country'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' business country';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bus_phone'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' business phone number';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bus_position'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' business position';
}
if( 0 == strlen( $_POST['customer'][$intCustomerType]['bus_years_employed'] )) {
$arrErrors[] = 'Please enter '.$strCustomer.' years employed at current employment';
}
<?php
// THIS SECTION IS USED TO EDIT FORMS FROM THE VIEW SECTION OF CUSTOMER
if( TRUE == isset( $_REQUEST['edit_forms'] ) && $_REQUEST['edit_forms'] == 1 ) {
// edit the customer
$strTimingFields = ', updated_on, updated_by';
$strTimingData = '+&&+'.mktime().'+&&+'.$_SESSION['id'];
if( 0 < mysql_edit('customer_accounts', $strFields, $strValues, 'id=\''.$_REQUEST['customer_account']['id'].'\'', '+&&+')) {
header( 'Location: '.$_SERVER['PHP_SELF'].'?inc_name=view_customer&customer_account_id='.$_REQUEST['customer_account']['id'] );
exit;
}
}
// END - EDIT FORMS FROM THE VIEW SECTION OF CUSTOMER
// Validate the application if the submit button was pushed
$arrErrors = array();
$strErrorDivDisplay = 'none';
$arrCustomer = array();
if (isset($_POST['edit_application'])) {
if( TRUE == $boolSuccess ) {
header( 'Location: '. $_SERVER['PHP_SELF'].'?inc_name=edit_customer&cid='.$_REQUEST['cid'] );
exit;
}
else {
$strErrorDivDisplay = '';
$arrCustomer['customer'] = $_POST['customer'];
$arrCustomer['confirm_email_primary'] = $_POST['confirm_email_primary'];
$arrErrors[] = 'Your application could not be completed. Please try again later.';
// Strip out the slashes for redisplay if that is the case
foreach( $_REQUEST['customer'] as $key => $value ) {
$_REQUEST['customer'][$key] = stripslashes($value);
}
}
}
}