JQuarry login verbessert aber noch nicht gefixt
This commit is contained in:
parent
9f095f37b9
commit
98923eb991
3 changed files with 57 additions and 15 deletions
38
index.php
38
index.php
|
@ -1,6 +1,7 @@
|
|||
<head>
|
||||
<title>Cheaterliste</title>
|
||||
<link href="style.css?v=1.0.1" rel="stylesheet" type="text/css">
|
||||
<script src="jquery-3.2.1.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
@ -156,6 +157,8 @@ while($row = $result->fetch_assoc()){
|
|||
|
||||
<div id="login_modal" class="m_login">
|
||||
<div class="m_login_c">
|
||||
|
||||
|
||||
<span class="close">×</span>
|
||||
|
||||
<script>
|
||||
|
@ -176,14 +179,19 @@ while($row = $result->fetch_assoc()){
|
|||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
|
||||
if (!isset ($_SESSION['id'])){
|
||||
echo '<div class="loginform">'.
|
||||
echo '<div class="loginform" id ="log">'.
|
||||
|
||||
'<form action="/login.php" method="post">' .
|
||||
'<input type="text" placeholder="Username" name="user">' .
|
||||
'<input type="password" placeholder="Password" name="pw">' .
|
||||
'<input type="submit" value="Login">' .
|
||||
'<input type="submit" value="Login" id="login_run">' .
|
||||
'</form>' .
|
||||
|
||||
|
||||
|
@ -195,26 +203,28 @@ while($row = $result->fetch_assoc()){
|
|||
return;
|
||||
}
|
||||
?>
|
||||
}
|
||||
<?php
|
||||
echo '<div class="loginform">' .
|
||||
'<form action="/logout.php" method="post">' .
|
||||
'<input type="submit" value="Logout">' .
|
||||
'</form>' .
|
||||
'</div>';
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
echo '<div class="loginform">' .
|
||||
echo '<div class="loginform_login">' .
|
||||
'<form action="/insert.php" method="post">' .
|
||||
'<input type="url" pattern="https?://.+" required placeholder="Link" name="url"><br>' .
|
||||
'<input type="submit" value="Add">' .
|
||||
'<input type="submit" value="Hinzufügen">' .
|
||||
'</form>' .
|
||||
'<form action="/logout.php" method="post">' .
|
||||
'<input type="submit" value="Logout">' .
|
||||
'</form>' .
|
||||
'</div>';
|
||||
|
||||
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
|
|
4
jquery-3.2.1.min.js
vendored
Normal file
4
jquery-3.2.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
30
style.css
30
style.css
|
@ -72,6 +72,7 @@ table.center {
|
|||
margin: auto;
|
||||
bottom: 10px;
|
||||
|
||||
|
||||
}
|
||||
.loginform input {
|
||||
width: 100%;
|
||||
|
@ -87,6 +88,33 @@ table.center {
|
|||
background: #43A047;
|
||||
}
|
||||
|
||||
.loginform_login input {
|
||||
width: 100%;
|
||||
margin: 0 0 15px;
|
||||
box-sizing: border-box;
|
||||
font-size: 16px;
|
||||
padding: 10px;
|
||||
border: 2px solid #DDDDDD;
|
||||
color: #000000;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.loginform_login {
|
||||
|
||||
padding: 30px;
|
||||
padding-bottom: 0px;
|
||||
background: rgba(18,18,18, 0.3);
|
||||
border: 2px solid #DDDDDD;
|
||||
|
||||
|
||||
|
||||
position: absolute;
|
||||
right: 20px;
|
||||
top: 280px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
.bild {
|
||||
background: rgba(18,18,18, 0.3);
|
||||
border-top: 2px solid #DDDDDD;
|
||||
|
@ -124,7 +152,7 @@ table.center {
|
|||
padding: 0;
|
||||
padding-top: 2;
|
||||
position: absolute;
|
||||
right: 160px;
|
||||
right: 125px;
|
||||
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue