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

📄 index.php

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

header( "Expires: Mon, 26 Jul 1997 05:00:00 GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
include_once( "inc/auth.php" );
require_once( "inc/xml_parse.inc.php" );
echo "<html>\r\n<head>\r\n<title>资讯订阅</title>\r\n<LINK href=\"/theme/1/style.css\" type=text/css rel=stylesheet>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n";
echo "<S";
echo "CRIPT src=\"/inc/drag.js\"></SCRIPT>\r\n";
echo "<s";
echo "cript src=\"/inc/ajax_about.js\"></script>\r\n\r\n";
echo "<S";
echo "CRIPT language=JavaScript>\r\nwindow.setTimeout('this.location.reload();',600000);\r\n\r\n\r\n\r\n\r\nfunction showContent(id){\r\n    var closediplayId  = document.getElementById(\"closeRssDiv\"+id);\r\n    var diplayId = document.getElementById(\"rssDiv\"+id);\r\n\tvar imgId    = document.getElementById(\"img\"+id);\r\n    if (diplayId.style.display == 'none'){\r\n\t    diplayId.style.display = '';\r\n\t\t//imgId.src = '/images/";
echo "littlegif/cdown.gif';\r\n\t\timgId.title = '隐藏信息';\r\n\t\timgId.style.filter = \"\";\r\n\t\t\r\n\t\t\r\n\t\tclosediplayId.style.display = 'none';\r\n\t}\r\n    else {\r\n\t    diplayId.style.display = 'none';\r\n\t\t//imgId.src = '/images/littlegif/cup.gif';\r\n\t\timgId.title = '显示信息';\r\n\t\tclosediplayId.style.display = '';\r\n\t\timgId.style.filter = \"gray()\";\r\n\t\t\r\n\t}\t\r\n\r\n}\r\n\r\nfunction showHiddenAll(n){\r\n\tvar divOBid = new Array(4";
echo "0);\r\n";
$sql = " \r\n\t       SELECT RES_ID FROM user_resource \r\n\t\t       WHERE USER_ID='".$_SESSION['LOGIN_USER_ID']."'";
$rs = exequery( $connection, $sql );
$i = 0;
while ( $row = mysql_fetch_array( $rs ) )
{
	++$i;
	echo "divOBid[{$i}] = ".$row['RES_ID'].";\n";
}
echo "for (i=1;i<divOBid.length;i++){\r\n\t   if (divOBid[i] != null){\r\n\t\t   var closediplayId  = document.getElementById(\"closeRssDiv\"+divOBid[i]);\r\n\t\t\tvar diplayId = document.getElementById(\"rssDiv\"+divOBid[i]);\r\n\t\t\tvar imgId    = document.getElementById(\"img\"+divOBid[i]);\r\n\t\t\tif (n == 1){\r\n\t\t\t\tdiplayId.style.display = '';\r\n\t\t\t\timgId.title = '隐藏信息';\r\n\t\t\t\timgId.style.filter = \"\";\r\n\t\t\t\tclosediplayId.sty";
echo "le.display = 'none';\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tdiplayId.style.display = 'none';\r\n\t\t\t\timgId.title = '显示信息';\r\n\t\t\t\tclosediplayId.style.display = '';\r\n\t\t\t\timgId.style.filter = \"gray()\";\r\n\t\t\t\t\r\n\t\t\t}\t\r\n\r\n\t   \r\n\t   }\r\n    }\r\n}\r\n\r\n\r\n\r\n\r\n\r\n</SCRIPT>\r\n\r\n\r\n</head>\r\n\r\n<BODY class=timebar leftMargin=5 topMargin=5>\r\n\r\n";
$sql = " \r\n\t       SELECT COUNT(RES_ID) AS cnt FROM user_resource \r\n\t\t       WHERE USER_ID='".$_SESSION['LOGIN_USER_ID']."'\r\n\t\t\t   ";
$rs = exequery( $connection, $sql );
$row = mysql_fetch_array( $rs );
$cnt = $row['cnt'];
echo "<table border=\"0\" width=\"100%\" cellspacing=\"1\" cellpadding=\"0\">\r\n  <tr class=\"tablehead1\">\r\n    <td><img src=\"/images/notify_new.gif\"  align=\"absmiddle\"> 资讯订阅</td>\r\n  </tr>\r\n  <tr class=\"tablehead2\">\r\n    <td>";
if ( 0 < $cnt )
{
	echo "<BUTTON class=btn onclick=\"showHiddenAll(0)\"><table><tr valign=middle ><td><img src=\"/images/littlegif/b_u.gif\" align=\"center\"></td> <td>";
	echo "<s";
	echo "pan id=\"showallid\">隐藏全部</span></td></tr></table></BUTTON> <BUTTON class=btn onclick=\"showHiddenAll(1)\"><table><tr valign=middle ><td><img src=\"/images/littlegif/b_u.gif\" align=\"center\"></td> <td>";
	echo "<s";
	echo "pan id=\"showallid\">显示全部</span></td></tr></table></BUTTON>";
}
echo "  </td>\r\n  </tr>\r\n</table>\r\n<br>\r\n";
if ( $cnt == 0 )
{
	message( "", "您尚未设置资讯订阅!" );
}
echo "\r\n\r\n<TABLE height=\"100%\" cellSpacing=0 cellPadding=1 width=\"100%\" border=0>\r\n  <TBODY>\r\n    <TR>\r\n      <TD id=col_l vAlign=top width=\"50%\">\r\n\t  ";
$sql = " \r\n\t       SELECT * FROM user_resource \r\n\t\t       WHERE USER_ID='".$_SESSION['LOGIN_USER_ID']."' \r\n\t\t\t      AND RES_ORDER <> 0 \r\n\t\t\t\t  ORDER BY RES_ORDER ASC,RES_ID DESC LIMIT 0,40\r\n\t\t\t\t  ";
$rs = exequery( $connection, $sql );
$cnt_left = 0;
while ( $row = mysql_fetch_array( $rs ) )
{
	++$cnt_left;
	$res_id = $row['RES_ID'];
	$res_title = $row['RES_TITLE'];
	$res_rss_url = $row['RES_RSS_URL'];
	echo "\t  \r\n\t  \r\n\t  <div id=module_";
	echo $res_id;
	echo " style=\"PADDING-BOTTOM: 10px; POSITION: relative\">\r\n        <table  cellspacing=1 cellpadding=3 width=\"100%\" border=0>\r\n          <tbody>\r\n            <tr style=\"BACKGROUND: #D3E5FA; color: #000000;  background-image: url('/theme/1/headerbg.gif');height: 22px; font-weight: bold;\">\r\n              <td width=\"80%\" align=\"left\" valign=\"middle\" class=TableHeader id=module_";
	echo $res_id;
	echo "_head><img src=\"/images/littlegif/news_bullet.gif\" align=\"middle\"> ";
	echo $res_title;
	echo "</td>\r\n              <td  align=right id=module_";
	echo $res_id;
	echo "_more><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n                <tr>\r\n                  <td align=\"right\"><img src=\"/images/littlegif/from.gif\" title=\"重新获取信息\" onClick=\"createhtml('more_limit.php?res_id=";
	echo $res_id;
	echo "',document.getElementById('rssDiv";
	echo $res_id;
	echo "'));\" style=\"cursor:hand\"></td>\r\n                  <td width=\"20\" align=\"right\"><img id=\"img";
	echo $res_id;
	echo "\" src=\"/images/littlegif/listshow.gif\" onClick=\"showContent(";
	echo $res_id;
	echo ")\" style=\"cursor:hand;\" title=\"隐藏信息\"></td>\r\n                  <td width=\"30\" align=\"right\"><a href=\"list.php?res_id=";
	echo $res_id;
	echo "\">更多</a></td>\r\n                </tr>\r\n              </table></td>\r\n            </tr>\r\n            <tr class=\"Tableline1\">\r\n              <td colspan=2 height=20><div id=\"rssDiv";
	echo $res_id;
	echo "\"></div>\r\n\t\t\t  ";
	echo "<s";
	echo "cript>\r\n\t\t\t  var curObject = document.getElementById(\"rssDiv";
	echo $res_id;
	echo "\");\r\n\t\t\t  createhtml(\"more_limit.php?res_id=";
	echo $res_id;
	echo "\",curObject);\r\n\t\t\t  </script>\r\n\t\t\t  <div id=\"closeRssDiv";
	echo $res_id;
	echo "\" style=\"display:none\">\r\n\t\t\t  <table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\">\r\n\t\t\t    <tr>\r\n\t\t\t\t   <td align=\"center\">\r\n\t\t\t\t   ";
	echo "<s";
	echo "pan style=\"color:#999999;\" >信息已隐藏</span>\r\n\t\t\t\t   </td>\r\n\t\t\t\t</tr>\r\n\t\t\t  </table>\r\n\t\t\t  </div>\r\n\t\t\t  \r\n\t\t\t  \r\n           </td>\r\n            </tr>\r\n          </tbody>\r\n        </table>\r\n      </div>\r\n\t  \r\n\t  ";
}
echo "\t  \r\n\t  \r\n      <DIV></DIV></TD>\r\n      <TD width=10></TD>\r\n      <TD id=col_r vAlign=top align=middle>\r\n\t  \r\n\t  ";
$sql = " \r\n\t       SELECT * FROM user_resource \r\n\t\t       WHERE USER_ID='".$_SESSION['LOGIN_USER_ID']."' \r\n\t\t\t      AND RES_ORDER2 <> 0 \r\n\t\t\t\t  ORDER BY RES_ORDER2 ASC,RES_ID DESC LIMIT 0,40\r\n\t\t\t\t  ";
$rs = exequery( $connection, $sql );
$cnt_right = 0;
while ( $row = mysql_fetch_array( $rs ) )
{
	++$cnt_right;
	$res_id = $row['RES_ID'];
	$res_title = $row['RES_TITLE'];
	$res_rss_url = $row['RES_RSS_URL'];
	echo "\t  \r\n\r\n          <DIV id=module_";
	echo $res_id;
	echo " style=\"PADDING-BOTTOM: 10px; POSITION: relative\">\r\n            <TABLE  cellSpacing=1 cellPadding=3 width=\"100%\" border=0>\r\n              <TBODY>\r\n                <TR style=\"BACKGROUND: #D3E5FA; color: #000000;  background-image: url('/theme/1/headerbg.gif');height: 22px; font-weight: bold;\">\r\n                  <TD width=\"80%\" align=\"left\" class=TableHeader id=module_";
	echo $res_id;
	echo "_head><img src=\"/images/littlegif/news_bullet.gif\" align=\"middle\"> ";
	echo $res_title;
	echo "</TD>\r\n                  <TD align=right noWrap class=TableHeader2 id=module_";
	echo $res_id;
	echo "_more><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n                    <tr>\r\n                      <td align=\"right\"><img src=\"/images/littlegif/from.gif\" title=\"重新获取信息\" onClick=\"createhtml('more_limit.php?res_id=";
	echo $res_id;
	echo "',document.getElementById('rssDiv";
	echo $res_id;
	echo "'));\" style=\"cursor:hand\"></td>\r\n                      <td width=\"20\" align=\"right\"><img id=\"img";
	echo $res_id;
	echo "\" src=\"/images/littlegif/listshow.gif\" onClick=\"showContent(";
	echo $res_id;
	echo ")\" style=\"cursor:hand;\" title=\"隐藏信息\"></td>\r\n                      <td width=\"30\" align=\"right\"><a href=\"list.php?res_id=";
	echo $res_id;
	echo "\">更多</a></td>\r\n                    </tr>\r\n                  </table></TD>\r\n                </TR>\r\n                <TR \r\n        class=\"Tableline1\">\r\n                  <TD colSpan=2 height=20>\r\n\t\t\t\t <div id=\"rssDiv";
	echo $res_id;
	echo "\"></div>\r\n\t\t\t  ";
	echo "<s";
	echo "cript>\r\n\t\t\t  var curObject = document.getElementById(\"rssDiv";
	echo $res_id;
	echo "\");\r\n\t\t\t  createhtml(\"more_limit.php?res_id=";
	echo $res_id;
	echo "\",curObject);\r\n\t\t\t  </script> \r\n\t\t\t  \t\t\t  <div id=\"closeRssDiv";
	echo $res_id;
	echo "\" style=\"display:none\">\r\n\t\t\t  <table width=\"100%\" cellspacing=\"1\" cellpadding=\"2\">\r\n\t\t\t    <tr>\r\n\t\t\t\t   <td align=\"center\">\r\n\t\t\t\t   ";
	echo "<s";
	echo "pan style=\"color:#999999;\" >信息已隐藏</span>\r\n\t\t\t\t   </td>\r\n\t\t\t\t</tr>\r\n\t\t\t  </table>\r\n\t\t\t  </div>\r\n\t\t\t\t  \r\n\t\t\t\t  </TD>\r\n                </TR>\r\n              </TBODY>\r\n            </TABLE>\r\n          </DIV>\r\n\t\t  ";
}
echo "          <DIV></DIV></TD>\r\n    </TR>\r\n  </TBODY>\r\n</TABLE>\r\n\r\n\r\n";
echo "<S";
echo "CRIPT>\r\n<!--\r\n_upc();\r\n//-->\r\n\r\n\r\n\r\n\r\n</SCRIPT>\r\n\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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