1269 lines
44 KiB
PHP
1269 lines
44 KiB
PHP
<?php
|
|
require_once("include/globals.php");
|
|
|
|
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
|
header("Location: /");
|
|
exit();
|
|
}
|
|
|
|
if (!isset($include_jquery)) $include_jquery = 'Yes';
|
|
|
|
if (!isset($displayButtons) || $displayButtons == 'Yes') {
|
|
?>
|
|
<table cellspacing='1' cellpadding='2' border='0'>
|
|
<tr>
|
|
<td align='center'><a href='#' id='school-search' class='btn btn--outline btn--xsmall'>Search</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list' class='btn btn--outline btn--xsmall'>List Active</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Expiring' class='btn btn--outline btn--xsmall'>Expiring</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Expired' class='btn btn--outline btn--xsmall'>Inactive</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&sortby=date' class='btn btn--outline btn--xsmall'>Order By Start Date</a></td>
|
|
<td align='center'><a href='?action=schools-status' class='btn btn--outline btn--xsmall'>School Status</a></td>
|
|
<td align='center'><a href='/school-list.php' class='btn btn--outline btn--xsmall'>School List</a></td>
|
|
<td align='center'><a href='/schools.list.php' class='btn btn--outline btn--xsmall'>School by City</a></td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing='1' cellpadding='2' border='0'>
|
|
<tr>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Pending' class='btn btn--outline btn--xsmall'>Pending Status</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Special' class='btn btn--outline btn--xsmall'>Special Status</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Inactive' class='btn btn--outline btn--xsmall'>Inactive Status</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Deleted' class='btn btn--outline btn--xsmall'>Deleted Status</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Trial' class='btn btn--outline btn--xsmall'>Trial Status</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Linked' class='btn btn--outline btn--xsmall'>Linked Status</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Full' class='btn btn--outline btn--xsmall'>Full Config</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Basic' class='btn btn--outline btn--xsmall'>Basic Config</a></td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing='1' cellpadding='2' border='0'>
|
|
<tr>
|
|
<td align='center'><a href='?action=invoices&show=Open' class='btn btn--outline btn--xsmall'>Open Invoices</a></td>
|
|
<td align='center'><a href='?action=invoices' class='btn btn--outline btn--xsmall'>All Invoices</a></td>
|
|
<td align='center'><a href='?action=invoices&show=Pending' class='btn btn--outline btn--xsmall'>Pending Invoices</a></td>
|
|
<td align='center'><a href='?action=invoices&show=Paid' class='btn btn--outline btn--xsmall'>Paid Invoices</a></td>
|
|
<td align='center'><a href='?action=invoices&show=Refund' class='btn btn--outline btn--xsmall'>Refund Invoices</a></td>
|
|
<td align='center'><a href='?action=invoices&show=Refunded' class='btn btn--outline btn--xsmall'>Refunded Invoices</a></td>
|
|
<td align='center'><a href='?action=revenue' class='btn btn--outline btn--xsmall'>Revenue</a></td>
|
|
<td align='center'><a href='?action=payments' class='btn btn--outline btn--xsmall'>Payments</a></td>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing='1' cellpadding='2' border='0'>
|
|
<tr>
|
|
<td align='center'><a href='#' class='btn btn--outline btn--xsmall' id='notifications'>Notifications</a></td>
|
|
<td align='center'><a href='#' class='btn btn--outline btn--xsmall' id='demo-list'>Demos</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=PayPal' class='btn btn--outline btn--xsmall' id='paypal-schools'>PayPal</a></td>
|
|
<td align='center'><a href='?action=schools-list&naction=list&show=Bambora' class='btn btn--outline btn--xsmall' id='bambora-schools'>Bambora</a></td>
|
|
<td align='center'><a href='activity.php' class='btn btn--outline btn--xsmall' id='activity'>Server Activity</a></td>
|
|
<td align='center'><a href='activity-detail.php' class='btn btn--outline btn--xsmall' id='activity'>Activity Detail</a></td>
|
|
<td align='center'><a href='expiring-schools.php' class='btn btn--outline btn--xsmall'>Expired Schools</a></td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<table cellspacing='1' cellpadding='2' border='0'>
|
|
<tr>
|
|
<?php
|
|
$query = "SELECT reseller_code,business_name,count(s.record_num) FROM resellers, schools AS s " .
|
|
"WHERE sequence != -1 " .
|
|
"AND s.reseller = reseller_code " .
|
|
"AND s.status = 'Active' " .
|
|
"GROUP BY 1,2 " .
|
|
"ORDER BY business_name";
|
|
$resellers = db_query($query);
|
|
$num = db_num_rows($resellers);
|
|
$limit = 11;
|
|
if ($num > $limit && $num < (2 * $limit)) $limit = intval(($num + 1) / 2);
|
|
if ($num > (2* $limit) && $num < (3 * $limit)) $limit = intval(($num + 1) / 3);
|
|
|
|
$count = 0;
|
|
while ($row = db_fetch_assoc($resellers)) {
|
|
$rname = $row['reseller_code'];
|
|
$count++;
|
|
|
|
if ($count > $limit) {
|
|
$count = 0;
|
|
?>
|
|
</tr>
|
|
</table>
|
|
<table cellspacing='1' cellpadding='2' border='0'>
|
|
<tr>
|
|
<?php
|
|
}
|
|
?>
|
|
<td align='center'><a href='?action=schools-list&naction=list&reseller=<?php echo($rname) ?>' class='btn btn--outline btn--xsmall'><?php echo($rname) ?></a></td>
|
|
<?php
|
|
}
|
|
?>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<?php
|
|
$Letters = array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z');
|
|
echo("<table cellspacing='6' cellpadding='6'>\n<tr>\n");
|
|
for ($i = 0; $i < count($Letters); $i++) {
|
|
$letter = $Letters[$i];
|
|
// echo("<td width='15' align='center' style='background: #202020; border: 1px solid #AF1805;'><b><a href='?action=schools-list&naction=list&first_letter=$letter' style='color: #ffffff;'>$letter</a></b></td>\n");
|
|
}
|
|
echo("</tr>\n</table>\n");
|
|
}
|
|
|
|
if ($include_jquery == 'Yes') {
|
|
?>
|
|
<script>
|
|
$(document).ready(function() {
|
|
|
|
<?php include "include/ajax.Setup.php" ?>
|
|
|
|
$("#school-search-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 950,
|
|
minHeight: 600,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#school-form-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 990,
|
|
minHeight: 600,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#general-info-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 750,
|
|
minHeight: 600,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#notification-note-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 600,
|
|
minHeight: 400,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#school-date-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 250,
|
|
minHeight: 200,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#reseller-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 250,
|
|
minHeight: 200,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#billing-organization-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 250,
|
|
minHeight: 200,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#school-datetime-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 250,
|
|
minHeight: 200,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#payment-method-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 250,
|
|
minHeight: 300,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#school-url-dialog").dialog({
|
|
autoOpen: false,
|
|
minWidth: 500,
|
|
minHeight: 300,
|
|
modal: true,
|
|
position: { my: 'center', at: 'center' }
|
|
});
|
|
|
|
$("#school-info-tabs").tabs();
|
|
|
|
|
|
//
|
|
// School search functions
|
|
//
|
|
<?php if (array_key_exists('search',$_GET) && $_GET['search'] == 'yes') { ?>
|
|
$("#searchfield").val('');
|
|
$("#school-info").html('');
|
|
$("#school-search-dialog").dialog("open");
|
|
|
|
<?php } ?>
|
|
$("#school-search").click(function(e) {
|
|
e.preventDefault();
|
|
$("#searchfield").val('');
|
|
$("#school-info").html('');
|
|
$("#school-contacts").html('');
|
|
$("#school-schedules").html('');
|
|
$("#school-invoices").html('');
|
|
$("#school-email-logs").html('');
|
|
$("#school-email-logs-detail").html('');
|
|
$("#school-search-dialog").dialog("open");
|
|
});
|
|
|
|
$(document).on('click','.show-school-info',function(e) {
|
|
e.preventDefault();
|
|
var school_num = $(this).attr('snum');
|
|
var category = $(this).attr('category');
|
|
|
|
if ($("#searchfield")) $("#searchfield").val('');
|
|
$("#school-search-dialog").dialog("open");
|
|
getSchoolInfo(school_num,category);
|
|
$("#school-info-tabs").tabs("option","active",0);
|
|
$("#school-info-tabs").tabs("refresh");
|
|
});
|
|
|
|
|
|
// Edit School
|
|
$(document).on('click touch', '.edit-school', function(e) {
|
|
e.preventDefault();
|
|
var rnum = $(this).attr('rnum');
|
|
|
|
$.ajax({
|
|
url: "ajax.DataRecord.Fetch.php",
|
|
data: {
|
|
table_name: "schools",
|
|
record_num: rnum
|
|
},
|
|
dataType: "json",
|
|
error:
|
|
function(jqXHR, exception) {
|
|
alert("Exception: "+jqXHR.status+' '+jqXHR.statusText);
|
|
}
|
|
}).done(
|
|
function(results) {
|
|
if (results.ajax_return_code < 0) {
|
|
alert(results.ajax_return_message);
|
|
$("#url-snum").val(rnum);
|
|
$("#dialog_new_url").val(results.url);
|
|
$("#school-url-dialog").dialog('open');
|
|
}
|
|
else {
|
|
$("#school-form .form-field").each(function() {
|
|
var fname = $(this).attr('name');
|
|
$("#school-form #"+fname).val('');
|
|
$("#school-form #"+fname).val(results[fname]);
|
|
});
|
|
|
|
$("#school-form-dialog").dialog('open');
|
|
}
|
|
}
|
|
);
|
|
});
|
|
|
|
$(document).on('click touch', '#save-school-record', function(e) {
|
|
e.preventDefault();
|
|
|
|
var rnum = $("#school-form #record_num").val();
|
|
var form_data = $("#school-form").serialize();
|
|
var data = form_data+"&table_name=schools&sequence=N";
|
|
|
|
$.ajax({
|
|
url: "ajax.DataRecord.Update.php",
|
|
method: 'POST',
|
|
data: data,
|
|
dataType: "json"
|
|
}).done(function(data) {
|
|
alert("Data has been saved");
|
|
$("#school-form-dialog").dialog('close');
|
|
if ($("#school-search-dialog").dialog("isOpen")) {
|
|
getSchoolInfo(rnum);
|
|
$("#school-info-tabs").tabs("option","active",0);
|
|
$("#school-info-tabs").tabs("refresh");
|
|
}
|
|
}
|
|
);
|
|
});
|
|
|
|
$("#searchfield").autocomplete({
|
|
source: "ajax.schoolSearch.php",
|
|
minLength: 2,
|
|
width: 750,
|
|
selectFirst: false,
|
|
select: function( event, results ) {
|
|
var school_num = results.item.school_num;
|
|
$("#school_num").val(school_num);
|
|
getSchoolInfo(school_num);
|
|
$("#school-info-tabs").tabs("option","active",0);
|
|
$("#school-info-tabs").tabs("refresh");
|
|
}
|
|
});
|
|
|
|
$(document).on('click','.refresh-info',function(e) {
|
|
e.preventDefault();
|
|
var school_num = $(this).attr('snum');
|
|
$("#school_num").val(school_num);
|
|
getSchoolInfo(school_num);
|
|
$("#school-info-tabs").tabs("option","active",0);
|
|
$("#school-info-tabs").tabs("refresh");
|
|
});
|
|
|
|
$(document).on('click','.show-school-info',function(e) {
|
|
e.preventDefault();
|
|
var school_num = $(this).attr('snum');
|
|
|
|
$("#searchfield").val('');
|
|
$("#school-info").html('');
|
|
$("#school-contacts").html('');
|
|
$("#school-schedules").html('');
|
|
$("#school-invoices").html('');
|
|
$("#school-email-logs").html('');
|
|
$("#school-email-logs-detail").html('');
|
|
$("#school-search-dialog").dialog("open");
|
|
$("#school_num").val(school_num);
|
|
getSchoolInfo(school_num);
|
|
$("#school-info-tabs").tabs("option","active",0);
|
|
$("#school-info-tabs").tabs("refresh");
|
|
});
|
|
|
|
function getSchoolInfo(school_num) {
|
|
var data = "table_name=schools"+
|
|
"&sequence_flag=N"+
|
|
"&action=school-info"+
|
|
"&school_num="+school_num;
|
|
$.getJSON("ajax.DataTable.Fetch.php",data,
|
|
function(results) {
|
|
$("#school-email-logs").html('');
|
|
$("#school-email-logs-detail").html('');
|
|
$("#usearchfield").val('');
|
|
$("#user-info").html('');
|
|
|
|
// Display data
|
|
$("#school-info").html(results.content);
|
|
$("#school-contacts").html(results.contacts);
|
|
$("#school-schedules").html(results.schedules);
|
|
$("#school-invoices").html(results.invoices);
|
|
$("#searchfield").val('');
|
|
// $("#school-info-tabs").tabs("option","active",0);
|
|
// $("#school-info-tabs").tabs("refresh");
|
|
|
|
loadEmailLog();
|
|
}
|
|
);
|
|
}
|
|
|
|
$("#clear-search-field").click(function(e) {
|
|
e.preventDefault();
|
|
clearSearchFields();
|
|
});
|
|
|
|
function clearSearchFields() {
|
|
$("#searchfield").val('');
|
|
$("#school-info").html('');
|
|
$("#school-contacts").html('');
|
|
$("#school-schedules").html('');
|
|
$("#school-invoices").html('');
|
|
$("#school-email-logs").html('');
|
|
$("#school-email-logs-detail").html('');
|
|
$("#usearchfield").val('');
|
|
$("#user-info").html('');
|
|
}
|
|
|
|
$(document).on('click','.close-school-info',function(e) {
|
|
e.preventDefault();
|
|
$("#school-search-dialog").dialog("close");
|
|
});
|
|
|
|
|
|
$(".school-setup").click(function(e) {
|
|
e.preventDefault();
|
|
var rnum = $(this).attr('rnum');
|
|
|
|
$.ajax({
|
|
url: "ajax.DataRecord.Fetch.php",
|
|
data: {
|
|
table_name: "schools",
|
|
record_num: rnum
|
|
},
|
|
dataType: "json",
|
|
error:
|
|
function(jqXHR, exception) {
|
|
alert("Exception: "+jqXHR.status+' '+jqXHR.statusText);
|
|
}
|
|
}).done(
|
|
function(results) {
|
|
if (results.ajax_return_code < 0) {
|
|
alert(results.ajax_return_message);
|
|
$("#url-snum").val(rnum);
|
|
$("#dialog_new_url").val(results.url);
|
|
$("#school-url-dialog").dialog('open');
|
|
}
|
|
else {
|
|
window.open("/school-setup.php?school_num="+rnum, '_blank');
|
|
}
|
|
}
|
|
);
|
|
});
|
|
|
|
$("#save-school-url").click(function(e) {
|
|
e.preventDefault();
|
|
|
|
var url = $("#dialog_new_url").val();
|
|
var snum = $("#url-snum").val();
|
|
|
|
$.ajax({
|
|
url: 'ajax.UpdateDBField.php',
|
|
data: {
|
|
table_name: 'schools',
|
|
field_name: 'url',
|
|
field_value: url,
|
|
field_type: 'string',
|
|
record_num: snum
|
|
},
|
|
dataType: 'json'
|
|
}).done(function(results) {
|
|
alert('School Updated');
|
|
location.reload();
|
|
});
|
|
});
|
|
|
|
|
|
$(document).on('click','#load-school-logs',function(e) {
|
|
e.preventDefault();
|
|
loadEmailLog();
|
|
});
|
|
|
|
function loadEmailLog() {
|
|
var school_num = $("#school_num").val();
|
|
|
|
var data = "table_name=email_reminders_log"+
|
|
"&sequence_flag=N"+
|
|
"&action=load-email-reminders-log"+
|
|
"&school_num="+school_num;
|
|
$.getJSON("ajax.DataTable.Fetch.php",data,
|
|
function(results) {
|
|
// Display data
|
|
$("#school-email-logs").html(results.content);
|
|
$("#school-email-logs-detail").html('');
|
|
}
|
|
);
|
|
}
|
|
|
|
$(document).on('click','.view-log-details',function(e) {
|
|
e.preventDefault();
|
|
|
|
$("#school-email-logs").html("<p align='center'><img src='images/spinner.gif'></p>");
|
|
|
|
var school_num = $("#school_num").val();
|
|
var log_num = $(this).attr('rnum');
|
|
var data = "table_name=email_reminders_log_detail"+
|
|
"&sequence_flag=N"+
|
|
"&action=load-email-reminders-log-detail"+
|
|
"&log_num="+log_num+
|
|
"&school_num="+school_num;
|
|
$.getJSON("ajax.DataTable.Fetch.php",data,
|
|
function(results) {
|
|
// Display data
|
|
$("#school-email-logs").html('');
|
|
$("#school-email-logs-detail").html(results.content);
|
|
}
|
|
);
|
|
});
|
|
|
|
$(document).on('click','.view-log-message',function(e) {
|
|
e.preventDefault();
|
|
|
|
var rnum = $(this).attr('rnum');
|
|
var msg = $("#msg-"+rnum).val();
|
|
$("#general-info-span").html(msg);
|
|
$("#general-info-dialog").dialog('open');
|
|
});
|
|
|
|
|
|
//
|
|
// User search functions
|
|
//
|
|
$("#usearchfield").autocomplete({
|
|
source: "ajax.userSearch.php",
|
|
minLength: 3,
|
|
width: 750,
|
|
selectFirst: false,
|
|
select: function( event, results ) {
|
|
var user_num = results.item.user_num;
|
|
var school_num = results.item.school_num;
|
|
getSchoolInfo(school_num);
|
|
getUserInfo(user_num,school_num);
|
|
$("#school-info-tabs").tabs("option","active",3);
|
|
$("#school-info-tabs").tabs("refresh");
|
|
}
|
|
});
|
|
|
|
function getUserInfo(user_num,school_num) {
|
|
var data = "table_name=users"+
|
|
"&sequence_flag=N"+
|
|
"&action=user-info"+
|
|
"&user_num="+user_num+
|
|
"&school_num="+school_num;
|
|
$.getJSON("ajax.DataTable.Fetch.php",data,
|
|
function(results) {
|
|
// Display data
|
|
$("#user-info").html(results.content);
|
|
$("#usearchfield").val('');
|
|
}
|
|
);
|
|
}
|
|
|
|
$("#clear-usearch-field").click(function(e) {
|
|
e.preventDefault();
|
|
$("#usearchfield").val('');
|
|
});
|
|
|
|
$(document).on('click touch', '#reset-user-password', function(e) {
|
|
e.preventDefault();
|
|
|
|
var user_num = $(this).attr('unum');
|
|
var school_num = $(this).attr('snum');
|
|
var userid = $(this).attr('userid');
|
|
var last_login = $(this).attr('last');
|
|
|
|
$("#user-id").val(userid);
|
|
$("#user-id").select();
|
|
document.execCommand("copy");
|
|
|
|
var ans = confirm("Reset User Password?\n\nUser ID: "+userid+"\nNew Password: "+userid+"\n\nLast Login: "+last_login);
|
|
if (ans) {
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: "ajax.UserPassword.Update.php",
|
|
data: { school_num: school_num, record_num: user_num }
|
|
}).done(function() {
|
|
alert("User Password Updated");
|
|
});
|
|
}
|
|
});
|
|
|
|
|
|
$(document).on('click','.paid-link',function(e) {
|
|
e.preventDefault();
|
|
var school_num = $(this).attr('snum');
|
|
var invoice_num = $(this).attr('inum');
|
|
|
|
$("#pmethod_school_num").val(school_num);
|
|
$("#pmethod_invoice_num").val(invoice_num);
|
|
|
|
$("#payment-method-dialog").dialog("open");
|
|
});
|
|
|
|
$(document).on('click','.payment-method',function(e) {
|
|
e.preventDefault();
|
|
|
|
var school_num = $("#pmethod_school_num").val();
|
|
var invoice_num = $("#pmethod_invoice_num").val();
|
|
var method = $(this).attr('method');
|
|
$("#payment-method-dialog").dialog("close");
|
|
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: "ajax.PostPaid.php",
|
|
data: { school_num: school_num, invoice_num: invoice_num, method: method }
|
|
}).done(function(data) {
|
|
getSchoolInfo(school_num);
|
|
$("#school-info-tabs").tabs("option","active",0);
|
|
$("#school-info-tabs").tabs("refresh");
|
|
});
|
|
});
|
|
|
|
$(document).on('click','.ezs-link',function(e) {
|
|
e.preventDefault();
|
|
var post = confirm("EZS Payment");
|
|
if (post) {
|
|
var school_num = $(this).attr('snum');
|
|
var invoice_num = $(this).attr('inum');
|
|
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: "ajax.PostEZS.php",
|
|
data: { school_num: school_num, invoice_num: invoice_num },
|
|
dataType: "json"
|
|
}).done(function(data) {
|
|
var msg = data.form_message;
|
|
$("#invoices-message-span").html("<b>"+msg+"</b>");
|
|
|
|
$("#pmethod_school_num").val(school_num);
|
|
$("#pmethod_invoice_num").val(invoice_num);
|
|
|
|
$("#payment-method-dialog").dialog("open");
|
|
});
|
|
}
|
|
|
|
return(false);
|
|
});
|
|
|
|
|
|
$(document).on('click','.last-demo-date',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var dateVal = $("#last-demo-date-"+snum).html();
|
|
|
|
$("#snum-date").val(snum);
|
|
$("#date-field-name").val("last_demo_date");
|
|
$("#date-field-span").val("last-demo-date");
|
|
$("#date-type-span").html("Last Demo Date");
|
|
$("#sDate").val(dateVal);
|
|
$("#school-date-dialog").dialog("open");
|
|
});
|
|
|
|
$(document).on('click','.followup1-date',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var dateVal = $("#followup1-date-"+snum).html();
|
|
|
|
$("#snum-date").val(snum);
|
|
$("#date-field-name").val("followup1_date");
|
|
$("#date-field-span").val("followup1-date");
|
|
$("#date-type-span").html("Followup Date 1");
|
|
$("#sDate").val(dateVal);
|
|
$("#school-date-dialog").dialog("open");
|
|
});
|
|
|
|
$(document).on('click','.followup2-date',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var dateVal = $("#followup2-date-"+snum).html();
|
|
|
|
$("#snum-date").val(snum);
|
|
$("#date-field-name").val("followup2_date");
|
|
$("#date-field-span").val("followup2-date");
|
|
$("#date-type-span").html("Followup Date 2");
|
|
$("#sDate").val(dateVal);
|
|
$("#school-date-dialog").dialog("open");
|
|
});
|
|
|
|
$(document).on('click','.last-contact',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var dateVal = $("#last-contact-date-"+snum).html();
|
|
|
|
$("#snum-date").val(snum);
|
|
$("#date-field-name").val("last_contact_date");
|
|
$("#date-field-span").val("last-contact-date");
|
|
$("#date-type-span").html("Last Contact Date");
|
|
$("#sDate").val(dateVal);
|
|
$("#school-date-dialog").dialog("open");
|
|
});
|
|
|
|
// Save date values
|
|
$("#set-date-field").click(function(e) {
|
|
e.preventDefault();
|
|
|
|
var sdate = $("#sDate").val();
|
|
var snum = $("#snum-date").val();
|
|
var dfield = $("#date-field-name").val();
|
|
var dspan = $("#date-field-span").val();
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&" + dfield + "=" + sdate;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
$("#"+dspan+"-"+snum).html(sdate);
|
|
$("#school-date-dialog").dialog("close");
|
|
}
|
|
);
|
|
});
|
|
|
|
$("#clear-date-field").click(function(e) {
|
|
e.preventDefault();
|
|
$("#sDate").val('');
|
|
});
|
|
|
|
$(document).on('blur','.followup-note',function() {
|
|
var snum = $(this).attr('snum');
|
|
var fid = $(this).attr('id');
|
|
var note = $(this).val();
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&" + fid + "=" + note;
|
|
$.getJSON("ajax.DataRecord.Update.php", data);
|
|
});
|
|
|
|
|
|
//
|
|
// Datetime values
|
|
//
|
|
$(document).on('click','.demo-scheduled',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var dateVal = $("#demo-scheduled-"+snum).html();
|
|
|
|
$("#snum-datetime").val(snum);
|
|
$("#datetime-field-name").val("demo_scheduled_date");
|
|
$("#datetime-field-span").val("demo-scheduled");
|
|
$("#datetime-type-span").html("Demo Scheduled For");
|
|
$("#sDate").val(dateVal);
|
|
$("#school-datetime-dialog").dialog("open");
|
|
});
|
|
|
|
// Save datetime values
|
|
$("#set-datetime-field").click(function(e) {
|
|
e.preventDefault();
|
|
|
|
var sdate = $("#sDateTime").val();
|
|
var snum = $("#snum-datetime").val();
|
|
var dfield = $("#datetime-field-name").val();
|
|
var dspan = $("#datetime-field-span").val();
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&" + dfield + "=" + sdate;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
$("#"+dspan+"-"+snum).html(sdate);
|
|
$("#school-datetime-dialog").dialog("close");
|
|
}
|
|
);
|
|
});
|
|
|
|
$("#clear-datetime-field").click(function(e) {
|
|
e.preventDefault();
|
|
$("#sDateTime").val('');
|
|
});
|
|
|
|
|
|
//
|
|
// Handle Y/N flag toggles
|
|
//
|
|
$(document).on('click','.welcome-email-sent',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var flagVal = $("#welcome-email-sent-"+snum).html();
|
|
var newVal = 'Y';
|
|
|
|
if (flagVal == 'Y') {
|
|
newVal = 'N';
|
|
}
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&welcome_email_sent=" + newVal;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
$("#welcome-email-sent-"+snum).html(newVal);
|
|
}
|
|
);
|
|
});
|
|
|
|
$(document).on('click','.followup-email-sent',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var flagVal = $("#followup-email-sent-"+snum).html();
|
|
var newVal = 'Y';
|
|
|
|
if (flagVal == 'Y') {
|
|
newVal = 'N';
|
|
}
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&followup_email_sent=" + newVal;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
$("#followup-email-sent-"+snum).html(newVal);
|
|
}
|
|
);
|
|
});
|
|
|
|
$(document).on('click','.testimonial',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var flagVal = $("#testimonial-"+snum).html();
|
|
var newVal = 'Y';
|
|
|
|
if (flagVal == 'Y') {
|
|
newVal = 'N';
|
|
}
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&testimonial=" + newVal;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
$("#testimonial-"+snum).html(newVal);
|
|
}
|
|
);
|
|
});
|
|
|
|
$(document).on('click','.renewal-contact',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var flagVal = $("#renewal-contact-"+snum).html();
|
|
var newVal = 'Y';
|
|
|
|
if (flagVal == 'Y') {
|
|
newVal = 'N';
|
|
}
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&renewal_contact=" + newVal;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
$("#renewal-contact-"+snum).html(newVal);
|
|
}
|
|
);
|
|
});
|
|
|
|
$(document).on('click touch','.paypal-verified',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var flagVal = $(this).html();
|
|
var spanID = $(this);
|
|
var newVal = 'Y';
|
|
|
|
if (flagVal == 'Y') {
|
|
newVal = 'N';
|
|
}
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&paypal_verified=" + newVal;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
spanID.html(newVal);
|
|
}
|
|
);
|
|
});
|
|
|
|
$(document).on('click touch','.small-school-discount',function(e) {
|
|
e.preventDefault();
|
|
var snum = $(this).attr('snum');
|
|
var flagVal = $(this).html();
|
|
var spanID = $(this);
|
|
var newVal = 'Y';
|
|
|
|
if (flagVal == 'Y') {
|
|
newVal = 'N';
|
|
}
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&small_school_discount=" + newVal;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
spanID.html(newVal);
|
|
}
|
|
);
|
|
});
|
|
|
|
|
|
$("#demo-list").click(function(e) {
|
|
e.preventDefault();
|
|
$("#general-info-dialog").dialog("open");
|
|
listDemos("upcoming-demos");
|
|
});
|
|
|
|
$(document).on('click','.upcoming-demo-list',function(e) {
|
|
e.preventDefault();
|
|
listDemos("upcoming-demos");
|
|
});
|
|
|
|
$(document).on('click','.recent-demo-list',function(e) {
|
|
e.preventDefault();
|
|
listDemos("recent-demos");
|
|
});
|
|
|
|
function listDemos(action) {
|
|
if (action == 'upcoming-demos') $("#general-info-title-span").html("Upcoming Demos");
|
|
if (action == 'recent-demos') $("#general-info-title-span").html("Recent Demos");
|
|
|
|
$("#action").val(action);
|
|
|
|
var data = "table_name=schools"+
|
|
"&sequence_flag=N"+
|
|
"&action="+action;
|
|
$.getJSON("ajax.DataTable.Fetch.php",data,
|
|
function(results) {
|
|
// Display data
|
|
$("#general-info-span").html(results.content);
|
|
}
|
|
);
|
|
}
|
|
|
|
$(document).on('click','.close-general-info',function(e) {
|
|
e.preventDefault();
|
|
$("#general-info-dialog").dialog("close");
|
|
});
|
|
|
|
$(document).on('blur','#school-notes',function(e) {
|
|
e.preventDefault();
|
|
var snum = $("#school-num").val();
|
|
var notes = $("#school-notes").val();
|
|
|
|
var match = /\n/;
|
|
notes = notes.replace(match, "<br>");
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"¬es=" + notes;
|
|
$.getJSON("ajax.DataRecord.Update.php", data);
|
|
});
|
|
|
|
$(document).on('click touch', '.reseller-code', function() {
|
|
var code = $(this).html();
|
|
$("#reseller-code").val(code);
|
|
$("#reseller-dialog").dialog("open");
|
|
});
|
|
|
|
$("#save-reseller").click(function(e) {
|
|
e.preventDefault();
|
|
var snum = $("#school_num").val();
|
|
var code = $("#reseller-code").val();
|
|
|
|
$("#reseller-dialog").dialog("close");
|
|
$(".reseller-code").html(code);
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&reseller=" + code;
|
|
$.getJSON("ajax.DataRecord.Update.php", data);
|
|
});
|
|
|
|
$("#close-reseller").click(function(e) {
|
|
$("#reseller-dialog").dialog("close");
|
|
});
|
|
|
|
|
|
$(document).on('click touch', '.billing-organization-code', function() {
|
|
var code = $(this).html();
|
|
$("#billing-organization-code").val(code);
|
|
$("#billing-organization-dialog").dialog("open");
|
|
});
|
|
|
|
$("#save-billing-organization").click(function(e) {
|
|
e.preventDefault();
|
|
var snum = $("#school_num").val();
|
|
var code = $("#billing-organization-code").val();
|
|
|
|
$("#billing-organization-dialog").dialog("close");
|
|
$(".billing-organization-code").html(code);
|
|
|
|
if (code == 'None') code = '';
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&bill_organization=" + code;
|
|
$.getJSON("ajax.DataRecord.Update.php", data);
|
|
});
|
|
|
|
$("#close-billing-organization").click(function(e) {
|
|
$("#billing-organization-dialog").dialog("close");
|
|
});
|
|
|
|
|
|
$(document).on('click touch', '.school-status', function(e) {
|
|
e.preventDefault();
|
|
|
|
var spanID = $(this);
|
|
var snum = $(this).attr('snum');
|
|
var status = $(this).html();
|
|
var new_status = 'Inactive';
|
|
|
|
if (status == 'Inactive') new_status = 'Active';
|
|
|
|
var data = "table_name=schools" +
|
|
"&record_num=" + snum +
|
|
"&status=" + new_status;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
spanID.html(new_status);
|
|
}
|
|
);
|
|
});
|
|
|
|
|
|
$(document).on('click touch', '.user-status', function(e) {
|
|
e.preventDefault();
|
|
|
|
var spanID = $(this);
|
|
var rnum = $(this).attr('rnum');
|
|
var snum = $(this).attr('snum');
|
|
var status = $(this).html();
|
|
var new_status = 'Inactive';
|
|
|
|
if (status == 'Inactive') new_status = 'Active';
|
|
|
|
var data = "table_name=users" +
|
|
"&record_num=" + rnum +
|
|
"&school_num=" + snum +
|
|
"&status=" + new_status;
|
|
$.getJSON("ajax.DataRecord.Update.php", data,
|
|
function(results) {
|
|
spanID.html(new_status);
|
|
}
|
|
);
|
|
});
|
|
|
|
$(document).on('click touch', '.reset-admin', function(e) {
|
|
e.preventDefault();
|
|
|
|
var snum = $(this).attr('snum');
|
|
var unum = $(this).attr('unum');
|
|
$("#school_num").val(snum);
|
|
|
|
$.ajax({
|
|
url: "ajax.ResetAdminAccount.php",
|
|
data: {
|
|
snum: snum,
|
|
unum: unum
|
|
},
|
|
dataType: "json"
|
|
}).done(function(data) {
|
|
alert("Password has been updated");
|
|
getSchoolInfo(snum);
|
|
$("#school-info-tabs").tabs("option","active",0);
|
|
$("#school-info-tabs").tabs("refresh");
|
|
}
|
|
);
|
|
});
|
|
|
|
$("#notifications").on('click touch',function(e) {
|
|
e.preventDefault();
|
|
loadNotifications();
|
|
});
|
|
|
|
function loadNotifications() {
|
|
var data = "table_name=school_notifications"+
|
|
"&sequence_flag=N"+
|
|
"&action=school-notifications";
|
|
$.getJSON("ajax.DataTable.Fetch.php",data,
|
|
function(results) {
|
|
$("#general-info-span").html(results.content);
|
|
$("#general-info-dialog").dialog('open');
|
|
}
|
|
);
|
|
}
|
|
|
|
$(document).on('click touch', '.notification-note', function(e) {
|
|
e.preventDefault();
|
|
|
|
var rnum = $(this).attr('rnum');
|
|
var snum = $(this).attr('snum');
|
|
var note = $("#note-"+rnum).html();
|
|
|
|
$("#note-snum").val(snum);
|
|
$("#notification-note").val(note);
|
|
$("#notification-note-dialog").dialog('open');
|
|
});
|
|
|
|
|
|
$("#save-school-note").click(function(e) {
|
|
e.preventDefault();
|
|
|
|
var note = $("#notification-note").val();
|
|
var snum = $("#note-snum").val();
|
|
|
|
$.ajax({
|
|
url: 'ajax.UpdateDBField.php',
|
|
data: {
|
|
table_name: 'schools',
|
|
field_name: 'notes',
|
|
field_value: note,
|
|
field_type: 'string',
|
|
record_num: snum
|
|
},
|
|
dataType: 'json'
|
|
}).done(function(results) {
|
|
$("#notification-note-dialog").dialog('close');
|
|
loadNotifications();
|
|
});
|
|
});
|
|
|
|
$("#close-note").click(function(e) {
|
|
e.preventDefault();
|
|
$("#notification-note-dialog").dialog('close');
|
|
});
|
|
|
|
$(document).on('click touch', '.delete-notification', function(e) {
|
|
if (confirm('Delete Notification Entry')) {
|
|
var rnum = $(this).attr('rnum');
|
|
|
|
// Delete entry
|
|
$.ajax({
|
|
type: 'GET',
|
|
url: "ajax.DataRecord.Delete.php",
|
|
data: { table_name: "school_notifications", record_num: rnum }
|
|
}).done(function(data) {
|
|
loadNotifications();
|
|
});
|
|
}
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
<div id='school-search-dialog' title="School Search">
|
|
<p class='ltext'><label for='sfield'><b>Search:</b></label><br>
|
|
<input type='text' name='searchfield' id='searchfield' size='50'>
|
|
<button id='clear-search-field' class='btn btn--outline btn--xsmall'>Clear</button>
|
|
</p>
|
|
<div id='school-info-tabs'>
|
|
<ul>
|
|
<li><a href='#school-info-tab'>School Info</a></li>
|
|
<li><a href='#school-contacts-tab'>Contacts</a></li>
|
|
<li><a href='#school-schedules-tab'>Schedules</a></li>
|
|
<li><a href='#user-search-tab'>User Lookup</a></li>
|
|
<li><a href='#email-log-tab'>Email Log</a></li>
|
|
<li><a href='#school-invoices-tab'>Invoices</a></li>
|
|
</ul>
|
|
<div id='school-info-tab'>
|
|
<p class='ltext'><span id='school-info'></span></p>
|
|
<p><button class='close-school-info btn btn--outline btn--xsmall'>Close</button></p>
|
|
</div>
|
|
<div id='school-contacts-tab'>
|
|
<p class='ltext'><span id='school-contacts'></span></p>
|
|
<p><button class='close-school-info btn btn--outline btn--xsmall'>Close</button></p>
|
|
</div>
|
|
<div id='school-schedules-tab'>
|
|
<p class='ltext'><span id='school-schedules'></span></p>
|
|
<p><button class='close-school-info btn btn--outline btn--xsmall'>Close</button></p>
|
|
</div>
|
|
<div id='user-search-tab'>
|
|
<p class='ltext'><label for='usearchfield'><b>Search:</b></label><br>
|
|
<input type='text' name='usearchfield' id='usearchfield' size='50'>
|
|
<button id='clear-usearch-field' class='btn btn--outline btn--xsmall'>Clear</button>
|
|
</p>
|
|
<div style='height: 300px;'>
|
|
<p class='ltext'><span id='user-info'></span></p>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<br>
|
|
<table width='100%'>
|
|
<tr>
|
|
<td align='left'>
|
|
<input type='text' id='user-id' size='20'>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div id='email-log-tab'>
|
|
<center>
|
|
<p class='ltext'><span id='school-email-logs'></span></p>
|
|
<p><button id='load-school-logs' class='btn btn--outline btn--xsmall'>Load Logs</button>
|
|
<button class='close-school-info btn btn--outline btn--xsmall'>Close</button></p>
|
|
<p class='ltext'><span id='school-email-logs-detail'></span></p>
|
|
</center>
|
|
</div>
|
|
<div id='school-invoices-tab'>
|
|
<p class='ltext'><span id='school-invoices'></span></p>
|
|
<p><button class='close-school-info btn btn--outline btn--xsmall'>Close</button></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id='reseller-dialog' title="Reseller">
|
|
<p class='ltext'><label for='reseller-code'><b>Reseller:</b></label><br>
|
|
<select id='reseller-code'>
|
|
<?php
|
|
$query = "SELECT * FROM resellers WHERE sequence != -1 ORDER BY business_name";
|
|
$results = db_query($query);
|
|
while ($row = db_fetch_assoc($results)) {
|
|
extract($row);
|
|
echo(" <option value='$reseller_code'>$business_name</option>\n");
|
|
}
|
|
?>
|
|
</select></p>
|
|
<br>
|
|
<button id='save-reseller' class='btn btn--outline btn--xsmall'>Save</button>
|
|
<button id='close-reseller' class='btn btn--outline btn--xsmall'>Close</button>
|
|
</div>
|
|
|
|
<div id='billing-organization-dialog' title="Billing Organization">
|
|
<p class='ltext'><label for='billing-organization-code'><b>Billing Organization:</b></label><br>
|
|
<select id='billing-organization-code'>
|
|
<option value='None'>None</option>
|
|
<?php BuildFileList("bill_organization.txt") ?>
|
|
</select></p>
|
|
<br>
|
|
<button id='save-billing-organization' class='btn btn--outline btn--xsmall'>Save</button>
|
|
<button id='close-billing-organization' class='btn btn--outline btn--xsmall'>Close</button>
|
|
</div>
|
|
|
|
<div id='school-date-dialog' title="Set Date">
|
|
<p class='ltext'><label for='sDate'><b><span id='date-type-span'></span>:</b></label><br>
|
|
<input type='text' name='sDate' id='sDate' class='date-field' size='15'></p>
|
|
<button id='clear-date-field' class='btn btn--outline btn--xsmall'>Clear</button>
|
|
<button id='set-date-field' class='btn btn--outline btn--xsmall'>Save</button>
|
|
<input type='hidden' id='snum-date'>
|
|
<input type='hidden' id='date-field-name'>
|
|
<input type='hidden' id='date-field-span'>
|
|
</div>
|
|
|
|
<div id='school-datetime-dialog' title="Set Date">
|
|
<p class='ltext'><label for='sDateTime'><b><span id='datetime-type-span'></span>:</b></label><br>
|
|
<input type='text' name='sDateTime' id='sDateTime' class='datetime-field' size='25'></p>
|
|
<button id='clear-datetime-field' class='btn btn--outline btn--xsmall'>Clear</button>
|
|
<button id='set-datetime-field' class='btn btn--outline btn--xsmall'>Save</button>
|
|
<input type='hidden' id='snum-datetime'>
|
|
<input type='hidden' id='datetime-field-name'>
|
|
<input type='hidden' id='datetime-field-span'>
|
|
</div>
|
|
|
|
<div id='general-info-dialog' title="Information">
|
|
<p><b><span id='general-info-title-span'></span></b></p>
|
|
<span id='general-info-span'></span>
|
|
<p><br></p>
|
|
<p><button class='close-general-info btn btn--outline btn--xsmall'>Close</button></p>
|
|
<input type='hidden' id='action'>
|
|
</div>
|
|
|
|
<div id='notification-note-dialog' title='School Note'>
|
|
<center>
|
|
<table>
|
|
<tr>
|
|
<td align='left'>
|
|
<p><b>Note:</b><br>
|
|
<textarea id='notification-note' rows='4' cols='60'></textarea></p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<button id='save-school-note' class='btn btn--outline btn--xsmall'> Save </button>
|
|
<button id='close-note' class='btn btn--outline btn--xsmall'> Close </button>
|
|
<input type='hidden' id='note-snum'>
|
|
</center>
|
|
</div>
|
|
|
|
<div id='payment-method-dialog' title="Payment Method">
|
|
<p><b>Payment Method</b></p>
|
|
<p><button class='payment-method btn btn--outline btn--xsmall' method='Cheque'>Cheque</button></p>
|
|
<p><button class='payment-method btn btn--outline btn--xsmall' method='Direct Deposit'>Direct Deposit</button></p>
|
|
<p><button class='payment-method btn btn--outline btn--xsmall' method='Interac'>Interac</button></p>
|
|
<p><button class='payment-method btn btn--outline btn--xsmall' method='PayPal'>PayPal</button></p>
|
|
<p><button class='payment-method btn btn--outline btn--xsmall' method='Plooto'>Plooto</button></p>
|
|
<p><button class='payment-method btn btn--outline btn--xsmall' method='Other'>Other</button></p>
|
|
<input type='hidden' id='pmethod_school_num'>
|
|
<input type='hidden' id='pmethod_invoice_num'>
|
|
</div>
|
|
|
|
<input type='hidden' name='school_num' id='school_num'>
|
|
|
|
<?php
|
|
}
|
|
|
|
$include_jquery = 'No';
|
|
?>
|