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

📄 2.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=\"imgarrow12\" title=\"展开/收缩\" onClick=\"ControlContent12();\" 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=\"imgarrow12\" title=\"展开/收缩\" onClick=\"ControlContent12();\" 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\n<!--\r\nfunction ControlContent12(){\r\n    if (contentid12.style.display == 'none'){\r\n\t    contentid12.style.display = '';\r\n\t\timgarrow12.src = '";
echo $jscontrolu;
echo "';\r\n\t}\r\n    else {\r\n\t    contentid12.style.display = 'none';\r\n\t\timgarrow12.src = '";
echo $jscontrold;
echo "';\r\n\t}\t\r\n\r\n}\r\n-->\r\n</script>\r\n";
echo "<s";
echo "cript>\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=(screen.availW";
echo "idth-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\r\n";
echo "<s";
echo "cript>\r\nfunction open_notify(NOTIFY_ID)\r\n{\r\n myleft=(screen.availWidth-500)/2;\r\n URL=\"/general/notify/show/read_notify.php?NOTIFY_ID=\"+NOTIFY_ID;\r\n window.open(URL,\"read_notify\",\"height=400,width=550,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=\"";
echo "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='../notify/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=\"contentid12\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"darkbord\">\r\n\t\t \r\n          ";
$CUR_DATE = date( "Y-m-d", time( ) );
$NOTIFY_COUNT = 0;
$query = "SELECT * from NOTIFY where (TO_ID='ALL_DEPT' or InStr(TO_ID,',{$LOGIN_DEPT_ID},')>0 or InStr(TO_ID,'{$LOGIN_DEPT_ID},')=1) and begin_date<='{$CUR_DATE}' and (end_date>='{$CUR_DATE}' or end_date is null) order by BEGIN_DATE desc,NOTIFY_ID desc";
$cursor = exequery( $connection, $query );
$i = 1;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$NOTIFY_COUNT;
	if ( 4 < $NOTIFY_COUNT )
	{
	}
	else
	{
		echo "<tr height=\"20\">\r\n            <td width=\"2%\">&nbsp;</td>\r\n            <td>";
		$NOTIFY_ID = $ROW['NOTIFY_ID'];
		$SUBJECT = $ROW['SUBJECT'];
		$READERS = $ROW['READERS'];
		$SUBJECT = str_replace( "<", "&lt", $SUBJECT );
		$SUBJECT = str_replace( ">", "&gt", $SUBJECT );
		$SUBJECT = stripslashes( $SUBJECT );
		$BEGIN_DATE = $ROW['BEGIN_DATE'];
		$BEGIN_DATE = strtok( $BEGIN_DATE, " " );
		echo "              <a href=\"javascript:open_notify('";
		echo $NOTIFY_ID;
		echo "');\">\r\n              ";
		echo substrgb( $SUBJECT, 66, "..." );
		echo "              </a>\r\n              ";
		if ( !find_id( $READERS, $LOGIN_USER_ID ) )
		{
			echo "<img src='/images/new.gif' height=11 width=28 align=absmiddle>";
		}
		echo "              ";
		echo "<s";
		echo "pan style=\"font-size:9px;color:#999999 \">\r\n              ";
		echo $BEGIN_DATE;
		echo "            </span></td>\r\n      <td align=\"right\">&nbsp;</td>\r\n  </tr>\r\n\t\t  <tr><td colspan=\"4\" bgcolor=\"";
		echo $tdbgcolor;
		echo "\" height=\"1\"></td></tr>\r\n";
		++$i;
	}
}
if ( $NOTIFY_COUNT == 0 )
{
	echo "<tr><td width=\"2%\">\r\n      </td>\r\n<td colspan=\"4\">暂无最新消息</td></tr>\r\n\t  <tr><td colspan=\"4\" bgcolor=\"";
	echo $tdbgcolor;
	echo "\" height=\"1\"></td></tr>\r\n";
}
echo "        </table>\r\n</div><br>\r\n\t\t";
?>

⌨️ 快捷键说明

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