vtenext/portal/Potentials/PotentialsDetail.php
2021-04-28 20:10:26 +02:00

33 lines
1.1 KiB
PHP

<?php
/*************************************
* SPDX-FileCopyrightText: 2009-2020 Vtenext S.r.l. <info@vtenext.com>
* SPDX-License-Identifier: AGPL-3.0-only
************************************/
global $result;
global $client;
global $Server_Path;
$customerid = $_SESSION['customer_id'];
$sessionid = $_SESSION['customer_sessionid'];
if($id != '')
{
$params = array('id' => "$id", 'block'=>"$block",'contactid'=>$customerid,'sessionid'=>"$sessionid");
$result = $client->call('get_details', $params, $Server_Path, $Server_Path);
// Check for Authorization
if (count($result) == 1 && $result[0] == "#NOT AUTHORIZED#") {
echo '<tr>
<td colspan="6" align="center"><b>'.getTranslatedString('LBL_NOT_AUTHORISED').'</b></td>
</tr></table></td></tr></table></td></tr></table>';
die();
}
$noteinfo = $result[0][$block];
echo '<table><tr><td><input class="crmbutton small cancel" type="button" value="'.getTranslatedString('LBL_BACK_BUTTON').'" onclick="window.history.back();"/></td></tr></table>';
echo getblock_fieldlist($noteinfo);
echo '</table></td></tr>';
echo '</table></td></tr></table></td></tr></table>';
echo '<!-- --End-- -->';
}
?>