www.CB1300.de Standortkarte
Karte | Liste | Suchen | Eintragen | zurück zum Forumrequire_once('conf.php'); require_once('sql.class.php'); if(isset($_GET['suche'])) include("suche.html"); else if(isset($_GET['eintragen'])) include("eintragen.html"); else if(isset($_POST['reg'])) { if($_POST['name'] && $_POST['plz']) { $res=$db->query("SELECT plz FROM ".TABLE_GEODB." WHERE plz='".mysql_real_escape_string($_POST['plz'])."'"); $row = mysql_fetch_assoc($res); if($row['plz']) { $Ins['name']=htmlentities($_POST['name']); $Ins['plz']=$_POST['plz']; foreach((array)$_POST['data'] AS $k => $v) $_POST['data'][$k] = htmlentities($v); $Ins['data']=serialize($_POST['data']); $db->InsertRow(TABLE_USER, $Ins); echo "Danke!"; echo mysql_error(); } else $ePLZ=true; } else $eMissing=true; if($eMissing || $ePLZ) { include("eintragen.html"); } } else if(isset($_GET['l'])) // Tabelle ausgeben { require_once('list.php'); $l=getList($_GET['l'], $_GET['s']); echo '
Name | PLZ | Ort | '; foreach(array_keys($DataFields) AS $f) echo "$f | "; echo '
---|---|---|---|
'.$e['name'].' | '.$e['plz'].' | '.$e['ort'].' | '; foreach(array_keys($DataFields) AS $f) echo ''.$e['data'][$f].' | '; echo '
';
$p=getPoints((int)$_GET['m']);
drawPoints($p);
echo '
';
}
//print_r($Point);
?>
Chaosquake LandMarkSystem (c) by Dominic Szablewski - lms@chaosquake.de - chaosquake.de