插件使用教程:自定义捐款

自定义捐款/付款使用

插件介绍和下载方法:http://www.xunruicms.com/shop/app/187.html


自定义捐款付款用于后台发起的收款表单,如下示例





自定义捐款/付款模板

自定义捐款/付款前台模板目录为:

/gathering/show.html

其中show.html可以由后台自定义文件


一、付款界面(/gathering/show.html)代码:

{template "header.html"}
付款标题:{$title}

付款表单:
{$payform}

{template "footer.html"}


二、付款表单(config/pay/gathering.html)界面代码:


    {dr_form_hidden()}
    
    
    
    

        
            支付金额
            
                {if $html.pay_value}
                
                  {number_format($html.pay_value, 2)} 元

                {else}                                  {/if}             
        
                     账户余额                                {number_format($member.money, 2)} 元

                                           付款方式                                                   {loop $html.pay_type $name $t}                       {$t['icon']} {$t['name']}                      {/loop}                                                                                                                   确认付款