-
Notifications
You must be signed in to change notification settings - Fork 1
/
mtechmi.php
141 lines (125 loc) · 3.9 KB
/
mtechmi.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
<title>Integrated M.Tech</title>
<?php
include("php/baseup.php");
include("php/connectece.php");
$id = 1;
$sql = "SELECT * FROM mtech_mi WHERE Id = $id";
$query = mysql_query($sql);
$data = mysql_fetch_array($query);
?>
<head>
<link href="css/hover.css" rel="stylesheet">
<link href="css/courses.css" rel="stylesheet">
<link href="css/faculty.css" rel="stylesheet">
<link href="css/background.css" rel="stylesheet">
</head>
<body style = "background-image: url(images/programs_background.jpg); background-size: 100%;">
<div class="main">
<h1>M.Tech MI</h1>
<br>
<p>The Syllabus of the M.Tech branch has been divided into numerous Semesters, each of which has numerous Subjects, which are as follows ... </p>
<br>
<div class = "container">
<div class ="col-sm-2">
<ul class="nav nav-pills nav-stacked" role="tablist">
<?php while($data['Id'] != NULL) {
if ($data['Id'] == 1) {?>
<li class = "active" ><a class = "hvr-shutter-out-horizontal" data-toggle = "tab" href="#sem<?php echo $data['Id']?>">Semester :<?php echo $data['Semester'];}?></a></li>
<?php if($data['Id'] > 1) {?>
<li><a class = "hvr-shutter-out-horizontal" data-toggle = "tab" href="#sem<?php echo $data['Id']?>">Semester :<?php echo $data['Semester'];}?></a></li>
<?php
$id++;
$sql = "SELECT * FROM mtech_mi WHERE Id = $id";
$query = mysql_query($sql);
$data = mysql_fetch_array($query);
} ?>
</ul>
</div>
<?php
$id = 1;
$sql = "SELECT * FROM mtech_mi WHERE Id = $id";
$query = mysql_query($sql);
$data = mysql_fetch_array($query);
?>
<div class ="col-sm-8">
<div class = "tab-content">
<?php while($data['Id'] != NULL) {
if ($data['Id'] == 1) {?>
<div id="sem<?php echo $data['Id']?>" class ="tab-pane fade in active">
<h3>Semester :<?php echo $data['Semester']?></h3>
<?php
$run = 1;
$Subno = "Sub".$run;
while ($data[$Subno] != NULL && $run < 8) {
$Subno = "Sub".$run++;
$no = $data[$Subno];
if ($no != NULL) {
$sql ="SELECT * FROM courses where id = $no";
$query = mysql_query($sql);
$Subdata = mysql_fetch_array($query);
?>
<div class="panel-group">
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" href="#<?php echo $data['Semester']."_".$data[$Subno] ?>"> <?php echo $Subdata['Name'] ?></a>
</h4>
</div>
</div>
</div>
<?php
}
}
?>
</div>
<?php }
if ($data['Id'] > 1) { ?>
<div id="sem<?php echo $data['Id']?>" class ="tab-pane fade">
<h3>Semester :<?php echo $data['Semester']?></h3>
<?php
$run = 1;
$Subno = "Sub".$run;
while ($data[$Subno] != NULL && $run < 8) {
$Subno = "Sub".$run++;
$no = $data[$Subno];
if($no != NULL){
$sql ="SELECT * FROM courses where id = $no";
$query = mysql_query($sql);
$Subdata = mysql_fetch_array($query);
?>
<div class="panel-group">
<div class="panel panel-info">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" href="#<?php echo $data['Semester']."_".$data[$Subno] ?>"> <?php echo $Subdata['Name'] ?></a>
</h4>
</div>
</div>
</div>
<?php }
}
?>
</div>
<?php }
$id++;
$sql = "SELECT * FROM mtech_mi WHERE Id = $id";
$query = mysql_query($sql);
$data = mysql_fetch_array($query);
} ?>
</div>
</div>
</div>
</div>
<style>
.image {
background-size:100% 80px;
height:80px;
}
.panel-collapse {
padding : 1.5%;
}
</style>
</body>
<?php
include("php/basedown.php");
?>