异常客户

序号
客户编号
渠道来源
区域
客户类型
跟进阶段
颜色标记
录入时间
操作
'') AND (c.cs_code LIKE '%阿里%' OR c.cs_code LIKE '%1688%') AND c.cs_belong = " . $employee_id . ") OR (c.cs_from = 8 AND NOT EXISTS (SELECT 1 FROM customer_contact WHERE customer_id = c.id AND wechat_1 <> '') AND c.cs_belong = " . $employee_id . ") ) GROUP BY c.id ORDER BY MAX(c.colortag) DESC, c.id DESC"; $result = $conn->query($sqlStr); if ($result && $result->num_rows > 0) { $pageSize = 20; $page = empty($page) ? 1 : $page; $page = $page === 'end' ? ceil($result->num_rows / $pageSize) : $page; $page = !is_numeric($page) || $page < 1 ? 1 : (int)$page; $totalPages = ceil($result->num_rows / $pageSize); $page = $page > $totalPages ? $totalPages : $page; $offset = $pageSize * ($page - 1); // Store all results in array $rows = []; while ($row = $result->fetch_assoc()) { $rows[] = $row; } // Get paginated results $paginatedRows = array_slice($rows, $offset, $pageSize); $tempNum = $offset; foreach ($paginatedRows as $row) { $tempNum++; ?>
0): ?>
query("SELECT ch_name FROM qudao WHERE id = " . $cs_from); if ($qudaoRow = $qudaoResult->fetch_assoc()) { echo htmlspecialcharsFix($qudaoRow['ch_name']); } else { echo "未填写"; } ?>
query("SELECT countryName FROM country WHERE id = " . $cs_country); if ($countryRow = $countryResult->fetch_assoc()) { echo htmlspecialcharsFix($countryRow['countryName']); } else { echo "未填写"; } ?>
query("SELECT businessType FROM clienttype WHERE id = " . $cs_type); if ($typeRow = $typeResult->fetch_assoc()) { echo htmlspecialcharsFix($typeRow['businessType']); } else { echo "未填写"; } ?>
成交'; break; case 2: echo '明确需求'; break; case 1: echo '背景调查'; break; default: echo '无响应'; } ?>
联系方式
'; if (!empty($row['tel_1_list'])) echo htmlspecialcharsFix($row['tel_1_list']) . '
'; if (!empty($row['tel_2_list'])) echo htmlspecialcharsFix($row['tel_2_list']) . '
'; if (!empty($row['tel_3_list'])) echo htmlspecialcharsFix($row['tel_3_list']); echo '
'; // 处理邮箱 echo '
'; if (!empty($row['email_1_list'])) echo '' . htmlspecialcharsFix($row['email_1_list']) . '
'; if (!empty($row['email_2_list'])) echo '' . htmlspecialcharsFix($row['email_2_list']) . '
'; if (!empty($row['email_3_list'])) echo '' . htmlspecialcharsFix($row['email_3_list']) . ''; echo '
'; // 处理WhatsApp echo '
'; if (!empty($row['whatsapp_1_list'])) echo htmlspecialcharsFix($row['whatsapp_1_list']) . '
'; if (!empty($row['whatsapp_2_list'])) echo htmlspecialcharsFix($row['whatsapp_2_list']) . '
'; if (!empty($row['whatsapp_3_list'])) echo htmlspecialcharsFix($row['whatsapp_3_list']); echo '
'; // 处理微信 echo '
'; if (!empty($row['wechat_1_list'])) echo htmlspecialcharsFix($row['wechat_1_list']) . '
'; if (!empty($row['wechat_2_list'])) echo htmlspecialcharsFix($row['wechat_2_list']) . '
'; if (!empty($row['wechat_3_list'])) echo htmlspecialcharsFix($row['wechat_3_list']); echo '
'; // 处理LinkedIn echo '
'; if (!empty($row['linkedin_1_list'])) echo htmlspecialcharsFix($row['linkedin_1_list']) . '
'; if (!empty($row['linkedin_2_list'])) echo htmlspecialcharsFix($row['linkedin_2_list']) . '
'; if (!empty($row['linkedin_3_list'])) echo htmlspecialcharsFix($row['linkedin_3_list']); echo '
'; // 处理Facebook echo ''; // 处理阿里巴巴 echo '
'; if (!empty($row['alibaba_1_list'])) echo htmlspecialcharsFix($row['alibaba_1_list']) . '
'; if (!empty($row['alibaba_2_list'])) echo htmlspecialcharsFix($row['alibaba_2_list']) . '
'; if (!empty($row['alibaba_3_list'])) echo htmlspecialcharsFix($row['alibaba_3_list']); echo '
'; ?>
备注
Sorry,当前暂无信息
Sorry,没有找到""相关的信息,点击返回
1) { $pageName = "?Keys=" . $keys . ($urlStr ?? '') . "&"; $pagelen = 3; // First page and Previous page if ($page > 1) { echo "首页"; echo "上一页"; } // Calculate page range if ($pagelen * 2 + 1 >= $totalPages) { $startPage = 1; $endPage = $totalPages; } else { if ($page <= $pagelen + 1) { $startPage = 1; $endPage = $pagelen * 2 + 1; } else { $startPage = $page - $pagelen; $endPage = $page + $pagelen; } if ($page + $pagelen > $totalPages) { $startPage = $totalPages - $pagelen * 2; $endPage = $totalPages; } } // Page numbers for ($i = $startPage; $i <= $endPage; $i++) { if ($i == $page) { echo "{$i}"; } else { echo "{$i}"; } } // Next page and Last page if ($page < $totalPages) { if ($totalPages - $page > $pagelen) { echo "...{$totalPages}"; } echo "下一页"; echo "尾页"; } } ?>