Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

7
modules/EcmDocs/getAccount.php Executable file
View File

@@ -0,0 +1,7 @@
<?
$r=$GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("select accounts.id as account_id,accounts.name as account_name from contacts inner join accounts_contacts on contacts.id=accounts_contacts.contact_id inner join accounts on accounts.id=accounts_contacts.account_id where contacts.id='".$_REQUEST['contact_id']."'"));
$account_name=$r['account_name'];
$account_id=$r['account_id'];
if($_REQUEST['id']==1)print $account_id;
else print $account_name;
?>