First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,77 @@
|
||||
<?php
|
||||
require_once("include/globals.php");
|
||||
|
||||
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
||||
header("Location: /");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
$school_name = $school_record['school_name'];
|
||||
$pac_name = $school_record['pac_name'];
|
||||
|
||||
// Start the template and output buffering
|
||||
startTemplate();
|
||||
$templatePageTitle = $pac_name;
|
||||
|
||||
|
||||
// Get any contact content
|
||||
$content = getPageContent($school_num,"Contact Information");
|
||||
if (strlen($content)) {
|
||||
?>
|
||||
<table width='800' cellpadding='5' cellspacing='2' border='0'>
|
||||
<tr>
|
||||
<td align='center'><?php echo($content) ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<?php
|
||||
}
|
||||
|
||||
|
||||
// Get contact member list
|
||||
$query = "select * from organization_contacts " .
|
||||
"where school_num = $base_school_num " .
|
||||
"order by sequence,position";
|
||||
$contacts = db_query($query);
|
||||
|
||||
if (db_num_rows($contacts)) {
|
||||
|
||||
?>
|
||||
<h2><?php echo($pac_name) ?> <?php displayLanguageText('TEXT-LIST'); ?></h2>
|
||||
<table width='700' cellpadding='5' cellspacing='2' border='0'>
|
||||
<tr>
|
||||
<td align='center' class='heading'><?php displayLanguageText('TEXT-POSITION'); ?></td>
|
||||
<td align='center' class='heading'><?php displayLanguageText('TEXT-NAME'); ?></td>
|
||||
<td align='center' class='heading'><?php displayLanguageText('TEXT-EMAIL'); ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
$count = 0;
|
||||
|
||||
while ($row = db_fetch_array($contacts)) {
|
||||
extract($row);
|
||||
|
||||
$bgclass = "data-odd";
|
||||
if (($count % 2) == 0) $bgclass = "data-even";
|
||||
$count++;
|
||||
|
||||
if (strlen($email)) {
|
||||
$email = "<a href='mailto:$email'>$email</a>";
|
||||
}
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td align='center' class='<?php echo($bgclass) ?>'><?php echo($position) ?></td>
|
||||
<td align='center' class='<?php echo($bgclass) ?>'><?php echo($person) ?></td>
|
||||
<td align='center' class='<?php echo($bgclass) ?>'><?php echo($email) ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
<br>
|
||||
<?php
|
||||
endTemplate();
|
||||
?>
|
||||
Reference in new issue
Block a user