0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-01-11 20:08:27 +00:00
salesagility_SuiteCRM/modules/jjwg_Areas/controller.php

36 lines
966 B
PHP
Raw Normal View History

2013-09-23 19:30:44 +00:00
<?php
// modules/jjwg_Areas/controller.php
include_once('include/utils.php');
2023-06-01 13:10:03 +00:00
#[\AllowDynamicProperties]
2019-01-25 13:51:46 +00:00
class jjwg_AreasController extends SugarController
{
public function action_area_edit_map()
2019-01-25 13:51:46 +00:00
{
2013-09-23 19:30:44 +00:00
$this->view = 'area_edit_map';
$jjwg_Areas = get_module_info('jjwg_Areas');
// Get the map object
if (is_guid($_REQUEST['id'])) {
$jjwg_Areas->retrieve($_REQUEST['id']);
}
2014-01-09 13:30:22 +00:00
$GLOBALS['polygon'] = $jjwg_Areas->define_polygon();
$GLOBALS['loc'] = $jjwg_Areas->define_area_loc();
2013-09-23 19:30:44 +00:00
}
public function action_area_detail_map()
2019-01-25 13:51:46 +00:00
{
2013-09-23 19:30:44 +00:00
$this->view = 'area_detail_map';
$jjwg_Areas = get_module_info('jjwg_Areas');
// Get the map object
if (is_guid($_REQUEST['id'])) {
$jjwg_Areas->retrieve($_REQUEST['id']);
}
2014-01-09 13:30:22 +00:00
$GLOBALS['polygon'] = $jjwg_Areas->define_polygon();
$GLOBALS['loc'] = $jjwg_Areas->define_area_loc();
2013-09-23 19:30:44 +00:00
}
}