112 lines
3.7 KiB
PHP
112 lines
3.7 KiB
PHP
<?php
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
// Start the template and output buffering
|
|
startTemplate();
|
|
$templatePageTitle = getLanguageText('TEXT-CONTACT-US');
|
|
|
|
// Ensure that only valid user types have access to this module
|
|
$AllowedUserTypes = array('SuperUser','System Administrator','Communications Administrator');
|
|
if (checkPermission($AllowedUserTypes) != 1) {
|
|
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
|
$action = '';
|
|
$naction = '';
|
|
header("Location: /?action=$action&naction=$naction&form_message=" . urlencode($form_message) . "&error_message=" . urlencode($error_message));
|
|
exit();
|
|
}
|
|
|
|
?>
|
|
<center>
|
|
<h2><?php displayLanguageText('TEXT-APPLICATION-CONTACTS'); ?></h2>
|
|
<table width='90%' cellpadding='5'>
|
|
<tr class='data-header'>
|
|
<td><?php displayLanguageText('TEXT-NAME'); ?></td>
|
|
<td><?php displayLanguageText('TEXT-PHONE'); ?></td>
|
|
<td><?php displayLanguageText('TEXT-EMAIL'); ?></td>
|
|
</tr>
|
|
<?php
|
|
$class = '';
|
|
|
|
$query = "SELECT * FROM school_contact_list WHERE school_num = $school_num ORDER BY sequence,contact_name";
|
|
$contacts = db_query($query);
|
|
while ($row = db_fetch_assoc($contacts)) {
|
|
extract($row);
|
|
|
|
if ($class == 'data-odd') $class='data-even';
|
|
else $class = 'data-odd';
|
|
|
|
if (strlen($contact_email)) $contact_email = "<a href='mailto:$contact_email'>$contact_email</a>";
|
|
|
|
echo("<tr class='$class'>");
|
|
echo("<td>$contact_name</td>");
|
|
echo("<td>$contact_phone</td>");
|
|
echo("<td>$contact_email</td>");
|
|
echo("</tr>\n");
|
|
}
|
|
?>
|
|
</table>
|
|
<br>
|
|
<p><a href='?action=application-contacts' class='btn btn--primary>'><?php displayLanguageText('TEXT-CONTACT-ADMIN-TITLE'); ?></a></p>
|
|
<p><a href='?action=view-support-log' class='btn btn--primary>'><?php displayLanguageText('TEXT-SUPPORT-LOG'); ?></a></p>
|
|
<p><br></p>
|
|
<h2><?php displayLanguageText('TEXT-SUPPORT'); ?></h2>
|
|
<table width='40%' cellpadding='5'>
|
|
<tr class='data-odd'>
|
|
<td><b><?php displayLanguageText('TEXT-EMAIL'); ?></b></td>
|
|
<td><b><a href='mailto:support@hotlunches.net'>support@hotlunches.net</a></b></td>
|
|
</tr>
|
|
<tr class='data-odd'>
|
|
<td><b><?php displayLanguageText('TEXT-PHONE'); ?></b></td>
|
|
<td><b>(604) 996-7181 ext 1</b></td>
|
|
</tr>
|
|
<tr class='data-odd'>
|
|
<td><b><?php displayLanguageText('TEXT-PHONE'); ?></b></td>
|
|
<td><b>(888) 946-8586 ext 1</b></td>
|
|
</tr>
|
|
</table>
|
|
|
|
<?php
|
|
$current_balance_owing = db_getVal("SELECT sum(total - amount_paid) FROM invoice_header WHERE school_num = $base_school_num AND status = 'Open'");
|
|
if ($current_balance_owing > 0) {
|
|
$open_invoices = db_query("SELECT record_num FROM invoice_header WHERE school_num = $school_num AND status = 'Open' ORDER BY record_num");
|
|
$row = db_fetch_assoc($open_invoices);
|
|
$invoice_num = sprintf("%06d",$row['record_num'] + 500);
|
|
$inv_link = "<a href='?action=inv-print&invoice_num=$record_num&school_num=$school_num' style='color: #ffffff'>View Open Invoice #$invoice_num</a>";
|
|
?>
|
|
<br>
|
|
<h2><?php displayLanguageText('TEXT-PAYMENTS'); ?></h2>
|
|
<table width='40%' cellpadding='5'>
|
|
<tr class='data-odd'>
|
|
<td><b><?php displayLanguageText('TEXT-PAY-ONLINE'); ?></b></td>
|
|
<td><?php include "paypal_form.hotlunches.php"; ?></td>
|
|
</tr>
|
|
<tr class='data-odd'>
|
|
<td><b><?php displayLanguageText('TEXT-ETRANSFER'); ?></b></td>
|
|
<td><b>mark@easyschoolsoftware.net</b></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
else { ?>
|
|
<br>
|
|
<h2><?php displayLanguageText('TEXT-ADDRESS'); ?></h2>
|
|
<table width='40%' cellpadding='5'>
|
|
<?php
|
|
}
|
|
?>
|
|
<tr class='data-odd'>
|
|
<td valign='top'><b><?php displayLanguageText('TEXT-ADDRESS'); ?></b></td>
|
|
<td><b>
|
|
981 Noons Creek Close<br>
|
|
Port Moody, BC, V3H 4J5
|
|
</b></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</center>
|
|
|
|
<?php endTemplate(); ?>
|