eList .= "&".strtolower($MM_paramName)."=";
$MM_keepURL="";
$MM_keepForm="";
$MM_keepBoth="";
$MM_keepNone="";
// add the URL parameters to the MM_keepURL string
reset ($HTTP_GET_VARS);
while (list ($key, $val) = each ($HTTP_GET_VARS)) {
$nextItem = "&".strtolower($key)."=";
if (!stristr($MM_removeList, $nextItem)) {
$MM_keepURL .= "&".$key."=".urlencode($val);
}
}
// add the Form parameters to the MM_keepURL string
if(isset($HTTP_POST_VARS)){
reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$nextItem = "&".strtolower($key)."=";
if (!stristr($MM_removeList, $nextItem)) {
$MM_keepForm .= "&".$key."=".urlencode($val);
}
}
}
// create the Form + URL string and remove the intial '&' from each of the strings
$MM_keepBoth = $MM_keepURL."&".$MM_keepForm;
if (strlen($MM_keepBoth) > 0) $MM_keepBoth = substr($MM_keepBoth, 1);
if (strlen($MM_keepURL) > 0) $MM_keepURL = substr($MM_keepURL, 1);
if (strlen($MM_keepForm) > 0) $MM_keepForm = substr($MM_keepForm, 1);
?><!DOCTYPE html PUBLIC "-//W3C//DTD X
HTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title><?php echo $row_RecWebInfo['webName']; ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="page">
<div id="header">
<div id="webInfo">
<div class="webName"><?php echo $row_RecWebInfo['
webName']; ?> </div>
<div class="webDesc"><?php echo $row_RecWebInfo['webDesc']; ?> </div>
<div class="webNavigation"> <a href="album.php">回到首页</a> |<a href="blogInfo.php#1"> </a><a href="adminLogin.php">相册管理</a></div>
</div>
</div>
<div id="sidemenu">
<h2>相册分类</h2>
<ul>
<?php do { ?>
<li><a href="albumCategory.php?<?php echo $MM_keepNone.(($MM_keepNone!="")?"&":"")."ca_id=".urlencode($row_RecCategory['ca_id']) ?>"><?php echo $row_RecCategory['ca_name']; ?></a></li>
<?php } while ($row_RecCategory = mysql_fetch_assoc($RecCategory)); ?></ul>
<h2>最新相册</h2>
<ul>
<?php do { ?>
<li><a href="albumDetail.php?<?php echo $MM_keepNone.(($MM_keepNone!="")?"&":"")."album_id=".urlencode($row_RecNewAlbum['album_id']) ?>"><?php echo $row_RecNewAlbum['album_title']; ?></a></li>
<?php } while ($row_RecNewAlbum = mysql_fetch_assoc($RecNewAlbum)); ?></ul>
</div>
<div id="content">
<?php do { ?>
<h1><?php echo $row_RecAlbum['album_title']; ?></h1>
<p class="time"><?php echo $row_RecAlbum['album_date']; ?></p>
<span class="time"></span>
<div class="postContent">
<p> </p>
<div class="pic">
<p>
<?php /*start db_db script*/ if ($row_RecAlbum['PhotoW'] > $row_RecAlbum['PhotoH']){ ?>
<img src="photos/<?php echo $row_RecAlbum['PhotoURL']; ?>" alt="" class="ls" />
<?php } /*end db_db script*/ ?>
</p>
<?php /*start db_db script*/ if ($row_RecAlbum['PhotoW'] < $row_RecAlbum['PhotoH']){ ?>
<p><img src="photos/<?php echo $row_RecAlbum['PhotoURL']; ?>" alt="" name="" class="pt" />
<?php } /*end db_db script*/ ?>
</p>
</div>
<p><?php echo $row_RecAlbum['album_desc']; ?></p>
</p>
</div>
<div class="postCommand">照片总数:(<?php echo $row_RecAlbum['PhotoCount']; ?>) | <a href="albumDetail.php?<?php echo $MM_keepNone.(($MM_keepNone!="")?"&":"")."album_id=".urlencode($row_RecAlbum['album_id']) ?>">详细内容</a> | <a href="albumCategory.php?<?php echo $MM_keepNone.(($MM_keepNone!="")?"&":"")."ca_id=".urlencode($row_RecAlbum['ca_id']) ?>">相关类别</a> </div>
<?php } while ($row_RecAlbum = mysql_fetch_assoc($RecAlbum)); ?><div class="postContent">
<p align="center"> </p>
<table border="0" width="50%" align="center">
<tr>
<td width="23%" align="center"><?php if ($pageNum_RecAlbum > 0) { // Show if not first page ?>
<a href="<?php printf("%s?pageNum_RecAlbum=%d%s", $currentPage, 0, $q