= $startTime AND time < $endTime"; $data = mysqli_query($con, $sql); $result = mysqli_fetch_assoc($data); $uniqueUidCountThisMonth = $result['unique_uid_count']; $type = "web_config"; $menu_name = '运营平台'; // 设置默认菜单名 $sql = "SELECT * FROM foundation WHERE type='$type'"; $data = mysqli_query($con, $sql); $result = mysqli_fetch_assoc($data); $site_name = $result['site_name']; } } ?> <?php echo $site_name ?> - 可视化大数据监控大屏

平台总金额

订单总数

产品总数

代理总数
query($sql); // 执行查询 $rows = array(); // 存储每行数据的数组 if ($result->num_rows > 0) { // 将每行数据存储到数组中 while($row = $result->fetch_assoc()) { $rows[] = $row; } } else { // echo "未找到匹配数据"; } ?>
异常时间 用户地址 异常原因
30 ? substr($beizhu, 0, 30) . '...' : $beizhu ?>

代理地区分布统计

代理总数

本月新增

用户分布数据统计

全国客户总量统计

用户总量

本月新增
'; } // 将当前订单数量和总价保存到 session $_SESSION['num_today_order'] = array( 'num' => $num_today_order, 'total_price' => $total_price_today_order ); } ?>

今日订单

今日预估佣金(元)

佣金统计

单位:元
= {$timestamp} AND `channel` = {$channel_id}"; $result2 = mysqli_query($con, $sql); $orders = mysqli_fetch_array($result2)['num']; // 累加订单数量到总数 $total_orders += $orders; } // 初始化渠道占比信息数组 $channel_ratios = array(); // 循环遍历渠道信息,计算每个渠道订单数量占比,并保存到数组中 mysqli_data_seek($result, 0); // 将查询结果句柄指针重置 while ($channel = mysqli_fetch_array($result)) { $channel_id = $channel['channel_id']; $channel_name = $channel['channel_name']; // 查询该渠道三个月内的订单数量 $sql = "SELECT COUNT(*) as num FROM oder WHERE `time` >= {$timestamp} AND `channel` = {$channel_id}"; $result2 = mysqli_query($con, $sql); $orders = mysqli_fetch_array($result2)['num']; // 计算该渠道订单数量占比 $ratio = ($total_orders > 0) ? round($orders/$total_orders*100) : 0; // 将占比信息保存到数组中 $channel_ratios[] = array('name'=>$channel_name, 'ratio'=>$ratio); } ?>

渠道分布

%

%

= UNIX_TIMESTAMP('{$date}')"; $result = mysqli_query($con, $sql); if ($result === false) { die(mysqli_error($con)); // 如果查询出错则输出错误信息 } $row = mysqli_fetch_assoc($result); $jidu = $row['jidu']; ?>

季度佣金进度

70 %

佣金(元)

150%

同比增长
query($sql); $rows = array(); if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $rows[] = $row; } } else { echo "未找到匹配数据"; } ?>

全国热榜

    '; echo $row['goods']; // 输出商品名 echo ''; } ?>

各省热销 // 近30日 //

alert('您尚未登录,没有权限访问该页面');location.href='../login.php';"; }