SuiteCRM-Core/modules/jjwg_Maps/views/view.geocoded_counts.php
Clemente Raposo 5fa70e2794 Squashed 'public/legacy/' changes from 5a66316965..b065977c61
b065977c61 SuiteCRM 7.12.5 Release
fd07950be0 Fix #8366 - V8 API Filtering W/ OR Operator Chained Conditions
f8504d0a42 Fix #9445 - More than 10 tabs in a views creates a loop
ec3c758b49 Fix #9451 - Missing duplicate merge filter options in Studio
3739e28428 Fix #9468 - Adding Security Suite subpanels to new custom modules
0742615e61 Fix #9427 - Adding missing help popup help strings in Studio
c79a3a6109 Add accessors for the Results, Query fields in SearchResultsController
a507575097 Fix #4075 - No way to add email signature after adding email template
9b8f5b46b2 Fix #9480 - Slow to load imap mailbox with a million email records
8184b82060 Fixed #2857 - No dynamic refreshing in dashboard
ece5919449 Fix #9508 - Legacy search fields are incorrect size
5699ad47ff Fix #9478 - Update GitHub Templates
37d54ca1ab SuiteCRM 7.12.4 Release
5a7f66f1fc Fix #9482 - Update list of modules to normalize
1807751e16 Fix #9482 - Only save update fields on utf encoding repair
08c5a32e07 Fix #9482 - Add partial bean save
a25efff51f Fix #7842 - Do not reset email addresses list upon saving
4e5b509a30 Add ExtensionManager with static method to compile ext files
77b2940fd9 Fix #9061 - Custom Labels can't be overwritten in Studio
2f40449702 Fix #9496 - Cannot save dropdown values
32c6e4a04b Merge next into suite 8
2812bd315a [Legacy] Fix user wizard finish screen re-direction
9dc1a2f017 [Legacy] User Wizard Styling Fixes
0b91cb9a53 [Legacy] Event Delegates Selector Box Styling Fixes
32d7408e93 [Legacy] Add New Task Modal Styling Fixes
e121b602da [Legacy] Workflow Styling Fixes
86ef0fae66 [Legacy] Projects Resource Panel Styling Fixes
56eb694629 [Legacy] map legacy to front-end user action called wizard
4c7ff07fcc [Legacy] Rescheduler Popup Styling Fixes
1b76260971 [Legacy] Project Gantt Chart Delete Button Styling Fixes
09959f1078 [Legacy] Configuration Settings Styling Fixes
711ded6a70 [Legacy] Notes modules styling fixes
a0aa6affc8 [Legacy] Calls Module Styling Fixes
a468cede8b [Legacy] AdminPanel Border Radius Styling Fixes
bfc8a443b7 [Legacy] Bump version to 8.0.1

git-subtree-dir: public/legacy
git-subtree-split: b065977c6116e68cea907dc099205d0b32ac99f4
2022-03-01 14:37:14 +00:00

103 lines
4.6 KiB
PHP
Executable file

<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
class Jjwg_MapsViewGeocoded_Counts extends SugarView
{
public function __construct()
{
parent::__construct();
}
public function display()
{
echo '<div class="moduleTitle"><h2>'.$GLOBALS['mod_strings']['LBL_GEOCODED_COUNTS'].'</h2><div class="clear"></div></div>';
echo '<div class="clear"></div>';
echo $GLOBALS['mod_strings']['LBL_GEOCODED_COUNTS_DESCRIPTION'];
echo '<br /><br />';
// Display last status code, if set.
if (!empty($_REQUEST['last_status']) && preg_match('/[A-Z\_]/', $_REQUEST['last_status'])) {
echo '<div><b>'.$GLOBALS['mod_strings']['LBL_MAP_LAST_STATUS'].': '.$_REQUEST['last_status'].'</b></div>';
echo '<br /><br />';
}
echo '<div class="list-view-rounded-corners">';
echo '<table cellspacing="0" cellpadding="0" border="0" class="list" style="width: 50% !important;">';
echo '<thead>';
echo '<tr><th>'.$GLOBALS['mod_strings']['LBL_MODULE_HEADING'].'</th>';
foreach ($this->bean->geocoded_headings as $heading) {
echo '<th>'.$GLOBALS['mod_strings']['LBL_'.$heading].'</th>';
}
echo '<th>'.$GLOBALS['mod_strings']['LBL_MODULE_TOTAL_HEADING'].'</th>';
echo '<th>'.$GLOBALS['mod_strings']['LBL_MODULE_RESET_HEADING'].'</th>';
echo '</tr>'."\n";
echo '</thead>';
echo '<tbody>';
foreach ($GLOBALS['jjwg_config']['valid_geocode_modules'] as $module) {
$geocode_url = './index.php?module=jjwg_Maps&action=geocode_addresses&display_module='.$module;
$reset_url = './index.php?module=jjwg_Maps&action=reset_geocoding&display_module='.$module;
echo '<tr>';
echo '<td><strong><a href="'.htmlspecialchars($geocode_url).'">'.$GLOBALS['app_list_strings']['moduleList'][$module].'</a></strong></td>';
foreach ($this->bean->geocoded_headings as $heading) {
echo '<td>'.$this->bean->geocoded_counts[$module][$heading].'</td>';
}
echo '<td><strong>'.$this->bean->geocoded_module_totals[$module].'</strong></td>';
echo '<td><strong><a href="'.htmlspecialchars($reset_url).'">'.$GLOBALS['mod_strings']['LBL_MODULE_RESET_HEADING'].'</a.</strong></td>';
echo '</tr>'."\n";
}
echo '</tbody></table>';
echo '</div>';
echo '<br /><br />';
// Custom Entry Point Registry:
// $entry_point_registry['jjwg_Maps'] = array('file' => 'modules/jjwg_Maps/jjwg_Maps_Router.php', 'auth' => false);
// Usage / Cron URL: index.php?module=jjwg_Maps&entryPoint=jjwg_Maps&cron=1
echo '<strong>'.$GLOBALS['mod_strings']['LBL_CRON_URL'].'</strong>';
echo '<br /><br />';
echo $GLOBALS['mod_strings']['LBL_CRON_INSTRUCTIONS'];
echo '<br /><br />';
$cron_url = './index.php?module=jjwg_Maps&entryPoint=jjwg_Maps&cron=1';
echo '<a href="'.$cron_url.'">'.$cron_url.'</a>';
echo '<br /><br />';
echo '<br /><br />';
echo '<strong>'.$GLOBALS['mod_strings']['LBL_EXPORT_ADDRESS_URL'].'</strong>';
echo '<br /><br />';
echo $GLOBALS['mod_strings']['LBL_EXPORT_INSTRUCTIONS'];
echo '<br /><br />';
$export_url = './index.php?module=jjwg_Maps&action=export_geocoding_addresses&display_module=';
echo '<a target="_blank" href="'.htmlspecialchars($export_url).$GLOBALS['app_strings']['LBL_ACCOUNTS'].'">'.$GLOBALS['app_strings']['LBL_EXPORT'].' '.$GLOBALS['app_strings']['LBL_ACCOUNTS'].'</a>';
echo '<br /><br />';
echo '<a target="_blank" href="'.htmlspecialchars($export_url).$GLOBALS['app_strings']['LBL_CONTACTS'].'">'.$GLOBALS['app_strings']['LBL_EXPORT'].' '.$GLOBALS['app_strings']['LBL_CONTACTS'].'</a>';
echo '<br /><br />';
echo '<a target="_blank" href="'.htmlspecialchars($export_url).$GLOBALS['app_strings']['LBL_LEADS'].'">'.$GLOBALS['app_strings']['LBL_EXPORT'].' '.$GLOBALS['app_strings']['LBL_LEADS'].'</a>';
echo '<br /><br />';
echo '<a target="_blank" href="'.htmlspecialchars($export_url).$GLOBALS['app_strings']['LBL_PROSPECTS'].'">'.$GLOBALS['app_strings']['LBL_EXPORT'].' '.$GLOBALS['app_strings']['LBL_PROSPECTS'].'</a>';
echo '<br /><br />';
echo '<br /><br />';
echo '<br /><br />';
echo '<br /><br />';
$delete_url = './index.php?module=jjwg_Maps&action=delete_all_address_cache';
echo '<a href="'.htmlspecialchars($delete_url).'">'.$GLOBALS['app_strings']['LBL_DELETE'].' - '.$GLOBALS['mod_strings']['LBL_ADDRESS_CACHE'].'</a>';
}
}