⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 forumannounce.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
字号:
<?
require("bbsdata/config.php");
require("userdata/style.php");
$forumfile="bbsdata/forumdata.php";
if (file_exists($forumfile)) {
	$forumdata=file($forumfile);
	$count=count($forumdata);
	for($i=0; $i<$count; $i++) {
		$forumdetail=explode("|",$forumdata[$i]);
		if($forumdetail[3]==$forumid) break;
	}
}
print <<<EOT
<html>
<head>
<title>查看$forumdetail[1]的版务公告</title>
<style type="text/css">
<!--
p,input{font-size:9pt; color:333333; FONT-FAMILY: 宋体}
select{background-color: $forumcolorone;font-size:9pt; color:$titlecolor; FONT-FAMILY: 宋体}
TABLE{BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 2px }
td{BORDER-RIGHT: 1px; BORDER-TOP: 0px; FONT-SIZE: 9pt; color:#000000; font-family:宋体}
TD{word-break:break-all}
a {text-decoration:none; }
a:hover {color:$titlecolor;text-decoration: underline}
BODY {
FONT-SIZE: 9pt; 
FONT-FAMILY: 宋体
COLOR: #CCAAAA;
SCROLLBAR-SHADOW-COLOR: $titlecolor; 
SCROLLBAR-ARROW-COLOR:  #FFFFFF; 
SCROLLBAR-TRACK-COLOR: $backgroundcolor; 
SCROLLBAR-BASE-COLOR: $titlecolor; 
cursor: url(images/$style_path/liuxing.cur);
}
TEXTAREA {FONT-SIZE: 9pt; FONT-FAMILY: 宋体}
.menu {
FILTER: revealTrans(transition=23,duration=0.5) blendTrans(duration=0.5); VISIBILITY: hidden; POSITION: absolute;
height:20px; z-index:1; background-color: #FEFEFF; layer-background-color: #FEFEFF; border: 1px none #500000;
}
.title { color:$titlefontcolor }
.cau { color:$cautioncolor }
.bot {
  BORDER-BOTTOM: BORDER-BOTTOM: medium none; BORDER-LEFT: rgb(0,0,0) 1px solid; BORDER-RIGHT: rgb(0,0,0) 1px solid; BORDER-TOP: rgb(0,0,0) 1px solid}
.bot2 {  border: solid; border-width: 0px 1px 1px; border-color: black #000000 #000000}
.bot4 {  border: #000000; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
.bot3 {  border-color: #000000 #000000 black; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-left-width: 1px}-->
</style>
</head>
EOT;

if (empty($forumid)) {
	$status="未知的工作指示,别乱调用程序呀";
	headguide("您正处在<br>$bbs_title<br>的 MA 程式中",
"<a href=\"thread.php?forumid=$forumid\">$forum_name</a>",
"MA程式","no");
	print_err();
	require("footer.php");echo"$footertp";
	exit;
}
else {
	print_confirm();
	exit;
}

function print_err() {
global $status;
$title="发生错误";
$content="管理程式发生了错误,情况:<br>
<br>$status<br><ul>
<li><a href='javascript:history.back(1)'>返回前一页</a></li>
</ul>";
msg_box($title,$content);
}

function print_confirm() {
global $forumid,$forumdetail;
$title="$forumdetail[1] 版务公告";
$title="<b>$title</b>";
$forumdetail[11]=str_replace("\n","<br>",$forumdetail[11]);
$forumdetail[11]=str_replace("\r","",$forumdetail[11]);
$content="
<center><b>$forumdetail[10]</b></center><br><br>
$forumdetail[11]
<br><br>
<center>
<input type=button value='关闭窗口' onclick='javascript:window.close()'></center><br>";
msg_box($title,$content);
}
function msg_box($title,$content) {
global $titlecolor,$bordercolor,$subcolor,$backgroundcolor,$tablewidth,$style_path;
print <<<EOT
<table width=460 border=0 cellspacing=0 cellpadding=0 align=center bgcolor=$bordercolor>
 <tr>
 <td>
  <table width=100% border=0 cellspacing=1 cellpadding=3>
   <tr bgcolor=$titlecolor> 
    <td class=title bgcolor=$titlecolor>$title</td>
   </tr>
   <tr bgcolor=$backgroundcolor> 
    <td><br>$content</td>
   </tr>
   <tr align=left bgcolor=$subcolor> 
    <td bgcolor=$titlecolor height=22></td>
   </tr>
  </table>
 </td>
 </tr>
</table>
EOT;
}
?>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -