<!--<?php print <<<EOT
-->
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<style>
td {font-size: 9pt;line-height: 1.5;}
body {font-size: 9pt;line-height: 1.5;}
a:link { font-size: 9pt; color: #000000; text-decoration: none }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none }
a:hover {font-size: 9pt;color: red}
</style>
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" colspan="7"><b>网站留言</b></td>
  </tr>
  <tr>
    <td colspan="7" bgcolor="#FFFFFF">
<!--
EOT;
include ('resultspage.htm');
print <<<EOT
-->
    </td>
  </tr>
<FORM action="ng_gb.php?page=$page" method="POST" name="reviewsform">
<INPUT type="hidden" name="mode" value="update">
<INPUT type="hidden" name="sortby" value="$sortby">
<INPUT type="hidden" name="sortorder" value="$sortorder">

<!--
EOT;
if($guest_book != ""){
print <<<EOT
-->
<tr bgcolor="#F0F3F8" height="25">
<td width="40" align="center"><input type="checkbox" name="checkbox" value="Check All" onClick="CheckAll(this.form)"></td>
<td width="40" align="center">
<!--
EOT;
if($sortby == "id"){
if($sortorder == 1){
	$sortorder=0;
	$arrow = "<img src=images/uarrow.gif border='0' valign=absmiddle alt=排序方向>";
}else{
	$sortorder=1;
	$arrow = "<img src=images/darrow.gif border='0' valign=absmiddle alt=排序方向>";
}print <<<EOT
-->
$arrow
<!--
EOT;
}print <<<EOT
-->
<A href="ng_gb.php?sortby=id&sortorder=$sortorder&page=$page">ID</A></td>
<td width="80">
<!--
EOT;
if($sortby == "login"){
if($sortorder == 1){
	$sortorder=0;
	$arrow = "<img src=images/uarrow.gif border='0' valign=absmiddle alt=排序方向>";
}else{
	$sortorder=1;
	$arrow = "<img src=images/darrow.gif border='0' valign=absmiddle alt=排序方向>";
}print <<<EOT
-->
$arrow
<!--
EOT;
}print <<<EOT
-->
<A href="ng_gb.php?sortby=login&sortorder=$sortorder&page=$page">会员名</A></td>
<td width="120">
<!--
EOT;
if($sortby == "email"){
if($sortorder == 1){
	$sortorder=0;
	$arrow = "<img src=images/uarrow.gif border='0' valign=absmiddle alt=排序方向>";
}else{
	$sortorder=1;
	$arrow = "<img src=images/darrow.gif border='0' valign=absmiddle alt=排序方向>";
}print <<<EOT
-->
$arrow
<!--
EOT;
}print <<<EOT
-->
<A href="ng_gb.php?sortby=email&sortorder=$sortorder&page=$page">Email</A></td>
<td width="120">
<!--
EOT;
if($sortby == "content"){
if($sortorder == 1){
	$sortorder=0;
	$arrow = "<img src=images/uarrow.gif border='0' valign=absmiddle alt=排序方向>";
}else{
	$sortorder=1;
	$arrow = "<img src=images/darrow.gif border='0' valign=absmiddle alt=排序方向>";
}print <<<EOT
-->
$arrow
<!--
EOT;
}print <<<EOT
-->
<A href="ng_gb.php?sortby=content&sortorder=$sortorder&page=$page">留言</A></td>
<td width="120">
<!--
EOT;
if($sortby == "reply"){
if($sortorder == 1){
	$sortorder=0;
	$arrow = "<img src=images/uarrow.gif border='0' valign=absmiddle alt=排序方向>";
}else{
	$sortorder=1;
	$arrow = "<img src=images/darrow.gif border='0' valign=absmiddle alt=排序方向>";
}print <<<EOT
-->
$arrow
<!--
EOT;
}print <<<EOT
-->
<A href="ng_gb.php?sortby=reply&sortorder=$sortorder&page=$page">回复</A></td>
<td width="39" align="center" nowrap="nowrap">
<!--
EOT;
if($sortby == "ifshow"){
if($sortorder == 1){
	$sortorder=0;
	$arrow = "<img src=images/uarrow.gif border='0' valign=absmiddle alt=排序方向>";
}else{
	$sortorder=1;
	$arrow = "<img src=images/darrow.gif border='0' valign=absmiddle alt=排序方向>";
}print <<<EOT
-->
$arrow
<!--
EOT;
}print <<<EOT
-->
<A href="ng_gb.php?sortby=ifshow&sortorder=$sortorder&page=$page">审核</A></td>
</tr>
<!--
EOT;
foreach($guest_book as $gb){
if($bg == ""){
$bg = "1";
$bgcolor = "bgcolor = #FFFFFF";
}else{
$bg = "";
$bgcolor = "bgcolor = #F0F3F8";
}print <<<EOT
-->
<tr $bgcolor height="25">
<td align="center"><INPUT type="checkbox" name="to_delete[$gb[id]]" value="Y"></td>
<td align="center">$gb[id]</td>
<td><A href="user_modify.php?user=$gb[login]" target="_blank">$gb[login]</A></td>
<td>Email:$gb[email]<br />
来访IP:$gb[userip]<br />
联系电话:$gb[tel]<br />
MSN/QQ:$gb[msnqq]
</td>
<td><TEXTAREA cols="25" rows="5" name="gb_content[$gb[id]]">$gb[content]</TEXTAREA></td>
<td><TEXTAREA cols="25" rows="5" name="gb_reply[$gb[id]]">$gb[reply]</TEXTAREA></td>
<td align="center">
<!--
EOT;
if($gb[ifshow] == "Y"){
print <<<EOT
-->
<A href="ng_gb.php?mode=gb_audit&gb_audit=N&gb_id=$gb[id]&sortby=$sortby&sortorder=$orderby&page=$page"><img src="images/yes.gif" border="0" /></A>
<!--
EOT;
}else{print <<<EOT
-->
<A href="ng_gb.php?mode=gb_audit&gb_audit=Y&gb_id=$gb[id]&sortby=$sortby&sortorder=$orderby&page=$page"><img src="images/no.gif" border="0" /></A>
<!--
EOT;
}print <<<EOT
--></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
  <tr>
    <td colspan="7" bgcolor="#FFFFFF">
<!--
EOT;
include ('resultspage.htm');
print <<<EOT
-->
    </td>
  </tr>
  <tr>
    <td colspan="7" bgcolor="#F0F3F8">
	<input type='button' name='chkall' value='全 选' onclick='CheckAll(this.form)'>&nbsp;&nbsp;
	<INPUT type="submit" value="更 新">&nbsp;&nbsp;
	<INPUT type="button" value="删除选中" onclick="document.reviewsform.mode.value='delete';document.reviewsform.submit();">
    </td>
  </tr>
</FORM>
</table>
<!--
EOT;
}else{print <<<EOT
-->
<tr>
<td colspan="7" bgcolor="#FFFFFF">
没有相关记录
</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<script language=javascript>
<!--
function CheckAll(form){
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		e.checked == true ? e.checked = false : e.checked = true;
	}
}
-->
</script>
<!--
EOT;
?>-->