Y_STRING'])) {
$updateGoTo .= (strpos($updateGoTo, '?')) ? "&" : "?";
$updateGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $updateGoTo));
}
my
sql_select_db($database_connData, $connData);
$query_RecWebInfo = "SELECT * FROM webconfiguration";
$RecWebInfo = mysql_query($query_RecWebInfo, $connData) or die(mysql_error());
$row_RecWebInfo = mysql_fetch_assoc($RecWebInfo);
$totalRows_RecWebInfo = mysql_num_rows($RecWebInfo);
?>
<!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"></div>
</div>
</div>
<div id="sidemenu">
<h2>管理信息 </h2>
<ul>
<li><a href="<?php echo $logoutAction ?>">注销管理</a></li>
<li><a href="adminWebInfo.php">编辑网站信息</a></li>
</ul>
<h2>管理文章</h2>
<ul>
<li><a href="blogAdminCategory.php">文章分类管理</a></li>
<li><a href="blogAdminMessage.php">管理文章及回复</a></li>
<li><a href="blogAdminPost.php">添加文章</a></li>
</ul>
</div>
<div id="content">
<h1>网站信息</h1>
<div class="postContent" id="commentform">
<form action="<?php echo $editFormAction; ?>" method="POST" id="form1" name="form1">
<h2>基本信息</h2>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#F0F0F0">
<tr>
<th width="60">网站名称</th>
<td><input name="webName" type="text" id="webName" value="<?php echo $row_RecWebInfo['webName']; ?>" />
<input name="id" type="hidden" id="id" value="<?php echo $row_RecWebInfo['id']; ?>" /> </td>
</tr>
<tr>
<th width="60">网站副标</th>
<td><input name="webDesc" type="text" id="webDesc" value="<?php echo $row_RecWebInfo['webDesc']; ?>" size="40" />
</td>
</tr>
<tr>
<th width="60">电子邮件</th>
<td><input name="webEmail" type="text" id="webEmail" value="<?php echo $row_RecWebInfo['webEmail']; ?>" />
</td>
</tr>
<tr>
<th width="60">网站网址</th>
<td><input name="webUrl" type="text" id="webUrl" value="<?php echo $row_RecWebInfo['webUrl']; ?>" />
</td>
</tr>
</table>
<h2>管理信息</h2>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#F0F0F0">
<tr>
<th width="60">管理账号</th>
<td><input name="webUsername" type="text" id="webUsername" value="<?php echo $row_RecWebInfo['webUsername']; ?>" />
</td>
</tr>
<tr>
<th width="60">管理密码</th>
<td><input name="webPasswd" type="pass
word" id="webPasswd" value="<?php echo $row_RecWebInfo['webPasswd']; ?>" />
</td>
</tr>
</table>
<h2>网站简介</h2>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#F0F0F0">
<tr>
<th width="60">关于作者</th>
<td><textarea name="webAbout" cols="40" rows="5" id="webAbout"><?php echo $row_RecWebInfo['webAbout']; ?>