GetOrderByText();
$isodate = sprintf ("%04d-%02d-%02d", strftime("%Y"), strftime("%m"), strftime("%d"));
if ($GLOBALS["gsLRContentFrame"] == 'A') {
$rightcontent = false;
if ($subgroupid == "") { $strQuery = "SELECT count(leftright) FROM ".$GLOBALS["eztbContents"]." where groupid ='".$groupid."' and subgroupid='0' and publishdate<='".$isodate."' and expiredate>='".$isodate."' and leftright='R'";
} else { $strQuery = "SELECT count(leftright) FROM ".$GLOBALS["eztbContents"]." where subgroupid='".$subgroupid."' and publishdate<='".$isodate."' and expiredate>='".$isodate."' and leftright='R'"; }
$result = mysql_db_query($GLOBALS["ezContentsDBName"], $strQuery);
while ($rs = mysql_fetch_array ($result)) {
if ($rs[0] >= 1) { $rightcontent = true; }
}
mysql_free_result ($result);
}
if (($GLOBALS["gsLRContentFrame"] == 'Y') || (($GLOBALS["gsLRContentFrame"] == 'A') && ($rightcontent))) {
?>
if ($subgroupid == "") { $strQuery = "SELECT * FROM ".$GLOBALS["eztbContents"]." where groupid ='".$groupid."' and subgroupid='0' and publishdate<='".$isodate."' and expiredate>='".$isodate."' and leftright!='R' ".$GLOBALS["orderText"];
} else { $strQuery = "SELECT * FROM ".$GLOBALS["eztbContents"]." where subgroupid='".$subgroupid."' and publishdate<='".$isodate."' and expiredate>='".$isodate."' and leftright!='R' ".$GLOBALS["orderText"]; }
} else {
if ($subgroupid == "") { $strQuery = "SELECT * FROM ".$GLOBALS["eztbContents"]." where groupid ='".$groupid."' and subgroupid='0' and publishdate<='".$isodate."' and expiredate>='".$isodate."' ".$GLOBALS["orderText"];
} else { $strQuery = "SELECT * FROM ".$GLOBALS["eztbContents"]." where subgroupid='".$subgroupid."' and publishdate<='".$isodate."' and expiredate>='".$isodate."' ".$GLOBALS["orderText"]; }
}
$result = mysql_db_query($GLOBALS["ezContentsDBName"], $strQuery);
while ($rsContent = mysql_fetch_array ($result)) {
if ($rsContent["authorvisible"] !='Y' && $rsContent["updatedatevisible"] !='Y' && $rsContent["headervisible"] !='Y') { ?> class="teaserheadercontent">
} else { ?> class="headercontent"> }
if ($rsContent["headervisible"] =='Y') {
if ($rsContent["teaser"] != "") { ?>|
} ?>
if ($rsContent["teaser"] != "") { ?>|
} else { ?> | }
$bEncodeHTML = true;
if ($rsContent["teaser"] != "") {
if ($rsContent["image"] != "") { echo imagehtmltag($GLOBALS["image_home"],$rsContent["image"],'',0,$rsContent["imagealign"]); }
ext_print($rsContent["teaser"], $bEncodeHTML);
if ($rsContent["body"] != "") {
if (($GLOBALS["gsUseFrames"] == 'Y') && ($noframesbrowser != True)) {
?> "> echo $GLOBALS["tReadMore"]; ?>
} else { ?> "> echo $GLOBALS["tReadMore"]; ?> }
}
} else {
if ($rsContent["imagedetails"] != "") { echo imagehtmltag($GLOBALS["image_home"],$rsContent["imagedetails"],'',0,$rsContent["imagedetailsalign"]); }
echo ext_print($rsContent["body"], $bEncodeHTML);
}
?> |
if ($rsContent["teaser"] != "") { ShowTeaserFooter($rsContent["updatedatevisible"],$rsContent["authorvisible"],$rsContent);
} else { ShowContentFooter($rsContent["updatedatevisible"],$rsContent["authorvisible"],$rsContent); } ?>
}
mysql_free_result ($result);
if (($GLOBALS["gsLRContentFrame"] == 'Y') || (($GLOBALS["gsLRContentFrame"] == 'A') && ($rightcontent))) {
if ($GLOBALS["gnImageColumnBreak"] != '') {
if (file_exists($GLOBALS["image_home"].$GLOBALS["gnImageColumnBreak"]) == true) {
$imageInfo = getimagesize($GLOBALS["image_home"].$GLOBALS["gnImageColumnBreak"]);
$size = $imageInfo[0];
} ?>
height="100%" valign="bottom" class="sep_column"> " width= echo $size; ?> height="100%">
} ?>
| " valign="top">
if ($subgroupid == "") { $strQuery = "SELECT * FROM ".$GLOBALS["eztbContents"]." where groupid ='".$groupid."' and subgroupid='0' and publishdate<='".$isodate."' and expiredate>='".$isodate."' and leftright='R' ".$GLOBALS["orderText"];
} else { $strQuery = "SELECT * FROM ".$GLOBALS["eztbContents"]." where subgroupid='".$subgroupid."' and publishdate<='".$isodate."' and expiredate>='".$isodate."' and leftright='R' ".$GLOBALS["orderText"]; }
$result = mysql_db_query($GLOBALS["ezContentsDBName"], $strQuery);
while ($rsContent = mysql_fetch_array ($result)) {
if ($rsContent["authorvisible"] !='Y' && $rsContent["updatedatevisible"] !='Y' && $rsContent["headervisible"] !='Y') { ?> class="teaserheadercontent">
} else { ?> class="headercontent"> }
if ($rsContent["headervisible"] =='Y') {
if ($rsContent["teaser"] != "") { ?>|
} ?>
if ($rsContent["teaser"] != "") { ?>|
} else { ?> | }
$bEncodeHTML = true;
if ($rsContent["image"] != "") { echo imagehtmltag($GLOBALS["image_home"],$rsContent["image"],'',0,$rsContent["imagealign"]); }
if ($rsContent["teaser"] != "") {
ext_print($rsContent["teaser"], $bEncodeHTML);
if ($rsContent["body"] != "") {
if (($GLOBALS["gsUseFrames"] == 'Y') && ($noframesbrowser != True)) {
?> "> echo $GLOBALS["tReadMore"]; ?>
} else { ?> "> echo $GLOBALS["tReadMore"]; ?> }
}
} else { echo ext_print($rsContent["body"], $bEncodeHTML); }
?> |
if ($rsContent["teaser"] != "") { ShowTeaserFooter($rsContent["updatedatevisible"],$rsContent["authorvisible"],$rsContent);
} else { ShowContentFooter($rsContent["updatedatevisible"],$rsContent["authorvisible"],$rsContent); } ?>
}
mysql_free_result ($result);
?>
" height="1" border="0">
}
ShowFooterBanner();
function GetOrderByText() {
if ($GLOBALS["groupid"] != "") {
$strQuery = "select * from ".$GLOBALS["eztbGroups"]." where groupid='".$GLOBALS["groupid"]."'";
$fieldorderby = "menuorderby";
$fieldorderdir = "menuorderdir";
} elseif ($GLOBALS["subgroupid"] != "") {
$strQuery = "select * from ".$GLOBALS["eztbSubgroups"]." where subgroupid='".$GLOBALS["subgroupid"]."'";
$fieldorderby = "submenuorderby";
$fieldorderdir = "submenuorderdir";
} else { return 0; }
$result = mysql_db_query($GLOBALS["ezContentsDBName"], $strQuery);
if ($rs = mysql_fetch_array ($result)) {
if ($rs[$fieldorderby] == "1") { $GLOBALS["orderText"] = "order by orderid ";
} elseif ($rs[$fieldorderby] == "2") { $GLOBALS["orderText"] = "order by publishdate ";
} elseif ($rs[$fieldorderby] == "3") { $GLOBALS["orderText"] = "order by updatedate "; }
if ($rs[$fieldorderdir] == "A") { $GLOBALS["orderText"] = $GLOBALS["orderText"]."asc";
} elseif ($rs[$fieldorderdir] == "D") { $GLOBALS["orderText"] = $GLOBALS["orderText"]."desc"; }
}
mysql_free_result ($result);
} // function GetOrderByText()
function GetGroupID() {
$strQuery = "select * from ".$GLOBALS["eztbGroups"]." where topgroupid='".$GLOBALS["topgroupid"]."' order by grouporderid limit 1";
$result = mysql_db_query($GLOBALS["ezContentsDBName"], $strQuery);
if ($rs = mysql_fetch_array ($result)) {
$gid = $rs["groupid"];
} else { $gid = $GLOBALS["gsHomepageGroup"]; }
mysql_free_result ($result);
return $gid;
} // function GetGroupID()
?> |
if (($GLOBALS["gsUseFrames"] == 'Y') && ($noframesbrowser != True)) {
End_Timer(); ?>
End_Gzip();
}
?>
|
|