forked from NYCPlanning/edm-metadata-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.php
More file actions
123 lines (99 loc) · 2.85 KB
/
Main.php
File metadata and controls
123 lines (99 loc) · 2.85 KB
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
122
123
<?php
include ('navbar.php');
?>
<style>
html, body {
height: 100%;
overflow: hidden;
margin: 0;
}
#wrapper {
height: 100%;
}
#left-div {
float: left;
width: 20%;
height: 100%;
border-right: 1px solid #DFE0E5;
overflow: auto;
padding: 0.4em;
}
#right-div {
float: left;
width: 80%;
height: 100%;
overflow: auto;
padding: 0.4em;
padding-bottom: 50px;
}
#update_freq {
height: 34px;
width: 100%;
background-color: white !important;
}
#searchbar-form {
display: none;
}
.inner-div {
padding: 0 10px;
}
</style>
<div id="wrapper">
<!-- Left Fixed Div -->
<div id="left-div">
<div class="inner-div">
<!-- Dataset Name Search -->
<div class="row">
<div class="col-lg-12">
<div class="input-group">
<label for="dataset_name">Dataset Name</label>
<input type="text" class="form-control" placeholder="Dataset Name" id="dataset_name">
</div><!-- /input-group -->
</div><!-- /.col-lg-12 -->
</div><!-- /.row -->
<!-- Update Frequency Filter -->
<!-- <div class="row">
<div class="col-lg-12">
<div class="input-group">
<label for="update_freq">Update Frequency</label>
<div class="">
<select required name="update_freq" id="update_freq" disabled>
<option value="<?php echo $update_freq; ?>" selected><?php echo $update_freq; ?></option>
<?php
echo $tables;
?>
<option disabled selected>Under development</option>
</select>
</div>
</div>
</div><!-- /.col-lg-12 -->
<!-- </div> /.row -->
<!-- Tags Filter -->
<!-- <div class="row">
<div class="col-lg-12">
<div class="input-group">
<label for="tags">Tags</label>
<input type="text" class="form-control" placeholder="Under development" id="tags" disabled>
</div> /input-group -->
<!--</div> /.col-lg-12 -->
<!--</div>/.row -->
</div>
</div><!-- /#wrapper -->
<!-- Right Fixed Div -->
<div id="right-div">
<!-- Retrieve data from database -->
<?php
$query1 = 'SELECT uid, common_name, description, date_last_updated FROM readme ORDER BY date_last_updated DESC';
$result = pg_query($query1);
$row =pg_fetch_all($result);
// Displays all the retrieved data from the database
foreach($row as $r) {
echo "<a href='display.php?id=".$r["uid"]."'><h4>" . $r["common_name"] . "</h4></a>";
echo "<p><em>" . $r["description"] . "</em></p>";
echo "<h6>Date Last Modified: " . $r["date_last_updated"] . "</h6>";
echo "<hr>";
}
?>
</div>
</div>
</body>