File: /www/exchange0old/exchange/cache/%%68^68E^68E84746%%addoriginatorcurrency.html.php
<?php /* Smarty version 2.6.19, created on 2024-07-10 11:23:20
compiled from originators/addoriginatorcurrency.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<script src="<?php echo $_SESSION['base_url']; ?>
/js/jquery.maskedinput.min.js" type="text/javascript"></script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td class="login_bg" align="left" valign="middle">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="" align="left" valign="middle" class="login_bg_t">Exchange Trade Centre | My Application</td>
<td width="" align="left" valign="middle" class="txt_11">Originator Organisation ID: <?php echo $_SESSION['user']['org_ref_id']; ?>
</td>
<td width="" align="right" valign="middle" class="txt_11"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'originator_top_dashboard_links.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" valign="top" class="about_c">
<table width="100%" border="0" cellspacing="5" cellpadding="5">
<tr>
<td width="18%" align="left" valign="top"><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'left_sidebar.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?></td>
<td width="82%" align="right" valign="top">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td valign="top" align="left" class="hdr_center">
<?php if (isset ( $_GET['flg'] )): ?>
<form action="index.php?do=saveoriginatorcurrency&flg=<?php echo $_GET['flg']; ?>
" method="post">
<?php else: ?>
<form action="index.php?do=saveoriginatorcurrency" method="post">
<?php endif; ?>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top" align="left" class="inves_top1">Add New Currency</td>
<td valign="top" align="right" class="inves_top1"> </td>
</tr>
<tr><td colspan="2">
<?php if (! empty ( $this->_tpl_vars['result'] )): ?>
<div class="success-msgbox"><?php echo $this->_tpl_vars['result']; ?>
</div>
<?php endif; ?>
</td></tr>
<tr class="row1">
<td width="37%" valign="top" align="left"> Organisation Name :</td>
<td width="53%" valign="top" align="left"><input type="hidden" value="<?php echo $this->_tpl_vars['organisation']['organisation_id']; ?>
" name="organisation_id"><?php echo $this->_tpl_vars['organisation']['organisation_name']; ?>
<span class="txt_11_red"><?php echo $this->_tpl_vars['errmsg']['organisation_name']; ?>
</span></td>
</tr>
<tr class="row2">
<td width="37%" valign="top" align="left"><span class="txt_11_red">*</span> Currency :</td>
<td width="53%" valign="top" align="left">
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../admin/templates/common/currencies.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</td>
</tr>
<tr class="row1" style="display: none;">
<td width="37%" valign="top" align="left"> Use Existing Bank Account :</td>
<td width="53%" valign="top" align="left">
<input type="radio" name="bank_account" id="bank_account" value="1" style="vertical-align:middle;" onclick="switchForm(this.value);" /> Yes
<input type="radio" name="bank_account" id="bank_account" value="2" style="vertical-align:middle;" checked="true" onclick="switchForm(this.value);" <?php if ($this->_tpl_vars['values']['bank_account'] == '2'): ?>checked="true"<?php endif; ?> /> Add New Bank Account
<br/>
<span style="color: rgb(255, 0, 0);"><?php echo $this->_tpl_vars['errmsg']['organisation_name']; ?>
</span>
</td>
</tr>
<tbody id="existing_bank" style="display:none;">
<tr class="grays_bg">
<td valign="middle" align="left" colspan="2"><b>Bank Details </b></td>
</tr>
<tr class="row1">
<td width="37%" valign="top" align="left"> Bank Name :</td>
<td width="53%" valign="top" align="left"><?php echo $this->_tpl_vars['bank']['branch_one']['bank_name']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Address Line 1 :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_address']['address_line_one']; ?>
</td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Address Line 2 :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_address']['address_line_two']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left"> City/Town :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_address']['address_city']; ?>
</td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Post code :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_address']['address_zipcode']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Area/County :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_address']['address_state']; ?>
</td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Country :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_address']['country_name']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Phone Number :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_address']['address_phone_country']; ?>
<?php echo $this->_tpl_vars['bank']['bank_address']['address_phone_code']; ?>
<?php echo $this->_tpl_vars['bank']['bank_address']['address_phone']; ?>
</td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Fax Number :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_address']['address_fax_country']; ?>
<?php echo $this->_tpl_vars['bank']['bank_address']['address_fax_code']; ?>
<?php echo $this->_tpl_vars['bank']['bank_address']['address_fax']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Email Address :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_address']['address_email']; ?>
</td>
</tr>
<tr class="grays_bg">
<td valign="middle" align="left" colspan="2"><b>Bank Account Details</b></td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Bank Account Name:</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['other_bank_account']['0']['account_name']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Bank Account Number:</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['other_bank_account']['0']['account_no']; ?>
</td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Sort Code:</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['other_bank_account']['0']['sort_code']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left"> IBAN Number:</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['other_bank_account']['0']['iban_code']; ?>
</td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Swift Code:</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['other_bank_account']['0']['swift_code']; ?>
</td>
</tr>
<tr class="grays_bg">
<td valign="middle" align="left" colspan="2"><b>Contact Details in Bank</b></td>
</tr>
<tr class="row1">
<td valign="top" align="left"> First Name:</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['branch_one']['first_name']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Last Name :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['branch_one']['last_name']; ?>
</td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Phone Number :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_contact_address']['address_phone_country']; ?>
<?php echo $this->_tpl_vars['bank']['bank_contact_address']['address_phone_code']; ?>
<?php echo $this->_tpl_vars['bank']['bank_contact_address']['address_phone']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Email Address :</td>
<td valign="top" align="left"><?php echo $this->_tpl_vars['bank']['bank_contact_address']['address_email']; ?>
</td>
</tr>
</tbody>
<tbody id="new_bank" style="display:none;">
<tr class="grays_bg">
<td valign="middle" align="left" colspan="2"><b>Bank Details</b></td>
</tr>
<tr class="row1">
<td valign="top" align="left"><span class="txt_11_red">*</span> Bank Name: <br><span class="txt_11_cute"> Selected by Primay Trading Country</span></td>
<td valign="top" align="left"><span id="dropBank" ><select class="cmb_bx1" name="bank_name" id="bank_name" onchange="bank_news(this.value);">
<option value="">Please Choose</option>
</select>
</span><span id="otherBank"></span><br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_name']; ?>
</span></td>
</tr>
<tr class="row2">
<td valign="top" align="left"><span class="txt_11_red">*</span> Address Line 1:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['bank_orgcaddr1']; ?>
" name="bank_orgcaddr1" id="bank_orgcaddr1"><br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgcaddr1']; ?>
</span></td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Address Line 2:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['bank_orgc_addr2']; ?>
" name="bank_orgc_addr2" id="bank_orgc_addr2">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_addr2']; ?>
</span></td>
</tr>
<tr class="row2">
<td valign="top" align="left"><span class="txt_11_red">*</span> City/Town:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['bank_orgc_city']; ?>
" name="bank_orgc_city" id="bank_orgc_city">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_city']; ?>
</span></td>
</tr>
<tr class="row1">
<td valign="top" align="left"><span class="txt_11_red">*</span> Post code:</td>
<td valign="top" align="left"><input type="text" class="text_b" maxlength="8" size="8" name="bank_orgc_pc" id="bank_orgc_pc" value="<?php echo $this->_tpl_vars['values']['bank_orgc_pc']; ?>
">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_pc']; ?>
</span></td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Area/County:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['bank_orgc_state']; ?>
" name="bank_orgc_state" id="bank_orgc_state">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_state']; ?>
</span></td>
</tr>
<tr class="row1">
<td valign="top" align="left"><span class="txt_11_red">*</span> Country:</td>
<td valign="top" align="left">
<?php $this->assign('country_name', 'bank_orgc_country'); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../admin/templates/common/countries.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_country']; ?>
</span>
</td>
</tr>
<tr class="row7 clsrm">
<td valign="top" align="left" style="padding-left:10px;"><span class="txt_11_red">*</span> Phone Number:</td>
<td valign="top" align="left" style="padding-left:8px;"><table cellspacing="3" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td align="left" width="12%" valign="top"><input type="text" class="text_c_code" maxlength="5" size="5" name="bank_orgc_ph_country" id="bank_orgc_ph_country" value="<?php if ($this->_tpl_vars['values']['bank_orgc_ph_country'] == ''): ?>00353<?php else: ?><?php echo $this->_tpl_vars['values']['bank_orgc_ph_country']; ?>
<?php endif; ?>">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_ph_country']; ?>
</span></td>
<td align="left" width="9%" valign="top"><input type="text" class="text_area_code" maxlength="3" size="3" name="bank_orgc_ph_area" id="bank_orgc_ph_area" value="<?php echo $this->_tpl_vars['values']['bank_orgc_ph_area']; ?>
">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_ph_area']; ?>
</span></td>
<td align="left" width="79%" valign="top"><input type="text" class="text_ph_code" maxlength="8" size="8" name="bank_orgc_ph_pn" id="bank_orgc_ph_pn" value="<?php echo $this->_tpl_vars['values']['bank_orgc_ph_pn']; ?>
"><br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_ph_pn']; ?>
</span></td>
</tr>
<tr>
<td align="left" valign="top" class="txt_11_cute">Country</td>
<td align="left" valign="top" class="txt_11_cute">Area</td>
<td align="left" valign="top" class="txt_11_cute">Phone Number</td>
</tr>
</tbody>
</table></td>
</tr>
<tr class="row6 clsrm">
<td valign="top" align="left" style="padding-left:10px;"> Fax Number:</td>
<td valign="top" align="left" style="padding-left:8px;"><table cellspacing="3" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td align="left" width="12%" valign="top"><input type="text" class="text_c_code" maxlength="5" size="5" name="bank_orgc_fn_country" id="bank_orgc_fn_country" value="<?php if ($this->_tpl_vars['values']['bank_orgc_fn_country'] == ''): ?>00353<?php else: ?><?php echo $this->_tpl_vars['values']['bank_orgc_fn_country']; ?>
<?php endif; ?>">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_fn_country']; ?>
</span></td>
<td align="left" width="9%" valign="top"><input type="text" class="text_area_code" maxlength="3" size="3" name="bank_orgc_fn_area" id="bank_orgc_fn_area" value="<?php echo $this->_tpl_vars['values']['bank_orgc_fn_area']; ?>
">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_fn_area']; ?>
</span></td>
<td align="left" width="79%" valign="top"><input type="text" class="text_ph_code" maxlength="8" size="8" name="bank_orgc_fn_pn" id="bank_orgc_fn_pn" value="<?php echo $this->_tpl_vars['values']['bank_orgc_fn_pn']; ?>
"><br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_fn_pn']; ?>
</span></td>
</tr>
<tr>
<td align="left" valign="top" class="txt_11_cute">Country</td>
<td align="left" valign="top" class="txt_11_cute">Area</td>
<td align="left" valign="top" class="txt_11_cute">Phone Number</td>
</tr>
</tbody>
</table></td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Email Address:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['bank_orgc_email']; ?>
" name="bank_orgc_email" id="bank_orgc_email">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_orgc_email']; ?>
</span></td>
</tr>
<tr class="grays_bg">
<td valign="middle" align="left" colspan="2"><b>Bank Account Details </b></td>
</tr>
<tr class="row1">
<td valign="top" align="left"><span class="txt_11_red">*</span> Bank Account Name:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['account_name']; ?>
" name="account_name" id="account_name">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['account_name']; ?>
</span></td>
</tr>
<tr class="row2">
<td valign="top" align="left"><span class="txt_11_red">*</span> Bank Account Number:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['account_no']; ?>
" name="account_no" id="account_no">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['account_no']; ?>
</span></td>
</tr>
<tr class="row1">
<td valign="top" align="left"><span class="txt_11_red">*</span> Sort Code:</td>
<td valign="top" align="left"><input type="text" size="8" maxlength="8" class="text_ph_code" value="<?php echo $this->_tpl_vars['values']['sort_code']; ?>
" name="sort_code" id="sort_code" ><br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['sort_code']; ?>
</span></td>
</tr>
<tr class="row2">
<td valign="top" align="left"> IBAN Number:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['iban_code']; ?>
" name="iban_code" id="iban_code">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['iban_code']; ?>
</span></td>
</tr>
<tr class="row1">
<td valign="top" align="left"> Swift Code:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['swift_code']; ?>
" name="swift_code" id="swift_code">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['swift_code']; ?>
</span></td>
</tr>
<tr class="grays_bg">
<td valign="middle" align="left" colspan="2"><b>Contact Details in Bank </b></td>
</tr>
<tr class="row1">
<td valign="top" align="left"> First Name:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['bank_c_fname']; ?>
" name="bank_c_fname" id="bank_c_fname">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_c_fname']; ?>
</span></td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Last Name:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['bank_c_lname']; ?>
" name="bank_c_lname" id="bank_c_lname">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_c_lname']; ?>
</span></td>
</tr>
<tr class="row6 clsrm">
<td valign="top" align="left" style="padding-left:10px;"> Phone Number:</td>
<td valign="top" align="left" style="padding-left:8px;"><table cellspacing="3" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td align="left" width="12%" valign="top"><input type="text" class="text_c_code" maxlength="5" size="5" name="bank_c_ph_country" id="bank_c_ph_country" value="<?php if ($this->_tpl_vars['values']['bank_c_ph_country'] == ''): ?>00353<?php else: ?><?php echo $this->_tpl_vars['values']['bank_c_ph_country']; ?>
<?php endif; ?>">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_c_ph_country']; ?>
</span></td>
<td align="left" width="9%" valign="top"><input type="text" class="text_area_code" maxlength="3" size="3" name="bank_c_ph_area" id="bank_c_ph_area" value="<?php echo $this->_tpl_vars['values']['bank_c_ph_area']; ?>
">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_c_ph_area']; ?>
</span></td>
<td align="left" width="79%" valign="top"><input type="text" class="text_ph_code" maxlength="8" size="8" name="bank_c_ph_pn" id="bank_c_ph_pn" value="<?php echo $this->_tpl_vars['values']['bank_c_ph_pn']; ?>
"><br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_c_ph_pn']; ?>
</span></td>
</tr>
<tr>
<td align="left" valign="top" class="txt_11_cute">Country</td>
<td align="left" valign="top" class="txt_11_cute">Area</td>
<td align="left" valign="top" class="txt_11_cute">Phone Number</td>
</tr>
</tbody>
</table></td>
</tr>
<tr class="row2">
<td valign="top" align="left"> Email Address:</td>
<td valign="top" align="left"><input type="text" class="text_b" value="<?php echo $this->_tpl_vars['values']['bank_c_email']; ?>
" name="bank_c_email" id="bank_c_email">
<br>
<span style="color: rgb(255, 0, 0);">
<?php echo $this->_tpl_vars['errmsg']['bank_c_email']; ?>
</span></td>
</tr>
</tbody>
<tr class="row1">
<td width="37%" valign="top" align="left"> </td>
<td width="53%" valign="top" align="left">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td width="23%" valign="middle" align="center"><input type="submit" class="login_bttn" value="Submit" name=""></td>
<td width="8%" valign="middle" align="center"></td>
<td width="69%" valign="middle" align="left" class="txt_11_red"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</tbody></table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" valign="top"> </td>
</tr>
</table>
<script type="text/javascript">
jQuery(function($){
$("#sort_code").mask("99-99-99");
});
</script>
<script>
$(document).ready(function(){
var chk = $('#bank_account:checked').val();
switchForm(chk);
});
function switchForm(chk){
// var chk = $('#bank_account').val();
if(chk=='1'){
$('#existing_bank').show();
$('#new_bank').hide();
}else{
$('#existing_bank').hide();
$('#new_bank').show();
}
}
<?php if (( $this->_tpl_vars['values']['bank_orgc_country'] != '' )): ?>
//Durin validation: Change Nace by Nace Group Id
$.post(
"?do=getbankbycountry",
{id: "<?php echo $this->_tpl_vars['values']['bank_orgc_country']; ?>
",label: "bank_name",
num: "<?php echo $this->_tpl_vars['values']['bank_name']; ?>
"},
function(responseText1){
$("#dropBank").html(responseText1);
},
"html"
);
<?php endif; ?>
//Change State by Country
$("#bank_orgc_country").change(function(){
$.post(
"?do=getbankbycountry",
{id: $("#bank_orgc_country").val(),label: "bank_name",
num: "<?php echo $this->_tpl_vars['values']['bank_name']; ?>
"},
function(responseText1){
$("#dropBank").html(responseText1);
document.getElementById('otherBank').innerHTML = '';
},
"html"
);
});
function bank_news(str) {
//var bank_val = '<?php echo $this->_tpl_vars['values']['bank_name']; ?>
';
var val = '<?php echo $this->_tpl_vars['values']['bank_new']; ?>
';
if(str == "0"){
var htm = '<br><br><input type="text" id="bank_new" name="bank_new" value="'+val+'" class="text_b">';
document.getElementById('otherBank').innerHTML = htm;
}else{
document.getElementById('otherBank').innerHTML = '';
}
}
<?php if (( $this->_tpl_vars['values']['bank_name'] == '0' )): ?>
var htm = '<br><br><input type="text" id="bank_new" name="bank_new" value="<?php echo $this->_tpl_vars['values']['bank_new']; ?>
" class="text_b">';
document.getElementById('otherBank').innerHTML = htm;
<?php endif; ?>
</script>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>