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

📄 content_-1.php

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

include_once( "inc/auth.php" );
include_once( "inc/utility_all.php" );
include_once( "inc/utility.php" );
include_once( "general/new_mytable/index_function.php" );
include_once( "inc/function_picture.php" );
ob_end_clean( );
$paraarray = getindexpara( $blockid );
$is_show_date = $paraarray['is_show_date'];
$is_show_creator = $paraarray['is_show_creator'];
$block_row = $paraarray['block_row'];
$subject_length = $paraarray['subject_length'];
$common_id = $paraarray['common_id'];
$common_str = $paraarray['common_str'];
$block_effect = $paraarray['block_effect'];
$sql = "SELECT * FROM news WHERE PUBLIC=1";
if ( 0 < $common_id )
{
	$sql .= " AND NEWS_TYPE_ID='".$common_id."' ";
}
if ( $common_id == -1 )
{
	$sql .= " AND NEWS_TYPE_ID= 0 ";
}
if ( 0 < $block_effect )
{
	$sql .= " AND (ATTACHMENT_ID <>'' AND ATTACHMENT_NAME <>'') ";
}
$sql .= " ORDER BY NEWS_ID DESC LIMIT 0,{$block_row}";
$rs = exequery( $connection, $sql );
$newscnt = 0;
while ( $rows = mysql_fetch_array( $rs ) )
{
	++$newscnt;
	$news_id = $rows['NEWS_ID'];
	$news_title = $rows['SUBJECT'];
	$news_content = $rows['CONTENT'];
	$news_content = substrgb( strip_tags( $news_content ), 80, "..." );
	$news_provider = $rows['PROVIDER'];
	$datetime = $rows['NEWS_TIME'];
	$news_attachment_id = $rows['ATTACHMENT_ID'];
	$news_attachment_name = $rows['ATTACHMENT_NAME'];
	$username = getusername( $news_provider );
	if ( $block_effect == 0 )
	{
		echo "\r\n\t\t<div class=\"linkdiv\"><IMG SRC=\"/images/littlegif/news_bullet.gif\" WIDTH=\"15\" HEIGHT=\"10\" BORDER=\"0\" ALT=\"\"><a href=\"#\"  onclick=\"openWindows('/general/news/show/read_news.php?NEWS_ID=";
		echo $news_id;
		echo "')\">";
		echo substrgb( $news_title, $subject_length, "..." );
		echo "</a> \r\n\t\t";
		if ( $is_show_date )
		{
			echo "<span class='linkgray10'>(".$datetime.")</span>";
		}
		echo "\r\n\t\t";
		if ( $is_show_creator )
		{
			echo "<span class='linkgray'>".$username."</span>";
		}
		echo "\r\n\t\t</div>\r\n\t\t";
	}
	if ( $block_effect == 1 )
	{
		$source_src = ROOT_PATH."/attachment/".$news_attachment_id."/".$news_attachment_name;
		$filename = createjpeg( $source_src, $news_attachment_name, 85, 70 );
		echo "\t\t<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" width=\"100%\">\r\n\t\t\t<tr>\r\n\t\t\t\t<td rowspan=\"3\" width=\"90\">\r\n\t\t\t\t\t<a href=\"#\"  onclick=\"openWindows('/general/news/show/read_news.php?NEWS_ID=";
		echo $news_id;
		echo "')\"><img src=\"";
		echo $filename;
		echo "\" title=\"";
		echo $news_title;
		echo "\" style=\"border:1px solid #6699CC\"></a>\r\n\t\t\t\t</td>\r\n\t\t\t\t<td valign=\"bottom\">\r\n\t\t\t\t\t<a href=\"#\"  onclick=\"openWindows('/general/news/show/read_news.php?NEWS_ID=";
		echo $news_id;
		echo "')\">";
		echo substrgb( $news_title, $subject_length, "..." );
		echo "</a> \r\n\t\t\t\t\t";
		if ( $is_show_date )
		{
			echo "<span class='linkgray10'>(".$datetime.")</span>";
		}
		echo "\r\n\t\t\t\t\t";
		if ( $is_show_creator )
		{
			echo "<span class='linkgray'>".$username."</span>";
		}
		echo "\t\t\t\t\t<hr noshade=\"false\" style=\"height:1px;\" color=\"#cccccc\">\r\n\t\t\t\t</td>\r\n\t\t\t<tr>\r\n\t\t\t\t<td valign=\"top\">\r\n\t\t\t\t";
		echo $news_content;
		echo "\t\t\t\t</td>\r\n\t\t\t</tr>\r\n\r\n\t\t</table>\r\n\t\t";
	}
	if ( $block_effect == 2 )
	{
		if ( $newscnt == 1 )
		{
			$firstnewsid = $news_id;
		}
		$source_src = ROOT_PATH."/attachment/".$news_attachment_id."/".$news_attachment_name;
		$filename = createjpeg( $source_src, $news_attachment_name, 0, 50 );
		$htmlbottom .= "<div style=\"float:left;cursor:hand\" onclick=\"loadingNewsPic(".$news_id.",".$blockid.")\"><img src=\"".$filename."\" style=\"border:1px solid #6699CC\" title=\"".$news_title."\"></div>";
	}
}
if ( $block_effect == 2 )
{
	$htmltop = "<div style=\"padding:2px;width:100%;height:20px;\" id=\"largeDivPic_".$blockid."\"></div><div style=\"padding:4px;width:100%;\" id=\"largeDivCon_".$blockid."\"></div>";
	echo $htmltop.$htmlbottom;
}
if ( $newscnt == 0 )
{
	echo $nothingdata;
}
echo "<div align=\"right\" style=\"padding:2px;font-size:12px;\"><a href=\"/general/news/show/\">更多</a></div>\r\n";
?>

⌨️ 快捷键说明

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