-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterms.php
187 lines (99 loc) · 3.1 KB
/
terms.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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
<?php
session_start();
include("includes/db.php");
include("includes/header.php");
include("functions/functions.php");
include("includes/main.php");
?>
<!-- MAIN -->
<main>
<!-- HERO -->
<div class="nero">
<div class="nero__heading">
<span class="nero__bold">Terms</span> of use
</div>
<p class="nero__text">
</p>
</div>
</main>
<div id="content"><!-- content Starts -->
<div class="container"><!-- container Starts -->
<div class="col-md-3"><!-- col-md-3 Starts -->
<div class="box"><!-- box Starts -->
<ul class="nav nav-pills nav-stacked"><!-- nav nav-pills nav-stacked Starts -->
<?php
$get_terms = "select * from terms LIMIT 0,1";
$run_terms = mysqli_query($con,$get_terms);
while($row_terms = mysqli_fetch_array($run_terms)){
$term_title = $row_terms['term_title'];
$term_link = $row_terms['term_link'];
?>
<li class="active">
<a data-toggle="pill" href="#<?php echo $term_link; ?>">
<?php echo $term_title; ?>
</a>
</li>
<?php } ?>
<?php
$count_terms = "select * from terms";
$run_count = mysqli_query($con,$count_terms);
$count = mysqli_num_rows($run_count);
$get_terms = "select * from terms LIMIT 1,$count";
$run_terms = mysqli_query($con,$get_terms);
while($row_terms = mysqli_fetch_array($run_terms)){
$term_title = $row_terms['term_title'];
$term_link = $row_terms['term_link'];
?>
<li>
<a data-toggle="pill" href="#<?php echo $term_link; ?>">
<?php echo $term_title; ?>
</a>
</li>
<?php } ?>
</ul><!-- nav nav-pills nav-stacked Ends -->
</div><!-- box Ends -->
</div><!-- col-md-3 Ends -->
<div class="col-md-9"><!-- col-md-9 Starts -->
<div class="box"><!-- box Starts -->
<div class="tab-content" ><!-- tab-content Starts -->
<?php
$get_terms = "select * from terms LIMIT 0,1";
$run_terms = mysqli_query($con,$get_terms);
while($row_terms = mysqli_fetch_array($run_terms)){
$term_title = $row_terms['term_title'];
$term_desc = $row_terms['term_desc'];
$term_link = $row_terms['term_link'];
?>
<div id="<?php echo $term_link; ?>" class="tab-pane fade in active" ><!-- tab-pane fade in active Starts -->
<h1> <?php echo $term_title; ?> </h1>
<p> <?php echo $term_desc; ?> </p>
</div><!-- tab-pane fade in active Ends -->
<?php } ?>
<?php
$count_terms = "select * from terms";
$run_count = mysqli_query($con,$count_terms);
$count = mysqli_num_rows($run_count);
$get_terms = "select * from terms LIMIT 1,$count";
$run_terms = mysqli_query($con,$get_terms);
while($row_terms = mysqli_fetch_array($run_terms)){
$term_title = $row_terms['term_title'];
$term_desc = $row_terms['term_desc'];
$term_link = $row_terms['term_link'];
?>
<div id="<?php echo $term_link; ?>" class="tab-pane fade in"><!-- tab-pane fade in Starts -->
<h1><?php echo $term_title; ?></h1>
<p><?php echo $term_desc; ?></p>
</div><!-- tab-pane fade in Ends -->
<?php } ?>
</div><!-- tab-content Ends -->
</div><!-- box Ends -->
</div><!-- col-md-9 Ends -->
</div><!-- container Ends -->
</div><!-- content Ends -->
<?php
include("includes/footer.php");
?>
<script src="js/jquery.min.js"> </script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>