📄 profit.inc.php
字号:
<?php
function profits( $agent, $n )
{
global $conn;
switch ( $n )
{
case 1 :
$sqlsup = mysql_query( "select * from agent where user_account='{$agent}'", $conn );
$profit = mysql_result( $sqlsup, 0, "profit" );
return $profit;
break;
case 2 :
$sqlsup = mysql_query( "select * from all_agent where user_account='{$agent}'", $conn );
$profit = mysql_result( $sqlsup, 0, "profit" );
return $profit;
break;
case 3 :
$sqlsup = mysql_query( "select * from super_agent where user_account='{$agent}'", $conn );
$profit = mysql_result( $sqlsup, 0, "profit" );
return $profit;
break;
case 4 :
$sqlsup = mysql_query( "select * from agent where user_account='{$agent}'", $conn );
$profit = mysql_result( $sqlsup, 0, "all_profit" );
return $profit;
break;
}
}
function cut_num( $agent, $sign, $cut_plate )
{
global $conn;
if ( $sign = $UN_0 || !isset( $sign ) )
{
$sqlsup = mysql_query( "select * from agent_cut where user_account='{$agent}' and sign='{$sign}' and cut_plate='{$cut_plate}'", $conn );
$cut = mysql_result( $sqlsup, 0, "cut_num" );
return $cut;
}
else
{
return "0";
}
}
echo "\r\n";
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -