{template "header.html"}
<div class="note note-danger">
    <p>{dr_lang('为指定账户进行充值金额')}</p>
</div>
<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {$form}
    <div class="portlet bordered light myfbody">
        <div class="portlet-title">
            <div class="caption">
                <span class="caption-subject font-green "><i class="fa fa-rmb"></i> {dr_lang('用户充值')}</span>
            </div>
        </div>
        <div class="portlet-body form">
            <div class="form-body">

                <div class="form-group" id="dr_row_unit">
                    <label class="col-md-2 control-label">{dr_lang('充值类型')}</label>
                    <div class="col-md-9">
                        <div class="mt-radio-inline">
                            <label class="mt-radio mt-radio-outline"><input name="data[unit]" checked type="radio" value="2"  /> {dr_lang('人民币')} <span></span></label>
                            {if dr_is_app('scorelog')}<label class="mt-radio mt-radio-outline"><input name="data[unit]" type="radio" value="1" /> {SITE_SCORE} <span></span></label>{/if}
                            {if dr_is_app('explog')}<label class="mt-radio mt-radio-outline"><input name="data[unit]" type="radio" value="3" /> {SITE_EXPERIENCE} <span></span></label>{/if}
                        </div>
                    </div>
                </div>
                {$myfield}
                <div class="form-group" id="dr_row_type">
                    <label class="col-md-2 control-label">{dr_lang('处理方式')}</label>
                    <div class="col-md-9">
                        <div class="mt-radio-inline">
                            <label class="mt-radio mt-radio-outline"><input name="data[type]" checked type="radio"  value="1"  /> {dr_lang('增加')} <span></span></label>
                            <label class="mt-radio mt-radio-outline"><input name="data[type]"  type="radio" value="0"  /> {dr_lang('减少')} <span></span></label>
                        </div>
                    </div>
                </div>
                <div class="form-group" id="dr_row_value">
                    <label class="col-md-2 control-label">{dr_lang('处理金额')}</label>
                    <div class="col-md-9">
                        <label><input type="text" class="form-control input-large" id="dr_value" name="data[value]"></label>
                        <span class="help-block"> {dr_lang('账户余额±处理金额＝账户实际金额')} </span>
                    </div>
                </div>
                <div class="form-group" id="dr_row_note">
                    <label class="col-md-2 control-label">{dr_lang('备注说明')}</label>
                    <div class="col-md-9">
                        <textarea class="form-control" id="dr_note" name="data[note]" rows="4"></textarea>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            <button type="button" onclick="dr_ajax_submit('{dr_now_url()}', 'myform', 2000)" class="btn blue"> <i class="fa fa-save"></i> {dr_lang('确定操作')}</button>
        </div>
    </div>
</form>

{template "footer.html"}