| Server IP : 172.67.201.108 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/nymp/wwwdev/mod/ |
Upload File : |
<?php include('_mod_security.php'); ?>
<script>
$(document).ready(function()
{
$(':input:not(.search, .no_dirty)').change(function() {sheet_dirty = true; } );
$('.report_header').click(function() {
$('.report_criteria').not($(this).next('.report_criteria')).slideUp(300);
$(this).next('.report_criteria').slideToggle(300);
});
}
)
</script>
<h1>Reports</h1>
<?php echo form_message($form_message); ?>
<form style="" name="frm_reports" id="frm_reports" method="post" action="">
<div class="tab_content" id="tab_content_basic_info" style="display:block;">
<div class="report_section">
<div class="report_header">
Route Sheet
</div>
<div class="report_criteria">
Route:
<?php
$sql = "SELECT r.route_id, r.route_name, rg.region_name FROM routes r INNER JOIN regions rg ON (r.region_id = rg.region_id) AND r.region_id IN (".get_regions().") ORDER BY rg.region_name, r.route_name ";
$result = $db->query($sql) or die('Database Error!');
?>
<select class="no_dirty" name="rpt_route_sheet_id" id="rpt_route_sheet_id" style="width:250px; margin-top:3px;">
<option value="">Select...</option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option class="active_'.$row->active.'" value="'.$row->route_id.'">'.$row->region_name.' - '.$row->route_name.'</option>';
endwhile;
?>
</select>
<br />
<input type="button" value="Preview" onclick="window.open('report.php?route_id=' + $('select[name=rpt_route_sheet_id]').val() + '&rpt=route_sheet&type=report&fmt=pdf', '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?route_id=' + $('select[name=rpt_route_sheet_id]').val() + '&rpt=route_sheet&type=report&fmt=excel', '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Verifications
</div>
<div class="report_criteria">
User: (incl. inactive)
<input type="checkbox" name="rpt_verifications_inactive" id="rpt_verifications_inactive" class="dp-applied no_dirty" value="1" onclick="verification_switch_active();" />
<?php
$sql = "SELECT DISTINCT * FROM sys_users WHERE hidden <> 1 ORDER BY full_name ";
$result = $db->query($sql) or die('Database Error!');
?>
<select class="no_dirty" name="rpt_verifications_user" id="rpt_verifications_user" style="width:175px; margin-top:3px;">
<option value="">All users</option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option class="active_'.$row->active.'" value="'.$row->user_id.'">'.$row->full_name.'</option>';
endwhile;
?>
</select>
<script>
$('#rpt_verifications_user option.active_0').hide();
verification_switch_active = function()
{
if ($('#rpt_verifications_inactive').attr('checked') == 'checked')
{
$('#rpt_verifications_user option.active_0').show();
}
else
{
$('#rpt_verifications_user option.active_0').hide();
}
}
</script>
<br />
Magazines Delivered
<select class="no_dirty" name="rpt_verifications_delivered" id="rpt_verifications_delivered" style="width:175px; margin-top:3px;">
<option value="">Any Status</option>
<option value="1">No</option>
<option value="2">Yes</option>
<option value="3">Not Reported</option>
</select>
<br />
Date Range (mm/dd/yy):<br />
<input name="rpt_verifications_date_start" id="rpt_verifications_date_start" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="3" type="text" maxlength="20" />
-
<input name="rpt_verifications_date_end" id="rpt_verifications_date_end" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="4" type="text" maxlength="20" />
<br />
Sort Order
<select class="no_dirty" name="rpt_verifications_sort" id="rpt_verifications_sort" style="width:175px; margin-top:3px;">
<option value="">Normal</option>
<option value="MD">Delivered Status</option>
</select>
<br />
<input type="button" value="Preview" onclick="window.open('report.php?user_id=' + $('select[name=rpt_verifications_user]').val() + '&delivered_status=' + $('select[name=rpt_verifications_delivered]').val() + '&sort=' + $('select[name=rpt_verifications_sort]').val() + '&rpt=verifications&type=report&fmt=pdf&date_start=' + $('input[name=rpt_verifications_date_start]').val() + '&date_end=' + $('input[name=rpt_verifications_date_end]').val() + '&inactive_users=' + $('input[name=rpt_verifications_inactive]:checked').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?user_id=' + $('select[name=rpt_verifications_user]').val() + '&delivered_status=' + $('select[name=rpt_verifications_delivered]').val() + '&sort=' + $('select[name=rpt_verifications_sort]').val() + '&rpt=verifications&type=report&fmt=excel&date_start=' + $('input[name=rpt_verifications_date_start]').val() + '&date_end=' + $('input[name=rpt_verifications_date_end]').val() + '&inactive_users=' + $('input[name=rpt_verifications_inactive]:checked').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Draw Qty Change
</div>
<div class="report_criteria">
Date Range (mm/dd/yy):<br />
<input name="rpt_draw_change_date_start" id="rpt_draw_change_date_start" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="3" type="text" maxlength="20" />
-
<input name="rpt_draw_change_date_end" id="rpt_draw_change_date_end" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="4" type="text" maxlength="20" />
<br />
<input type="button" value="Preview" onclick="window.open('report.php?rpt=draw_change&type=report&fmt=pdf&date_start=' + $('input[name=rpt_draw_change_date_start]').val() + '&date_end=' + $('input[name=rpt_draw_change_date_end]').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=draw_change&type=report&fmt=excel&date_start=' + $('input[name=rpt_draw_change_date_start]').val() + '&date_end=' + $('input[name=rpt_draw_change_date_end]').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Start/Stop
</div>
<div class="report_criteria">
Date Range (mm/dd/yy):<br />
<input name="rpt_start_stop_date_start" id="rpt_start_stop_date_start" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="3" type="text" maxlength="20" />
-
<input name="rpt_start_stop_date_end" id="rpt_start_stop_date_end" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="4" type="text" maxlength="20" />
<br />
<input type="button" value="Preview" onclick="window.open('report.php?rpt=start_stop&type=report&fmt=pdf&date_start=' + $('input[name=rpt_start_stop_date_start]').val() + '&date_end=' + $('input[name=rpt_start_stop_date_end]').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=start_stop&type=report&fmt=excel&date_start=' + $('input[name=rpt_start_stop_date_start]').val() + '&date_end=' + $('input[name=rpt_start_stop_date_end]').val(), '_blank');" />
</div>
</div>
</div>
</form>