This repository has been archived by the owner on Mar 10, 2023. It is now read-only.
forked from DestinyReddit/DestinyReddit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvendorweapons.php
137 lines (126 loc) · 5.38 KB
/
vendorweapons.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<!DOCTYPE html>
<?php
require_once ('config.php');
$db = pg_connect($POSTGRES_DB_STR) or die('Could not connect: ' . pg_last_error());
$query = "SELECT * FROM VendorWeapon";
$result = pg_query($query);
?>
<html>
<head>
<title>Welcome to /r/DTG/</title>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="./static/css/main.css">
<link rel="stylesheet" type="text/css" href="./static/css/nav.css?ver=3">
<link rel="stylesheet" type="text/css" href="./static/css/tables.css?ver=5">
<link rel="stylesheet" type="text/css" href="./static/css/jquery.dataTables.css">
<!-- JS -->
<script src="./static/js/jquery-3.2.1.min.js"></script>
<script src="./static/js/bootstrap.min.js"></script>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.15/js/jquery.dataTables.js"></script>
</head>
<body>
<div class="masthead-weapons"> </div>
<div id="nav-wrap">
<div id="main-nav" class="navbar">
<div class="navbar-inner">
<div class="container">
<div class="navbar-header">
<div class="navbar-brand navbar-brand-centered"></div>
</div>
</div>
</div>
<!-- navbar -->
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-2 sidebar1">
<div class="container sidebar1" id="sidebar">
<div class="logo"> <a href="index-test.html"> <img src="./static/img/Raid_Emblem.png" class="rounded" alt="Logo" style="max-width:175px; border:0; padding-left: 40px;"></a> </div>
<br>
<br>
<br>
<br>
<div class="left-navigation">
<ul class="list">
<h5><strong>LINKS</strong></h5>
<li><a href="https://goo.gl/xgpzbX">Discuss this on Reddit</a></li>
<li><a href="vendors.php">Vendor Armor</a></li>
</ul>
<br>
<ul class="list">
<h5><strong>/r/DTG LINKS</strong></h5>
<li><a href="https://www.reddit.com/r/DestinyTheGame">Back to the subreddit</a></li>
<li><a href="https://discord.gg/DestinyReddit">Destiny Discord</a></li>
<li><a href="https://www.reddit.com/message/compose?to=%2Fr%2FDestinyTheGame&subject=DestinyReddit%20Site">Contact Info</a></li>
</ul>
</div>
</div>
</div>
<div class="col-md-10 main-content">
<div class="container-fluid" id="wrapper">
<h1 class="title">Vendor Weapons - 6/6/2017</h1>
<br>
<br>
<?php
echo "<div class='container'>";
echo "<div class='row'>";
echo "<div class='col-md-12'>";
echo "<div class='table-responsive vendor-table'>";
echo "<table class='table table-bordered table-striped' id='vendorarmor'>";
echo "<thead>";
echo "<tr><th>Vendor</th> <th>Name</th> <th>Type</th> <th>Perks 1</th> <th>Perks 2</th> <th>Perks 3</th> <th>Perk 4</th> <th>Perk 5</th> </tr>";
echo "</thead>";
echo "<tbody>";
while ($row = pg_fetch_array($result)) {
echo "<tr>" ;
echo "<td>" . $row[1] . "</td>";
echo "<td>" . $row[2] . "</td>";
echo "<td>" . $row[3] . "</td>";
echo "<td>" . $row[4] . "</td>";
echo "<td>" . $row[5] . "</td>";
echo "<td>" . $row[6] . "</td>";
echo "<td>" . $row[7] . "</td>";
echo "<td>" . $row[8] . "</td>";
echo "</tr>";
}
echo "</tbody>";
echo "</table>";
echo "</div>";
echo "</div>";
echo "</div>";
echo "</div>";
?> </div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$('#vendorarmor').DataTable({
"paging": false
});
})
</script>
<script type="text/javascript">
/* navbar affix scrollspy */
$('#nav-wrap').height($("#nav").height());
$('#main-nav').affix({
offset: $('#main-nav').position()
});
/* Sidebar affix scrollspy */
/* activate sidebar */
$('#sidebar').affix({
offset: $('#main-nav').position()
});
/* activate scrollspy menu */
var $body = $(document.body);
var navHeight = $('.navbar').outerHeight(true);
$body.scrollspy({
target: '#leftCol'
, offset: '100px'
});
</script>
</body>
</html>