| 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/hotel-dev/public_html/mod/ |
Upload File : |
<?php include('_mod_security.php'); ?>
<?php
$sql = "SELECT DISTINCT category FROM hotels WHERE status = 1 ORDER BY category ";
$result = $db->query($sql) or die('Database Error!');
$ar_hotel_categories = $result->fetchAll(PDO::FETCH_COLUMN);
$sql = "SELECT DISTINCT zip FROM hotels WHERE status = 1 ORDER BY zip ";
$result = $db->query($sql) or die('Database Error!');
$ar_hotel_zip_codes = $result->fetchAll(PDO::FETCH_COLUMN);
$sql = "SELECT DISTINCT neighborhood_id, neighborhood_name FROM neighborhoods ORDER BY neighborhood_name ";
$result = $db->query($sql) or die('Database Error!');
$ar_neighborhoods = $result->fetchAll(PDO::FETCH_KEY_PAIR);
$sql = "SELECT DISTINCT route_code, CONCAT(route_code, ' - ', route) AS route_name FROM routes ORDER BY route_code ";
$result = $db->query($sql) or die('Database Error!');
$ar_routes = $result->fetchAll(PDO::FETCH_KEY_PAIR);
$sql = "SELECT DISTINCT v.update_by, su.full_name FROM verifications v INNER JOIN sys_users su ON (su.user_id = v.update_by) ORDER BY su.full_name ";
$result = $db->query($sql) or die('Database Error!');
$ar_verifiers = $result->fetchAll(PDO::FETCH_KEY_PAIR);
$sql = "SELECT DISTINCT id, pull_date FROM cg_reward_pulls ORDER BY pull_date DESC ";
$result = $db->query($sql) or die('Database Error!');
$ar_cgr_pulls = $result->fetchAll(PDO::FETCH_KEY_PAIR);
?>
<script>
$(document).ready(function()
{
$(':input:not(.search, .no_dirty, .no_dirty input)').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 ?? NULL); ?>
<div class="tab_content" id="tab_content_basic_info" style="display:block;">
<div class="report_section">
<div class="report_header">
AI Report
</div>
<div class="report_criteria oo_report">
<form name="frm_report_ai" id="frm_report_ai" method="post" action="report.php?rpt=ai_report&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('ai_query', 'textarea', 20, 10, false, false, false, '', 'no_dirty', '', 'English Language Query');
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
Concierge Status Report
</div>
<div class="report_criteria oo_report">
<form name="frm_report_csr" id="frm_report_csr" method="post" action="report.php?rpt=concierge_status&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('csr_date_start', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Updated Date Range - Start');
form_field('csr_date_end', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Updated Date Range - End');
form_field(['fname'=>'csr_category', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Hotel Category', 'ar_group'=>$ar_hotel_categories]);
$ar_status = array('1'=>'Active', '0'=>'Inactive', '2'=>'In Transition', );
//$_POST['csr_status'] = '1';
form_field('csr_status', 'radiogroup', 50, 0, false, false, false, '', 'no_dirty', '', 'Concierge Status', $ar_status);
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
Contacts Report
</div>
<div class="report_criteria oo_report">
<form name="frm_report_cr" id="frm_report_cr" method="post" action="report.php?rpt=contacts&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('cr_date_start', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Updated Date Range - Start');
form_field('cr_date_end', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Updated Date Range - End');
form_field(['fname'=>'cr_neighborhood', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Neighborhood', 'ar_group'=>$ar_neighborhoods]);
form_field(['fname'=>'cr_route', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Route', 'ar_group'=>$ar_routes]);
form_field(['fname'=>'cr_category', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Hotel Category', 'ar_group'=>$ar_hotel_categories]);
form_field(['fname'=>'cr_zip', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Zip Code', 'ar_group'=>$ar_hotel_zip_codes]);
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
Hotel Status Report
</div>
<div class="report_criteria oo_report">
<form name="frm_report_hsr" id="frm_report_hsr" method="post" action="report.php?rpt=hotel_status&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('hsr_date_start', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Updated Date Range - Start');
form_field('hsr_date_end', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Updated Date Range - End');
form_field(['fname'=>'hsr_neighborhood', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Neighborhood', 'ar_group'=>$ar_neighborhoods]);
form_field(['fname'=>'hsr_route', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Route', 'ar_group'=>$ar_routes]);
form_field(['fname'=>'hsr_category', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Hotel Category', 'ar_group'=>$ar_hotel_categories]);
form_field(['fname'=>'hsr_zip', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Zip Code', 'ar_group'=>$ar_hotel_zip_codes]);
$ar_hsr_sort = [
'h.hotel_name, h.hotel_id'=>'Hotel',
'n.neighborhood_name, h.neighborhood_id'=>'Neighborhood',
'h.route'=>'Route',
'h.category'=>'Category',
'h.street'=>'Street',
'h.city'=>'City',
'h.state'=>'State',
'h.zip'=>'Zip',
'h.nbr_of_rooms'=>'# Rooms',
'h.update_date'=>'Last Updated',
];
form_field(['fname'=>'hsr_sort', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Sort Column', 'ar_group'=>$ar_hsr_sort]);
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
Hotel Verification Report
</div>
<div class="report_criteria oo_report">
<form name="frm_report_hvr" id="frm_report_hvr" method="post" action="report.php?rpt=hotel_verification&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('hvr_date_start', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Last Verification Date Range - Start');
form_field('hvr_date_end', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Last Verification Date Range - End');
form_field(['fname'=>'hvr_neighborhood', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Neighborhood', 'ar_group'=>$ar_neighborhoods]);
form_field(['fname'=>'hvr_verifier', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Verifier', 'ar_group'=>$ar_verifiers]);
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
Verification Comment Report
</div>
<div class="report_criteria oo_report">
<form name="frm_report_vcr" id="frm_report_vcr" method="post" action="report.php?rpt=verification_comment&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('vcr_date_start', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Last Verification Date Range - Start');
form_field('vcr_date_end', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Last Verification Date Range - End');
form_field(['fname'=>'vcr_neighborhood', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Neighborhood', 'ar_group'=>$ar_neighborhoods]);
form_field(['fname'=>'vcr_verifier', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Verifier', 'ar_group'=>$ar_verifiers]);
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
Hotel Delivery Report
</div>
<div class="report_criteria oo_report">
<form name="frm_report_hdr" id="frm_report_hdr" method="post" action="report.php?rpt=hotel_delivery&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('hdr_date_start', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Last Verification Date Range - Start');
form_field('hdr_date_end', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Last Verification Date Range - End');
form_field(['fname'=>'hdr_neighborhood', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Neighborhood', 'ar_group'=>$ar_neighborhoods]);
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
CG Rewards Master Pull
</div>
<div class="report_criteria oo_report">
<form name="frm_report_cgrm" id="frm_report_cgrm" method="post" action="report.php?rpt=cgr_master_pull&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('cgrm_date_start', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Concierge Last Update Date Range - Start (optional)');
form_field('cgrm_date_end', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Concierge Last Update Date Range - End (optional)');
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
CG Rewards Activity Pull
</div>
<div class="report_criteria oo_report">
<form name="frm_report_cgra" id="frm_report_cgra" method="post" action="report.php?rpt=cgr_activity_pull&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('cgra_date_start', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Reward Created Date Range - Start (optional)');
form_field('cgra_date_end', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Reward Created Date Range - End (optional)');
form_field(['fname'=>'cgra_pull_id', 'ftype'=>'select', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Pull Date (optional)', 'ar_group'=>$ar_cgr_pulls]);
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
Concierge Email Report
</div>
<div class="report_criteria oo_report">
<form name="frm_report_ce" id="frm_report_ce" method="post" action="report.php?rpt=concierge_email&type=oo_report" target="_blank">
<div class="input_column">
<?php
$_POST['ce_status'] = '1';
form_field('ce_status', 'radiogroup', 50, 0, false, false, false, '', 'no_dirty', '', 'Concierge Status', $ar_status);
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<div class="report_section">
<div class="report_header">
Event No Shows Report
</div>
<div class="report_criteria oo_report">
<form name="frm_report_ens" id="frm_report_ens" method="post" action="report.php?rpt=event_no_shows_by_date&type=oo_report" target="_blank">
<div class="input_column">
<?php
form_field('ens_date_start', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Event Date Range - Start (optional)');
form_field('ens_date_end', 'text', 20, 0, false, false, false, '', 'date-pick dp-applied no_dirty', '', 'Event Date Range - End (optional)');
$_POST['ens_guest_type'] = 'Concierges';
form_field(['fname'=>'ens_guest_type', 'ftype'=>'radiogroup', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Guest Type', 'ar_group'=>['Concierges', 'Guests'], 'form_id'=>'frm_report_ens']);
$_POST['ens_venue'] = 'Venue 1';
form_field(['fname'=>'ens_venue', 'ftype'=>'radiogroup', 'fsize'=>25, 'frequired'=>false, 'fclass'=>'no_dirty', 'fdbname'=>'', 'flabel'=>'Venue', 'ar_group'=>['Venue 1', 'Venue 2'], 'form_id'=>'frm_report_ens']);
?>
</div>
<?php report_output_format(); ?>
</form>
</div>
</div>
<form name="frm_reports" id="frm_reports" method="post" action="">
<div class="report_section">
<div class="report_header">
Activity Detail Report
</div>
<div class="report_criteria">
Date Range (mm/dd/yy):
<input name="detail_date_start" id="detail_date_start" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="1" type="text" maxlength="20" />
-
<input name="detail_date_end" id="detail_date_end" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="2" type="text" maxlength="20" />
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=activity_detail&type=report&fmt=pdf&date_start=' + $('input[name=detail_date_start]').val() + '&date_end=' + $('input[name=detail_date_end]').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=activity_detail&type=report&fmt=excel&date_start=' + $('input[name=detail_date_start]').val() + '&date_end=' + $('input[name=detail_date_end]').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Activity Summary Report
</div>
<div class="report_criteria">
Date Range (mm/dd/yy):
<input name="summary_date_start" id="summary_date_start" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="3" type="text" maxlength="20" />
-
<input name="summary_date_end" id="summary_date_end" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="4" type="text" maxlength="20" />
<br />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=activity_summary&type=report&fmt=excel&date_start=' + $('input[name=summary_date_start]').val() + '&date_end=' + $('input[name=summary_date_end]').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
5160 Mailing Labels
</div>
<div class="report_criteria">
<input class="no_dirty" type="radio" name="rpt_option_name_labels_product" value="fyi" checked="checked" /> FYI <?php /* <input class="no_dirty" type="radio" name="rpt_option_name_labels_product" value="on_the_promenade" /> Promenade */ ?>
<br />
<input class="no_dirty" type="radio" name="rpt_option_name_labels_table" value="concierges" checked="checked" /> Concierges <input class="no_dirty" type="radio" name="rpt_option_name_labels_table" value="contacts" /> Contacts
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=mailing_labels_5160&type=label&fmt=pdf&product=' + $('input[name=rpt_option_name_labels_product]:checked').val() + '&table=' + $('input[name=rpt_option_name_labels_table]:checked').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=mailing_labels_5160&type=report&fmt=excel&product=' + $('input[name=rpt_option_name_labels_product]:checked').val() + '&table=' + $('input[name=rpt_option_name_labels_table]:checked').val(), '_blank');" />
<input type="button" value="RTF" onclick="window.open('report.php?rpt=mailing_labels_5160&type=label&fmt=word&product=' + $('input[name=rpt_option_name_labels_product]:checked').val() + '&table=' + $('input[name=rpt_option_name_labels_table]:checked').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Signature Form - City Guide
</div>
<div class="report_criteria">
<input type="button" value="PDF" onclick="window.open('report.php?rpt=signature_form_city_guide&type=report&fmt=pdf', '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Distribution Report
</div>
<div class="report_criteria">
Product:<br />
<?php
$sql = "SELECT * FROM products WHERE active = 1 ORDER BY product_id ";
$result = $db->query($sql) or die('Database Error!');
while($row = $result->fetch(PDO::FETCH_OBJ)) :
$checked = '';
if ($row->product_id == APP_DEFAULT_PRODUCT) :
$checked = ' checked="checked" ';
endif;
echo '<input class="no_dirty" '.$checked.' type="radio" name="rpt_option_distribution_product" value="'.$row->product_id.'" /> '.$row->description.'<br />';
endwhile;
?>
Route: <input class="no_dirty" type="radio" name="rpt_option_distribution" value="1" checked="checked" /> Night <input class="no_dirty" type="radio" name="rpt_option_distribution" value="2" /> Day <input class="no_dirty" type="radio" name="rpt_option_distribution" value="0" /> All
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=distribution_city_guide&type=report&fmt=pdf&route_type=' + $('input[name=rpt_option_distribution]:checked').val() + '&product_id=' + $('input[name=rpt_option_distribution_product]:checked').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=distribution_city_guide&type=report&fmt=excel&route_type=' + $('input[name=rpt_option_distribution]:checked').val() + '&product_id=' + $('input[name=rpt_option_distribution_product]:checked').val(), '_blank');" />
</div>
</div>
<?php /*
<div class="report_section">
<div class="report_header">
Distribution Report - CG Brazil
</div>
<div class="report_criteria">
Route: <input class="no_dirty" type="radio" name="rpt_option_distribution_cgb" value="1" checked="checked" /> Night <input class="no_dirty" type="radio" name="rpt_option_distribution_cgb" value="2" /> Day <input class="no_dirty" type="radio" name="rpt_option_distribution_cgb" value="0" /> All
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=distribution_cg_brazil&type=report&fmt=pdf&route_type=' + $('input[name=rpt_option_distribution_cgb]:checked').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=distribution_cg_brazil&type=report&fmt=excel&route_type=' + $('input[name=rpt_option_distribution_cgb]:checked').val(), '_blank');" />
</div>
</div>
*/ ?>
<div class="report_section">
<div class="report_header">
Association List
</div>
<div class="report_criteria">
<input type="button" value="PDF" onclick="window.open('report.php?rpt=association_list&type=report&fmt=pdf', '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=association_list&type=report&fmt=excel', '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Concierge Service List
</div>
<div class="report_criteria">
Service:
<select class="no_dirty" name="rpt_concierge_service" style="width:150px;">
<option value=""></option>
<?php
$ar_cs = APP_CONCIERGE_SERVICES;
foreach($ar_cs as $ar_item) :
?>
<option value="<?php echo $ar_item; ?>" ><?php echo $ar_item; ?></option>
<?php
endforeach;
?>
</select>
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=concierge_service_list&type=report&fmt=pdf&concierge_service=' + $('select[name=rpt_concierge_service]').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=concierge_service_list&type=report&fmt=excel&concierge_service=' + $('select[name=rpt_concierge_service]').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Full List
</div>
<div class="report_criteria">
<?php
$sql = "SELECT DISTINCT category FROM hotels WHERE category > ' ' ORDER BY category ";
$result = $db->query($sql) or die('Database Error!');
?>
Category:
<select class="no_dirty" name="rpt_option_category" style="width:100px;">
<option value=""></option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option value="'.$row->category.'">'.$row->category.'</option>';
endwhile;
?>
</select>
<br />
Status:
<select class="no_dirty" name="rpt_option_status" style="width:100px;">
<option value=""></option>
<option value="1">Active</option>
<option value="0">Inactive</option>
<option value="2">In transition</option>
</select>
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=full_list&type=report&fmt=pdf&cat=' + $('select[name=rpt_option_category]').val() + '&status=' + $('select[name=rpt_option_status]').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=full_list&type=report&fmt=excel&cat=' + $('select[name=rpt_option_category]').val() + '&status=' + $('select[name=rpt_option_status]').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Email Export
</div>
<div class="report_criteria">
<input class="no_dirty" type="radio" name="rpt_option_email" value="fyi" checked="checked" /> FYI <?php /* <input class="no_dirty" type="radio" name="rpt_option_email" value="on_the_promenade" /> Promenade */ ?>
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=email_export&type=report&fmt=pdf&product=' + $('input[name=rpt_option_email]:checked').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=email_export&type=report&fmt=excel&product=' + $('input[name=rpt_option_email]:checked').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Unaffiliated Concierges
</div>
<div class="report_criteria">
<input type="button" value="PDF" onclick="window.open('report.php?rpt=unaffiliated_concierges&type=report&fmt=pdf', '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=unaffiliated_concierges&type=report&fmt=excel', '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Concierges by Neighborhood
</div>
<div class="report_criteria">
Neighborhood(s):
<br />
<?php
$sql = "SELECT * FROM neighborhoods ORDER BY neighborhood_name ";
$result = $db->query($sql) or die('Database Error!');
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<input name="rpt_concierge_neighborhoods" type="checkbox" class="no_dirty" value="'.$row->neighborhood_id.'" />'.$row->neighborhood_name.'<br />';
endwhile;
?>
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=concierges_by_neighborhood&type=report&fmt=pdf&nlist=' + check2val('rpt_concierge_neighborhoods'), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=concierges_by_neighborhood&type=report&fmt=excel&nlist=' + check2val('rpt_concierge_neighborhoods'), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Events Report
</div>
<div class="report_criteria">
Date Range (mm/dd/yy):
<input name="events_date_start" id="events_date_start" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="3" type="text" maxlength="20" />
-
<input name="events_date_end" id="events_date_end" class="date-pick dp-applied no_dirty" readonly="readonly" tabindex="4" type="text" maxlength="20" />
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=events&type=report&fmt=pdf&date_start=' + $('input[name=events_date_start]').val() + '&date_end=' + $('input[name=events_date_end]').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=events&type=report&fmt=excel&date_start=' + $('input[name=events_date_start]').val() + '&date_end=' + $('input[name=events_date_end]').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Route Report
</div>
<div class="report_criteria">
Route:
<?php
$sql = "SELECT * FROM routes ORDER BY route_code ";
$result = $db->query($sql) or die('Database Error!');
?>
<select class="no_dirty" name="rpt_option_route" style="width:180px;">
<option value=""></option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option value="'.$row->route_id.'">'.$row->route_code.' - '.$row->route.'</option>';
endwhile;
?>
</select>
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=route&type=report&fmt=pdf&route_id=' + $('select[name=rpt_option_route]').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=route&type=report&fmt=excel&route_id=' + $('select[name=rpt_option_route]').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Verifications
</div>
<div class="report_criteria">
Date Range (mm/dd/yy):
<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 />
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>
<br />
Not delivered:
<input type="checkbox" name="rpt_verifications_nd" id="rpt_verifications_nd" class="dp-applied no_dirty" value="1" style="margin-top:7px;" />
<br />
Hotel/Retail/Visitor Ctr:
<select class="no_dirty" name="rpt_verifications_hrv" id="rpt_verifications_hrv" style="width:175px; margin-top:5px;">
<option value=""></option>
<?php
$ar_hrv = APP_HOTEL_RETAIL_VISITOR_CTR;
foreach($ar_hrv as $ar_item) :
?>
<option value="<?php echo $ar_item; ?>" ><?php echo $ar_item; ?></option>
<?php
endforeach;
?>
</select>
<br />
Concierge Service:
<select class="no_dirty" name="rpt_verifications_cs" style="width:150px; margin-top:5px;">
<option value=""></option>
<?php
$ar_cs = APP_CONCIERGE_SERVICES;
foreach($ar_cs as $ar_item) :
?>
<option value="<?php echo $ar_item; ?>" ><?php echo $ar_item; ?></option>
<?php
endforeach;
?>
</select>
<br />
Category:
<?php
$sql = "SELECT DISTINCT category FROM hotels WHERE category > ' ' ORDER BY category ";
$result = $db->query($sql) or die('Database Error!');
?>
<select class="no_dirty" name="rpt_verifications_category" style="width:100px; margin-top:5px;">
<option value=""></option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option value="'.$row->category.'">'.$row->category.'</option>';
endwhile;
?>
</select>
<br />
Route:
<?php
$sql = "SELECT * FROM routes ORDER BY route_code ";
$result = $db->query($sql) or die('Database Error!');
?>
<select class="no_dirty" name="rpt_verifications_route" style="width:180px; margin-top:5px;">
<option value=""></option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option value="'.$row->route_id.'">'.$row->route_code.' - '.$row->route.'</option>';
endwhile;
?>
</select>
<br />
<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>
<input type="button" value="PDF" onclick="window.open('report.php?user_id=' + $('select[name=rpt_verifications_user]').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() +
'&nd=' + $('input[name=rpt_verifications_nd]:checked').val() + '&hrv=' + $('select[name=rpt_verifications_hrv]').val() + '&cs=' + $('select[name=rpt_verifications_cs]').val() +
'&category=' + $('select[name=rpt_verifications_category]').val() + '&route=' + $('select[name=rpt_verifications_route]').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?user_id=' + $('select[name=rpt_verifications_user]').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() +
'&nd=' + $('input[name=rpt_verifications_nd]:checked').val() + '&hrv=' + $('select[name=rpt_verifications_hrv]').val() + '&cs=' + $('select[name=rpt_verifications_cs]').val() +
'&category=' + $('select[name=rpt_verifications_category]').val() + '&route=' + $('select[name=rpt_verifications_route]').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):
<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 />
Not delivered:
<input type="checkbox" name="rpt_draw_change_nd" id="rpt_draw_change_nd" class="dp-applied no_dirty" value="1" style="margin-top:7px;" />
<br />
Hotel/Retail/Visitor Ctr:
<select class="no_dirty" name="rpt_draw_change_hrv" id="rpt_draw_change_hrv" style="width:175px; margin-top:5px;">
<option value=""></option>
<?php
$ar_hrv = APP_HOTEL_RETAIL_VISITOR_CTR;
foreach($ar_hrv as $ar_item) :
?>
<option value="<?php echo $ar_item; ?>" ><?php echo $ar_item; ?></option>
<?php
endforeach;
?>
</select>
<br />
Concierge Service:
<select class="no_dirty" name="rpt_draw_change_cs" style="width:150px; margin-top:5px;">
<option value=""></option>
<?php
$ar_cs = APP_CONCIERGE_SERVICES;
foreach($ar_cs as $ar_item) :
?>
<option value="<?php echo $ar_item; ?>" ><?php echo $ar_item; ?></option>
<?php
endforeach;
?>
</select>
<br />
Category:
<?php
$sql = "SELECT DISTINCT category FROM hotels WHERE category > ' ' ORDER BY category ";
$result = $db->query($sql) or die('Database Error!');
?>
<select class="no_dirty" name="rpt_draw_change_category" style="width:100px; margin-top:5px;">
<option value=""></option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option value="'.$row->category.'">'.$row->category.'</option>';
endwhile;
?>
</select>
<br />
Route:
<?php
$sql = "SELECT * FROM routes ORDER BY route_code ";
$result = $db->query($sql) or die('Database Error!');
?>
<select class="no_dirty" name="rpt_draw_change_route" style="width:180px; margin-top:5px;">
<option value=""></option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option value="'.$row->route_id.'">'.$row->route_code.' - '.$row->route.'</option>';
endwhile;
?>
</select>
<br />
<input type="button" value="PDF" 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() +
'&nd=' + $('input[name=rpt_draw_change_nd]:checked').val() + '&hrv=' + $('select[name=rpt_draw_change_hrv]').val() + '&cs=' + $('select[name=rpt_draw_change_cs]').val() +
'&category=' + $('select[name=rpt_draw_change_category]').val() + '&route=' + $('select[name=rpt_draw_change_route]').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() +
'&nd=' + $('input[name=rpt_draw_change_nd]:checked').val() + '&hrv=' + $('select[name=rpt_draw_change_hrv]').val() + '&cs=' + $('select[name=rpt_draw_change_cs]').val() +
'&category=' + $('select[name=rpt_draw_change_category]').val() + '&route=' + $('select[name=rpt_draw_change_route]').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Last Verified
</div>
<div class="report_criteria">
Hotel/Retail/Visitor Ctr:
<select class="no_dirty" name="rpt_last_verified_hrv" id="rpt_last_verified_hrv" style="width:175px; margin-top:5px;">
<option value=""></option>
<?php
$ar_hrv = APP_HOTEL_RETAIL_VISITOR_CTR;
foreach($ar_hrv as $ar_item) :
?>
<option value="<?php echo $ar_item; ?>" ><?php echo $ar_item; ?></option>
<?php
endforeach;
?>
</select>
<br />
Concierge Service:
<select class="no_dirty" name="rpt_last_verified_cs" style="width:150px; margin-top:5px;">
<option value=""></option>
<?php
$ar_cs = APP_CONCIERGE_SERVICES;
foreach($ar_cs as $ar_item) :
?>
<option value="<?php echo $ar_item; ?>" ><?php echo $ar_item; ?></option>
<?php
endforeach;
?>
</select>
<br />
Category:
<?php
$sql = "SELECT DISTINCT category FROM hotels WHERE category > ' ' ORDER BY category ";
$result = $db->query($sql) or die('Database Error!');
?>
<select class="no_dirty" name="rpt_last_verified_category" style="width:100px; margin-top:5px;">
<option value=""></option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option value="'.$row->category.'">'.$row->category.'</option>';
endwhile;
?>
</select>
<br />
Route:
<?php
$sql = "SELECT * FROM routes ORDER BY route_code ";
$result = $db->query($sql) or die('Database Error!');
?>
<select class="no_dirty" name="rpt_last_verified_route" style="width:180px; margin-top:5px;">
<option value=""></option>
<?php
while($row = $result->fetch(PDO::FETCH_OBJ)) :
echo '<option value="'.$row->route_id.'">'.$row->route_code.' - '.$row->route.'</option>';
endwhile;
?>
</select>
<br />
<input type="button" value="PDF" onclick="window.open('report.php?rpt=last_verified&type=report&fmt=pdf' +
'&hrv=' + $('select[name=rpt_last_verified_hrv]').val() + '&cs=' + $('select[name=rpt_last_verified_cs]').val() +
'&category=' + $('select[name=rpt_last_verified_category]').val() + '&route=' + $('select[name=rpt_last_verified_route]').val(), '_blank');" />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=last_verified&type=report&fmt=excel' +
'&hrv=' + $('select[name=rpt_last_verified_hrv]').val() + '&cs=' + $('select[name=rpt_last_verified_cs]').val() +
'&category=' + $('select[name=rpt_last_verified_category]').val() + '&route=' + $('select[name=rpt_last_verified_route]').val(), '_blank');" />
</div>
</div>
<div class="report_section">
<div class="report_header">
Cleanup Reports
</div>
<div class="report_criteria">
<input class="no_dirty" type="radio" value="hotels" name="rpt_cleanup_type" /> Active Hotels without Category, Route, Seq, Neighborhood, or Qty
<br />
<input class="no_dirty" type="radio" value="concierges" name="rpt_cleanup_type" /> Active Concierges without Title
<br />
<input class="no_dirty" type="radio" value="concierges_dup_email" name="rpt_cleanup_type" /> Active Concierges without Unique Email or Missing Email
<br />
<input type="button" value="Excel" onclick="window.open('report.php?rpt=cleanup&type=report&fmt=excel' +
'&cleanup_type=' + $('input:radio[name=rpt_cleanup_type]:checked').val(), '_blank') ;" />
</div>
</div>
</form>
</div>