{template_user 'head.html'}
<style type="text/css">
    a.btn-warning:hover {
        background:#ec971f;
        margin:0px;
    }

</style>
<div class="index-bg">
	<div class="container">
		<div class="section2">


            <div class="row">

                    <h5><span class="icon-wallet"></span>	<strong>{lang('account')}</strong></h5>


                    <p><!-- <span class="icon-credit-card"></span>	 -->{lang('balance')}：
                   {lang('unit')}<span style="font-size:2.0rem; color: #FF4A00;font-weight: :600;">{getmenoy()}</span></p>
                    <p><!-- <span class="icon-basket-loaded"></span>	 -->{lang('integral')}：{getintegration()}</p>
                    <div class="user-index-right-invest-money">
                        <a href="{url('archive/consumption')}" class="btn btn-warning">{lang('recharge')}</a>

                </div>
                <div class="blank30"></div>

            <div class="user-content-table-nav">
                <ul>
                    <?php if($manage=='consumption'){ ?>
                    <li><a href="{url('manage/consumptionlist/manage/consumption')}" class="active">{lang('recharge_record')}</a></li>
                    <li><a href="{url('manage/consumptionlist/manage/xfconsumption')}" >{lang('records_of_consumption')}</a></li>
                    <?php } else { ?>
                    <li><a href="{url('manage/consumptionlist/manage/consumption')}" >{lang('recharge_record')}</a></li>
                    <li><a href="{url('manage/consumptionlist/manage/xfconsumption')}" class="active">{lang('records_of_consumption')}</a></li>
                    <?php }?>
                </ul>
            </div>
            <div class="blank30"></div>

<div class="user-content">




<form name="listform" id="listform"  action="<?php echo uri();?>" method="post">



<div class="table-responsive">
<table class="table table-striped table-hover ">
    <?php if($manage=='consumption'){ ?>
        <thead>
            <tr class="th">
                <th class="orders-list-id"><!--oid-->{lang('id')}</th>
                <th class="orders-list-title">{lang('recharge_amount')}</th>
                <th class="orders-list-status"><!--status-->{lang('status')}</th>               
                <th class="orders-list-adddate"><!--adddate-->{lang('adddate')}</th>
                <th class="">{lang('dosomething')}</th>
            </tr>

        </thead>
        <tbody>
            {loop $data $d}
            <tr class="s_out">
                <td class="orders-list-id">{$d['oid']} </td>
                <td class="orders-list-title">{cut($d['menoy'])}</td>
                <td class="orders-list-status">
					<?php
					 switch($d['status']){
						   case 1:
						     echo "<p><span class='btn-soft-success'>".lang('complete')."</span></p>";
							break;
							default:
							 echo "<p><span class='btn-icon-inner'>".lang('non-payment')."</span></p>";
							break;
					}
					?>
				</td>
                <td class="orders-list-adddate">{$d['adddate']}</td>
                <td class="">
					<a href='<?php echo url("archive/consumption/oid/".$d['oid'],false);?>' target="_blank" title="{lang('look')}"><i class="glyphicon glyphicon-eye-open"></i></a>
					<?php
					 if($d['status']==0){ ?>&nbsp;&nbsp;
					  <a  class="orders-list-dosomething" href='<?php echo url("archive/payconsumption/oid/".$d['oid'],false);?>' target="_blank" title="{lang('immediate_payment')}"><i class="icon-basket-loaded"></i></a>
					<?php };?>
                </td>
            </tr>
            {/loop}
        </tbody>
    <?php } else { ?>
        <thead>
        <tr class="th">
            <th class="orders-list-id"><!--oid-->{lang('id')}</th>
            <th class="orders-list-title">{lang('consumption_content')}</th>
            <th class="orders-list-title">{lang('consumption_amount')}</th>
            <th class="orders-list-adddate"><!--adddate-->{lang('adddate')}</th>
            <th class="">{lang('dosomething')}</th>
        </tr>

        </thead>
        <tbody>
        {loop $data $d}
        <tr class="s_out">
            <td class="orders-list-id">{cut($d['id'])} </td>
            <td class="orders-list-title">{cut($d['content'])}</td>
            <td class="orders-list-title">{cut($d['menoy'])}</td>
            <td class="orders-list-adddate">{$d['adddate']}</td>
            <td class="">
                <?php $code = explode('-', $d['oid']); if(count($code) == 4 ){  ?>
                     <a href='{url("archive/orders/oid/".$d["oid"])}' target="_blank" title="{lang('look')}"><i class="glyphicon glyphicon-eye-open"></i></a>
                <?php }else{ ?>
                     <a href='{url("archive/consumption/oid/".$d["oid"])}' target="_blank" title="查看"><i class="glyphicon glyphicon-eye-open"></i></a>
                <?php } ?>
            </td>
        </tr>
        {/loop}
        </tbody>
    <?php }?>
    </table>
</div>

    <div class="blank30"></div>
   

</form>


<div class="pages">
<?php if(get('table')!='type' && front::get('case')!='field') echo pagination::html($record_count); ?>
</div>
<div class="blank30"></div>

</div>
</div>
</div>
</div>
<div class="blank30"></div>
{template_user 'foot.html'}