init
This commit is contained in:
22
modules/EcmCalls/AnMenu.php
Executable file
22
modules/EcmCalls/AnMenu.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
require_once('modules/EcmCalls/anMenu/anMenu.php');
|
||||
$anMenu = new anMenu();
|
||||
if($_REQUEST['anMenuAction'] == "getAccountsSelect") {
|
||||
echo $anMenu->getAccountsSelectJSON($_REQUEST['an_menu_parent_id']);
|
||||
}
|
||||
if($_REQUEST['anMenuAction'] == "getContactsSelect") {
|
||||
echo $anMenu->getContactsSelectJSON($_REQUEST['an_menu_parent_id']);
|
||||
}
|
||||
if($_REQUEST['anMenuAction'] == "getUsersSelect") {
|
||||
echo $anMenu->getUsersSelectJSON($_REQUEST['an_menu_parent_id']);
|
||||
}
|
||||
if($_REQUEST['anMenuAction'] == "Save") {
|
||||
if(isset($_POST['an_menu_data']) && $_POST['an_menu_data'] != '') {
|
||||
$json = getJSONobj();
|
||||
$an_menu_data = $json->decode(htmlspecialchars_decode($_POST['an_menu_data']));
|
||||
if($anMenu->SavePhone($an_menu_data)) {
|
||||
echo $an_menu_data['an_menu_parent_id'];
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user