getExtraParams(array("Update", "Delete", "CompanyAddressSource", "EstaEntryLoc", "EntryType", "CompanyID", "NewCompanyID", "CheckWebsite", "CompanyName", "Year", "YearID", "SOSID", "Phone", "EntryTypeGroup", "TLOAffiliation", "IFUniAffiliation", "RTPAnchor", "TLOSource", "Email", "C_Remark", "AdditionalSOSID", "Website", "SourceForCompany", "Establishment", "CompanyDescription", "SourceID", "CurrStreet", "CurrCity", "CurrState", "CurrZip", "CompanyNameSource", "CompanyYearSource", "CompanyDescriptionSource", "ParentCompany", "Subsidiary", "EModeID", "SectorID", "SubSectorID", "Technology", "TypeID", "MarketID", "SourceID", "HqOrigin", "HqCurrent", "EnteredNC", "AcquiredBool", "AcquiredDate", "AcquiredBy", "AcquiredValue", "IPOBool", "IPODate", "IPOValue", "IPORaised", "ClosureBool", "ClosureDate", "ActiveBool", "LocationType", "OrigCity", "OrigState", "OrigStreet", "OrigZip", "MailingAddress", "AlternatePhone", "Fax", "Inc_DE", "RTP", "MoveoutNC", "EntryTypeSource", "EstEntryLocationSource", "MoveoutDate", "AffiliationType", "DUNS", "AffiliationID", "ClosureDataSource", "ClosureType")); // set the title name to be displayed in the header $title = "Company Detail Information"; $scripts = "<script type=\"text/javascript\" src=\"CompanyDetails.js\" />"; // add flag to detect pages that need update messages $DirtyPageEnabled = true; function mssql_escape($data) { if (is_numeric($data)) { return $data; } $unpacked = unpack('H*hex', $data); return '0x' . $unpacked['hex']; } if (isset($Delete)) { doDeleteCompany($CompanyID); header('Location: company.php'); } // the update button was hit if (isset($Update)) { // create a new company object $companyObj = new Company(); // load the compant object with the page parameters $companyObj->CompanyID = sqlEscapeString($CompanyID); $companyObj->CompanyName = sqlEscapeString($CompanyName); $companyObj->Establishment = sqlEscapeString($Establishment); $companyObj->Website = sqlEscapeString($Website); $companyObj->SOSID = sqlEscapeString($SOSID); $companyObj->AdditionalSOSID = sqlEscapeString($AdditionalSOSID); $companyObj->Phone = sqlEscapeString($Phone); $companyObj->Email = sqlEscapeString($Email);
$retVal = doGetSourceID(); } else { if ($function == "getEModeID") { $retVal = doGetEModeID(); } else { if ($function == "getSubSectorID") { $retVal = doGetSubSectorID(); } else { if ($function == "getMarketID") { $retVal = doGetMarketID(); } else { if ($function == "getAffiliationID") { $retVal = doGetAffiliationID(); } else { if ($function == "deleteCompany") { $retVal = doDeleteCompany($extraParams[0]); } else { if ($function == "getFoundersAllInformation") { $retVal = doGetFoundersListAllInformation(); } else { if ($function == "UpdateCompanyToAffiliationJoin") { $retVal = doUpdateCompanyToAffiliationJoin($extraParams[0], $extraParams[1]); } else { if ($function == "RemoveCompanyToAffiliationJoin") { $retVal = doRemoveCompanyToAffiliationJoin($extraParams[0], $extraParams[1]); } else { if ($function == "GetCompanyToAffiliationJoin") { $retVal = doGetCompanyToAffiliationJoin($extraParams[0]); } else { $retVal = array(false, "Unrecognized function name. function:" . $function . ", extraParams:" . $extraParams); }