templates/1/index/default/pc/recharge_credits.php

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<div id=<?php echo $module['module_name'];?>  class="portlet light" monxin-module="<?php echo $module['module_name'];?>" align=left >
<script src="./plugin/datePicker/index.php"></script>

   <script>
	function check_recharge_state(){
		if($("#<?php echo $module['module_name'];?> #money").val()==''){return false;}
		$.post('<?php echo $module['action_url'];?>&act=check_state', function(data){
			try{v=eval("("+data+")");}catch(exception){alert(data);}				
			if(v.state=='fail'){
				
			}else{
				window.location.href='./index.php?monxin=index.credits_log';
			}
		});
	
	}
	
	function update_credits_to_money(){
		v=parseFloat($("#<?php echo $module['module_name'];?>_html .credits").val())*<?php echo $module['rate']?>;
		v=v.toFixed(2);
		$("#<?php echo $module['module_name'];?> .money").html(v);
		$("#<?php echo $module['module_name'];?> .money").attr('money',v);
		$("#<?php echo $module['module_name'];?> .money").html('<?php echo self::$language['money_symbol']?>'+$("#<?php echo $module['module_name'];?> .money").html()+'<?php echo self::$language['yuan']?>');
	}
	
    $(document).ready(function(){
		
		setInterval('check_recharge_state()',1000); 
		
		$("#<?php echo $module['module_name'];?>_html .credits").keyup(function(){
			update_credits_to_money();
		});
		update_credits_to_money();
		
        $(".payment").click(function(){		
			if(!$.isNumeric($("#<?php echo $module['module_name'];?> .money").attr('money'))){
				$("#<?php echo $module['module_name'];?> .credits").focus();$(".credits_state").html('<?php echo self::$language['please_input'];?>');return false;
			}
			if($("#<?php echo $module['module_name'];?> .money").attr('money')<0){
				$("#<?php echo $module['module_name'];?> .credits").focus();$(".credits_state").html('<?php echo self::$language['please_input'];?>');return false;
			}
            json="{'money':'"+$("#<?php echo $module['module_name'];?> .money").attr('money')+"','payment':'"+$(this).attr('payment')+"','return_url':'<?php echo @$_GET['return_url'];?>','notify_url':'<?php echo @$_GET['notify_url'];?>','credits':'"+$("#<?php echo $module['module_name'];?> .credits").val()+"'}";
            try{json=eval("("+json+")");}catch(exception){alert(json);}

            $("#online_div").html("<span class=\'fa fa-spinner fa-spin\'></span>");
            $("#online_div").load('<?php echo $module['action_url'];?>',json,function(){
				$("#payment_form").submit();
            });
			return false;
        });


            
    });
    </script>
    

    
    
    
后面还有 27 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。