<?php
$this->_var['exjs'][] = $this->_var['TMPL_REAL']."/js/exchange.js";
$this->_var['cexjs'][] = $this->_var['TMPL_REAL']."/js/exchange.js";
?>
<script type="text/javascript">
var exchange_json_data = {$exchange_json_data};
</script>
<script type="text/javascript" src="{function name="parse_script" v="$exjs" c="$cexjs"}"></script>

<div class="inc">
	<div class="inc_top">{$page_title}</div>
	<div class="inc_main">		
		<div class="sub_nav">
			<span {if $ACTION_NAME eq 'index'}class="act"{/if}><a href="{url x="shop" r="uc_money#index"}">{$LANG.UC_LOGS}</a></span>
			<span {if $ACTION_NAME eq 'carry'}class="act"{/if}><a href="{url x="shop" value="uc_money#carry"}">{$LANG.UC_CARRY}</a></span>
			{if $allow_exchange}
			<span {if $ACTION_NAME eq 'exchange'}class="act"{/if}><a href="{url x="shop" value="uc_money#exchange"}">{$LANG.UC_EXCHANGE}</a></span>
			{/if}
		</div>

		
		<!---->
		<div class="money_box">							
			<h3 class="credit-title">{$LANG.YOUR_TOTAL_MONEY} <strong class="red">{function name="format_price" value=$user_info.money}</strong>
			，{$LANG.YOUR_TOTAL_SCORE}： <strong class="red">{function name="format_score" value=$user_info.score}</strong>
			，当前经验值： <strong class="red">{$user_info.point}</strong>
			</h3>	
		</div>
		<!---->
			
		<div class="blank"></div>
		
		<div class="pd10" style="width:600px;">
			兑换数量：&nbsp;&nbsp;
			<input type="text" class="f-input" name="amountdesc" id="amountdesc" size="4"  />
			&nbsp;&nbsp;
			<select name="key" id="key">
				{foreach from=$exchange_data key=key item=exchange_desc}
				<option value="{$key}" rel="{$exchange_desc.title}">{$exchange_desc.title}({$exchange_desc.ratiodesc} {$exchange_desc.title}:{$exchange_desc.ratiosrc} {$exchange_desc.srctitle})</option>
				{/foreach}
			</select>
			&nbsp;&nbsp;
			所需
			&nbsp;&nbsp;
			<input type="text" class="f-input" name="amountsrc" id="amountsrc"   size="4"  onfocus="this.blur();" />
			&nbsp;&nbsp;
			<span id="titlesrc"></span>
			<div class="blank"></div>
			登录密码：&nbsp;&nbsp;
			<input type="password" name="user_pwd" id="user_pwd" class="f-input" />
			<div class="blank"></div>
			<input type="button" id="doexchange" value="兑换" class="formbutton" />
		</div><!--end exchange_box-->
		
	</div>
	<div class="inc_foot"></div>
</div>
