This repository was archived by the owner on Aug 24, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathabout.php
197 lines (176 loc) · 6.75 KB
/
about.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
188
189
190
191
192
193
194
195
196
197
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//E N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<?php
function class_calculate($admn_year, $branch, $batch, $designation)
{
/*
Author: Kevin Madhu
Mail: [email protected]
Description: The function calculates and returns the current semester of a student, merges it with his/her Branch and returns it.
*/
//Name of semesters for B.Tech, MCA...
$semesters_btech = array("S1S2", "S3", "S4", "S5", "S6", "S7", "S8");
$semesters_mca = array("S1", "S3", "S4", "S5", "S6");
//The period(in months) for each semester. For eg. S1S2 is in the period of 12 months(including vacation), S2 is in the period of 14-20 months etc
$periods_btech = array(14, 20, 26, 32, 38, 44, 50);
$periods_mca = array(6, 20, 26, 32, 38, 44, 50);
if($designation == "")
{
$admn_date = mktime(0, 0, 0, 1, 1, $admn_year);
$then_year = date("Y", $admn_date);
$then_month = date("m", $admn_date);
$month = 0;
do
{
if($then_month == 12)
{
++$then_year;
$then_month = 1;
}
else
++$then_month;
$then_timestamp = mktime(24, 0, 0, $then_month, 1, $then_year);
if($then_timestamp < time())
++$month;
else
break;
}
while(1);
if($branch == "MCA")
{
$periods = $periods_mca;
$semesters = $semesters_mca;
$limit = 7;
}
else
{
$periods = $periods_btech;
$semesters = $semesters_btech;
$limit = 7;
}
$semester = -1;
if($month >= 0 and $month <= $periods[0])
$semester = 0;
else
for($i = 1; $i < 7; ++$i)
{
if(($month > $periods[$i - 1]) and ($month <= $periods[$i]))
{
$semester = $i;
break;
}
}
if($semester == -1)
return "Alumini" . $admn_year . $branch ;
else
return $semesters[$semester] . $branch;
}
else
return $designation;
}
require 'cnn.php';
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>About Us</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="848" height="374" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="121"><a href="index.php"><img src="images/title.jpg" width="1000" height="121" /></a></td>
</tr>
<tr bgcolor="#CC9933">
<td height="31" bgcolor="" > </td>
</tr>
<tr bgcolor="#CC9933">
<td height="184" bgcolor="#FFFFFF" ><div align="left" style="padding: 10px">
<p align="center"><strong>NSS Online Blood Donor's Directory Team</strong></p>
<p><b> Thanks to </b></p>
<?php
$sql = 'SELECT * FROM operator ORDER BY operator';
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) {
if($row['role']=='thanks') {
$str = $row['operator'].' ';
if( $row['phone'] != '' && $row['email'] != "") {
$str .= '('.$row['phone'].', <a href="mailto:'.$row['email'].'">'.$row['email'].'</a>)';
} elseif( $row['phone'] != '' && $row['email'] == "") {
$str .= '('.$row['phone'].')';
} elseif( $row['phone'] == '' && $row['email'] != "") {
$str .= '(<a href="mailto:'.$row['email'].'">'.$row['email'].'</a>)';
} elseif( $row['phone'] == '' && $row['email'] == "") {
;
}
$class = class_calculate($row['admission_year'], $row['branch'], $row['batch'], $row['designation']);
$str .= ', '.$class;
$str .= "<br/>";
echo $str;
}
}
?>
<p><b>Development Team</b></p>
<?php
$sql = 'SELECT * FROM operator ORDER BY operator';
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) {
if($row['role']=='dev') {
$str = $row['operator'].' ';
if( $row['phone'] != '' && $row['email'] != "") {
$str .= '('.$row['phone'].', <a href="mailto:'.$row['email'].'">'.$row['email'].'</a>)';
} elseif( $row['phone'] != '' && $row['email'] == "") {
$str .= '('.$row['phone'].')';
} elseif( $row['phone'] == '' && $row['email'] != "") {
$str .= '(<a href="mailto:'.$row['email'].'">'.$row['email'].'</a>)';
} elseif( $row['phone'] == '' && $row['email'] == "") {
;
}
$class = class_calculate($row['admission_year'], $row['branch'], $row['batch'], $row['designation']);
$str .= ', '.$class;
$str .= "<br/>";
echo $str;
}
}
?>
<p><b>First Development Team </b></p>
<p>Navaneeth T(9947834438, <a href="mailto:[email protected]">[email protected]</a> ),<br/>
Ameena Musthafa, Neethu K V, Vineeth K<br />
3rd Year BSc Computer Sciences<br />
IHRD Applied Sciences College</p>
<p><b>Data Entry Team</b></p>
<?php
$sql = 'SELECT * FROM operator ORDER BY operator';
$result = mysql_query($sql);
while($row = mysql_fetch_array($result)) {
if($row['role']=='data') {
$str = $row['operator'].' ';
if( $row['phone'] != '' && $row['email'] != "") {
$str .= '('.$row['phone'].', <a href="mailto:'.$row['email'].'">'.$row['email'].'</a>)';
} elseif( $row['phone'] != '' && $row['email'] == "") {
$str .= '('.$row['phone'].')';
} elseif( $row['phone'] == '' && $row['email'] != "") {
$str .= '(<a href="mailto:'.$row['email'].'">'.$row['email'].'</a>)';
} elseif( $row['phone'] == '' && $row['email'] == "") {
;
}
$class = class_calculate($row['admission_year'], $row['branch'], $row['batch'], $row['designation']);
$str .= ', '.$class;
$str .= "<br/>";
echo $str;
}
}
?>
</div></td>
</tr>
<tr bgcolor="#CC9933">
<td height="19"> </td>
</tr>
<tr bgcolor="#990000">
<td height="19"><div align="right"><span class="style4"><a href="index.php" class="style5">HOME</a> </span> </div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>