Example #1
0
// set the title name to be displayed in the header
$title = "Funding Detail Information";
$scripts = "<script type=\"text/javascript\" src=\"FundingDetails.js\" />";
// add flag to detect pages that need update messages
$DirtyPageEnabled = true;
// the update button was hit
if (isset($Update)) {
    // create a new founder object
    $fundingObj = new Funding();
    $financingObj = new Financing();
    $companyObj = new Company();
    //Company
    $companyObj->CompanyID = sqlEscapeString($CompanyID);
    $companyObj->IPODate = sqlEscapeString($IPODate);
    $companyObj->IPOValue = sqlEscapeString($IPOValue);
    $companyObj->IPORaised = nullpulldown($IPORaised);
    // load the founding object with the page parameters
    $fundingObj->FundingID = sqlEscapeString($FundingID);
    $fundingObj->FundingSourceID = sqlEscapeString($FundingSourceID);
    $fundingObj->FundingTypeID = sqlEscapeString($FundingTypeID);
    $fundingObj->AwardDate = sqlEscapeString($AwdDate);
    $fundingObj->AwardAmount = sqlEscapeString($AwardAmount);
    $fundingObj->Comment = sqlEscapeString($Comment);
    $fundingObj->CompanyID = sqlEscapeString($CompanyID);
    //Financing
    $financingObj->CompanyID = sqlEscapeString($CompanyID);
    $financingObj->Date = sqlEscapeString($Date);
    $financingObj->Amount = sqlEscapeString($Amount);
    $financingObj->FinancingType = sqlEscapeString($FinancingType);
    $financingObj->FinancingProvider1 = sqlEscapeString($FinancingProvider1);
    $financingObj->FinancingProvider2 = sqlEscapeString($FinancingProvider2);
Example #2
0
 $companyObj->ClosureDate = sqlEscapeString($ClosureDate);
 $companyObj->ActiveBool = nullpulldown($ActiveBool);
 $companyObj->LocationType = sqlEscapeString($LocationType);
 $companyObj->OrigCity = sqlEscapeString($OrigCity);
 $companyObj->OrigState = sqlEscapeString($OrigState);
 $companyObj->OrigStreet = sqlEscapeString($OrigStreet);
 $companyObj->OrigZip = sqlEscapeString($OrigZip);
 $companyObj->MailingAddress = sqlEscapeString($MailingAddress);
 $companyObj->AlternatePhone = sqlEscapeString($AlternatePhone);
 $companyObj->Fax = sqlEscapeString($Fax);
 $companyObj->Inc_DE = nullpulldown($Inc_DE);
 $companyObj->RTP = nullpulldown($RTP);
 $companyObj->MoveoutNC = nullpulldown($MoveoutNC);
 $companyObj->MoveoutDate = sqlEscapeString($MoveoutDate);
 $companyObj->DUNS = sqlEscapeString($DUNS);
 $companyObj->AffiliationID = nullpulldown($AffiliationID);
 $companyObj->EntryType = sqlEscapeString($EntryType);
 $companyObj->TLOSource = sqlEscapeString($TLOSource);
 $companyObj->TLOAffiliation = sqlEscapeString($TLOAffiliation);
 $companyObj->IFUniAffiliation = sqlEscapeString($IFUniAffiliation);
 $companyObj->RTPAnchor = sqlEscapeString($RTPAnchor);
 $companyObj->EstaEntryLoc = sqlEscapeString($EstaEntryLoc);
 $companyObj->EntryTypeSource = sqlEscapeString($EntryTypeSource);
 $companyObj->EstEntryLocationSource = sqlEscapeString($EstEntryLocationSource);
 $companyObj->CompanyAddressSource = sqlEscapeString($CompanyAddressSource);
 // include the data access class
 include_once "SQLUtils.php";
 // init the return code
 $retVal = array(false, "Data not inserted");
 // insert/update the data
 $retVal = updateObjectReturnID($companyObj);