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

📄 16.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
$strlink2 = $_SERVER['PHP_SELF'];
if ( strpos( $strlink2, "block_02.php" ) === false )
{
	$isimg2 = true;
}
if ( $isimg2 == true )
{
	$imgurl012 = "background=\"/theme/4/bg_mt_line_.gif\"";
	$imgurl022 = "background=\"/theme/1/newsbg.gif\"";
	$imgurl042 = "";
	$strimg2 = "<img src=\"/theme/1/gray_up_arrow.gif\" width=\"30\" height=\"22\" border=\"0\" id=\"imgarrow012\" title=\"展开/收缩\" onClick=\"ControlContent012();\" style=\"cursor:hand\">";
	$td04width2 = "30";
	$tdbgcolor2 = "#EBEBEB";
	$fontstyle2 = "a";
	$jscontrolu2 = "/theme/1/gray_up_arrow.gif";
	$jscontrold2 = "/theme/1/gray_down_arrow.gif";
}
else
{
	$imgurl012 = "background=\"/theme/1/darkheadleft.gif\"";
	$imgurl022 = "background=\"/theme/1/darkheadbg.gif\"";
	$imgurl042 = "/theme/1/darkheadbg.gif\"";
	$strimg2 = "<img src=\"/theme/1/black_up_arrow.gif\" width=\"19\" height=\"28\" border=\"0\" id=\"imgarrow012\" title=\"展开/收缩\" onClick=\"ControlContent012();\" style=\"cursor:hand\">";
	$td04width2 = "19";
	$tdbgcolor2 = "#ABABAB";
	$fontstyle2 = "b";
	$jscontrolu2 = "/theme/1/black_up_arrow.gif";
	$jscontrold2 = "/theme/1/black_down_arrow.gif";
}
echo "<s";
echo "cript>\r\nfunction ControlContent012(){\r\n    if (contentid012.style.display == 'none'){\r\n\t    contentid012.style.display = '';\r\n\t\timgarrow012.src = '";
echo $jscontrolu2;
echo "';\r\n\t}\r\n    else {\r\n\t    contentid012.style.display = 'none';\r\n\t\timgarrow012.src = '";
echo $jscontrold2;
echo "';\r\n\t}\r\n}\r\n\r\nfunction showUser(userid)\r\n{\r\n\tURL=\"../info/user/user.php?USER_ID=\" + userid;\r\n\tmyleft=(screen.availWidth-500)/2;\r\n\twindow.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   ";
echo "  <td width=\"88\" ";
echo $imgurl012;
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='../cooperation/' target='main' class=\"";
echo $fontstyle2;
echo "\">我的协作</a></td>\r\n        </tr>\r\n     </table>\r\n\t </td>\r\n     <td ";
echo $imgurl022;
echo ">&nbsp;</td>\r\n     <td width=\"";
echo $td04width2;
echo "\" align=\"right\" ";
echo $imgurl042;
echo ">";
echo $strimg2;
echo "</td>\r\n   </tr>\r\n</table>\r\n<div class=\"small\">\r\n<table width=\"100%\" id=\"contentid012\"   border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\" class=\"darkbord\">\r\n\t<tr><td colspan=\"4\" bgcolor=\"";
echo $tdbgcolor2;
echo "\" height=\"1\"></td></tr>\r\n";
$connection = openconnection( );
$query = "SELECT DISTINCT C.ID,C.BOARD,C.TITLE,C.CREATE_DATE,C.END_DATE,C.FLAGOR,";
$query .= " C.ISNEW,U.USER_NAME FROM CO_TOPIC C,TOPIC_USER T,";
$query .= " USER U,CO_BOARD B WHERE C.ID = T.TOPIC ";
$query .= " AND T.USER_ID = '".$_SESSION['LOGIN_USER_ID']."' AND C.CREATOR = U.USER_ID AND ";
$query .= "  C.ABLE <> 0 AND C.BOARD = B.ID";
$query .= "  AND B.ABLE <>0  ORDER BY C.ID DESC";
$cursor = exequery( $connection, $query );
$BOARD_COUNT = 0;
while ( $ROW = mysql_fetch_array( $cursor ) )
{
	++$BOARD_COUNT;
	if ( 5 < $BOARD_COUNT )
	{
	}
	else
	{
		$id = $ROW['ID'];
		$title = $ROW['TITLE'];
		$creator = $ROW['CREATOR'];
		$isnew = $ROW['ISNEW'];
		echo "\t<tr height=\"20\">\r\n\t\t<td width=\"2%\" colspan=\"2\">&nbsp;</td>\r\n\t\t<td>\r\n";
		$sql = "select USER_NAME from user where USER_ID='".$creator."'";
		$cursor2 = exequery( $connection, $sql );
		if ( $row2 = mysql_fetch_row( $cursor2 ) )
		{
			$user_name = $row2[0];
		}
		echo " <a href='../cooperation/?id=";
		echo $id;
		echo "&cooperationtype=index' target='main'>";
		echo substrgb( $title, 50, "..." );
		echo "</a></td>\r\n<td align=\"right\"><a href='#' onclick=\"javascript:showUser('";
		echo $creator;
		echo "');\">";
		echo $user_name;
		echo "</a></td>\r\n </tr>\r\n<tr><td colspan=\"4\" bgcolor=\"";
		echo $tdbgcolor2;
		echo "\" height=\"1\"></td></tr>\r\n";
	}
}
if ( $BOARD_COUNT == 0 )
{
	echo "<tr>\r\n\t<td width=\"2%\">&nbsp;</td>\r\n\t<td colspan=\"3\">暂无记录</td>\r\n</tr>\r\n<tr><td colspan=\"4\" bgcolor=\"";
	echo $tdbgcolor2;
	echo "\" height=\"1\"></td></tr>\r\n";
}
echo "</table>\r\n</div>";
?>

⌨️ 快捷键说明

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