-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindexLogat.php
86 lines (58 loc) · 1.97 KB
/
indexLogat.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<?php
include'session.php';
?>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<link rel="stylesheet" href="styleLogat.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Index</title>
</head>
<body>
<div class="dropdown">
<button onclick="myFunction()" class="dropbtn">Contul meu</button>
<div id="myDropdown" class="dropdown-content">
<p id="Hi">Salut, <?php echo $_SESSION['nume']; ?><p>
<form action="Termeni.php" method="post">
<button class="dropbtn" id="BtnAdd" value="Add" name="adauga">Adaugă Termeni </button>
</form>
<a href="logout.php">Log Out</a>
</div>
</div>
<form action="search.php" method="post">
<div class="container">
<input id="SearchBar" type="text" name="Search" placeholder="Caută...">
<button id="Search" name="Submit" type="submit">
<i class="fa fa-search"></i></button>
</div>
<div class="box">
<p>It</p>
<input type="checkbox" class="checkbox" name="It" value='1'>
<p>Automatizari</p>
<input type="checkbox" class="checkbox" name="Automatizari" value='2'>
</div>
</div>
</form>
<script>
function myFunction() {
document.getElementById("myDropdown").classList.toggle("show");
}
// Close the dropdown if the user clicks outside of it
window.onclick = function(event) {
if (!event.target.matches('.dropbtn')) {
var dropdowns = document.getElementsByClassName("dropdown-content");
var i;
for (i = 0; i < dropdowns.length; i++) {
var openDropdown = dropdowns[i];
if (openDropdown.classList.contains('show')) {
openDropdown.classList.remove('show');
}
}
}
}
</script>
</body>
</html>