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

📄 1.php

📁 泛微协同办公系统标准版E-office V5.5的源代码内含泛微办公系统V5.5自动注册文件。
💻 PHP
字号:
<?php

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
$strlink = $_SERVER['PHP_SELF'];
if ( strpos( $strlink, "block_02.php" ) === false )
{
	$isimg = true;
}
if ( $isimg == true )
{
	$imgurl01 = "background=\"/theme/4/bg_mt_line_.gif\"";
	$imgurl02 = "background=\"/theme/1/newsbg.gif\"";
	$imgurl04 = "";
	$strimg = "<img src=\"/theme/1/gray_up_arrow.gif\" width=\"30\" height=\"22\" border=\"0\" id=\"imgarrow01\" title=\"展开/收缩\" onClick=\"ControlContent01();\" style=\"cursor:hand\">";
	$td04width = "30";
	$tdbgcolor = "#EBEBEB";
	$fontstyle = "a";
	$jscontrolu = "/theme/1/gray_up_arrow.gif";
	$jscontrold = "/theme/1/gray_down_arrow.gif";
}
else
{
	$imgurl01 = "background=\"/theme/1/darkheadleft.gif\"";
	$imgurl02 = "background=\"/theme/1/darkheadbg.gif\"";
	$imgurl04 = "/theme/1/darkheadbg.gif\"";
	$strimg = "<img src=\"/theme/1/black_up_arrow.gif\" width=\"19\" height=\"28\" border=\"0\" id=\"imgarrow01\" title=\"展开/收缩\" onClick=\"ControlContent01();\" style=\"cursor:hand\">";
	$td04width = "19";
	$tdbgcolor = "#ABABAB";
	$fontstyle = "b";
	$jscontrolu = "/theme/1/black_up_arrow.gif";
	$jscontrold = "/theme/1/black_down_arrow.gif";
}
echo "<s";
echo "cript>\r\nfunction ControlContent01(){\r\n    if (contentid01.style.display == 'none'){\r\n\t    contentid01.style.display = '';\r\n\t\timgarrow01.src = '";
echo $jscontrolu;
echo "';\r\n\t}\r\n    else {\r\n\t    contentid01.style.display = 'none';\r\n\t\timgarrow01.src = '";
echo $jscontrold;
echo "';\r\n\t}\t\r\n\r\n}\r\n\r\nfunction open_news(NEWS_ID)\r\n{\r\n URL=\"/general/news/show/read_news.php?NEWS_ID=\"+NEWS_ID;\r\n myleft=(screen.availWidth-500)/2;\r\n window.open(URL,\"read_news\",\"height=400,width=750,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=\"+myleft+\",resizable=yes\");\r\n}\r\n\r\nfunction re_news(NEWS_ID)\r\n{\r\n URL=\"/general/news/show/re_news.php?NEWS_ID=\"+NEWS_ID;\r\n myleft=(scree";
echo "n.availWidth-500)/2;\r\n window.open(URL,\"read_news\",\"height=400,width=750,status=1,toolbar=no,menubar=no,location=no,scrollbars=yes,top=150,left=\"+myleft+\",resizable=yes\");\r\n}\r\n</script>\r\n\r\n<table width=\"100%\"  border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"newsbg\" align=\"center\">\r\n   <tr>\r\n     <td width=\"88\" ";
echo $imgurl01;
echo ">\r\n\t <table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n       <tr>\r\n         <td width=\"15%\">&nbsp;</td>\r\n         <td height=\"18\"><a href='../news/show/' target='main' class=\"";
echo $fontstyle;
echo "\">新闻中心</a></td>\r\n        </tr>\r\n     </table>\r\n\t </td>\r\n     <td ";
echo $imgurl02;
echo ">&nbsp;</td>\r\n     <td width=\"";
echo $td04width;
echo "\" align=\"right\" ";
echo $imgurl04;
echo ">";
echo $strimg;
echo "</td>\r\n   </tr>\r\n</table>\r\n<div class=\"small\">\r\n<table width=\"100%\" id=\"contentid01\"   border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"darkbord\">\r\n\t<tr><td colspan=\"4\" bgcolor=\"";
echo $tdbgcolor;
echo "\" height=\"1\"></td></tr>\r\n";
$connection = openconnection( );
$query = "SELECT * from NEWS WHERE PUBLIC =0 order by PUTIP desc, NEWS_TIME desc, NEWS_ID desc ";
$cursor = exequery( $connection, $query );
$NEWS_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$NEWS_COUNT;
	if ( 4 < $NEWS_COUNT )
	{
	}
	else
	{
		echo "\t<tr height=\"20\">\r\n            <td width=\"2%\" colspan=\"2\">&nbsp;</td>\r\n            <td>\r\n";
		$NEWS_ID = $ROW['NEWS_ID'];
		$SUBJECT = $ROW['SUBJECT'];
		$CONTENT = $ROW['CONTENT'];
		$NEWS_TIME = $ROW['NEWS_TIME'];
		$NEWS_TIME = strtok( $NEWS_TIME, " " );
		echo " <a href=\"javascript:open_news('";
		echo $NEWS_ID;
		echo "');\">";
		echo substrgb( $SUBJECT, 66, "..." );
		echo "</a> ";
		echo "<s";
		echo "pan style=\"font-size:9px;color:#999999 \">";
		echo $NEWS_TIME;
		echo "</span></td>\r\n<td width=\"5%\" align=\"right\"><a href=\"javascript:re_news('";
		echo $NEWS_ID;
		echo "');\" style=\"TEXT-DECORATION:underline\">评论</a></td>\r\n </tr>\r\n<tr><td colspan=\"4\" bgcolor=\"";
		echo $tdbgcolor;
		echo "\" height=\"1\"></td></tr>\r\n";
		++$i;
		if ( 5 < $i )
		{
			break;
		}
	}
}
if ( $NEWS_COUNT == 0 )
{
	echo "<tr><td width=\"2%\">&nbsp;</td>\r\n  <td colspan=\"3\">暂无最新消息</td>\r\n</tr>\r\n\t  <tr><td colspan=\"4\" bgcolor=\"";
	echo $tdbgcolor;
	echo "\" height=\"1\"></td></tr>\r\n";
}
echo "</table>\r\n</div><br>";
?>

⌨️ 快捷键说明

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