<!--<?php print <<<EOT
-->
<table width="980" border="0" align="center" bgcolor="#FFFFFF" cellspacing="1" cellpadding="0">
  <tbody>
  <tr>
    <td width="220" valign="top">
<a href="http://www.tlfjw.com"><img src="img/220.gif" width="220" height="56" border="0" /></a>
<!--
EOT;
$listname = "拜佛常识";
$txtsou = "where $sql_tbl[newsletter].avail = 'Y'";

$rnd = rand();
$txtorderby = "ORDER BY RAND(NOW()+$rnd)";

$intjilu = 5;
include ('topnews.htm');
print <<<EOT
-->
    </td>
    <td width="760" valign="top"> 
<!--
EOT;
if($action == "addmsg"){
print <<<EOT
-->
<table width="760" border="0" class="biaoge" cellspacing="0" cellpadding="0" background="img/wh19.jpg">
  <tbody>
  <tr>
    <td class="biaoge_biaoti">操作成功</td>
  </tr>
  <tr>
    <td class="biaoge_td" height="60" align="center">操作成功<br /><br />
<meta http-equiv="refresh" content="2; url=help.php?action=contactus;"> 
<a href='javascript:history.back()'>如果您的浏览器没有自动跳转，请点击这里</a> </td>
  </tr>
  </tbody>
</table>
<!--
EOT;
}elseif($action == "msgerror"){
print <<<EOT
-->
<table width="760" border="0" class="biaoge" cellspacing="0" cellpadding="0" background="img/wh19.jpg">
  <tbody>
  <tr>
    <td class="biaoge_biaoti">操作失败</td>
  </tr>
  <tr>
    <td class="biaoge_td" height="60" align="center">操作失败，请正确输入<br /><br />
<meta http-equiv="refresh" content="2; url=javascript:window.history.go(-1);"> 
<a href='javascript:history.back()'>如果您的浏览器没有自动跳转，请点击这里</a></td>
  </tr>
  </tbody>
</table>
<!--
EOT;
}elseif($action == "contactus"){
if($guest_book){
print <<<EOT
-->
<table width="760" border="0" class="biaoge" cellspacing="0" cellpadding="0" background="img/wh19.jpg">
  <tbody>
  <tr>
    <td class="biaoge_biaoti">最新留言</td>
  </tr>
<!--
EOT;
foreach($guest_book as $gb){
$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
$gb[systime] = get_date($gb[systime]);
if($gb[reply]){
print <<<EOT
-->
  <tr onMouseOver="javascript:this.bgColor='#FFFFCC'" onmouseout="javascript:this.bgColor='$bgcolor'" bgcolor="$bgcolor">
    <td class="biaoge_td" style="padding-left:20px; line-height:25px;">问题：$gb[content]<br />提问人:$gb[login] 提问时间:$gb[systime]<br />
回复：$gb[reply]</td>
  </tr>
<!--
EOT;
}}print <<<EOT
-->
  <tr>
    <td height="25" bgcolor="#EFEFEF">
<!--
EOT;
include ('resultspage.htm');
print <<<EOT
-->
    </td>
  </tr>
  </tbody>
</table>
<!--
EOT;
}print <<<EOT
-->
<table width="760" border="0" class="biaoge" cellspacing="0" cellpadding="0" background="img/wh19.jpg" style="margin-top:5px;">
<tbody>
<form name="addmsgform" method="post" action="help.php?action=addmsg" onSubmit="return chkmsg(this)">
<input name="action" type="hidden" id="action" value="addmsg">
  <tr>
    <td class="biaoge_biaoti" colspan="2" align="center">给我留言</td>
  </tr>
  <tr> 
    <td class="biaoge_tdright" width="100">姓 名：</td>
    <td class="biaoge_td" width="658"><input name="username" type="text" id="username" value="$login"></td>
  </tr>
  <tr> 
    <td class="biaoge_tdright">Email：</td>
    <td class="biaoge_td"><input name="email" type="text" id="email" size="38"></td>
  </tr>
  <tr> 
    <td class="biaoge_tdright">MSN/QQ：</td>
    <td class="biaoge_td"><input name="msnqq" type="text" id="msnqq" size="38"></td>
  </tr>
  <tr> 
    <td class="biaoge_tdright">电 话：</td>
    <td class="biaoge_td"><input name="tel" type="text" id="tel" size="38"></td>
  </tr>
  <tr> 
    <td class="biaoge_tdright">内 容：</td>
    <td class="biaoge_td"><textarea name="content" cols="50" rows="9" id="content"></textarea></td>
  </tr>
  <tr> 
    <td align="right"></td>
    <td height="30"><input type="submit" name="Submit" value="发表留言"></td>
  </tr>
</form>
</tbody>
</table>
<!--
EOT;
}print <<<EOT
-->
    </td>
  </tr>
  </tbody>
</table>
<!--
EOT;
?>-->