forked from ChelseaSchool/MyIEP
/
guardian_view.php
executable file
·452 lines (408 loc) · 26.4 KB
/
guardian_view.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
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
<?php
/** @file
* @brief display guardian information
* @todo
* 1. Navbar
* 2. Bootstrap
* 3. Filter, escape, spellcheck
*
*/
//the authorization level for this page!
$MINIMUM_AUTHORIZATION_LEVEL = 100; //everybody (do checks within document)
/**
* guardian_view.php -- manage student guardians
*
* Copyright (c) 2005 Grasslands Regional Division #6
* All rights reserved
*
* Created: June 21, 2005
* By: M. Nielsen
* Modified: March 06, 2006.
*
*/
/**
* Path for IPP required files.
*/
if(isset($system_message)) $system_message = $system_message; else $system_message="";
define('IPP_PATH','./');
/* eGPS required files. */
require_once(IPP_PATH . 'etc/init.php');
require_once(IPP_PATH . 'include/db.php');
require_once(IPP_PATH . 'include/auth.php');
require_once(IPP_PATH . 'include/log.php');
require_once(IPP_PATH . 'include/user_functions.php');
require_once(IPP_PATH . 'include/navbar.php');
header('Pragma: no-cache'); //don't cache this page!
if(isset($_POST['LOGIN_NAME']) && isset( $_POST['PASSWORD'] )) {
if(!validate( $_POST['LOGIN_NAME'] , $_POST['PASSWORD'] )) {
$system_message = $system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
require(IPP_PATH . 'index.php');
exit();
}
} else {
if(!validate()) {
$system_message = $system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
require(IPP_PATH . 'index.php');
exit();
}
}
//************* SESSION active past here **************************
//check permission levels
$permission_level = getPermissionLevel($_SESSION['egps_username']);
if( $permission_level > $MINIMUM_AUTHORIZATION_LEVEL || $permission_level == NULL) {
$system_message = $system_message . "You do not have permission to view this page (IP: " . $_SERVER['REMOTE_ADDR'] . ")";
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
require(IPP_PATH . 'security_error.php');
exit();
}
if(!isset($_GET['student_id']) || $_GET['student_id'] == "") {
//ack
echo "You've come to this page without a valid student ID<BR>To what end I wonder...<BR>";
exit();
} else {
$student_id=$_GET['student_id'];
}
$student_query = "select * from student where student.student_id=" . $_GET['student_id'];
$student_result = mysql_query($student_query);
if(!$student_query) {
$error_message = $error_message . "Database query failed (" . __FILE__ . ":" . __LINE__ . "): " . mysql_error() . "<BR>Query: '$student_query'<BR>";
$system_message=$system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
}
$student_row=mysql_fetch_array($student_result);
//get out permissions for this student...
$current_student_permission = getStudentPermission($student_row['student_id']);
//check if we need to update the guardian list and have the required permissions to do so...
if(isset($_GET['setGuardian']) && ($current_student_permission == "ALL" || $current_student_permission == "ASSIGN" || $current_student_permission == "WRITE")) {
//update this guardian student combination...
$update_query = "UPDATE guardians SET to_date=NULL WHERE student_id=" . $student_row['student_id'] . " AND uid=" . $_GET['setGuardian'];
$update_result = mysql_query($update_query);
if(!$update_query) {
$error_message = $error_message . "Database query failed (" . __FILE__ . ":" . __LINE__ . "): " . mysql_error() . "<BR>Query: '$update_query'<BR>";
$system_message=$system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
}
}
//check if we need to update the guardian list and have the required permissions to do so...
if(isset($_GET['setNotGuardian']) && ($current_student_permission == "ALL" || $current_student_permission == "ASSIGN" || $current_student_permission == "WRITE")) {
//update this guardian student combination...
$update_query = "UPDATE guardians SET to_date=now() WHERE student_id=" . $student_row['student_id'] . " AND uid=" . $_GET['setNotGuardian'];
$update_result = mysql_query($update_query);
if(!$update_query) {
$error_message = $error_message . "Database query failed (" . __FILE__ . ":" . __LINE__ . "): " . mysql_error() . "<BR>Query: '$update_query'<BR>";
$system_message=$system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
}
}
//check if we need to delete and have the required permissions to do so...
if(isset($_GET['deleteGuardian']) && ($current_student_permission == "ALL" || $current_student_permission == "ASSIGN" || $current_student_permission == "WRITE")) {
//update this guardian student combination...
$update_query = "DELETE FROM guardians WHERE student_id=" . $student_row['student_id'] . " AND uid=" . $_GET['deleteGuardian'];
$update_result = mysql_query($update_query);
if(!$update_query) {
$error_message = $error_message . "Database query failed (" . __FILE__ . ":" . __LINE__ . "): " . mysql_error() . "<BR>Query: '$update_query'<BR>";
$system_message=$system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
}
}
//find guardians...
$guardians_query = "SELECT * FROM guardians LEFT JOIN guardian ON guardians.guardian_id=guardian.guardian_id LEFT JOIN address on guardian.address_id=address.address_id WHERE guardians.student_id=" . $_GET['student_id'] . " AND guardians.to_date IS NULL";
$guardians_result = mysql_query($guardians_query);
if(!$guardians_result) {
$error_message = $error_message . "Database query failed (" . __FILE__ . ":" . __LINE__ . "): " . mysql_error() . "<BR>Query: '$guardians_query'<BR>";
$system_message=$system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
}
//find previous guardians...
$previous_guardians_query = "SELECT * FROM guardians LEFT JOIN guardian ON guardians.guardian_id=guardian.guardian_id LEFT JOIN address on guardian.address_id=address.address_id WHERE guardians.student_id=" . $_GET['student_id'] . " AND guardians.to_date IS NOT NULL";
$previous_guardians_result = mysql_query($previous_guardians_query);
if(!$previous_guardians_result) {
$error_message = $error_message . "Database query failed (" . __FILE__ . ":" . __LINE__ . "): " . mysql_error() . "<BR>Query: '$previous_guardians_query'<BR>";
$system_message=$system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
}
//reevaluate our permissions for this student...
$our_permission = getStudentPermission($_GET['student_id']);
if($our_permission != "READ" && $our_permission != "WRITE" && $our_permission != "ASSIGN" && $our_permission != "ALL") {
//we don't have permission...
$system_message = $system_message . "You do not have permission to view this page (IP: " . $_SERVER['REMOTE_ADDR'] . ")";
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
require(IPP_PATH . 'security_error.php');
exit();
}
//check permissions if necessary...
$have_write_permission = false;
$our_permission = getStudentPermission($_GET['student_id']);
if($our_permission != "WRITE" && $our_permission != "ASSIGN" && $our_permission != "ALL") {
//we don't have write permission...
//do nothing.
} else {
$have_write_permission = true;
}
?>
<!DOCTYPE HTML>
<HTML lang=en>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8">
<TITLE><?php echo $page_title; ?></TITLE>
<style type="text/css" media="screen">
<!--
@import "<?php echo IPP_PATH;?>layout/greenborders.css";
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
function notYetImplemented() {
alert("Functionality not yet implemented"); return false;
}
function noPermission() {
alert("You don't have the permission level necessary"); return false;
}
function changeStatusGuardian() {
if(!confirm("Are you sure you would like to set this\nPersons status back to Guardian?")) {
return false;
}
return true;
}
function changeStatusNotGuardian() {
if(!confirm("Are you sure you would like to set this\nPersons status to Previous Guardian?")) {
return false;
}
return true;
}
function deleteGuardian() {
if(!confirm("Are you sure you would like to delete this Guardian?")) {
return false;
}
return true;
}
</SCRIPT>
</HEAD>
<BODY>
<table class="shadow" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td class="shadow-topLeft"></td>
<td class="shadow-top"></td>
<td class="shadow-topRight"></td>
</tr>
<tr>
<td class="shadow-left"></td>
<td class="shadow-center" valign="top">
<table class="frame" width=620px align=center border="0">
<tr align="Center">
<td><center><img src="<?php echo $page_logo_path; ?>"></center></td>
<tr><td>
<center><?php navbar("student_view.php?student_id=$student_id"); ?></center>
</td></tr>
</tr>
<tr>
<td valign="top">
<div id="main">
<?php if ($system_message) { echo "<center><table width=\"80%\"><tr><td><p class=\"message\">" . $system_message . "</p></td></tr></table></center>";} ?>
<center><table width="80%" cellspacing="0" cellpadding="0"><tr><td><center><p class="header">- IPP Guardian View-</p></center></td></tr><tr><td><center><p class="bold_text"> <?php echo $student_row['first_name'] . " " . $student_row['last_name'] . ", Permission: " . $our_permission;?></p></center></td></tr></table></center>
<BR>
<?php $colour0="#DFDFDF"; $colour1="#CCCCCC"; ?>
<HR>
<!-- BEGIN Current Guardian Info -->
<table width="100%"><tr><td width="200"><p class="header" align="left">Current Guardian(s):</p></td><td align="left"><a href="<?php echo IPP_PATH . "add_guardian.php?student_id=" . $student_row['student_id'];?>" <?php if (!$have_write_permission) echo "onClick=\"return noPermission();\""; ?>><img src="<?php echo IPP_PATH . "images/smallbutton.php?title=New Guardian";?>" border="0"></a></td></tr></table>
<BR>
<center>
<table width="80%" border="0" cellpadding="0" cellspacing="0">
<?php
while($guardian = mysql_fetch_array($guardians_result)) {
echo "<tr><td colspan=\"2\" class=\"wrap_top\">" . $guardian['last_name'] . "," . $guardian['first_name'] . " <a href=\"" . IPP_PATH . "guardian_view.php?student_id=" . $student_id . "&setNotGuardian=" . $guardian['uid'] . "\"";
if (!$have_write_permission) echo "onClick=\"return noPermission();\"";
else echo "onClick=\"return changeStatusNotGuardian();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Change Status\" border=\"0\" width=\"100\" height=\"25\" ></a>\n";
echo " <a href=\"" . IPP_PATH . "guardian_view.php?student_id=" . $student_id . "&deleteGuardian=" . $guardian['uid'] . "\"";
if (!$have_write_permission) echo "onClick=\"return noPermission();\"";
else echo "onClick=\"return deleteGuardian();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Delete\" border=\"0\" width=\"100\" height=\"25\" ></a>\n";
echo " <a href=\"" . IPP_PATH . "edit_address.php?student_id=" . $student_id . "&target=guardian&guardian_id=" . $guardian['guardian_id'] . "\"";
if (!$have_write_permission) echo "onClick=\"return noPermission();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Edit Name\" border=\"0\" width=\"100\" height=\"25\">";
//begin address
//width = 100% in first column is workaround for IE6 issue...
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\" width=\"100%\">Address:</td><td class=\"wrap_right\" width=\"100\"> </td></tr>\n";
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\"><center>\n";
if($guardian['po_box']) echo $guardian['po_box'] . "<BR>";
echo $guardian['street'] . "<BR>\n";
$cpc = "";
if($guardian['city']) $cpc=$cpc . $guardian['city'] . " ";
if($guardian['province']) $cpc=$cpc . $guardian['province'] . " ";
if($guardian['country']) $cpc=$cpc . $guardian['country'];
//add the commas...
$cpc = str_replace(" ",",",$cpc);
echo $cpc . "<BR>\n";
echo $guardian['postal_code'] . "<BR><BR>\n";
echo "</center></td>";
echo "<td class=\"wrap_right\" width=\"100\"><a href=\"" . IPP_PATH . "edit_address.php?student_id=" . $_GET['student_id'] . "&target=guardian&guardian_id=" . $guardian['guardian_id'] . "\"";
if (!$have_write_permission) echo "onClick=\"return noPermission();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Edit Contact\" border=\"0\" width=\"100\" height=\"25\"></td>";
echo "</tr>\n";
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\">Contact:</td><td class=\"wrap_right\" width=\"100\"> </td></tr>\n";
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\"><center>\n";
if($guardian['home_ph'] != "") echo "Ph: " . $guardian['home_ph'] . "<BR>\n";
if($guardian['business_ph'] != "")echo "Business: " . $guardian['business_ph'] . "<BR>\n";
if($guardian['cell_ph'] != "")echo "Cell Ph: " . $guardian['cell_ph'] . "<BR>\n";
if($guardian['email_address'] != "")echo "Email: " . $guardian['email_address'] . "<BR>\n";
echo " "; //just in case we have a blank
echo "</center></td>";
echo "<td class=\"wrap_right\" width=\"100\"> </td>";
echo "</tr>\n";
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\">Notes:</td><td class=\"wrap_right\" width=\"100\"> </td></tr>\n";
echo "<tr>\n";
echo "<td bgcolor=\"$colour0\" class=\"wrap_bottom_left\">\n";
//guardian notes
$guardian_note_query = "SELECT * FROM guardian_note WHERE guardian_id=" . $guardian['guardian_id'] . " ORDER BY priority_note,date ASC";
$guardian_note_result = mysql_query($guardian_note_query);
//check for error
if(!$guardian_note_result) {
$error_message = $error_message . "Database query failed (" . __FILE__ . ":" . __LINE__ . "): " . mysql_error() . "<BR>Query: '$guardian_note_query'<BR>";
$system_message=$system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
echo $system_message;
} else {
//output this note...
//check if we have no notes
if(mysql_num_rows($guardian_note_result) <= 0 ) {
//yes so output non-breaking space
echo " ";
}
while ($guardian_note_row = mysql_fetch_array($guardian_note_result)) {
echo "<hr>\n";
echo "<table width=\"100%\"><tr>\n";
if($guardian_note_row['priority_note'] == 'Y')
echo "<td width=\"32\"><img src=\"" . IPP_PATH . "images/caution.gif\" border=\"0\" width=\"32\" height=\"32\"></td>"; //priority flag.
else
echo "<td width=\"32\"> </td>"; //no priority flag.
echo "<td class=\"wrap_none\">" . $guardian_note_row['note'] ."</td>";
echo "</tr></table>\n";
}
}
//end guardian notes
echo "</td>\n";
echo "<td class=\"wrap_bottom_right\" width=\"100\"><a href=\"" . IPP_PATH . "guardian_notes.php?guardian_id=" . $guardian['guardian_id'] . "&student_id=" . $student_row['student_id'] . "\"";
if (!$have_write_permission) echo "onClick=\"return noPermission();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Notes\" border=\"0\" width=\"100\" height=\"25\"></td>";
echo "</tr>\n";
echo "<tr><td> </td><td width=\"100\"> </td></tr>";
}
?>
</table>
</center>
<!-- END Guardian Info -->
<!-- BEGIN Previous Guardian Info -->
<p class="header" align="left">Previous Guardian(s):</p><BR>
<center>
<table width="80%" border="0" cellpadding="0" cellspacing="0">
<?php
while($guardian = mysql_fetch_array($previous_guardians_result)) {
echo "<tr><td colspan=\"2\" class=\"wrap_top\">" . $guardian['last_name'] . "," . $guardian['first_name'] . " <a href=\"" . IPP_PATH . "guardian_view.php?student_id=" . $student_id . "&setGuardian=" . $guardian['uid'] . "\"";
if($have_write_permission) echo "onclick=\"return changeStatusGuardian();\"";
else echo "onclick=\"return noPermission();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Change Status\" border=\"0\" width=\"100\" height=\"25\"></a>";
echo " <a href=\"" . IPP_PATH . "guardian_view.php?student_id=" . $student_id . "&deleteGuardian=" . $guardian['uid'] . "\"";
if (!$have_write_permission) echo "onClick=\"return noPermission();\"";
else echo "onClick=\"return deleteGuardian();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Delete\" border=\"0\" width=\"100\" height=\"25\" ></a>\n";
echo " <a href=\"" . IPP_PATH . "edit_address.php?student_id=" . $student_id . "&target=guardian&guardian_id=" . $guardian['guardian_id'] . "\"";
if (!$have_write_permission) echo "onClick=\"return noPermission();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Edit Name\" border=\"0\" width=\"100\" height=\"25\">";
//begin lost guardianship date
//width=100% first column is workaround for IE6 issue.
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\" width=\"100%\">Guardianship Terminated:<BR><BR><CENTER>" . $guardian['to_date'] . "</CENTER></td><td class=\"wrap_right\" width=\"100\"> </td></tr>\n";
//begin address
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\">Address:</td><td class=\"wrap_right\" width=\"100\"> </td></tr>\n";
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\"><center>\n";
if($guardian['po_box']) echo "P.O. Box " . $guardian['po_box'] . "<BR>";
echo $guardian['street'] . "<BR>\n";
$cpc = "";
if($guardian['city']) $cpc=$cpc . $guardian['city'] . " ";
if($guardian['province']) $cpc=$cpc . $guardian['province'] . " ";
if($guardian['country']) $cpc=$cpc . $guardian['country'];
//add the commas...
$cpc = str_replace(" ",",",$cpc);
echo $cpc . "<BR>\n";
echo $guardian['postal_code'] . "<BR><BR>\n";
echo "</center></td>";
echo "<td class=\"wrap_right\" width=\"100\"><a href=\"" . IPP_PATH . "edit_address.php?student_id=" . $_GET['student_id'] . "&target=guardian&guardian_id=" . $guardian['guardian_id'] . "\"";
if (!$have_write_permission) echo "onClick=\"return noPermission();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Edit Contact\" border=\"0\" width=\"100\" height=\"25\"></td>";
echo "</tr>\n";
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\">Contact:</td><td class=\"wrap_right\" width=\"100\"> </td></tr>\n";
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\"><center>\n";
if($guardian['home_ph'] != "") echo "Ph: " . $guardian['home_ph'] . "<BR>\n";
if($guardian['business_ph'] != "")echo "Business: " . $guardian['business_ph'] . "<BR>\n";
if($guardian['cell_ph'] != "")echo "Cell Ph: " . $guardian['cell_ph'] . "<BR>\n";
if($guardian['email_address'] != "")echo "Email: " . $guardian['email_address'] . "<BR>\n";
echo " "; //just in case we have a blank
echo "</center></td>";
echo "<td class=\"wrap_right\" width=\"100\"> </td>";
echo "</tr>\n";
echo "<tr><td class=\"wrap_left\" bgcolor=\"$colour0\">Notes:</td><td class=\"wrap_right\" width=\"100\"> </td></tr>\n";
echo "<tr>\n";
echo "<td bgcolor=\"$colour0\" class=\"wrap_bottom_left\">\n";
//guardian notes
$guardian_note_query = "SELECT * FROM guardian_note WHERE guardian_id=" . $guardian['guardian_id'] . " ORDER BY date ASC,priority_note DESC";
$guardian_note_result = mysql_query($guardian_note_query);
//check for error
if(!$guardian_note_result) {
$error_message = $error_message . "Database query failed (" . __FILE__ . ":" . __LINE__ . "): " . mysql_error() . "<BR>Query: '$guardian_note_query'<BR>";
$system_message=$system_message . $error_message;
IPP_LOG($system_message,$_SESSION['egps_username'],'ERROR');
echo $system_message;
} else {
//output this note...
//check if we have no notes
if(mysql_num_rows($guardian_note_result) <= 0 ) {
//yes so output non-breaking space
echo " ";
}
while ($guardian_note_row = mysql_fetch_array($guardian_note_result)) {
echo "<hr>\n";
echo "<table width=\"100%\"><tr>\n";
if($guardian_note_row['priority_note'] == 'Y')
echo "<td width=\"32\"><img src=\"" . IPP_PATH . "images/caution.gif\" border=\"0\" width=\"32\" height=\"32\"></td>"; //priority flag.
else
echo "<td width=\"32\"> </td>"; //no priority flag.
echo "<td class=\"wrap_none\">" . $guardian_note_row['note'] ."</td>";
echo "</tr></table>\n";
}
}
//end guardian notes
echo "</td>\n";
echo "<td class=\"wrap_bottom_right\" width=\"100\"><a href=\"" . IPP_PATH . "guardian_notes.php?guardian_id=" . $guardian['guardian_id'] . "&student_id=" . $student_row['student_id'] ."\"";
if (!$have_write_permission) echo "onClick=\"return noPermission();\"";
echo "><img src=\"" . IPP_PATH . "images/smallbutton.php?title=Notes\" border=\"0\" width=\"100\" height=\"25\"></td>";
echo "</tr>\n";
echo "<tr><td> </td><td width=\"100\"> </td></tr>";
}
?>
</table>
</center>
<!-- END Previous Guardian Info -->
</div>
</td>
</tr>
</table></center>
</td>
<td class="shadow-right"></td>
</tr>
<tr>
<td class="shadow-left"> </td>
<td class="shadow-center">
<?php navbar("student_view.php?student_id=$student_id"); ?>
</td>
<td class="shadow-right"> </td>
</tr>
<tr>
<td class="shadow-bottomLeft"></td>
<td class="shadow-bottom"></td>
<td class="shadow-bottomRight"></td>
</tr>
</table>
<center></center>
</BODY>
</HTML>