-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewcourses.php
75 lines (65 loc) · 3.56 KB
/
viewcourses.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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" href="bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap/bootstrap-theme.min.css">
<script src="bootstrap/jquery.min.js"></script>
<script src="bootstrap/bootstrap.min.js"></script>
<link type="text/css" rel="stylesheet" href="css/admform.css"></link>
<script src="https://code.jquery.com/jquery-2.1.1.min.js" type="text/javascript"></script>
<!--autosearch-->
<script type="text/javascript" src="jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="jquery/jquery-ui-1.8.2.custom.min.js"></script>
<link href="css/css.css" rel="stylesheet" type="text/css" />
</head>
<body style="background-image:url('./images/inbg.jpg');">
<div id="dmid" class="container-fluid">
<div class="row">
<div class="col-sm-12">
<font style="color:white;font-family: Verdana; width:100%; font-size:30px;">
<span><a href="student_dash.php"><input type="button" value="BACK" class="btn btn-danger"></a></span></font>
<font style="color:white; margin-left:520px; font-family: Verdana; width:100%; font-size:30px;">
<b>Courses Details</b> </font>
</div>
</div>
</div>
<div style="border-radius: 6px;padding: 20px 20px 20px 20px;">
<?php
error_reporting(0);
session_start();
$id= $_REQUEST["id"];
echo "<h3 style='font-style: italic;color:red;'>Institute Name : ".$id." </h3><br>";
//$session_id=$_REQUEST["session_id"];
include 'config.php';
$rs1 = mysqli_query($con,"select * from t_course where c_name in(select c_name from t_institute_course where i_name='$id')");
echo '<table class="table table-striped" id="tblData">';
echo "<thead>";
echo "<tr>";
echo "<th>COURSE NAME</th>";
echo "<th>COURSE DURATION</th>";
echo "<th>COURSE AMOUNT</th>";
echo "<th>TOTAL SEATS</th>";
echo "<th>AVAILABLE SEATS</th>";
echo "<tr>";
echo "</thead>";
echo "<tbody>";
while($ar = mysqli_fetch_array($rs1))
{
if($ar[4]>0)
{
echo "<tr>";
echo "<td>" . $ar[0] . "</td>";
echo "<td>" . $ar[1] . "</td>";
echo "<td>" . $ar[2] . "</td>";
echo "<td>" . $ar[3] . "</td>";
echo "<td>" . $ar[4] . "</td>";
echo "<td><a href=applycourse.php?iname=".$id."&cname=".$ar[0]."><input type='button' value='Apply Course' name='applycourse' class='toggle btn btn-primary'></a></td>";
}
}
echo "</tbody>";
echo "</table>";
?>
</div>
</body>
</html>