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
|
|
|
|
{
|
2019-01-25 14:28:56 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-01-25 14:28:56 +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
|
|
|
}
|
|
|
|
}
|