This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

22
modules/EcmCalls/AnMenu.php Executable file
View 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'];
}
}
}
?>