Example #1
0
    $rule .= " and c.channel_name like '%{$_POST["channel_name"]}%' ";
}
if (isset($_POST["bd"]) && $_POST["bd"] != "") {
    $rule .= " and c.bd like '%{$_POST["bd"]}%' ";
}
if (isset($_POST["promotion_team"]) && $_POST["promotion_team"] != "") {
    $rule .= " and c.promotion_number= '{$_POST["promotion_team"]}'";
}
if (isset($_POST["payment_method"]) && $_POST["payment_method"] != "") {
    $rule .= " and c.payment_number='{$_POST["payment_method"]}' ";
}
if (isset($_POST["cooperation_mode"]) && $_POST["cooperation_mode"] != "") {
    $rule .= " and c.cooperation_number= '{$_POST["cooperation_mode"]}'";
}
if (isset($_POST["version_type"]) && $_POST["version_type"] != "") {
    $rule .= " and c.version_number= '{$_POST["version_type"]}'";
}
if (isset($_POST["has_sdk"]) && $_POST["has_sdk"] != "") {
    $rule .= " and c.has_sdk= '{$_POST["has_sdk"]}'";
}
//serch data
$db = new ChannelDB();
$rows = $db->selectChannelNumbers($rule);
createExcel($rows);
?>