-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
65 lines (49 loc) · 1.92 KB
/
index.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
<?php
include("repostories.php") ;
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="m-5 bl-10 ">
<b> Select Top Repostories </b>
<div class="m-5">
<form action="">
<label for="date">Select Top:</label>
<select name="top" style="width:245px" onchange="this.form.submit()">
<option value=""> --- </option>
<?php echo $topHtml ; ?>
</select>
<label for="date">Select Date:</label>
<input type="date" name="date"
value="<?php echo (isset($_REQUEST['date']) && $_REQUEST['date'] != "" )? $_REQUEST['date']:'' ?>"
onchange="this.form.submit()">
<label for="date">Select Language:</label>
<select name="language" style="width:245px" onchange="this.form.submit()">
<option value=""> --- </option>
<?php echo $languesHtml ; ?>
</select>
<button type="submit" class="btn-primary ml-5">Search</button>
</form>
</div>
</div>
<table>
<tr>
<th>SN</th>
<th>ID</th>
<th>language</th>
<th>star Count</th>
<th>Date</th>
</tr>
<?php echo $resultHtml ;?>
</table>
</body>
</html>