www.gusucode.com > Tatter Tools 0.961 SE GB2312 简体中文版 > upload/admin/reader_center_add.php

    <?
	include("../inc_global.php");
	include("../inc_function.php");
	check_authority();

	if ($mode == "scrap") {
		put_query("update t3_".$dbid."_rss_item set is_scrap = '$flag' where no = '$num'");
		exit;
	}

	if ($p_rssv_type == "2") $limit = 20; else $limit = 10;

	switch ($action) {
		case "2" : $start = $tw1; $end = $t2; break;
		case "3" : $start = $lw1; $end = $lw2; break;
		case "4" : $start = 0; $end = $lw1; break;
	}

	$add_query = stripslashes(str_trans_rev($add_query));

	$sql = "
		select
			no, title, link, description,
			subject, creator, date, regdate, is_read, is_scrap
		from
			t3_".$dbid."_rss_item
		where
			regdate between $start and $end
		$add_query
		order by
			regdate desc
		limit $limit, 1000
	";
	// print $sql;

 	$result = @mysql_query($sql);

	$flag = false;
	while(list(
		$no, $title, $link, $description,
		$subject, $creator, $date, $regdate, $is_read, $is_scrap
	) = @mysql_fetch_array($result)) {
	 	$flag = true;

		$title = str_cut($title,24,0);
	 	if (trim($stext)) $title = str_replace($stext, "<b style=color:red;background-color:#FFFF00>".$stext."</b>", $title);
	 	if (!trim($title)) $title = "[尚无资料]";
	 	if ($is_read) $color = "#000030"; else $color = "#0000D0";

	    ob_start();
		?>
		<div id="fc<?=$no?>"></div>
		<table width="100%" cellpadding="0" cellspacing="0"><tr>
		<td width="17"><img class="ib" id="scc_<?=$no?>_00" src="../images/star_<? if ($is_scrap) print "on"; else print "off"; ?>.gif" width="15" height="15" onclick="onclick_scrap_star<? if ($p_rssv_type == "2") print "2"; else print "1"; ?>(this, '<?=$no?>')"></td>
		<td style="padding:3 0 0 4; line-height:11pt;"><a id="item<?=$no?>" onclick="this.style.color='#000030';" style="color:<? if ($is_read) print "#000030"; else print "#0000D0"; ?>" href="reader_right.php?num=<?=$no?>&amp;rnum=<?=$rnum?>&amp;gnum=<?=$gnum?>&amp;stext=<?=urlencode($stext)?>&amp;nr=<?=$nr?>&amp;sc=<?=$sc?>" target="reader_right"><?=$title?></a></td>
		<td class="rowdate" width="35" valign="top" style="padding:3 0 0 0"><?=get_timevalue0($regdate,2)?></td>
		</tr></table>
		<?
		$buffer .= ob_get_contents();
		ob_end_clean();
	}

?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<meta name="keywords" content="TT,TatterTools,Skin,php">
<meta name="description" content="Meyu,梦游,华人中文网">
<meta name="generator" content="TatterTools中文BLOG">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">
</head>
<script>
	parent.document.getElementById('<?=$target?>').innerHTML = '<?=str_innerHTML($buffer)?>';
	parent.focus();
	parent.parent.parent.reader_right.focus();
</script>