function ShowResourceCenterDetails($action, $lang) { /*$BrowseClass = ""; $InvestorKnowledge = ""; $FundMaterials = ""; $VideoLibrary = ""; $FormsandLegal = ""; $LegalAndRegulatory = "";*/ $_SESSION['Lang'] = $lang; ?> <?php // used to set section name for where documents were found setSectionName($action); insertSlider(); ShowRCMenu($action, $lang); //echo 'this is the current page ' . $action; //LoadLightBoxHeader(); switch ($action) { case 'ResearchAndInsights': //ShowResearchAndInsights(); ShowAdvancedSearchScreen('ResearchAndInsights'); break; case 'InvestorKnowledge': ShowInvestorKnowledge(); break; case 'FundMaterials': FundMaterial(); break; case 'VideoLibrary': ShowAdvancedSearchScreen('VideoLibrary'); break; case 'FormsandLegal': ShowAdvancedSearchScreen('FormsandLegal'); break; case 'LegalAndRegulatory': ShowAdvancedSearchScreen('LegalAndRegulatory'); break; case 'AdvancedSearch': ShowAdvancedSearch(); break; case 'RunAdvancedSearch': ShowAdvancedSearchResults(); break; default: showResourceCentreContent(); break; } }
echo "NumberOfDownloads:" . $NumberOfDownloads . "<br>"; if ($NumberOfDownloads == 0) { $Sql = "INSERT INTO `im_doc_popularity` (`PostId` ,`Downloads`) VALUES ({$PostId}, 1)"; } else { $NumberOfDownloads++; echo "NumberOfDownloads:" . $NumberOfDownloads . "<br>"; $Sql = "UPDATE `im_doc_popularity` SET `Downloads` = {$NumberOfDownloads} WHERE `im_doc_popularity`.`PostId` ={$PostId};"; //echo $Sql; } $st = $db->query($Sql); $db = null; break; case 'SearchBy': $_SESSION['section_name'] = ''; $key_word = $_REQUEST['KeyWords']; ShowRCMenu('Search', $_SESSION['Lang']); if ($_REQUEST['OrderBy'] == 'undefined') { $order_by = 'Date'; } else { $order_by = $_REQUEST['OrderBy']; } if ($_REQUEST['CurrentPage'] == 'undefined') { $current_page = 1; } else { $current_page = $_REQUEST['CurrentPage']; } if ($_REQUEST['PageSize'] == 'undefined') { $page_size = $_SESSION['PageSize']; } else { $page_size = $_REQUEST['PageSize']; $_SESSION['PageSize'] = $page_size;