First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,123 @@
|
||||
<?php
|
||||
require_once("include/globals.php");
|
||||
|
||||
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
||||
header("Location: /");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Process all actions to list and edit records
|
||||
//
|
||||
$action = "payment-posting-errors";
|
||||
$CurrentTable = "hotlunch_order_header";
|
||||
$FormFile = "";
|
||||
$TitleText = getLanguageText('TEXT-PAYMENT-ERRORS');
|
||||
$OrderBy = "added_date";
|
||||
|
||||
// Start the template and output buffering
|
||||
startTemplate();
|
||||
$templatePageTitle = "$TitleText";
|
||||
|
||||
|
||||
// Ensure that only valid user types have access to this module
|
||||
$AllowedUserTypes = array('SuperUser','System Administrator','Application Administrator','Financial','Financial Team');
|
||||
if (checkPermission($AllowedUserTypes) != 1) {
|
||||
$error_message = getLanguageText('ERRORMSG-ACCESS-DENIED');
|
||||
include "form.messages.php";
|
||||
endTemplate();
|
||||
exit();
|
||||
}
|
||||
|
||||
$school_num = $school_record['record_num'];
|
||||
|
||||
|
||||
$message_width = 400;
|
||||
include "form.messages.php";
|
||||
|
||||
$scriptName = str_replace("/m/data1/app.hotlunches.net/","",__FILE__);
|
||||
include "help.docs.php";
|
||||
|
||||
$start_date = date("Y-m-d",time() - 60 * 60 * 24 * 60);
|
||||
$end_date = date("Y-m-d",time());
|
||||
|
||||
?>
|
||||
<br>
|
||||
<form method='post' name='payment-errors-form'>
|
||||
<table width='450' cellpadding='5' class='content-table'>
|
||||
<tr height='5'>
|
||||
<td align='left'><img src='images/spacer.gif' height='5'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right'><?php displayLanguageText('TEXT-START-DATE'); ?>: </td>
|
||||
<td align='left' colspan='2'><input type='text' name='start_date' id='start_date' value='<?php echo($start_date) ?>' size='15' class='date-field form-field'></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right'><?php displayLanguageText('TEXT-END-DATE'); ?>: </td>
|
||||
<td align='left' colspan='2'><input type='text' name='end_date' id='end_date' value='<?php echo($end_date) ?>' size='15' class='date-field'></td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td align='right'><?php displayLanguageText('TEXT-USER-ID'); ?>: </td>
|
||||
<td align='left' colspan='2'>
|
||||
<select name='selected_userid' id='selected_userid'>
|
||||
<option value='All'><?php displayLanguageText('TEXT-VIEW-ALL'); ?></option>
|
||||
<?php
|
||||
// List userid's from login_log
|
||||
$results = db_query("select * from users where school_num = $base_school_num order by last_name,first_name");
|
||||
while ($row = db_fetch_array($results)) {
|
||||
$userid = $row['userid'];
|
||||
$name = $row['last_name'].", ".$row['first_name'];
|
||||
$user_num = $row['record_num'];
|
||||
$selected = "";
|
||||
echo(" <option value='$user_num'>$name - $userid</option>\n");
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
<tr>
|
||||
<td align='right' colspan='2'></td>
|
||||
<td align='left'><a href='#' class='btn btn--primary btn--xsmall' id='get-data'><span><?php displayLanguageText('TEXT-VIEW'); ?></span></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<br>
|
||||
<span id='payment-posting-errors-span'></span>
|
||||
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
|
||||
<?php include "include/ajax.Setup.php" ?>
|
||||
|
||||
loadData();
|
||||
|
||||
$("#get-data").click(function(e) {
|
||||
e.preventDefault();
|
||||
loadData();
|
||||
});
|
||||
|
||||
function loadData() {
|
||||
var sdate = $("#start_date").val();
|
||||
var edate = $("#end_date").val();
|
||||
|
||||
$.getJSON( "ajax.DataTable.Fetch.php",
|
||||
{
|
||||
table_name: "hotlunch_order_header",
|
||||
sequence_flag: "N",
|
||||
sdate: sdate,
|
||||
edate: edate,
|
||||
action: "payment-posting-errors"
|
||||
},
|
||||
function(results) {
|
||||
$("#payment-posting-errors-span").html(results.content);
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
endTemplate();
|
||||
?>
|
||||
Reference in new issue
Block a user