-
Notifications
You must be signed in to change notification settings - Fork 0
/
list.php
55 lines (34 loc) · 1.6 KB
/
list.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tom's Dropbox</title>
<link rel="stylesheet" type="text/css" href="styled.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<div id="topbg">
</div>
<div id="logbox">
<div id="logboxtopbg"> <a href="dropbox.html" id="home">Tom's Dropbox</a>
<a href="dropbox.html" id="logo">Tom's Dropbox</a>
</div>
<?php
$con=mysqli_connect("tcdropbox.db.8816127.hostedresource.com","tcdropbox","NYkn1cks2@","tcdropbox");
$result = mysqli_query($con,"SELECT * FROM pdf_content ORDER BY ExtendedDate DESC");
while($row = mysqli_fetch_array($result))
{
if ($row['Hidden'] != 'x') {
echo "<div class='individual'>";
echo "<span class='titlestyle'>" . $row['Title'] . "</span>" . "<span class='datestyle'>" . $row['Date'] . "</span>" . "<br />";
echo "<span class='descriptionstyle'>" . "<p>" . $row['Description'] . "</p>" . "</span>" . "<br />";
echo '<span class="filelink">' . '<a href="' . "img/" . $row['File'] . '">Download This File</a>' . '</span>';
echo "<form method='post' action='remove.php'>" . "<input type='hidden' name='Xdate' value='" . $row["ExtendedDate"] . "'/>" . "<input type='image' src='x.png' alt='Delete' title='Delete' style='position:absolute;top:10px;right:10px;'/>" . "</form>";
echo "</div>";
}
}
?>
</div>
</div>
</body>
</html>