File: /www/exchange0old/exchange/cache/%%89^898^898DDFAA%%trade_update_draft.html.php
<?php /* Smarty version 2.6.19, created on 2024-09-20 14:33:45
compiled from trade_update_draft.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'siteUrl', 'trade_update_draft.html', 4, false),array('modifier', 'count', 'trade_update_draft.html', 90, false),array('modifier', 'tokenUrl', 'trade_update_draft.html', 109, false),array('modifier', 'storage', 'trade_update_draft.html', 574, 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);
?>
<script type="text/javascript" src="<?php echo $_SESSION['base_url']; ?>
/js/jquery.ui.core.js"></script>
<script type="text/javascript" src="<?php echo $_SESSION['base_url']; ?>
/js/ui.datepicker.js"></script>
<script type="text/javascript" src="<?php echo ((is_array($_tmp='/js/jquery.form.js')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
"></script>
<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 | Single Invoice</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>
</td>
</tr>
<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" id="tool">
<form name="opentrade" action="index.php?do=savemydraft&id=<?php echo $_GET['id']; ?>
" id="opentrade" method="post" enctype="multipart/form-data">
<table cellspacing="2" cellpadding="3" border="0" width="100%" class="hdr_center">
<tbody>
<tr>
<td valign="top" align="left" colspan="3" class="inves_top1">Open A Trade <span style="float:right;margin-right:5px;text-decoration:none;"><a class="login_bttn" href="javascript:deleteTrade();">Delete A Trade</a></span></td>
</tr>
<tr>
<td colspan="3">
<table cellspacing="0" cellpadding="0" border="0" width="100%" >
<tr>
<td>
<?php if (! empty ( $this->_tpl_vars['result'] )): ?>
<div class="success-msgbox">
<?php echo $this->_tpl_vars['result']; ?>
</div>
<?php endif; ?>
<?php if (! empty ( $this->_tpl_vars['error_message'] )): ?>
<div class="error-msgbox">
<?php echo $this->_tpl_vars['error_message']; ?>
</div>
<?php endif; ?>
</td>
</tr>
</table>
</tr>
<tr>
<td> </td>
<td align="left" valign="top"> </td>
<td align="left" valign="top"><div class="error-msgbox">
Submit Trades before <b style="color:#FF0000;font-size:11px;"><?php echo $this->_tpl_vars['clearSweepOut']; ?>
</b> to receive <a href="javascript:void(0);" onclick="javascript:window.open('/faq#tomnext','','scrollbars=yes,width=1000,height=800');" style="color:#0033FF;text-decoration:underline;font-size:11px;">TomNext</a> Purchase Payment
</div></td>
</tr>
<tr>
<td> </td>
<td align="left" valign="top"><strong style="font-size:11px;">Select Sales Type : </strong></td>
<td align="left" valign="top"><table cellpadding="3" cellspacing="0" border="0" width="100%">
<tr>
<?php if (count($this->_tpl_vars['sales_types']) > 1): ?><td valign="top" align="center" class="txt_11_red" width="5">*</td> <?php endif; ?>
<td align="left" valign="top">
<?php if (count($this->_tpl_vars['sales_types']) == 1): ?> <?php echo $this->_tpl_vars['sales_types']['0']['type_name']; ?>
<?php endif; ?>
<select class="cmb_bx1" <?php if (count($this->_tpl_vars['sales_types']) == 1): ?> style="display:none;" <?php endif; ?> tabindex="1" id="sales_type" name="sales_type" onchange="loadFields()">
<option value="">Select Sale Type</option>
<?php $_from = $this->_tpl_vars['sales_types']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['s']):
?>
<option value="<?php echo $this->_tpl_vars['s']['type_id']; ?>
-<?php echo $this->_tpl_vars['s']['type_store_method']; ?>
" <?php if ($this->_tpl_vars['s']['type_id'] == $this->_tpl_vars['values']['sales_type']): ?>selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['s']['type_name']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select>
<?php if (count($this->_tpl_vars['sales_types']) == 1 && $this->_tpl_vars['sales_types']['0']['type_id'] == 4): ?>
<input type="hidden" name="etr_type" id="etr_type" value="2" >
<?php endif; ?>
<?php if (count($this->_tpl_vars['sales_types']) > 1): ?>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['0']['content']; ?>
" class="under">(?)</a> <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/sales')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" class="Clstr_hints">Learn more about types of ETR sales</a> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['1']['content']; ?>
" class="under">(?)</a>
<?php endif; ?>
<br />
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['sales_type']; ?>
</span>
<td>
</tr>
</table></td>
</tr>
<?php if ($this->_tpl_vars['sales_count'] == '1'): ?>
<tr>
<td colspan="3"> </td>
</tr>
<tr class="salestype2">
<td align="center" valign="top" class="txt_11_red" width="2">*</td>
<td align="left" valign="top" width="28%">ETR Type :</td>
<td align="left" valign="top" width="70%">
<?php $_from = $this->_tpl_vars['sales_types']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['s']):
?>
<?php if ($this->_tpl_vars['s']['type_id'] == '2'): ?>
<input type="radio" value="2" name="etr_type" id="etr_type" tabindex="2" <?php if ($this->_tpl_vars['values']['etr_type'] == 2): ?>checked<?php endif; ?>>
Managed ETR <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['2']['content']; ?>
" class="under">(?)</a>
<?php endif; ?>
<?php if ($this->_tpl_vars['s']['type_id'] == '3'): ?>
<input type="radio" value="3" name="etr_type" id="etr_type" tabindex="3" <?php if ($this->_tpl_vars['values']['etr_type'] == 3): ?>checked<?php endif; ?>>
Performance ETR <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['3']['content']; ?>
" class="under">(?)</a>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['etr_type']; ?>
</span></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<?php endif; ?>
<tr>
<td align="center" valign="top" class="txt_11_red">*</td>
<td align="left" width="28%" valign="top">Debtors Name : </td>
<td align="left" width="" valign="top"><select name="debtor_id" tabindex="4" id="debtor_id" class="cmb_bx1" style="width:300px;" onchange="populateVal(this.value);">
<option value="">Select Debtor </option>
<?php $_from = $this->_tpl_vars['debtor']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['myId'] => $this->_tpl_vars['i']):
?>
<option value="<?php echo $this->_tpl_vars['i']['debtor_id']; ?>
" <?php if ($this->_tpl_vars['i']['debtor_id'] == $this->_tpl_vars['values']['debtor_id']): ?>selected="selected" <?php endif; ?>>
<?php echo $this->_tpl_vars['i']['debtor_name']; ?>
</option>
<?php endforeach; endif; unset($_from); ?>
</select>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['12']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['debtor_id']; ?>
</span></td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td align="center" valign="top" class="txt_11_red">*</td>
<td align="left" valign="top" width="28%">Payment Terms : </td>
<td align="left" valign="top" width="70%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<input type="text" maxlength="4" tabindex="5" size="2" class="text_c_code" value="<?php echo $this->_tpl_vars['values']['payment']; ?>
" name="payment" id="payment">
Days <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['11']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['payment']; ?>
</span>
</td>
<td> </td>
<td>Currency :</td>
<td>
<input type="text" class="text_b_small1" name="currency_country_id" tabindex="6" id="currency_country_id" style="width:130px;background-color:#C0C0C0;" readonly="true" value="" />
<input type="hidden" name="country_id" id="country_id" value="" />
<!-- <select name="country_id" tabindex="5" id="country_id" class="cmb_bx1" style="width:130px;background-color:#C0C0C0;" readonly="true" > -->
<!-- onchange="calCurrencyRate(this.value);" -->
<!-- <?php $_from = $this->_tpl_vars['currency']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['myId'] => $this->_tpl_vars['i']):
?>
<option value="<?php echo $this->_tpl_vars['i']['country_id']; ?>
" <?php if ($this->_tpl_vars['values']['country_id'] == $this->_tpl_vars['i']['country_id']): ?>selected="selected"<?php endif; ?> >
<?php echo $this->_tpl_vars['i']['country_name']; ?>
<?php echo $this->_tpl_vars['i']['currency_code']; ?>
</option>
<?php endforeach; endif; unset($_from); ?> -->
<!-- </select> --> <span id="cur_face_value" ></span><!-- <input type="hidden" name="currency_face_value" id="currency_face_value" value="" /> --><!-- <input type="hidden" name="base_face_value" id="base_face_value" value="" /> --><!-- <input type="hidden" name="currency_rate" id="currency_rate" value="" /> --> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['41']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['country_id']; ?>
</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<tr class="salestype2">
<td align="center" valign="top" class="txt_11_red">*</td>
<td align="left" valign="top">Total Face Value of ETR : <br /> <span style="font-size:9px;">(the "Revolving ETR Limit")</span></td>
<td align="left" valign="top">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="left" valign="top">
<input type="text" tabindex="7" class="text_b_small1" value="<?php echo $this->_tpl_vars['values']['etr_face_value']; ?>
" name="etr_face_value" id="etr_face_value" style="width:100px;">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['4']['content']; ?>
" class="under">(?)</a>
</td>
<td align="left" valign="top">
<span class="txt_11_red">*</span>
Number of ETR:
<input type="text" tabindex="8" class="text_c_code" value="<?php echo $this->_tpl_vars['values']['etr_no']; ?>
" name="etr_no" id="etr_no">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['5']['content']; ?>
" class="under">(?)</a>
</td>
<td align="left" valign="top">
<span class="txt_11_red">*</span>
Revolving Offer Months:
<input type="text" tabindex="9" class="text_c_code" value="<?php echo $this->_tpl_vars['values']['etr_months']; ?>
" name="etr_months" id="etr_months">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['6']['content']; ?>
" class="under">(?)</a>
<br /> <span style="font-size:9px;">(the "Revolving ETR Period") </span>
</td>
</tr>
</table>
<span style="color:#FF0000;clear:both;"><?php echo $this->_tpl_vars['messages']['etr_face_value']; ?>
</span>
<?php if ($this->_tpl_vars['messages']['etr_face_value'] == '' && $this->_tpl_vars['messages']['etr_no'] != ''): ?>
<span style="color:#FF0000;clear:both;padding-left:145px;"><?php echo $this->_tpl_vars['messages']['etr_no']; ?>
</span>
<?php else: ?>
<span style="color:#FF0000;clear:both;"><?php echo $this->_tpl_vars['messages']['etr_no']; ?>
</span>
<?php endif; ?>
<span style="color:#FF0000;clear:both;"><?php echo $this->_tpl_vars['messages']['etr_months']; ?>
</span>
</td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
<!-- <tr class="salestype1">
<td align="center" valign="top" class="txt_11_red" width="2">*</td>
<td align="left" valign="top" width="28%">Invoice Type :</td>
<td align="left" valign="top" width="70%"><input type="radio" tabindex="2" value="1" name="inv_type" id="inv_type" checked>
Single Invoice <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['7']['content']; ?>
" class="under">(?)</a>
<input type="radio" value="2" tabindex="2" name="inv_type" id="inv_type">
Multiple Invoice <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['8']['content']; ?>
" class="under">(?)</a>
<input type="radio" value="3" tabindex="2" name="inv_type" id="inv_type">
Batch Invoice <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['9']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['inv_type']; ?>
</span></td>
</tr> -->
<tr class="salestype1">
<td align="center" valign="top" class="txt_11_red">*</td>
<td align="left" valign="top" id="selface">Face Value : </td>
<td align="left" valign="top"><input type="text" class="text_b_small1" tabindex="10" value="<?php echo $this->_tpl_vars['values']['face_value']; ?>
" name="face_value" id="face_value">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['10']['content']; ?>
" class="under">(?)</a>
<span class="red_11" style="padding-left:98px;">Learn More about trading strategies <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/strategies')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" style="color:#0033FF; text-decoration:underline; font-size:11px;">here</a></span> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['face_value']; ?>
</span></td>
</tr>
<!-- <tr>
<td align="center" valign="top" class="txt_11_red">*</td>
<td align="left" valign="top">Actual Date : <span class="txt_11_cute">(DD/MM/YYYY)</span></td>
<td align="left" valign="top"><table cellpadding="0" cellspacing="0" border="0" width="460">
<tr>
<td align="left" valign="top" width="35%"><div id="body_tag">
<div id="search_all_id" class="search_all">
<div class="search_element1">
<div class="city_div">
<input type="text" maxlength="2" size="2" class="text_dd_code" id="ac_date" name="ac_date" value="<?php echo $this->_tpl_vars['values']['ac_date']; ?>
">
<input type="text" maxlength="2" size="2" class="text_dd_code" id="ac_month" name="ac_month" value="<?php echo $this->_tpl_vars['values']['ac_month']; ?>
">
<input type="text" maxlength="4" size="4" class="text_c_code" id="ac_year" name="ac_year" value="<?php echo $this->_tpl_vars['values']['ac_year']; ?>
">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['29']['content']; ?>
" class="under">(?)</a>
<script>
//For Date Picker
$(function() {
$( "#ac_year" ).datepicker({
minDate: 0,
showOn: "button",
buttonImage: "../images/calender_month.png",
buttonImageOnly: true,
onSelect: function( selectedDate ) {
var i =0;selDate = selectedDate.split('/');var dates = new Array("ac_month","ac_date","ac_year");
for(i = 0; i <=2; i++){
$( "#"+dates[i] ).val(selDate[i]);
}
}
});
});
</script>
</div>
</div>
<div class="clear_div"></div>
</div>
</div>
<br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['ac_date']; ?>
</td>
<td align="right" valign="top" width="65%" class="red_11"></td>
</tr>
</table></td>
</tr>-->
<?php if (count($this->_tpl_vars['sales_types']) > 0 && $this->_tpl_vars['sales_types']['0']['type_id'] != 4): ?>
<tr>
<td valign="top" align="center" class="txt_11_red">*</td>
<td valign="top" align="left">Invoice Date : <span class="txt_11_cute">(DD/MM/YYYY)</span></td>
<td width="75%" valign="top" align="left"><table width="555" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
<td width="16%" valign="top" align="left"><div id="body_tag">
<div class="search_all" id="search_all_id">
<div class="search_element1">
<div class="city_div">
<input type="text" value="<?php echo $this->_tpl_vars['values']['invoice_date']; ?>
" name="invoice_date" id="invoice_date" class="text_dd_code" tabindex="11" size="2" maxlength="2">
<input type="text" value="<?php echo $this->_tpl_vars['values']['invoice_month']; ?>
" name="invoice_month" id="invoice_month" class="text_dd_code" tabindex="12" size="2" maxlength="2">
<input type="text" maxlength="4" size="4" tabindex="13" class="text_c_code" id="invoice_year" name="invoice_year" value="<?php echo $this->_tpl_vars['values']['invoice_year']; ?>
">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['14']['content']; ?>
" class="under">(?)</a>
<script>
//For Date Picker
$(function() {
$( "#invoice_year" ).datepicker({
minDate: 0,
showOn: "button",
buttonImage: "<?php echo ((is_array($_tmp='/images/calender_month.png')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
",
buttonImageOnly: true,
onSelect: function( selectedDate ) {
var i =0;selDate = selectedDate.split('/');var dates = new Array("invoice_month","invoice_date","invoice_year");
for(i = 0; i <=2; i++){
$( "#"+dates[i] ).val(selDate[i]);
}
}
});
});
</script>
</div>
</div>
<div class="clear_div"></div>
</div>
</div>
<br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['invoice_date']; ?>
</span></td>
<td width="23%" valign="top" align="center" id="firstExDate"><span class="txt_11_red"> * </span> Expected Date : </td>
<td width="15%" align="left" valign="top" width="35%"><div id="body_tag">
<div id="search_all_id" class="search_all">
<div class="search_element1">
<div class="city_div">
<input type="text" maxlength="2" size="2" tabindex="14" class="text_dd_code" id="ex_date" name="ex_date" value="<?php echo $this->_tpl_vars['values']['ex_date']; ?>
">
<input type="text" maxlength="2" size="2" tabindex="15" class="text_dd_code" id="ex_month" name="ex_month" value="<?php echo $this->_tpl_vars['values']['ex_month']; ?>
">
<input type="text" maxlength="4" size="4" tabindex="16" class="text_c_code" id="ex_year" name="ex_year" value="<?php echo $this->_tpl_vars['values']['ex_year']; ?>
">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['15']['content']; ?>
" class="under">(?)</a>
<script>
//For Date Picker
$(function() {
$( "#ex_year" ).datepicker({
minDate: 0,
showOn: "button",
buttonImage: "<?php echo ((is_array($_tmp='/images/calender_month.png')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
",
buttonImageOnly: true,
onSelect: function( selectedDate ) {
var i =0;selDate = selectedDate.split('/');var dates = new Array("ex_month","ex_date","ex_year");
for(i = 0; i <=2; i++){
$( "#"+dates[i] ).val(selDate[i]);
}
}
});
});
</script>
</div>
</div>
<div class="clear_div"></div>
</div>
</div>
<br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['ex_date']; ?>
</span></td>
<!-- <td width="21%" valign="top" align="left"><div id="body_tag">
<div class="search_all" id="search_all_id">
<div class="search_element1">
<div class="city_div">
<input type="text" value="<?php echo $this->_tpl_vars['values']['ex_date']; ?>
" name="ex_date" id="ex_date" class="text_dd_code" tabindex="6" size="2" maxlength="2">
<input type="text" value="<?php echo $this->_tpl_vars['values']['ex_month']; ?>
" name="ex_month" id="ex_month" class="text_dd_code" tabindex="7" size="2" maxlength="2">
<input type="text" value="<?php echo $this->_tpl_vars['values']['ex_year']; ?>
" name="ex_year" id="ex_year" class="text_c_code hasDatepicker" tabindex="8" size="4" maxlength="4"><img class="ui-datepicker-trigger" src="../images/calender_month.png" alt="..." title="...">
<a class="under" href="javascript:void(0);">(?)</a>
<script>
//For Date Picker
$(function() {
$( "#ex_year" ).datepicker({
minDate: 0,
showOn: "button",
buttonImage: "../images/calender_month.png",
buttonImageOnly: true,
onSelect: function( selectedDate ) {
var i =0;selDate = selectedDate.split('/');var dates = new Array("ex_month","ex_date","ex_year");
for(i = 0; i <=2; i++){
$( "#"+dates[i] ).val(selDate[i]);
}
}
});
});
</script>
</div>
</div>
<div class="clear_div"></div>
</div>
</div>
<br>
<span style="color:#FF0000;">
</span></td> -->
</tr>
</tbody></table></td>
</tr>
<?php endif; ?>
<!-- <tr>
<td align="center" valign="top" class="txt_11_red">*</td>
<td align="left" valign="top" id="firstExDate">Expected Date : <span class="txt_11_cute">(DD/MM/YYYY)</span></td>
<td align="left" valign="top"><table cellpadding="0" cellspacing="0" border="0" width="460">
<tr>
<td align="left" valign="top" width="35%"><div id="body_tag">
<div id="search_all_id" class="search_all">
<div class="search_element1">
<div class="city_div">
<input type="text" maxlength="2" tabindex="6" size="2" class="text_dd_code" id="ex_date" name="ex_date" value="<?php echo $this->_tpl_vars['values']['ex_date']; ?>
">
<input type="text" maxlength="2" tabindex="7" size="2" class="text_dd_code" id="ex_month" name="ex_month" value="<?php echo $this->_tpl_vars['values']['ex_month']; ?>
">
<input type="text" maxlength="4" tabindex="8" size="4" class="text_c_code" id="ex_year" name="ex_year" value="<?php echo $this->_tpl_vars['values']['ex_year']; ?>
">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['14']['content']; ?>
" class="under">(?)</a>
<script>
//For Date Picker
$(function() {
$( "#ex_year" ).datepicker({
minDate: 0,
showOn: "button",
buttonImage: "../images/calender_month.png",
buttonImageOnly: true,
onSelect: function( selectedDate ) {
var i =0;selDate = selectedDate.split('/');var dates = new Array("ex_month","ex_date","ex_year");
for(i = 0; i <=2; i++){
$( "#"+dates[i] ).val(selDate[i]);
}
}
});
});
</script>
</div>
</div>
<div class="clear_div"></div>
</div>
</div>
<br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['ex_date']; ?>
</span></td>
<td align="right" valign="top" width="65%" class="red_11">Learn More about trading strategies <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/strategies')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" style="color:#0033FF; text-decoration:underline; font-size:11px;">here</a></td>
</tr>
</table></td>
</tr> -->
<tr>
<td height=""> </td>
<td align="left" valign="top"> Description :</td>
<td align="left" valign="top"><table cellpadding="0" cellspacing="1" border="0">
<tr>
<td align="left" valign="top"><textarea cols="30" tabindex="17" rows="2" name="desc" id="desc"><?php echo $this->_tpl_vars['values']['desc']; ?>
</textarea>
<br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['desc']; ?>
</span></td>
<td align="left" valign="top"> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['16']['content']; ?>
" class="under">(?)</a></td>
</tr>
</table></td>
</tr>
<tr class="salestype1">
<td align="center" valign="top" class="txt_11_red">*</td>
<td align="left" valign="top">PO No : </td>
<td align="left" valign="top"><input type="text" tabindex="18" class="text_b" value="<?php echo $this->_tpl_vars['values']['po']; ?>
" name="po" id="po">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['17']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['po']; ?>
</span></td>
</tr>
<tr class="salestype1">
<td align="center" valign="top" class="txt_11_red">*</td>
<td align="left" valign="top">Invoice No : </td>
<td align="left" valign="top"><input type="text" tabindex="19" class="text_b" value="<?php echo $this->_tpl_vars['values']['invoice_no']; ?>
" name="invoice_no" id="invoice_no">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['40']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['invoice_no']; ?>
</span></td>
</tr>
<tr class="salestype1">
<td> </td>
<td align="left" valign="top">Attach PO : </td>
<td align="left" valign="top">
<div style="float:left;">
<?php if ($_SESSION['pofile'] == ''): ?>
<input type="file" class="browse" value="" tabindex="20" style="width:auto;" name="file_po" id="file_po">
<input type="button" name="savefile" class="savefile" alt="file_po" title="pofile" value="Save" data-flag="poflag" style="border:1px solid #000; padding:0px 5px;" />
<?php else: ?>
Use View button to view File
<?php endif; ?>
<input type="hidden" name="pofile" id="pofile" value="<?php echo $this->_tpl_vars['values']['pofile']; ?>
" />
<input type="hidden" name="poflag" id="poflag" value="" />
<?php if ($this->_tpl_vars['values']['pofile'] != ''): ?>
<a href="../<?php echo $this->_tpl_vars['values']['pofile']; ?>
" class="viewlink" target="_blank" style="border:1px solid #000; padding:1px 5px;">View</a>
<?php endif; ?>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['18']['content']; ?>
" class="under">(?)</a>
</div>
<div style="float:left; width:195px; margin-left:5px;"><a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/invoice')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" class="Clstr_hints">Learn more about Purchase Order [PO] numbers</a>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['19']['content']; ?>
" class="under">(?)</a>
</div>
<br/><br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['pofile']; ?>
</span>
</td>
</tr>
<tr>
<td> </td>
<td align="left" valign="top">Attach Supporting Document: </td>
<td align="left" valign="top">
<?php if ($_SESSION['supportfile'] == ''): ?>
<input type="file" class="browse" value="" tabindex="21" style="width:auto;" name="file_support" id="file_support" accept=".pdf">
<input type="button" name="savefile" class="savefile" alt="file_support" title="supportfile" data-flag="supportflag" value="Save" style="border:1px solid #000; padding:0px 5px;" />
<?php else: ?>
Use View button to view File
<?php endif; ?>
<input type="hidden" name="supportfile" id="supportfile" value="<?php echo $this->_tpl_vars['values']['supportfile']; ?>
" />
<input type="hidden" name="supportflag" id="supportflag" value="" />
<?php if ($this->_tpl_vars['values']['supportfile'] != ''): ?>
<a href="<?php echo ((is_array($_tmp=$this->_tpl_vars['values']['supportfile'])) ? $this->_run_mod_handler('storage', true, $_tmp, 'rsa') : smarty_modifier_storage($_tmp, 'rsa')); ?>
" class="viewlink" target="_blank" style="border:1px solid #000; padding:1px 5px;">View</a>
<?php endif; ?>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['20']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['supportfile']; ?>
</span>
</td>
</tr>
<tr class="salestype1">
<td align="center" valign="top" class="txt_11_red">*</td>
<td align="left" valign="top">Attach Invoice : </td>
<td align="left" valign="top">
<div style="float:left;">
<?php if ($_SESSION['invoicefile'] == ''): ?>
<input type="file" class="browse" value="" tabindex="22" style="width:auto;" name="file_invoice" id="file_invoice">
<input type="button" name="savefile" class="savefile" alt="file_invoice" title="invoicefile" value="Save" data-flag="invoiceflag" style="border:1px solid #000; padding:0px 5px;" />
<?php else: ?>
Use View button to view File
<?php endif; ?>
<input type="hidden" name="invoicefile" id="invoicefile" value="<?php echo $this->_tpl_vars['values']['invoicefile']; ?>
" />
<input type="hidden" name="invoiceflag" id="invoiceflag" value="" />
<?php if ($this->_tpl_vars['values']['invoicefile'] != ''): ?>
<a href="../<?php echo $this->_tpl_vars['values']['invoicefile']; ?>
" class="viewlink" target="_blank" style="border:1px solid #000; padding:1px 5px;">View</a>
<?php endif; ?>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['21']['content']; ?>
" class="under">(?)</a>
</div>
<div style="float:left; width:195px; margin-left:5px;"><a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/invoice')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" class="Clstr_hints">Learn more about Attaching Invoices</a>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['22']['content']; ?>
" class="under">(?)</a>
</div>
<br/>
<br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['invoicefile']; ?>
</span>
</td>
</tr>
<tr class="row2">
<td align="center" valign="top" colspan="3"><span class="black">Your Trade Terms</span></td>
</tr>
<tr>
<td height="43"> </td>
<td align="left" valign="top"><strong style="font-size:11px;">Your Offer :</strong> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['23']['content']; ?>
" class="under"><strong>(?)</strong></a></td>
<td align="left" valign="top">
<table cellpadding="3" cellspacing="0" border="0" width="100%" id="field_set1_model1" style="display:none;">
<tr>
<td valign="top" align="center" class="txt_11_red" width="5">*</td>
<td width="127" valign="top">Purchase Price:</td>
<td width="300" valign="top"><input type="text" tabindex="23" maxlength="6" size="6" class="text_6_code" value="<?php echo $this->_tpl_vars['values']['purchase_price']; ?>
" name="purchase_price" id="purchase_price">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['24']['content']; ?>
" class="under">(?)</a> <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/price')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" class="Clstr_hints">Learn more about Purchase Price</a> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['25']['content']; ?>
" class="under">(?)</a> <br />
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['purchase_price']; ?>
</span>
</tr>
</table>
<table cellpadding="3" cellspacing="0" border="0" width="100%" id="field_set1_model2" style="display:none;">
<tr>
<td valign="top" align="center" class="txt_11_red" width="5">*</td>
<td width="127" valign="top">Monthly Discount Percentage: </td>
<td width="300" valign="top"><input type="text" maxlength="6" tabindex="24" size="6" class="text_6_code" value="<?php echo $this->_tpl_vars['values']['discount_price']; ?>
" name="discount_price" id="discount_price" readonly>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['26']['content']; ?>
" class="under">(?)</a> <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/sales')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" class="Clstr_hints">Learn more about Discount Percentages</a> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['27']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['discount_price']; ?>
</span>
</tr>
</table>
</td>
</tr>
<?php if ($this->_tpl_vars['published']['70']['published'] == '1'): ?>
<tr>
<td height="43"> </td>
<td align="left" valign="top"><table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td align="left" valign="top" width="100"><strong style="font-size:11px;">Allow Buy Out: </strong></td>
<td align="left" valign="top"><input type="checkbox" value="1" tabindex="25" name="buyout" id="buyout" checked="true" readonly="true" onclick="return false;" /> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['28']['content']; ?>
" class="under">(?)</a></td>
<!-- onclick="javascript:loadFields();" <?php if (( $this->_tpl_vars['values']['buyout'] == 1 )): ?> checked <?php endif; ?> -->
</tr>
</table></td>
<td align="left" valign="top">
<table cellpadding="3" cellspacing="0" border="0" width="100%" id="field_set2_model1" style="display:none;">
<tr>
<td valign="top" align="center" class="txt_11_red" width="5">*</td>
<td width="127" valign="top">Buy Out Purchase Price: </td>
<td width="300" valign="top"><input type="text" maxlength="6" size="6" tabindex="26" class="text_6_code" value="<?php echo $this->_tpl_vars['values']['buyout_price']; ?>
" name="buyout_price" id="buyout_price">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['29']['content']; ?>
" class="under">(?)</a> <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/sales')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" class="Clstr_hints">Learn more about Buy Out</a> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['30']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['buyout_price']; ?>
</span>
</tr>
</table>
<table cellpadding="3" cellspacing="0" border="0" width="100%" id="field_set2_model2" style="display:none;">
<tr>
<td valign="top" align="center" class="txt_11_red" width="5">*</td>
<td width="127" valign="top">Buy Out Discount Percentage: </td>
<td width="300" valign="top"><input type="text" tabindex="27" maxlength="6" size="6" class="text_6_code" value="<?php echo $this->_tpl_vars['values']['buyout_discount_price']; ?>
" name="buyout_discount_price" id="buyout_discount_price" readonly>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['31']['content']; ?>
" class="under">(?)</a> <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/sales')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" class="Clstr_hints">Learn more about Buy Out</a> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['32']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['buyout_discount_price']; ?>
</span>
</tr>
</table>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_tpl_vars['published']['62']['published'] == '1' || $this->_tpl_vars['published']['63']['published'] == '1'): ?>
<?php if (count($this->_tpl_vars['sales_types']) > 0 && $this->_tpl_vars['sales_types']['0']['type_id'] != 4): ?>
<tr>
<td> </td>
<td align="left" valign="top"><strong style="font-size:11px;">Close Trade on: </strong> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['33']['content']; ?>
" class="under">(?)</a></td>
<td align="left" valign="top"><table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top" align="left" width="58%">
<?php if ($this->_tpl_vars['published']['63']['published'] == '1'): ?>
<input type="radio" tabindex="28" <?php if ($this->_tpl_vars['values']['closing'] == '1' || $this->_tpl_vars['values']['closing'] == '' || $this->_tpl_vars['published']['62']['published'] == '0'): ?>checked="checked" <?php endif; ?> class="text_dd_code" id="closing" value="1" name="closing"> Bid Equals Offer
<?php endif; ?>
<?php if ($this->_tpl_vars['published']['62']['published'] == '1'): ?>
<input type="radio" tabindex="29" <?php if ($this->_tpl_vars['values']['closing'] == '2' || $this->_tpl_vars['published']['63']['published'] == '0'): ?>checked="checked" <?php endif; ?> class="text_dd_code" id="closing" value="2" name="closing"> Date & Time indicated below
<?php endif; ?>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['34']['content']; ?>
" class="under">(?)</a> <br /><span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['closing']; ?>
<td valign="top" align="left" width="37%"> <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/originator/sales')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" class="Clstr_hints">Learn more about Closing Trades</a> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['35']['content']; ?>
" class="under">(?)</a>
</td>
</tr>
</tbody>
</table></td>
</tr>
<?php else: ?>
<tr>
<td colspan="3"> <input type="hidden" id="closing" value="2" name="closing"></td>
</tr>
<?php endif; ?>
<?php else: ?>
<tr>
<td colspan="3"> <input type="hidden" id="closing" value="2" name="closing"></td>
</tr>
<?php endif; ?>
<?php if (count($this->_tpl_vars['sales_types']) > 0 && $this->_tpl_vars['sales_types']['0']['type_id'] != 4): ?>
<tr>
<td> </td>
<td align="left" valign="top">Trade Closing :</td>
<td align="left" valign="top"><table cellspacing="0" cellpadding="3" border="0">
<tbody>
<tr>
<td valign="top" align="center" class="txt_11_red" width="5">*</td>
<td align="left" width="40" valign="top">Date</td>
<td align="left" width="170" valign="top"><div id="body_tag">
<div id="search_all_id1" class="search_all">
<div class="search_element1">
<div class="city_div">
<input type="text" maxlength="2" tabindex="30" size="2" class="text_dd_code" id="tr_date" value="<?php echo $this->_tpl_vars['values']['tr_date']; ?>
" name="tr_date">
<input type="text" maxlength="2" tabindex="31" size="2" class="text_dd_code" id="tr_month" value="<?php echo $this->_tpl_vars['values']['tr_month']; ?>
" name="tr_month">
<input type="text" maxlength="4" tabindex="32" size="4" class="text_c_code" id="tr_year" value="<?php echo $this->_tpl_vars['values']['tr_year']; ?>
" name="tr_year">
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['36']['content']; ?>
" class="under">(?)</a>
<script>
//Trading Close Date picker
$(function() {
$( "#tr_year" ).datepicker({
minDate: 0,
showOn: "button",
buttonImage: "<?php echo ((is_array($_tmp='/images/calender_month.png')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
",
buttonImageOnly: true,
onSelect: function( selectedDate ) {
var i =0;selDate = selectedDate.split('/');var dates = new Array("tr_month","tr_date","tr_year");
for(i = 0; i <=2; i++){
$( "#"+dates[i] ).val(selDate[i]);
}
}
});
});
</script>
</div>
</div>
<div class="clear_div"></div>
</div>
</div>
<br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['tr_date']; ?>
</span></td>
<td valign="top" align="center" class="txt_11_red">*</td>
<td align="left" width="70" valign="top">
<!--<select name="hours" id="hours" class="cmb_bx3" >
<option selected="selected">Hrs</option>
<option value="00">00</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
</select>
<select name="hours" id="hours" class="cmb_bx3" >
<option value="">Hrs</option>-->
<?php
$values = $this->get_template_vars('values');
$site = $this->get_template_vars('site');
$output ='';
/* if($values['hours'] !=''){*/
$hours = $values['hours'];
/*}else{
$hours = explode(":",$site['auction_start']);
$hours = $hours[0];
}*/
for($i=0;$i <=24;$i++){
if($i <=9){
$output .='<option value="0'.$i.'" ';
if($i == round($hours)){
$output .=' selected="selected"';
}
$output .='>0'.$i.'</option>';
}else{
$output .='<option value="'.$i.'" ';
if($i == round($hours)){
$output .=' selected="selected"';
}
$output .='>'.$i.'</option>';
}
}
//echo $output;
?>
<?php echo $this->_tpl_vars['hours']; ?>
</select>
<br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['hours']; ?>
</span></td>
<td width="10" valign="top" align="left">:</td>
<td align="left" width="120" valign="top"><!--<select name="mins" id="mins" class="cmb_bx3">
<option selected="selected">Mins</option>
<option value="00">00</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
<option value="32">32</option>
<option value="33">33</option>
<option value="34">34</option>
<option value="35">35</option>
<option value="36">36</option>
<option value="37">37</option>
<option value="38">38</option>
<option value="39">39</option>
<option value="40">40</option>
<option value="41">41</option>
<option value="42">42</option>
<option value="43">43</option>
<option value="44">44</option>
<option value="45">45</option>
<option value="46">46</option>
<option value="47">47</option>
<option value="48">48</option>
<option value="49">49</option>
<option value="50">50</option>
<option value="51">51</option>
<option value="52">52</option>
<option value="53">53</option>
<option value="54">54</option>
<option value="55">55</option>
<option value="56">56</option>
<option value="57">57</option>
<option value="58">58</option>
<option value="59">59</option>
</select>
<select name="mins" id="mins" class="cmb_bx3">
<option value="">Mins</option>-->
<?php
$values = $this->get_template_vars('values');
$site = $this->get_template_vars('site');
$output ='';
/* if($values['mins'] !=''){*/
$mins = $values['mins'];
/*}else{
$minutes = explode(":",$site['auction_start']);
$mins = $minutes[1];
}*/
for($i=0;$i <=59;$i++){
if($i <=9){
$output .='<option value="0'.$i.'" ';
if($i == round($mins)){
$output .=' selected="selected"';
}
$output .='>0'.$i.'</option>';
}else{
$output .='<option value="'.$i.'" ';
if($i == round($mins)){
$output .=' selected="selected"';
}
$output .='>'.$i.'</option>';
}
}
//echo $output;
?>
<?php echo $this->_tpl_vars['mins']; ?>
</select>
<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['37']['content']; ?>
" class="under">(?)</a> <br/>
<span style="color:#FF0000;">
<?php echo $this->_tpl_vars['messages']['mins']; ?>
</span></td>
</tr>
</tbody>
</table></td>
</tr>
<?php endif; ?>
<tr class="row2">
<td align="center" valign="top" colspan="3"><input type="checkbox" tabindex="35" value="1" name="debx" id="debx"<?php if (( $this->_tpl_vars['values']['debx'] == 1 )): ?> checked <?php endif; ?>>
Use <a href="javascript:void(0);" onclick="javascript:window.open('<?php echo ((is_array($_tmp='/exchange-help/collection')) ? $this->_run_mod_handler('tokenUrl', true, $_tmp) : smarty_modifier_tokenUrl($_tmp)); ?>
','','scrollbars=yes,width=1000,height=800');" style="color:#0033FF; text-decoration:underline;">ETR Collection Service</a> for this invoice: <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['38']['content']; ?>
" class="under">(?)</a></td>
</tr>
<tr>
<td align="center" valign="top" colspan="3">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="40"> </td>
<td width="" align="center" valign="middle">
<input type="submit" tabindex="36" class="login_bttn" value="Save" name="save">
<input type="submit" tabindex="37" class="login_bttn" value="Submit" name="submits">
</td>
</tr>
</table>
</td>
</tr>
<!-- <tr class="row3">
<td align="center" valign="top" colspan="3" ><span class="txt_11_red">*<span> <input type="checkbox" value="1" name="ack_notice" id="ack_notice" tabindex="24" <?php if (( $this->_tpl_vars['values']['ack_notice'] == 1 )): ?> checked <?php endif; ?>>
<span style="font-size:11px;">Send Notice of Assignement now.</span> <a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['help']['38']['content']; ?>
" class="under">(?)</a><br />
<?php echo $this->_tpl_vars['messages']['ack_notice']; ?>
</td>
</tr> -->
<tr>
<td colspan="3"><?php if ($this->_tpl_vars['ownership'] != '1'): ?>
<!--<div style="color:#FF0000; font-weight:bold; font-size:11px;" align="center">You are selling this invoice and giving legal title to the buyer (i.e. Investor/Dealer). You must permit the Exchange to send the <a href="javascript:void(0);" onclick="javascript:window.open('/legal/ownership','','scrollbars=yes,width=960,height=800');" style="color:#0033FF; text-decoration:underline; font-weight:bold; font-size:11px;">Notice of Assignement</a>, otherwise the buyer will not pay.</div>-->
<?php endif; ?></td>
</tr>
</tbody>
</table>
</form>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td align="left" valign="top"> </td>
</tr>
</tbody>
</table>
<script>
$(document).ready(function(){
calCurrencyRate($('#debtor_id').val());
});
$("#etr_face_value").bind('blur keyup',function(){
calCurrencyRate(val);
});
function calCurrencyRate(val)
{
$.post(
"?do=calcurrencyrate",
{id:val},
function(responseText){
responseText = responseText.split("+");
$("#country_id").val(responseText[2]);
$("#currency_country_id").val(responseText[0]);
});
}
function populateVal(str){
var debtor = $("#debtor_id option:selected").val();
var salestype = $("#sales_type option:selected").val();
if(salestype=='4-model2'){
$.post(
"?do=gettradevalues",
{id:str},
function(responseText){
if(debtor!=''){
var spl=responseText.split("+");
if(spl[0]=='0'){
$("#etr_face_value").val(spl[1]);
}else{
$("#etr_face_value").val(spl[0]);
}
$('#payment').val(spl[3]);
calCurrencyRate(debtor);
}else{
$("#etr_face_value").val('');
$("#etr_no").val('');
}
},
"html"
);
}
}
<?php if (! empty ( $this->_tpl_vars['messages'] )): ?>
//Executes php validation error are thrown
function valids(){
//var mins
//document.getElementById('mins').selectedIndex = Number('<?php echo $this->_tpl_vars['values']['mins']; ?>
')+1;
//document.getElementById('hours').selectedIndex = Number('<?php echo $this->_tpl_vars['values']['hours']; ?>
')+1;
var debtor = '<?php echo $this->_tpl_vars['values']['debtor_id']; ?>
';
for(i=0;i<(document.getElementById('debtor_id').length);i++){
if(document.getElementById('debtor_id').options[i].value == debtor){
document.getElementById('debtor_id').options[i].selected =true;
}
}
var sales_type = '<?php echo $this->_tpl_vars['values']['sales_type']; ?>
';
for(i=0;i<(document.getElementById('sales_type').length);i++){
if(document.getElementById('sales_type').options[i].value == sales_type){
document.getElementById('sales_type').options[i].selected =true;
}
}
}
valids();
<?php else: ?>
$('.salestype2').addClass('none');
<?php endif; ?>
$('.savefile').on('click',function(e){
var thiss = $(this);
var span = $(this).parents('td').first().find('span');
var viewlinks = $(this).parents('td').first().find('.viewlink');
var filename = $(this).attr('alt');
var postname = '#'+$(this).attr('title');
var flagname = $(this).data('flag');
if($('#'+filename).val()!=''){
if(viewlinks != 'undefined') viewlinks.remove();
$('<img>',{
src:'<?php echo ((is_array($_tmp='/images/loading1.gif')) ? $this->_run_mod_handler('siteUrl', true, $_tmp) : smarty_modifier_siteUrl($_tmp)); ?>
',
height: '18',
border:'0'
}).insertAfter(thiss).css({'margin':'4px 10px 0 10px', 'vertical-align':'top'}).addClass('clsimg');
$('#opentrade').ajaxSubmit({
target: '#output' ,
action:'index.php?do=fileupload',
files_name: filename,
complete: function(xhr) {
span.html('');
$('#'+filename).val('');
var data = $.parseJSON(xhr.responseText);
if(!data || !data.success){
span.html(data?data.message:'File Upload Error, Please Try Again');
return;
}
$(postname).val(data.path);
var anchors = '<a target="_blank" class="viewlink" href="'+data.url+'" style="border:1px solid #000; padding:1px 5px; margin-left:4px;">View</a>';
$(anchors).insertAfter(thiss);
}
});
thiss.parents('td').first().find('.clsimg').remove();
}
e.preventDefault(); // <-- important
return false;
});
function loadFields()
{
var fieldSet,buyout;
fieldSet=$("#sales_type").val();
var fieldSetId=fieldSet.split("-")[1];
buyout=$("#buyout:checked").val();
$("#field_set1_model1").hide();
$("#field_set1_model2").hide();
$("#field_set2_model1").hide();
$("#field_set2_model2").hide();
$("#field_set1_"+fieldSetId).show();
if(buyout=="1")
{
$("#field_set2_"+fieldSetId).show();
}
if(fieldSet == '4-model2'){
$('.salestype2').removeClass('none');
$('.salestype1').addClass('none');
var str = $("#debtor_id option:selected").val();
if(str ==''){
//str = '<?php echo $this->_tpl_vars['values']['type']; ?>
';
str = '<?php echo $this->_tpl_vars['values']['debtor_id']; ?>
';
}
$.post("?do=getrevolvingdebtor&type=debtor",{id: str,flag:1},
function(responseText){
$("#debtor_id").html(responseText);
},"html"
);
$('#firstExDate').html('<span class="txt_11_red"> * </span> Expected Date : <span class="txt_11_cute">(DD/MM/YYYY)</span> ');
$('#firstExDate').css('width','21%');
// <span class="txt_11_cute">(DD/MM/YYYY)</span>
}else{
$('.salestype2').addClass('none');
$('.salestype1').removeClass('none');
var str = $("#debtor_id option:selected").val();
if(str ==''){
str = '<?php echo $this->_tpl_vars['values']['debtor_id']; ?>
';
}
$.post("?do=getrevolvingdebtor&type=debtor",{id: str,flag:0},
function(responseText){
$("#debtor_id").html(responseText);
},"html"
);
$('#firstExDate').html('<span class="txt_11_red"> * </span> Expected Date : <span class="txt_11_cute">(DD/MM/YYYY)</span> ');
$('#firstExDate').css('width','17%');
// <span class="txt_11_cute">(DD/MM/YYYY)</span>
}
}
loadFields();
function deleteTrade()
{
id = '<?php echo $_GET['id']; ?>
';
if(confirm("Are you sure want to delete this trade?"))
{
window.location = "?do=deletetrade&id="+id;
}
}
// populateVal($("#debtor_id option:selected").val());
</script>
<style>
.clsrm td{
line-height:normal;
padding:0 !important;
}
.none{
display:none;
}
.Clstr_hints, .Clstr_hints:hover{
font-size:10px !important;
}
.text_dd_code{
width: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);
?>