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

📄 table_manage_class.inc.php

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


function m_cs( $cut_sign, $date_num, $down_type, $start_time, $end_time )
{
    global $conn;
    $as = 0;
    $bnum = 0;
    $dmoney = 0;
    $wins = 0;
    $amoney = 0;
    $smoney = 0;
    $all_num = 0;
    $spa = mysql_query( "select * from super_agent where deleted='0'", $conn );
    $super_num = mysql_num_rows( $spa );
    while ( $rp = mysql_fetch_array( $spa ) )
    {
        $super_agent = $rp['user_account'];
        $sup_profit = profits( $super_agent, 3 );
        $sprofit += 100 - $sup_profit;
        $asp = m_cs( $cut_sign, $date_num, $super_agent, $down_type, $start_time, $end_time );
        $as = split( ",", $asp );
        $bnum += $as[0];
        $dmoney += $as[1];
        $wins += $as[2];
        $amoney += $as[3];
        $smoney += $as[4];
        $mmoney += $as[5];
        unset( $as );
    }
    $pr = round( $sprofit / $super_num, 2 );
    $av = $bnum.",".$dmoney.",".$wins.",".$amoney.",".$smoney.",".$mmoney.",".$pr;
    return $av;
}

include( "../inc/conn.php" );
include( "../inc/base_status.inc.php" );
include( "../inc/win_unit.php" );
include( "../inc/super_class.inc.php" );
$cut_sign = 1;
$date_num = 157;
$down_type = "all";
$start_time = "2006-12-11";
$end_time = "2006-12-12";
$super_agent = "a1000";
echo m_cs( $cut_sign, $date_num, $down_type, $start_time, $end_time );
function m_cs( $cut_sign, $date_num, $down_type, $start_time, $end_time )
{
    global $conn;
    $as = 0;
    $bnum = 0;
    $dmoney = 0;
    $wins = 0;
    $amoney = 0;
    $smoney = 0;
    $all_num = 0;
    $spa = mysql_query( "select * from super_agent where deleted='0'", $conn );
    $super_num = mysql_num_rows( $spa );
    while ( $rp = mysql_fetch_array( $spa ) )
    {
        $super_agent = $rp['user_account'];
        $sup_profit = profits( $super_agent, 3 );
        $sprofit += 100 - $sup_profit;
        $asp = m_cs( $cut_sign, $date_num, $super_agent, $down_type, $start_time, $end_time );
        $as = split( ",", $asp );
        $bnum += $as[0];
        $dmoney += $as[1];
        $wins += $as[2];
        $amoney += $as[3];
        $smoney += $as[4];
        $mmoney += $as[5];
        unset( $as );
    }
    $pr = round( $sprofit / $super_num, 2 );
    $av = $bnum.",".$dmoney.",".$wins.",".$amoney.",".$smoney.",".$mmoney.",".$pr;
    return $av;
}
echo "\r\n";
?>

⌨️ 快捷键说明

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