-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcerca.php
121 lines (99 loc) · 4.11 KB
/
cerca.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?php
//creo una sessione per rendere le operazioni meno "hardcoded"
session_start();
require("config/db.php");
require("config/config.php");
$q= "SELECT * FROM Categorie WHERE 1";
$ris=mysqli_query($conn,$q);
?>
<!DOCTYPE html>
<html lang="it">
<head>
<title>ProblemSolver</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="http://localhost/PROblemSolver/css/main.css">
</head>
<body background="messina.jpg">
<div class="container">
<!-- navbar -->
<nav class="navbar">
<span class="open-slide">
<a href="#" onclick="openSlideMenu()">
<svg width="30" height="30">
<path d = "M0,5 30,5" stroke="#fff" stroke-width="5"/>
<path d = "M0,14 30,14" stroke="#fff" stroke-width="5"/>
<path d = "M0,23 30,23" stroke="#fff" stroke-width="5"/>
</svg>
</a>
</span>
<ul class="navbar-nav">
<li><a href="http://localhost/PROblemSolver/index.php"> Home</a><li>
<li><a href="http://localhost/PROblemSolver/prova.php">Naviga Problemi</a></li>
<li><a href="http://localhost/PROblemSolver/report.php">Riporta Problema</a></li>
<li><a href="http://localhost/PROblemSolver/login.php">Login/Registrati</a></li>
<li><a href="http://localhost/PROblemSolver/cerca.php"> Cerca Problemi</a><li>
</ul>
</nav>
<!--Menu a scomparsa-->
<div id="side-menu" class="side-nav">
<a href="http://localhost/PROblemSolver/index.php"> Home</a>
<a href="http://localhost/PROblemSolver/prova.php">Naviga Problemi</a>
<a href="http://localhost/PROblemSolver/report.php">Riporta Problema</a>
<a href="http://localhost/PROblemSolver/login.php">Login/Registrati</a>
<a href="http://localhost/PROblemSolver/cerca.php"> Cerca Problemi</a>
</div>
<div class="stripe" style="opacity:0.94">
<form method="POST" action="cercaTag.php">
<label for="cercaTag"> <b>Cerca problemi per tag </b> </label><br>
<input type="text" name="cercaTag" id="cercaTag"><button id="1">Cerca!</button><br>
</form>
<form method="POST" action="cercaCreatore.php">
<label for="cercaCreatore"> <b>Cerca problemi per creatore </b></label><br>
<input type="text" name="Nome" placeholder="NOME">
<input type="text" name="Cognome" placeholder="COGNOME">
<button>Cerca!</button><br>
</form>
<form method="POST" action="cercaAttivo.php">
<label for="cerca"> <b>Cerca utente più attivo </b> </label><br>
<button >Cerca!</button>
</form>
<form method="POST" action="cercaCategoria.php">
<label for="cerca"> <b>Cerca problemi per categoria categoria </b> </label><br>
<select type="text" id="categoria" name="categoria" class="categoria" required>
<?php
$i=0;
$categorie= mysqli_fetch_all($ris,MYSQLI_ASSOC);
while($i<count($categorie)){
echo'<option value="'.$categorie[$i]['descrizione'].'">'.$categorie[$i]['descrizione']."</option>";
$i++;
}
$i=0;
?>
</select>
<button id="4">Cerca!</button>
</form>
</div>
<script>
//script per aprire e chiudere il menù a scomparsa in modalità mobile
function openSlideMenu(){
document.getElementById("side-menu").style.width="250px"
document.getElementById("main.").style.marginLeft="250px"
}
function closeSlideMenu(){
document.getElementById("side-menu").style.width="0px"
document.getElementById("main.").style.marginLeft="0px"
}
</script>
<script>
function cercaTag(){
var xhr= new x
}
function cercaCreatore(){
}
function cercaCategoria(){
}
function cercaAttivo(){
}
</script>
</body>
</html>