Execute($sql);
$photo=array();
$photo[]=array("id"=>"0", "src"=>"./img/educationalResources/Publications_btn2.png", "src2"=>"./img/educationalResources/Publications_btn.png");
$photo[]=array("id"=>"1", "src"=>"./img/educationalResources/VideoLibrary_btn2.png", "src2"=>"./img/educationalResources/VideoLibrary_btn2.png");
$photo[]=array("id"=>"2", "src"=>"./img/educationalResources/LecturesTalks_btn2.png", "src2"=>"./img/educationalResources/LecturesTalks_btn.png");
$photo[]=array("id"=>"3", "src"=>"./img/educationalResources/Equipment_btn2.png", "src2"=>"./img/educationalResources/Equipment_btn.png");
$photo[]=array("id"=>"4", "src"=>"./img/educationalResources/ScholarshipGrants_btn2.png", "src2"=>"./img/educationalResources/ScholarshipGrants_btn.png");
?>
|
|
|
EOF) {
//$content = stripslashes($rs->fields["content"]);
$path = "./uploads/" . $rs->fields["image"];
$canShow = false;
if ($rs->fields["memberonly"] == "Y") {
if ($isloginned)
$canShow = true;
} else {
$canShow = true;
}
echo "";
echo "";
//echo "";
//echo "" . stripslashes($rs->fields["position"]) . " ";
//C:\Users\Alex\Documents\Tencent Files\1978128889\FileRecv
if ($rs->fields["video"] != "") {
$videoPath = "./uploads/" . $rs->fields["video"];
if ($canShow) {
echo "";
echo "" . stripslashes($rs->fields["text"]) . " ";
} else {
echo "" . stripslashes($rs->fields["position"]) . " ";
echo "" . stripslashes($rs->fields["text"]) . " ";
}
$hasVideo = true;
} else {
if ($canShow) {
echo "";
echo "" . stripslashes($rs->fields["text"]) . " ";
} else {
echo "" . stripslashes($rs->fields["position"]) . " ";
echo "" . stripslashes($rs->fields["text"]) . " ";
}
}
//echo "" . stripslashes($rs->fields["content"]) . " ";
//echo " ";
echo " | ";
echo "";
if ($rs->fields["image"] != "")
echo " ";
echo " | ";
echo " ";
echo "| | ";
$rs->MoveNext();
}
}
?>
|
|
|