#!/usr/local/bin/perl
#------------------------------------------------------#
#                 本程序為Yuzi工作室提供 
#                Yuzi論壇3000 免費版 v3.47             
#                                                      
#                                                      
#                此程式由 台北抒情夜 中文化            
#                                                      
#    中文化版本 : v3.47b5                              
#    日期       : 2001.2.11                            
#    中文化作者 : 台北抒情夜站長 DC                    
#                                                      
#    台北抒情夜 http://www.ttt.idv.tw                  
#                                                      
#------------------------------------------------------#
require "setup.cgi";
######################
## 以下部分不需修改 ##
######################
open(TITLES,"$filepath/list/bbs");
@hastitles=<TITLES>;
close(TITLES);
for ($i=0; $i<8; $i++){
$hastitle=@hastitles[$i];
if($hastitle ne ""){
($rcomment)=split(/\t/,$hastitle);
$rcomment=~ s/\n//g;
open(TITLES,"$filepath/list/$rcomment");
$m=<TITLES>;
close(TITLES);
($rtitles,$rthistime,$rusername,$nr)=split(/\t/,$m);
$new="$new<table width=79% border=1 align=center bordercolor=#FFCC99 cellpadding=0 cellspacing=0 height=113><tr><td bgcolor=#FFF0C0 height=132 valign=middle><div align=center><br></div><table width=90% border=1 cellspacing=1 cellpadding=1 align=center bordercolor=#9999FF><tr bgcolor=#9999FF> <td width=100% height=5><div align=center><font color=#FFFFFF>$rtitles</font></div></td></tr><tr><td height=67 bgcolor=#FFFFFF>$nr</td></tr></table><table width=100% border=0><tr><td><div align=right><font color=#686CE0>發佈時間 $rthistime</font></div></td></tr></table></td></tr></table><br>";

}
}
print "Content-type: text/html\n\n";
print <<EOF;
<HTML><HEAD><TITLE>公告欄</TITLE>
<style type=text/css>
a:visited {  text-decoration: none}
td {  font-family: 宋體, serif; font-size: 9pt}
body {  font-family: 宋體,serif; font-size: 9pt}
</style>
<body bgcolor="#FFFFFF" background="$imagurl/bei.gif" leftmargin="0" topmargin="0">
<div id="Layer1" style="position:absolute; left:486px; top:82px; width:36px; height:36px; z-index:1"><img src="$imagurl/shopico.gif" width="47" height="42"></div>
<div id="Layer2" style="position:absolute; left:265px; top:91px; width:30px; height:16px; z-index:2"><img src="$imagurl/magical.gif" width="30" height="31"></div>
<div id="Layer5" style="position:absolute; left:334px; top:66px; width:47px; height:9px; z-index:5"><img src="$imagurl/bei3.gif" width="41" height="20"></div>
<div id="Layer3" style="position:absolute; left:552px; top:40px; width:28px; height:27px; z-index:6">　</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="38%" height="125" valign="top"><img src="$imagurl/bei1.gif" width="298" height="92"></td>
    <td width="22%" height="125" valign="bottom"><img src="$imagurl/gong.gif" width="188" height="98"></td>
    <td width="40%" height="125" valign="top"> 
      <div align="right"><a href=bbs.cgi?menu=fabiao><img src=$imagurl/fab.gif border=0></a></div>
    </td>
  </tr>
</table>
$new
</BODY></HTML>
EOF
######################### END OF SCRIPT #########################
