diff --git a/expose.php b/expose.php new file mode 100644 index 0000000..e89432e --- /dev/null +++ b/expose.php @@ -0,0 +1,27 @@ + + + + + +
+ +
+
+ + + + diff --git a/img/gui/pen.png b/img/gui/pen.png new file mode 100644 index 0000000..f56d4c9 Binary files /dev/null and b/img/gui/pen.png differ diff --git a/img/gui/x_725772.png b/img/gui/x_725772.png deleted file mode 100644 index 73012ad..0000000 Binary files a/img/gui/x_725772.png and /dev/null differ diff --git a/index.php b/index.php index faf78b1..d225b51 100644 --- a/index.php +++ b/index.php @@ -34,10 +34,17 @@ include('server/server.php'); - - - + + + + + @@ -45,14 +52,17 @@ include('server/server.php'); diff --git a/server/server.php b/server/server.php index 3671ad4..6a8e9e5 100644 --- a/server/server.php +++ b/server/server.php @@ -19,10 +19,12 @@ if (isset($_POST['name']) && isset($_POST['loc']) && isset($_POST['typ'])){ if ($_POST['typ'] == 'stiftung') { $typNo = 4; } if ($_POST['typ'] == 'festival') { $typNo = 5; } if ($_POST['typ'] == 'kunstler') { $typNo = 6; } - $query = "INSERT INTO `institut`(`name`, `location`, `facebook`, `twitter`, `instagram`, `web`, `typ`) VALUES (\"".$_POST['name']."\",\"".$_POST['loc']."\",\"".$_POST['fb']."\",\"".$_POST['twitter']."\",\"".$_POST['insta']."\",\"".$_POST['web']."\",".$typNo.");"; - //echo(""); + if (isset($_POST['edit'])){ + $query = "UPDATE `institut` SET `name` = '".$_POST['name']."', `location` = '".$_POST['loc']."', `facebook` = '".$_POST['fb']."', `twitter` = '".$_POST['insta']."', `instagram` = '".$_POST['twitter']."', `web` = '".$_POST['web']."', `typ` = '".$typNo."' WHERE `institut`.`id` = " . $_POST['edit'] . ";"; + } else { + $query = "INSERT INTO `institut`(`name`, `location`, `facebook`, `twitter`, `instagram`, `web`, `typ`) VALUES (\"".$_POST['name']."\",\"".$_POST['loc']."\",\"".$_POST['fb']."\",\"".$_POST['insta']."\",\"".$_POST['twitter']."\",\"".$_POST['web']."\",".$typNo.");"; + } mysqli_query($db, $query); - //header("location: #"); } if (isset($_GET['delete'])){ diff --git a/styles/style.css b/styles/style.css index a29c03a..284f3b9 100644 --- a/styles/style.css +++ b/styles/style.css @@ -66,6 +66,41 @@ select{ .leaflet-popup-tip{ display: none; } +#entryListe{ + font-family: 'Work Sans'; + font-size: 14px; + position:absolute; + max-width:15%; + /*min-height:80%;*/ + max-height:65%; + top:80px; + right:70px; + z-index: 401; + padding: 20px; + padding-top: 12px; + padding-bottom: 12px; + overflow: auto; + margin: 0; + background-color:rgba(255,255,255,.75); + border-radius: 3px; +} +#entryListe ul{ + list-style-type: none; + padding: 0px; + padding-left: 20px; + margin-top: 4px; +} +#entryListe li{ + color:rgba(0,0,0,.75); + padding-bottom: 3px; + transition: color .2s; + cursor: default; + text-decoration: none; +} +#entryListe li:hover{ + color:rgba(0,0,0,1); + transition: color .2s; +} #overlay{ position:absolute; @@ -114,8 +149,8 @@ padding-top:12px; } .networkButton{ min-height:4vh; - min-width:20%; - max-width:20%; + min-width:25%; + max-width:25%; background-color:rgba(255,255,255,.6); transition: background-color .5s; color:black; @@ -144,7 +179,13 @@ padding-top:12px; left:40px; top:61px; width:370px; - height:202px; + height:232px; +} +.newMenuIcon{ + position: absolute; + right: 15px; + width:25px; + height:25px; } #new p{ padding:5px;