-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProject.php
108 lines (68 loc) · 3.18 KB
/
Project.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
<!DOCTYPE html>
<html>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
Drishti-SVNIT
</title>
<?php
include('header.php');
include 'connect.php';
$sql = "SELECT * FROM `project` ";
$result = mysqli_query($dbconn, $sql);
?>
<body>
</section>
<section class=' grey-bg' style="">
<div class='container ' style="margin-top: 100px;">
<?php
if (mysqli_num_rows($result) >0 ) {
while($row = mysqli_fetch_array($result)) {?>
<h1 class='center-title'><?php echo$row[1]; ?></h1>
<div class='container ' style="margin-bottom: 60px;">
<div class='row '>
<div class='col-md-4'>
<h3><a href='#'><?php echo$row[1]; ?></a></h3>
<p>
<?php echo$row[2]; ?>
</p>
</div>
<div class='col-md-8 ' style='height:100%; width: 100% overflow: hidden'>
<img src='<?php echo$row[3]; ?>' alt='' class='img-responsive center-img img-thumbnail ' style='width:80%'>
</div>
<div class='col-md-12 text-center ' style='height:100%; width: 100% ; margin-top:30px; margin-bottom: 50px; '> <button type="button" class="btn btn-info btn-lg" data-toggle="collapse" data-target="#<?php echo$row[0]; ?>" id="read-more<?php echo $row[0];?>" onclick='xyz("<?php echo $row[0];?>")'>Read More</button> </div>
<div id="<?php echo$row[0]; ?>" class="collapse" id="extra-text">
<a style='margin-top: 10px;margin-bottom: 20px;
width: 50%;' class="btn btn-lg btn-success" href="<?php echo$row[4] ?>" >Documantation Pdf </a>
<iframe style="width: 100%; height:600px; " src="<?php echo$row[5]; ?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
</div>
</div>
</div>
<?php
}
}
else {
echo "0 results";
};
?>
</div>
</section>
<?php
include("footer.php ");
?>
</html>
<script>
function xyz(x){
var y = "read-more" + x;
var z=document.getElementById(y).innerHTML;
if(z=='Read More'){
document.getElementById(y).innerHTML="Read Less";
}
else{
document.getElementById(y).innerHTML="Read More";
}
}
</script>