106 lines
4.5 KiB
Smarty
106 lines
4.5 KiB
Smarty
{assign var=meth value=':'|explode:$VAR._page}
|
|
<!-- {$meth.0}:{$meth.1} -->
|
|
|
|
{$method->exe($meth.0,$meth.1)}
|
|
{if ($method->result == false)}
|
|
{$block->display('core:method_error')}
|
|
{else}
|
|
{include file='file:../core/view_pre.tpl'}
|
|
|
|
<!-- Display the field validation -->
|
|
{if $form_validation}
|
|
{$block->display('core:alert_fields')}
|
|
{/if}
|
|
|
|
<!-- Display each record -->
|
|
<form id="view" method="post" action="" enctype="multipart/form-data">
|
|
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_background">
|
|
<tr>
|
|
<td>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0">
|
|
<tr valign="top">
|
|
<td class="table_heading">{osb f=tt}</td>
|
|
</tr>
|
|
<tr valign="top">
|
|
<td class="row1">
|
|
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
|
|
<tr class="row0" valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=name}</td>
|
|
<td style="width: 65%;"><input type="text" name="currency_name" value="{$record.name}" size="32"/></td>
|
|
</tr>
|
|
<tr class="row1" valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=symbol}</td>
|
|
<td style="width: 65%;"><input type="text" name="currency_symbol" value="{$record.symbol}" size="2"/></td>
|
|
</tr>
|
|
<tr class="row1" valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=three_digit}</td>
|
|
<td style="width: 65%;"><input type="text" name="currency_three_digit" value="{$record.three_digit}" size="3" maxlength="3"/></td>
|
|
</tr>
|
|
<tr class="row1" valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=status}</td>
|
|
<td style="width: 65%;">{$list->bool('currency_status',$record.status)}</td>
|
|
</tr>
|
|
<tr class="row3" valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=notes}</td>
|
|
<td style="width: 65%;"><textarea name="currency_notes" cols="50" rows="2" >{$record.notes}</textarea></td>
|
|
</tr>
|
|
<tr class="row3" valign="top">
|
|
<td style="width: 35%;">{osb f=tf field=convert_array}<br/>
|
|
<input type="hidden" value="1" name="currency_convert_array[{$record.id}][rate]"/>
|
|
<input type="hidden" value="{$record.three_digit}" name="currency_convert_array[{$record.id}][iso]"/>
|
|
</td>
|
|
<td style="width: 65%;">
|
|
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="row1">
|
|
{assign var=sql1 value=" AND id != '"}
|
|
{assign var=sql2 value=$record.id}
|
|
{assign var=sql3 value="' AND status = '1'"}
|
|
{assign var=sql value=$sql1$sql2$sql3}
|
|
{if $list->smarty_array('currency','name,symbol,three_digit',$sql,'currency_arr')}
|
|
{$list->unserial($record.convert_array,'convert')}
|
|
{foreach from=$currency_arr item=c_arr}
|
|
<tr class="row1" valign="middle" align="left">
|
|
<td style="width: 17%;"><a href="javascript:showXE('{$record.three_digit}','{$c_arr.three_digit}');"><img src="themes/{$THEME_NAME}/images/currency/{$c_arr.three_digit}.gif" alt="{$c_arr.three_digit}" style="border: 0px;"/></a></td>
|
|
<td style="width: 14%;"><b>{$c_arr.three_digit}</b></td>
|
|
<td style="width: 29%;">
|
|
{assign var=id value=$c_arr.id}
|
|
{assign var=convert_rate value=$convert.$id}
|
|
<input type="text" onfocus="showXE('{$record.three_digit}','{$c_arr.three_digit}'); select(this);" name="currency_convert_array[{$id}][rate]" value="{$convert_rate.rate}" size="6"/>
|
|
<input type="hidden" value="{$c_arr.three_digit}" name="currency_convert_array[{$id}][iso]"/>
|
|
</td>
|
|
<td style="width: 40%;">{$c_arr.name}</td>
|
|
</tr>
|
|
{/foreach}
|
|
{/if}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
{include file='file:../core/view_tr_submit_delete.tpl'}
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{include file='file:../core/view_post.tpl'}
|
|
</form>
|
|
<div>
|
|
<br/>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
{literal}
|
|
function showXE(from,to) {
|
|
showIFrame('iframeXE',500,150,'http://www.xe.com/ucc/convert.cgi?language=xe&ecc=true&Template=se&Amount=1&From='+from+'&To='+to);
|
|
}
|
|
{/literal}
|
|
//-->
|
|
</script>
|
|
|
|
<!-- Display the Quick Search Iframe -->
|
|
<iframe name="iframeXE" id="iframeXE" style="border:0px; width:0px; height:0px" scrolling="auto" allowtransparency="true" frameborder="0" src="themes/{$THEME_NAME}/IEFrameWarningBypass.htm"></iframe>
|
|
{/if}
|