File: //www/exchange0old/exchange/cache/%%20^20B^20B18ED0%%edit_debtor.html.php
<?php /* Smarty version 2.6.19, created on 2024-07-16 16:38:48
compiled from debtors/edit_debtor.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'ucfirst', 'debtors/edit_debtor.html', 107, false),)), $this); ?>
<?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);
?>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td align="left" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="left" valign="middle" class="login_bg"><table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td align="left" width="" valign="middle" class="login_bg_t">Exchange Trade Centre | My Information Account</td>
<td width="" align="left" valign="middle" class="txt_11">Originator Organisation ID: <?php echo $_SESSION['user']['org_ref_id']; ?>
</td>
<td align="right" width="" 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>
</tbody>
</table>
<tr>
<td align="center" valign="top" class="about_c"><table cellspacing="5" cellpadding="5" border="0" width="100%">
<tbody>
<tr>
<td align="left" width="18%" 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 align="right" width="82%" valign="top"><table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td align="left" valign="top" class="hdr_center">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tbody>
<tr>
<td align="left" valign="top" class="inves_top1" colspan="4">
<table cellpadding="0" cellspacing="0" border="0" width="99%">
<tr>
<td align="left" style="color:#FFF;">
<?php echo $this->_tpl_vars['debtor']['debtor_name']; ?>
Information Account</td>
</tr>
</table>
</td>
</tr>
<tr>
<td valign="top" align="left" colspan="4" ><?php if (! empty ( $this->_tpl_vars['result'] )): ?>
<div class="success-msgbox">
<?php echo $this->_tpl_vars['result']; ?>
</div>
<?php endif; ?>
<div id="tabs-debtor">
<?php if ($this->_tpl_vars['debtor']['type'] == 'debtor'): ?>
<ul>
<li><a class="btn-tab-information" href="#tab-information">Information</a></li>
<li><a class="btn-tab-contacts" href="#tab-debtor-contacts">Contacts</a></li>
</ul>
<?php endif; ?>
<div id="tab-information">
<form action="?do=debtorupdate&id=<?php echo $_GET['id']; ?>
" method="POST" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" class="inves_top3" colspan="4">Counterparty</td>
</tr>
<tr class="row1">
<td align="left" width="1%" valign="top"><span class="txt_11_red">*</span></td>
<td align="left" width="27%" valign="top">Name :</td>
<td align="left" width="71%" valign="top"><input type="text" size="30" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['value']['deb_name'] != ''): ?><?php echo $this->_tpl_vars['value']['deb_name']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['debtor_name']; ?>
<?php endif; ?>" name="deb_name">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['deb_name']; ?>
</span></td>
<td align="left" width="1%" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"><span class="txt_11_red">*</span></td>
<td align="left" valign="top">Registration Number :</td>
<td align="left" valign="top"><input type="text" size="30" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['values']['debtor_crn'] != ''): ?><?php echo $this->_tpl_vars['values']['debtor_crn']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['debtor_company_registration_number']; ?>
<?php endif; ?>" name="debtor_crn" id="debtor_crn">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['debtor_crn']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row1">
<td align="left" valign="top"> </td>
<td align="left" valign="top">Trading as :</td>
<td align="left" valign="top"><input type="text" size="30" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['values']['tra_name'] != ''): ?><?php echo $this->_tpl_vars['values']['tra_name']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['trade_name']; ?>
<?php endif; ?>" name="tra_name" id="tra_name">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['tra_name']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"> </td>
<td align="left" valign="top">Previous Name :</td>
<td align="left" valign="top"><input type="text" size="30" class="text_b" value="<?php if ($this->_tpl_vars['values']['pre_name'] != ''): ?><?php echo $this->_tpl_vars['values']['pre_name']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['previous_name']; ?>
<?php endif; ?>" name="pre_name" id="pre_name">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['pre_name']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row1">
<td align="left" valign="top"> </td>
<td align="left" valign="top">Type :</td>
<td align="left" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['debtor']['type'])) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : ucfirst($_tmp)); ?>
</td>
<td align="left" valign="top"></td>
</tr>
<?php if ($this->_tpl_vars['debtor']['type'] == 'creditor'): ?>
<tr class="row2">
<td align="left" valign="top"><span class="txt_11_red">*</span></td>
<td align="left" valign="top">Discount :</td>
<td align="left" valign="top">
<input type="text" size="30" maxlength="125" class="text_b" value="<?php if ($this->_tpl_vars['values']['payment_discount'] != ''): ?><?php echo $this->_tpl_vars['values']['payment_discount']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['payment_discount']; ?>
<?php endif; ?>" name="payment_discount" id="payment_discount" readonly="readonly">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['payment_discount']; ?>
</span>
</td>
</tr>
<?php endif; ?>
<tr>
<td align="left" valign="top" class="inves_top3" colspan="4">Registered Office</td>
</tr>
<tr class="row1">
<td align="left" valign="top"><span class="txt_11_red">*</span></td>
<td align="left" valign="middle">Address Line 1 :</td>
<td align="left" valign="top"><input type="text" size="30" class="text_b" value="<?php if ($this->_tpl_vars['values']['address1'] != ''): ?><?php echo $this->_tpl_vars['values']['address1']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['address_line_one']; ?>
<?php endif; ?>" name="address1" id="address1">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['address1']; ?>
</span></td>
</tr>
<tr class="row2">
<td align="left" valign="top"> </td>
<td align="left" valign="middle">Address Line 2 :</td>
<td align="left" valign="top"><input type="text" size="30" class="text_b" value="<?php echo $this->_tpl_vars['debtor']['address_line_two']; ?>
" name="address2" id="address2">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['address2']; ?>
</span></td>
</tr>
<tr class="row1">
<td align="left" valign="top"></td>
<td align="left" valign="middle">City / Town :</td>
<td align="left" valign="top"><input type="text" size="30" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['values']['city'] != ''): ?><?php echo $this->_tpl_vars['values']['city']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['address_city']; ?>
<?php endif; ?>" name="city" id="city">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['city']; ?>
</span></td>
</tr>
<tr class="row2">
<td align="left" valign="top"><span class="txt_11_red">*</span></td>
<td align="left" valign="middle">Area / State :</td>
<td align="left" valign="top"><input type="text" size="30" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['values']['state'] != ''): ?><?php echo $this->_tpl_vars['values']['state']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['address_state']; ?>
<?php endif; ?>" name="state" id="state">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['state']; ?>
</span></td>
</tr>
<tr class="row2">
<td align="left" valign="top"><span class="txt_11_red">*</span></td>
<td align="left" valign="top">Post Code :</td>
<td align="left" valign="top"><input type="text" class="text_b" name="postal" id="postal" value="<?php if ($this->_tpl_vars['values']['postal'] != ''): ?><?php echo $this->_tpl_vars['values']['postal']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['address_zipcode']; ?>
<?php endif; ?>">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['postal']; ?>
</span></td>
<td align="right" valign="middle"></td>
</tr>
<tr class="row1">
<td align="left" valign="top"><span class="txt_11_red">*</span></td>
<td align="left" valign="middle">Country :</td>
<td align="left" valign="top" >
<?php $this->assign('country_name', '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);
?>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['country']; ?>
</span></td>
</tr>
<tr class="row6 clsrm">
<td align="center" valign="top" style="padding:7px 10px 2px 10px; line-height:16px;"><span class="txt_11_red">*</span></td>
<td align="left" valign="top" style="padding:3px 10px; line-height:16px;">Phone Number :</td>
<td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
<tbody>
<tr>
<td align="left" width="1%" valign="top"></td>
<td align="left" width="99%" valign="top">
<input style="width: 210px" type="text" class="text_b" name="p_ph_code" maxlength="32" value="<?php if ($this->_tpl_vars['values']['p_ph_code'] != ''): ?><?php echo $this->_tpl_vars['values']['p_ph_code']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['address_phone']; ?>
<?php endif; ?>">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['p_ph_code']; ?>
</span></td>
</tr>
</tbody>
</table></td>
<td align="center" valign="top"></td>
</tr>
<tr class="row6 clsrm">
<td align="center" valign="top" style="padding:7px 10px 2px 10px; line-height:16px;"> </td>
<td align="left" valign="top" style="padding:3px 10px; line-height:16px;">Other Number :</td>
<td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
<tbody>
<tr>
<td align="left" width="1%" valign="top"></td>
<td align="left" width="99%" valign="top">
<input type="text" class="text_b" maxlength="32" name="f_ph_code" value="<?php if ($this->_tpl_vars['values']['f_ph_code'] != ''): ?><?php echo $this->_tpl_vars['values']['f_ph_code']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['address_fax']; ?>
<?php endif; ?>">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['f_ph_code']; ?>
</span></td>
</tr>
</tbody>
</table></td>
<td align="center" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top" style="padding:7px 10px 2px 10px; line-height:16px;"><span class="txt_11_red">*</span></td>
<td align="left" valign="top" style="padding:3px 10px; line-height:16px;">Email Address :</td>
<td align="left" valign="top"><input type="text" maxlength="255" class="text_b" value="<?php if ($this->_tpl_vars['values']['email'] != ''): ?><?php echo $this->_tpl_vars['values']['email']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['address_email']; ?>
<?php endif; ?>" name="email" id="email">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['email']; ?>
</span></td>
<td align="center" valign="top"></td>
</tr>
<tr>
<td align="left" valign="top" class="inves_top3" colspan="4">Billing Address </td>
<tr class="row1">
<td align="left" width="2%" valign="top"><span class="txt_11_red">*</span></td>
<td>Address Line 1 :</td>
<td align="left" width="68%" valign="top"><input type="text" size="30" class="text_b" value="<?php if ($this->_tpl_vars['values']['b_address1'] != ''): ?><?php echo $this->_tpl_vars['values']['b_address1']; ?>
<?php else: ?><?php echo $this->_tpl_vars['addresses']['billing_address']['address_line_one']; ?>
<?php endif; ?>" name="b_address1" id="b_address1">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['b_address1']; ?>
</span></td><td align="center" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"> </td><td>Address Line 2 :</td>
<td align="left" width="68%" valign="top"><input type="text" size="30" class="text_b" value="<?php echo $this->_tpl_vars['addresses']['billing_address']['address_line_two']; ?>
" name="b_address2" id="b_address2">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['b_address2']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row1">
<td align="left" width="2%" valign="top"></td><td>City / Town :</td>
<td align="left" width="68%" valign="top"><input type="text" size="30" class="text_b" value="<?php if ($this->_tpl_vars['values']['b_city'] != ''): ?><?php echo $this->_tpl_vars['values']['b_city']; ?>
<?php else: ?><?php echo $this->_tpl_vars['addresses']['billing_address']['address_city']; ?>
<?php endif; ?>" name="b_city" id="b_city">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['b_city']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"><span class="txt_11_red">*</span></td>
<td>Area / State :</td>
<td align="left" width="68%" valign="top"><input type="text" size="30" class="text_b" value="<?php if ($this->_tpl_vars['values']['b_state'] != ''): ?><?php echo $this->_tpl_vars['values']['b_state']; ?>
<?php else: ?><?php echo $this->_tpl_vars['addresses']['billing_address']['address_state']; ?>
<?php endif; ?>" name="b_state" id="b_state">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['b_state']; ?>
</span></td><td align="center" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" width="2%" valign="top"><span class="txt_11_red">*</span></td>
<td>Post Code :</td>
<td align="left" width="68%" valign="top">
<input type="text" class="text_b" name="b_postal" id="b_postal" value="<?php if ($this->_tpl_vars['values']['b_postal'] != ''): ?><?php echo $this->_tpl_vars['values']['b_postal']; ?>
<?php else: ?><?php echo $this->_tpl_vars['addresses']['billing_address']['address_zipcode']; ?>
<?php endif; ?>">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['b_postal']; ?>
</span></td>
<td align="right" valign="middle"></td>
</tr>
<tr class="row1">
<td align="left" valign="top"><span class="txt_11_red">*</span></td>
<td align="left" valign="middle">Country : </td>
<td align="left" valign="top" >
<?php $this->assign('country_name', 'b_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);
?>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['country']; ?>
</span></td>
</tr>
<tr class="row6 clsrm">
<td align="left" width="2%" valign="top" style="padding:12px 10px 2px 10px; line-height:16px;"><span class="txt_11_red">*</span></td>
<td style="padding:3px 10px; line-height:16px;">Phone Number :</td>
<td align="left" width="66%" valign="top"><table cellspacing="3" cellpadding="0" border="0">
<tbody>
<tr>
<td align="left" width="1%" valign="top"></td>
<td align="left" width="99%" valign="top">
<input style="width: 210px;" type="text" class="text_b" name="b_ph_code" value="<?php if ($this->_tpl_vars['values']['b_ph_code'] != ''): ?><?php echo $this->_tpl_vars['values']['b_ph_code']; ?>
<?php else: ?><?php echo $this->_tpl_vars['addresses']['billing_address']['address_phone']; ?>
<?php endif; ?>">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['b_ph_code']; ?>
</span></td>
</tr>
</tbody>
</table></td>
<td align="center" valign="top"></td>
</tr>
<tr class="row6 clsrm">
<td align="left" valign="top" style="padding:12px 10px 2px 10px; line-height:16px;"></td>
<td style="padding:3px 10px; line-height:16px;">Other Number :</td>
<td align="left" width="66%" valign="top"><table cellspacing="3" cellpadding="0" border="0">
<tbody>
<tr>
<td align="left" width="1%" valign="top"></td>
<td align="left" width="99%" valign="top"><input type="text" class="text_b" maxlength="32" name="f1_ph_code" value="<?php if ($this->_tpl_vars['values']['f1_ph_code'] != ''): ?><?php echo $this->_tpl_vars['values']['f1_ph_code']; ?>
<?php else: ?><?php echo $this->_tpl_vars['addresses']['billing_address']['address_fax']; ?>
<?php endif; ?>">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['f1_ph_code']; ?>
</span></td>
</tr>
<tr>
<td align="left" valign="top" class="txt_11_cute"> </td>
<td align="left" valign="top" class="txt_11_cute">Phone Number</td>
</tr>
</tbody>
</table></td>
<td align="center" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"><span class="txt_11_red">*</span></td><td>Email Address :</td>
<td align="left" width="68%" valign="top">
<input type="text" size="30" class="text_b" value="<?php if ($this->_tpl_vars['values']['b_email'] != ''): ?><?php echo $this->_tpl_vars['values']['b_email']; ?>
<?php else: ?><?php echo $this->_tpl_vars['addresses']['billing_address']['address_email']; ?>
<?php endif; ?>" name="b_email" id="b_email">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['b_email']; ?>
</span></td>
<td align="center" valign="top"></td>
</tr>
<tr>
<td align="left" valign="top" class="inves_top3" colspan="4">Account Contact Details</td>
</tr>
<tr class="row1">
<td align="left" valign="top"><span class="txt_11_red">* </span></td><td>First Name :</td>
<td align="left" width="66%" valign="top">
<input type="text" size="30" class="text_b" value="<?php if ($this->_tpl_vars['values']['d_name'] != ''): ?><?php echo $this->_tpl_vars['values']['d_name']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['debtor_contact_first_name']; ?>
<?php endif; ?>" name="d_name" id="d_name">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['d_name']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"> </td><td>Last Name :</td>
<td align="left" width="66%" valign="top">
<input type="text" size="30" class="text_b" value="<?php echo $this->_tpl_vars['debtor']['debtor_contact_last_name']; ?>
" name="last_name">
<br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['last_name']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row6 clsrm">
<td align="left" valign="top" style="padding:12px 10px 2px 10px; line-height:16px;"><span class="txt_11_red">* </span></td><td align="left" style="padding:3px 10px; line-height:16px;"><span style="font-size: 11px; padding-left: 0px;">Contact Direct Dial Phone</span> :</td>
<td align="left" width="66%" valign="top" ><table cellspacing="3" cellpadding="0" border="0">
<tbody>
<tr>
<td align="left" width="1%" valign="top"></td>
<td align="left" width="99%" valign="top">
<input style="width: 210px" type="text" class="text_ph_code" name="d_ph_code" value="<?php if ($this->_tpl_vars['values']['d_ph_code'] != ''): ?><?php echo $this->_tpl_vars['values']['d_ph_code']; ?>
<?php else: ?><?php echo $this->_tpl_vars['addresses']['contact_address']['address_phone']; ?>
<?php endif; ?>">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['d_ph_code']; ?>
</span></td>
</tr>
</tbody>
</table></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"><span class="txt_11_red">* </span></td><td>Contact Email :</td>
<td align="left" width="66%" valign="top"><input type="text" size="30" class="text_b" value="<?php if ($this->_tpl_vars['values']['d_email'] != ''): ?><?php echo $this->_tpl_vars['values']['d_email']; ?>
<?php else: ?><?php echo $this->_tpl_vars['addresses']['contact_address']['address_email']; ?>
<?php endif; ?>" name="d_email" id="d_email"> <span style="font-weight:bold;color:#FF0000;font-size:11px;">ETR Invoices are Emailed to this Email Address</span>
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['d_email']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row1">
<td align="left" valign="top"><span class="txt_11_red">* </span></td><td>Customer Since :</td>
<td align="left" width="66%" valign="top">
<?php $this->assign('yr', $this->_tpl_vars['debtor']['customer_since']); ?>
<select name="d_since" class="cmb_bx1" id="d_since">
<option value="">Select Year</option>
<?php
$year = $this->get_template_vars('yr');
$option ='';
for($i=date('Y');$i>=1950;$i--) {
$option .= '
<option value="'.$i.'"';
if($year == $i) $option .='selected="selected"';
$option .='>'.$i.'
</option>
';
}
echo $option;
?>
</select>
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['d_since']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"></td><td>Total Historic Value :</td>
<td align="left" width="66%" valign="top">
<input type="text" size="10" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['values']['d_value'] != ''): ?><?php echo $this->_tpl_vars['values']['d_value']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['total_debtor_value']; ?>
<?php endif; ?>" name="d_value">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['d_value']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row1">
<td align="left" valign="top"><span class="txt_11_red">* </span></td><td>Average Payment Cycle :</td>
<td align="left" width="66%" valign="top">
<input type="text" size="3" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['values']['d_paymant'] != ''): ?><?php echo $this->_tpl_vars['values']['d_payment']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['average_payment_cycle']; ?>
<?php endif; ?>" name="d_payment">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['d_payment']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"></td><td>Credit Notes Issued :</td>
<td align="left" width="66%" valign="top">
<input type="text" size="4" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['values']['d_notes'] != ''): ?><?php echo $this->_tpl_vars['values']['d_notes']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['no_credit_note_issued']; ?>
<?php endif; ?>" name="d_notes">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['d_notes']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row1">
<td align="left" valign="top"><span class="txt_11_red">* </span></td><td>Invoices Predicted Per Annum :</td>
<td align="left" width="66%" valign="top">
<input type="text" size="4" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['values']['d_invoice'] != ''): ?><?php echo $this->_tpl_vars['values']['d_invoice']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['avg_invoice_predicted_annum']; ?>
<?php endif; ?>" name="d_invoice">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['d_invoice']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row2">
<td align="left" valign="top"><span class="txt_11_red">* </span></td><td>Predicted Annual Revenue :</td>
<td align="left" width="66%" valign="top">
<input type="text" size="4" maxlength="" class="text_b" value="<?php if ($this->_tpl_vars['values']['d_revenue'] != ''): ?><?php echo $this->_tpl_vars['values']['d_revenue']; ?>
<?php else: ?><?php echo $this->_tpl_vars['debtor']['avg_revenue_predicted_annum']; ?>
<?php endif; ?>" name="d_revenue">
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['d_revenue']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row1">
<td align="left" valign="top"><span class="txt_11_red">* </span></td><td>Credit Limit :</td>
<td align="left" width="66%" valign="top"><?php echo $this->_tpl_vars['debtor']['organisation']['currency_code']; ?>
<?php echo $this->_tpl_vars['debtor']['credit_limit']; ?>
<br/>
<span style="color:#FF0000">
<?php echo $this->_tpl_vars['messages']['credit_limit']; ?>
</span></td>
<td align="left" valign="top"></td>
</tr>
<tr class="row2">
<td valign="middle" align="center" colspan="2" width="50%"> </td>
<td valign="middle" align="left" colspan="2" width="50%"><input type="hidden" value="<?php echo $_GET['id']; ?>
" name="id">
<?php if ($this->_tpl_vars['status'] == '10' || $this->_tpl_vars['status'] == '11'): ?>
<input type="submit" name="save" value="Resubmit" class="login_bttn">
<?php else: ?>
<input type="submit" name="save" value="Save" class="login_bttn">
<?php endif; ?>
</td>
</tr>
</table>
</form>
</div>
<?php if ($this->_tpl_vars['debtor']['type'] == 'debtor'): ?>
<div id="tab-debtor-contacts">
<a class="btn-debtor-contact-add under_blue" href="?do=debtorcontactcreate&debtor_id=<?php echo $this->_tpl_vars['debtor']['debtor_id']; ?>
">Add Contact</a>
<br>
<br>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<?php $_from = $this->_tpl_vars['debtor_contacts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['index'] => $this->_tpl_vars['contact']):
?>
<tbody class="debtor-contact-row">
<tr>
<td colspan="2" class="inves_top3" align="left" valign="top">
<b> Contact #<?php echo $this->_tpl_vars['index']+1; ?>
</b> <a href="?do=debtorcontactupdate&id=<?php echo $this->_tpl_vars['contact']['id']; ?>
#tab-debtor-contacts" class="btn-debtor-contact-edit under_blue">Edit</a> <a href="?do=debtorcontactdelete&id=<?php echo $this->_tpl_vars['contact']['id']; ?>
#tab-debtor-contacts" class="under_blue btn-debtor-contact-delete">Delete</a>
</td>
</tr>
<tr class="row1">
<td width="33%" align="left" valign="top">First Name : </td>
<td width="67%" align="left" valign="top" class="debtor-contact-firstname"><?php echo $this->_tpl_vars['contact']['firstname']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left">Last Name :</td>
<td valign="top" align="left" class="debtor-contact-lastname"><?php echo $this->_tpl_vars['contact']['lastname']; ?>
</td>
</tr>
<tr class="row1">
<td valign="top" align="left">Phone number :</td>
<td valign="top" align="left" class="debtor-contact-phone"><?php echo $this->_tpl_vars['contact']['phone']; ?>
</td>
</tr>
<tr class="row2">
<td valign="top" align="left">Email :</td>
<td valign="top" align="left" class="debtor-contact-email"><?php echo $this->_tpl_vars['contact']['email']; ?>
</td>
</tr>
<tr class="row1">
<td valign="top" align="left">ETR delivery :</td>
<td valign="top" align="left" class="debtor-contact-etr-delivery">
<?php if ($this->_tpl_vars['contact']['etr_delivery'] == 0): ?>No<?php endif; ?>
<?php if ($this->_tpl_vars['contact']['etr_delivery'] == 1): ?>Yes<?php endif; ?>
</td>
</tr>
</tbody>
<?php endforeach; endif; unset($_from); ?>
</table>
</div>
<?php endif; ?>
</div>
</td>
</tr>
<tr>
<td align="left" width="2%" valign="top" class="hdr_bl"></td>
<td align="left" width="96%" valign="top" class="hdr_bc" colspan="2"></td>
<td align="left" width="2%" valign="top" class="hdr_br"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
<style>
.row1 td , .row2 td , .row6 td, .row4 td{.inves_top {
background: none repeat scroll 0 0 #C6C3C6;
color: #FFFFFF;
height: 25px;
line-height: 25px;
padding-left: 10px;
}
/*padding:0;*/
}
.clsrm td{
line-height:normal;<?php echo $this->_tpl_vars['debtor']['address_city']; ?>
}
.inves_top {
background: none repeat scroll 0 0 #C6C3C6;
color: #FFFFFF;
height: 25px;
line-height: 25px;
padding-left: 10px;
}
.very_lite_gray {
background: none repeat scroll 0 0 #EDEDED;
border-bottom: 2px solid #FFFFFF;
border-top: 2px solid #FFFFFF;
}
.dark_gray_bg {
background: none repeat scroll 0 0 #808080;
padding: 5px 0;
}
.gray_1 {<?php echo $this->_tpl_vars['debtor']['address_city']; ?>
border-right: 1px solid #FFFFFF;
}
</style>
<style>
.inves_top3{ background:#e4e3e3;height:15px;line-height:32px; padding-left:10px;font-weight:bold;}
</style>
<script type="text/javascript">
$(function() {
$('#siccat').change(function() {
$.ajax({
type: "POST",
url: "?do=getnacecat",
data: "groupid="+document.getElementById("siccat").value,
success: function(msg){
//document.getElementById("sicgpsapn").innerHTML=msg;
}
});
});
<?php
$value=$this->get_template_vars('values');
if($value['siccat']!='')
{
echo '$.ajax({
type: "POST",';
if($value['sicgp'] !='')
echo 'url: "?do=getnacecat&sub="+'.$value['sicgp'].',';
else
echo 'url: "?do=getnacecat",';
echo 'data: "groupid="+'.$value['siccat'].',
success: function(msg){
//document.getElementById("sicgpsapn").innerHTML=msg;
}
});';
}
?>
});
</script>
<style>
.clsrm td{
line-height:normal;
}
.text_b_10{
width:90px;
border: 1px solid #999999;
font-size: 11px;
height: 15px;
}
</style>
<?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);
?>