4 || (strlen($f_street) > 1 && (strlen($f_zipcode) > 1 || strlen($f_city) > 1))) : // ********************************************************************* // * Selection of the costcenters of the current customer for the list * // ********************************************************************* $whereClause = ""; if ($f_street != "") : $whereClause .= "ad_street LIKE '" . $f_street . "%'"; endif; if ($whereClause != "" && $f_zipcode != "") : $whereClause .= " AND "; endif; if ($f_zipcode != "") : $whereClause .= "ad_zipcode LIKE '" . $f_zipcode . "%'"; endif; if ($whereClause != "" && $f_city != "") : $whereClause .= " AND "; endif; if ($f_city != "") : $whereClause .= "ad_city LIKE '" . $f_city . "%'"; endif; if ($whereClause != "" && $f_country != "") : $whereClause .= " AND "; endif; if ($f_country != "") : $whereClause .= "ad_country LIKE '" . $f_country . "%'"; endif; // if ($whereClause != "") : $whereClause = " AND " . $whereClause; endif; if ($orderClauseDefault == "") : $orderClause = "ad_street, ad_zipcode"; else : $orderClause = "ad_" . $orderClauseDefault; endif; // ******************* // * TABLE "address" * // ******************* $sqlquery = "SELECT ad.ad_id, ad.ad_street, ad.ad_zipcode, ad.ad_city, ad.ad_country" . " FROM address AS ad" . " WHERE " . $whereClause . " ORDER BY " . $orderClause; $lineToggler = 0; $result = $db->dbQ($sqlquery); while ($row = $result->fetch_assoc()): $numOfRows++; if ($lineToggler == 0) : $lineToggler = 1; else : $lineToggler = 0; endif; $cellColor = getListColor($numOfRows, $lineToggler); $v_ad_id = $row["ad_id"]; $v_ad_street = $row["ad_street"]; $v_ad_zipcode = $row["ad_zipcode"]; $v_ad_city = $row["ad_city"]; $v_ad_country = $row["ad_country"]; $out .= ""; $out .= " $v_ad_street   "; $out .= " $v_ad_zipcode   "; $out .= " $v_ad_city   "; $out .= " $v_ad_country   "; // $out .= " $v_ad_district   "; $out .= " " . "" . getLngt("Bearbeiten") . " "; $out .= "\n"; endwhile; $result->free(); // ************************************************************************************** // * TABLE "street" Selection of the costcenter based on a search by companyname-prefix * // ************************************************************************************** if (TRUE) : $whereClause = ""; if ($f_street != "") : $whereClause .= "st_street LIKE '" . $f_street . "%'"; endif; if ($whereClause != "" && $f_zipcode != "") : $whereClause .= " AND "; endif; if ($f_zipcode != "") : $whereClause .= "st_zipcode LIKE '" . $f_zipcode . "%'"; endif; if ($whereClause != "" && $f_city != "") : $whereClause .= " AND "; endif; if ($f_city != "") : $whereClause .= "st_city LIKE '" . $f_city . "%'"; endif; if ($whereClause != "" && $f_country != "") : $whereClause .= " AND "; endif; if ($f_country != "") : $whereClause .= "st_country LIKE '" . $f_country . "%'"; endif; // if ($whereClause != "") : $whereClause = " AND " . $whereClause; endif; if ($orderClauseDefault == "") : $orderClause = "st_street, st_zipcode"; else : $orderClause = "st_" . $orderClauseDefault; endif; $sqlquery = "SELECT st_id, st_district, st_street, st_zipcode, st_city, st_country" . " FROM phoenix_special.street" . " WHERE " . $whereClause . " ORDER BY " . $orderClause; $result = $db->query($sqlquery); if (DB::isError($result)) die ("$PHP_SELF: " . $result->getMessage()); $lineToggler = 0; while ($row = $result->fetch_assoc()): $numOfRows2++; if ($lineToggler == 0) : $lineToggler = 1; else : $lineToggler = 0; endif; $cellColor = getListColor($numOfRows2, $lineToggler); $v_ad_id = $row["st_id"]; $v_ad_district = $row["st_district"]; $v_ad_street = $row["st_street"]; $v_ad_zipcode = $row["st_zipcode"]; $v_ad_city = $row["st_city"]; $v_ad_country = $row["st_country"]; $out2 .= ""; // $out2 .= " $v_csc_name "; $out2 .= " " . "" . $v_ad_street . "" . " "; $out2 .= " $v_ad_zipcode   "; $out2 .= " $v_ad_city   "; // $out2 .= " $v_ad_country   "; // $out2 .= " $v_ad_district   "; $out2 .= " " . "" . getLngt("Löschen") . " "; $out2 .= "\n"; endwhile; $result->free(); endif; // if (FALSE) else : $statusMessage = getLngt("Eingabe entw. mind. 5 Zeichen bei Straße oder mind. 2 Zeichen bei Straße in Verbindung mit mind. 2 Zeichen bei Ort oder PLZ!"); endif; endif; ?> <?php echo $pageTitel ?>
"> "> "> ">
 
"> "> "> ">