mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-08-29 08:17:18 +08:00
git-subtree-dir: public/legacy git-subtree-split: 817a12dc0c30c189f56d5cb1f7dc37a9631bdbe3
34 lines
939 B
PHP
Executable file
34 lines
939 B
PHP
Executable file
<?php
|
|
|
|
// modules/jjwg_Areas/controller.php
|
|
|
|
include_once('include/utils.php');
|
|
|
|
class jjwg_AreasController extends SugarController
|
|
{
|
|
public function action_area_edit_map()
|
|
{
|
|
$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']);
|
|
}
|
|
$GLOBALS['polygon'] = $jjwg_Areas->define_polygon();
|
|
$GLOBALS['loc'] = $jjwg_Areas->define_area_loc();
|
|
}
|
|
|
|
public function action_area_detail_map()
|
|
{
|
|
$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']);
|
|
}
|
|
$GLOBALS['polygon'] = $jjwg_Areas->define_polygon();
|
|
$GLOBALS['loc'] = $jjwg_Areas->define_area_loc();
|
|
}
|
|
}
|