0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-02-10 16:32:27 +00:00
salesagility_SuiteCRM/modules/jjwg_Maps/views/view.quick_radius_display.php
Dillon-Brown 4ee7a709a0 Remove PHP4 constructors
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-26 21:50:24 +00:00

37 lines
1.1 KiB
PHP
Executable file

<?php
if (!defined('sugarEntry') || !sugarEntry) {
die('Not A Valid Entry Point');
}
class Jjwg_MapsViewQuick_Radius_Display extends SugarView
{
public function __construct()
{
parent::__construct();
}
public function display()
{
$url = 'index.php?module='.$GLOBALS['currentModule'].'&action=map_markers';
foreach (array_keys($_REQUEST) as $key) {
// Exclude certain request parameters
if (!in_array($key, array('action', 'module', 'entryPoint', 'record', 'relate_id'))) {
$url .= '&'.$key.'='.urlencode($_REQUEST[$key]);
}
} ?>
<h2><?php echo htmlspecialchars($_REQUEST['quick_address']); ?><div class="clear"></div></h2>
<div class="clear"></div>
<iframe src="<?php echo $url; ?>"
width="100%" height="900" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto"><p>Sorry,
your browser does not support iframes.</p></iframe>
<p>IFrame: <a href="<?php echo htmlspecialchars($url); ?>"><?php echo $mod_strings['LBL_MAP']; ?> URL</a></p>
<?php
}
}