$imageList = array();
$imageList[0] = $rowChemicals["structure"];
$baseImagePath = "images/chemicalProducts";
//showGallery($imageList, $baseImagePath);
$imagePath = getImgPath($rowChemicals["structure"], $baseImagePath);
?>
CAS NO: |
|
Molecular Formula: |
|
Molecular Weight: |
|
if ($rowChemicals["synonyms"] != "") {
?>
Synonyms
$synList = explode(";", $rowChemicals["synonyms"]);
if (sizeof($synList) !== 0) {
$displayItems = 6;
if (sizeof($synList) < $displayItems) {
$displayItems = sizeof($synList);
}
$str = '';
for ($i = 0; $i < sizeof($synList); $i++) {
$trClass = "";
if($i >= $displayItems){
$trClass = "synHide";
}
$str .= '';
$str .= '' . $synList[$i] . ' | ';
$i++;
if ($i < sizeof($synList)) {
$str .= '' . $synList[$i] . ' | ';
}
$str .= ' ';
}
if (sizeof($synList) > $displayItems) {
$str .= ' + View More / Less | ';
}
echo $str;
}
?>
|
}
if (sizeof($chemicalProperties) != 0) {
?>
Chemical Properties
foreach($chemicalProperties as $key => $value){
?>
: |
|
}
?>
|
}
if ($rowChemicals['drugsUsing'] != "") {
?>
Drugs using this Chemical
$drugsUsingList = explode(";", $rowChemicals["drugsUsing"]);
if (sizeof($drugsUsingList) !== 0) {
$displayItems = 6;
if (sizeof($drugsUsingList) < $displayItems) {
$displayItems = sizeof($drugsUsingList);
}
$str = '';
for ($i = 0; $i < sizeof($drugsUsingList); $i++) {
$trClass = "";
if($i >= $displayItems){
$trClass = "duHide";
}
$str .= '';
$str .= '' . $drugsUsingList[$i] . ' | ';
$i++;
if ($i < sizeof($drugsUsingList)) {
$str .= '' . $drugsUsingList[$i] . ' | ';
}
$str .= ' ';
}
if (sizeof($drugsUsingList) > $displayItems) {
$str .= ' + View More / Less | ';
}
echo $str;
}
?>
|
}
?>