* SPDX-License-Identifier: AGPL-3.0-only ************************************/ /* crmv@90004 */ global $result; global $client; $smarty = new VTECRM_Smarty(); $smarty->assign('TITLE',getTranslatedString("LBL_NOTES_INFORMATION")); $onlymine=$_REQUEST['onlymine']; if($onlymine == 'true') { $mine_selected = 'selected'; $all_selected = ''; } else { $mine_selected = ''; $all_selected = 'selected'; } // echo ' // '.getTranslatedString("LBL_NOTES_INFORMATION").''; $allow_all = $client->call('show_all',array('Documents'),$Server_Path, $Server_Path); if($allow_all == 'true'){ $smarty->assign('ALLOW_ALL',$allow_all); $smarty->assign('MINE_SELECTED',$mine_selected); $smarty->assign('ALL_SELECTED',$all_selected); // echo ' '.getTranslatedString('SHOW').'  '; } // echo '
// '; if ($customerid != '' ) { $block = "Documents"; $params = array('id' => "$customerid", 'block'=>"$block",'sessionid'=>$sessionid,'onlymine'=>$onlymine); $result = $client->call('get_folder', $params, $Server_Path, $Server_Path); $smarty->assign('MODULE',$module); if(!empty($result)){ $smarty->assign('FIELDLISTVIEWFOLDER',$result); } } $smarty->display('DocumentsListFolder.tpl');