show_errors();
$stem= get_query_var( ‘stem’, 1 );
if ($stem != “”) {
$sql = “SELECT * FROM jos_nasdatasheets WHERE urlFilename = ‘$stem'”;
}
else {
$sql = “SELECT * FROM jos_nasdatasheets WHERE id = ‘1’”;
}

$datasheet = $wpdb->get_results($sql);
foreach ( $datasheet as $ds)
{
$overview = $ds->overview;
$problemDescription= $ds->problemDescription;
$solutionDescription= $ds->solutionDescription;
$supportedPlatforms= $ds->supportedPlatforms;
$platformDescription = $ds->platformDescription;
$featuresBlurb= $ds->featuresBlurb;
$image1= $ds->image1;
$image2= $ds->image2;
$image3= $ds->image3;
$customerQuote= $ds->customerQuote;
$analystQuote= $ds->analystQuote;
$productLogo= $ds->productLogo;
$summary= $ds->summary;
$certifications= $ds->certifications;
$productName= $ds->productName;
$tagline= $ds->tagline;
$desc250= $ds->desc250;
$id= $ds->id;
$hideDescription= $ds->hideDescription;
$hideBenefits= $ds->hideBenefits;
$image1Caption= $ds->image1Caption;
$image2Caption= $ds->image2Caption;
$image3Caption= $ds->image3Caption;

if ($hideDescription == “on”) {
$descriptionCss = “display: none;”;
}
else
{
$descriptionCss = “”;
};

if ($hideBenefits == “on”) {
$benefitsCss = “display: none;”;
}
else
{
$benefitsCss = “”;
};

if ($productLogo != “”) {
echo ‘‘;
};

if ($productName != “”) {
echo ‘

Datasheet: ‘.$productName.’

‘;
};

if ($tagline != “”) {
echo ‘

‘.$tagline .’

‘;
};

if ($productName != “”) {
echo ‘

About ‘.$productName.’

‘;
};

if ($desc250 != “”) {
echo $desc250.’
‘;
};

//if ($featuresBlurb!= “”) {
//echo ‘

Product Features:

‘.$featuresBlurb;
//};
?>

Features and Benefits:

Feature get_results($sql1, ARRAY_A);

foreach($results as $row)
{
?>

‘.$customerQuote.’

‘;
};

if ($analystQuote != “”) {
echo ‘

‘.$analystQuote.’

‘;
};

}

?>




Problem Description:

–>’.$problemDescription;
};

if ($solutionDescription!= “”) {
echo ‘‘.$solutionDescription;
};

if ($image3!= “”) {
echo ‘‘;
if ($image3Caption!= “”) {
echo ‘‘.$image3Caption.’‘;
};
};

?>


Market Overview:

–>’.$overview;
};

if ($supportedPlatforms!= “”) {
echo ‘

Platform Description:

‘.$platformDescription;
echo ‘

‘;
echo ‘

Supported Platforms:

‘.$supportedPlatforms;
echo ‘

‘;

};

if ($image1!= “”) {
echo ‘‘;
if ($image1Caption!= “”) {
echo ‘‘.$image1Caption.’‘;
};
};
if ($image2!= “”) {
echo ‘
 
‘;
echo ‘‘;
if ($image2Caption!= “”) {
echo ‘‘.$image2Caption.’‘;
};
};

?>




Certifications:

‘.$certifications;
};
if ($summary!= “”) {
echo ‘

Summary:

‘.$summary;
};
?>