query($sql); $conn->query($deleteTag); } header("Location: ?Keys=" . $keys . "&Page=" . $page); exit; } $keys = $_GET['Keys'] ?? ''; $keyscode = textEncode($keys); $page = $_GET['Page'] ?? ''; $filterCountry = $_GET['fliterCountry'] ?? ''; $filterQudao = $_GET['fliterQudao'] ?? ''; $filterDeal = $_GET['fliterDeal'] ?? ''; $filterBusiness = $_GET['fliterBusiness'] ?? ''; $filterContact = $_GET['fliterContact'] ?? ''; $filterStr = ""; $urlStr = ""; if (!empty($filterCountry)) { $filterStr .= " AND c.cs_country=" . (int)$filterCountry; $urlStr .= "&fliterCountry=" . $filterCountry; } if (!empty($filterQudao)) { $filterStr .= " AND c.cs_from=" . (int)$filterQudao; $urlStr .= "&fliterQudao=" . $filterQudao; } if (!empty($filterDeal)) { $filterStr .= " AND c.cs_deal=" . (int)$filterDeal; $urlStr .= "&fliterDeal=" . $filterDeal; } if (!empty($filterBusiness)) { $filterStr .= " AND c.cs_type=" . (int)$filterBusiness; $urlStr .= "&fliterBusiness=" . $filterBusiness; } if (!empty($filterContact)) { switch ($filterContact) { case "1": $filterStr .= " AND (cc.tel_1 != '' OR cc.tel_2 != '' OR cc.tel_3 != '')"; break; case "2": $filterStr .= " AND (cc.wechat_1 != '' OR cc.wechat_2 != '' OR cc.wechat_3 != '')"; break; case "3": $filterStr .= " AND (cc.whatsapp_1 != '' OR cc.whatsapp_2 != '' OR cc.whatsapp_3 != '')"; break; case "4": $filterStr .= " AND (cc.email_1 != '' OR cc.email_2 != '' OR cc.email_3 != '')"; break; case "5": $filterStr .= " AND (cc.linkedin_1 != '' OR cc.linkedin_2 != '' OR cc.linkedin_3 != '')"; break; case "6": $filterStr .= " AND (cc.facebook_1 != '' OR cc.facebook_2 != '' OR cc.facebook_3 != '')"; break; case "7": $filterStr .= " AND (cc.alibaba_1 != '' OR cc.alibaba_2 != '' OR cc.alibaba_3 != '')"; break; } $urlStr .= "&fliterContact=" . $filterContact; } $keys = urlencode($keys); $hrefstr = "?keys=" . $keys; ?> 管理区域

搜索条件

序号
客户编号
渠道来源
区域
客户类型
跟进阶段
录入时间
组员
real_escape_string($keyscode) . "%' OR cc.contact_name LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.tel_1 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.tel_2 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.tel_3 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.email_1 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.email_2 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.email_3 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.wechat_1 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.wechat_2 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.wechat_3 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.whatsapp_1_format LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.whatsapp_2_format LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.whatsapp_3_format LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.linkedin_1 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.linkedin_2 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.linkedin_3 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.facebook_1 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.facebook_2 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.facebook_3 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.alibaba_1 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.alibaba_2 LIKE '%" . $conn->real_escape_string($keyscode) . "%' OR cc.alibaba_3 LIKE '%" . $conn->real_escape_string($keyscode) . "%') AND c.cs_belong IN (SELECT id FROM employee WHERE em_role=" . $_SESSION['employee_id'] . ")" . $filterStr . " ORDER BY c.cs_state DESC, c.id DESC"; $result = $conn->query($sqlStr); if ($result && $result->num_rows > 0) { $pageSize = 15; $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); $rows = []; while ($row = $result->fetch_assoc()) { $rows[] = $row; } $paginatedRows = array_slice($rows, $offset, $pageSize); $tempNum = $offset; foreach ($paginatedRows as $row) { $tempNum++; ?>
0): ?>
query("SELECT ch_name FROM qudao WHERE id=" . (int)$row['cs_from']); echo ($qudaoRow = $qudaoResult->fetch_assoc()) ? htmlspecialcharsFix($qudaoRow['ch_name']) : '未填写'; ?>
query("SELECT countryName FROM country WHERE id=" . (int)$row['cs_country']); echo ($countryRow = $countryResult->fetch_assoc()) ? htmlspecialcharsFix($countryRow['countryName']) : '未填写'; ?>
query("SELECT businessType FROM clienttype WHERE id=" . (int)$row['cs_type']); echo ($typeRow = $typeResult->fetch_assoc()) ? htmlspecialcharsFix($typeRow['businessType']) : '未填写'; ?>
成交"; } elseif ($row['cs_deal'] == 2) { echo "明确需求"; } elseif ($row['cs_deal'] == 1) { echo "背景调查"; } else { echo "未成交"; } ?>
query("SELECT em_user FROM employee WHERE id=" . (int)$row['cs_belong']); echo ($employeeRow = $employeeResult->fetch_assoc()) ? htmlspecialcharsFix($employeeRow['em_user']) : '未填写'; ?>
联系方式
备注
Sorry,当前暂无信息
Sorry,没有找到""相关的信息,点击返回
1) { $pageName = "?Keys=" . $keys . $urlStr . "&"; $pagelen = 3; if ($page > 1) { echo "首页"; echo "上一页"; } 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; } } for ($i = $startPage; $i <= $endPage; $i++) { if ($i == $page) { echo "{$i}"; } else { echo "{$i}"; } } if ($page < $totalPages) { if ($totalPages - $page > $pagelen) { echo "...{$totalPages}"; } echo "下一页"; echo "尾页"; } } ?>