-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontribution.php
88 lines (72 loc) · 2.09 KB
/
contribution.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
<?php
require_once('includes/config.php');
if (isset($_GET['q']) && isset($_GET['table'])) {
$id = $_GET['q'];
$table = $_GET['table'];
if ($table === 'plant') {
$table = 'dbpr';
} elseif ($table === 'algea') {
$table = 'fbpa';
} elseif ($table === 'latest') {
$table = 'ldbpr';
} elseif ($table === 'cbdb') {
$table = 'cbdb';
}
elseif ($table === 'co19pdb') {
$table = 'co19pdb';
}elseif ($table === 'cdbptms') {
$table = 'cdbptms';
}
else {
$table = 'db_table';
}
$query = "Select * from $table where db_id = '$id'";
$result = mysqli_query($conn, $query);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php require_once("includes/head-tag-elements.php"); ?>
</head>
<body>
<div id="wrapper">
<?php
require_once("includes/header.php");
require_once("includes/nav.php");
?>
<div id="main-content">
<div id="sidebar">
<div id="categories" class="boxed">
<div class="row py-3">
<div class="col">
<h2 class="text-center">Our Services</h2>
</div>
</div>
<?php require_once('includes/sidenav.php'); ?>
<div style="border:2px solid silver; height: auto; width:100%; border-radius: 10px; margin-top: 10px; margin-bottom: 10px;">
<div><img width="100%" src="images/news_table.gif" /></div>
<marquee behavior="scroll" direction="up" onmouseover="this.setAttribute('scrollamount', 0, 0);this.stop();" onmouseout="this.setAttribute('scrollamount', 6, 0);this.start();" height='250px'>
<p align=center>
<?php require_once("includes/news.php"); ?>
</p>
</marquee>
</div>
</div>
</div>
<div id="posts">
<div class="post">
<h2 class="title"> </h2>
<div class="meta">
<p class="date">Posted on January 20, 2020 by Dr. Shahid Ullah</p>
<p> </p>
</div>
</div>
</div>
<div id=posts>
</div>
<?php require_once('includes/footer.php'); ?>
</div>
<script type="text/javascript" src="js/nav.js"></script>
</body>
</html>