⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 super_all_result.inc.php

📁 六和投注系统
💻 PHP
字号:
<?php


function sup_all( $all_agent, $date_num, $start_time, $end_time )
{
    global $conn;
    $sqla = mysql_query( "select * from agent where all_agent='{$all_agent}'", $conn );
    $ncount = 0;
    $mcount = 0;
    $ucount = 0;
    $agcount = 0;
    $alcount = 0;
    $all_agent_wins = 0;
    $all_agent_cuts = 0;
    $all_moneys = 0;
    $all_results = 0;
    $super_wins = 0;
    while ( $rs = mysql_fetch_array( $sqla ) )
    {
        $agent = $rs['user_account'];
        $super_agent = $rs['super_agent'];
        $sp = agent_table( $agent, $date_num, $start_time, $end_time );
        $cns = split( ",", $sp );
        $notes = $cns[0];
        $moneys = $cns[1];
        $user_win = $cns[2];
        $agent_win = $cns[3];
        $all_agent_win = $cns[4];
        $ncount += $notes;
        $mcount += $moneys;
        $ucount += $user_win;
        $agcount += $agent_win;
        $alcount += $all_agent_win;
        $agent_profit = profits( $agent, 1 );
        $all_agent_profit = profits( $all_agent, 2 );
        $super_agent_profit = profits( $super_agent, 3 );
        $profits = $all_agent_profit - $agent_profit;
        $all_agent_cut = all_cut( $agent, $all_agent, $date_num, $start_time, $end_time );
        $all_agent_cuts += $all_agent_cut;
        if ( $notes != 0 )
        {
            $all_agent_wins += round( $all_agent_win, 2 );
            $all_money = round( $all_agent_win + $all_agent_cut, 2 );
            $all_moneys += $all_money;
            $all_result = round( $user_win * $profits * 0.01 - $all_agent_cut, 2 );
            $all_results += $all_result;
            $super_win = round( $all_agent_win - $all_result, 2 );
            $super_wins += $super_win;
        }
    }
    $rv = $ncount.",".$mcount.",".$ucount.",".$all_agent_wins.",".$super_wins;
    return $rv;
}

include( "../inc/table_agent.inc.php" );
echo "\r\n";
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -