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

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

	if ($mode == "set_public") {
		$c_set = "";

		reset($HTTP_POST_VARS);
		while (list($key, $val) = each($HTTP_POST_VARS)) {
			if ($val == "on") $c_set .= ",".substr($key,3);
		}

		put_query("update t3_".$dbid."_rss set is_public = '0'");

		if (trim($c_set)) {
			$c_set = substr($c_set,1);
			put_query("update t3_".$dbid."_rss set is_public = '1' where no in ($c_set)");
		}

		header("Location: reader_address.php");
		exit;
	}


	if ($mode == "sortdown") {
		$msortno = get_minval($tn, "sortno", "where sortno > $sortno");
		if ($msortno) {
			$sql = "select no, sortno from $tn where sortno = $msortno";
			list ($nno, $nsortno) = mysql_fetch_array(mysql_query($sql));
			put_query("update $tn set sortno = $nsortno where no = $no");
			put_query("update $tn set sortno = $sortno where no = $nno");
			check_query();
		}
		header("Location: reader_address.php");
		exit;
	}

	if ($mode == "sortup") {
		$msortno = get_maxval($tn, "sortno", "where sortno < $sortno");
		if ($msortno) {
			$sql = "select no, sortno from $tn where sortno = $msortno";
			list ($nno, $nsortno) = mysql_fetch_array(mysql_query($sql));
			put_query("update $tn set sortno = $nsortno where no = $no");
			put_query("update $tn set sortno = $sortno where no = $nno");
			check_query();
		}
		header("Location: reader_address.php");
		exit;
	}

	if ($mode == "delete") {
		put_query ("delete from t3_".$dbid."_rss_item where rno = $del_num");
		put_query ("delete from t3_".$dbid."_rss where no = $del_num");
		check_query();
		header("Location: reader_address.php");
		exit;
	}

	if ($mode == "group_delete") {
		put_query ("delete from t3_".$dbid."_rss_group where no = $del_num");
		put_query ("update t3_".$dbid."_rss set pno = '0' where pno = $del_num");
		check_query();
		header("Location: reader_address.php");
		exit;
	}

	admin_header("");
?>

<script type="text/javascript">

	var a_ary = new Array();
	var t_set = true;

	function onclick_rss_delete(form, num) {
		if (!confirm('确定要取消订阅此网站文章吗?\t')) return false;
		form.mode.value = 'delete';
		form.del_num.value = num;
		form.submit();
	}

	function onclick_rss_group_delete(form, num) {
		if (!confirm('确定要删除此分类?\t')) return false;
		form.mode.value = 'group_delete';
		form.del_num.value = num;
		form.submit();
	}

</script>
<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>
<form method="post" name="reader_address" action="<?=$PHP_SELF?>">
<input type="hidden" name="mode">
<input type="hidden" name="del_num">

	<table cellpadding="0" cellspacing="0"><tr>
	<td width="740" valign=top style="padding:10 5 10 5">

		<table width="100%" style="margin-bottom:3"><tr>
		<td width="24" align="right"><img src="../images/num_27.gif" height="17" alt=""></td>
		<td width="9"><img src="../images/ver_01.gif" width="9" height="17" alt=""></td>
		<td><img src="../images/cap_27.gif" height="17" alt=""></td>
		<td align="right"><img class="ib" src="../images/b_add.gif" width="53" height="17" onclick="window.location.href='reader_group_edit.php'" alt=""></td>
		</tr></table>

	<? print_content_line(); ?>

		<table cellspacing="0" cellpadding="0" width="100%">
		<?
			$flag = false;

			$sql = "select no, sortno, title, regdate from t3_".$dbid."_rss_group order by sortno asc";
 			$result = @mysql_query($sql);

			while(list($no, $sortno, $title, $regdate) = @mysql_fetch_array($result)) {
				if ($flag) { ?><tr><td height="1" colspan="5" style="background-image:url('../images/dot_width2.gif')"></td></tr><? }
				$flag = true;
				?>
				<tr>
				<td width="40" align="center"><img src="../images/blit_g.gif" width="11" height="9" align="absmiddle" alt=""></td>
				<td width="48" style="padding:1 0 0 5"><img class="ib" src="../images/b_up.gif" width="15" height="16" onclick="window.location.href='<?=$PHP_SELF?>?mode=sortup&tn=<?="t3_".$dbid."_rss_group"?>&no=<?=$no?>&sortno=<?=$sortno?>'" style=margin-right:5><img class=ib src=../images/b_down.gif width=15 height=16 onclick="window.location.href='<?=$PHP_SELF?>?mode=sortdown&tn=<?="t3_".$dbid."_rss_group"?>&no=<?=$no?>&sortno=<?=$sortno?>'" style="margin-right:6" alt=""></td>
				<td style="padding-top:3;"><a href="reader_group_edit.php?num=<?=$no?>"><?=$title?></a> <font class="h1">(<?=get_group_member_count($no)?>)</font></td>
				<td width="56"><img class="ib" src="../images/b_edit.gif" width="53" height="17" onclick="window.location.href='reader_group_edit.php?num=<?=$no?>'" alt=""></td>
				<td width="56"><img class="ib" src="../images/b_delete.gif" width="53" height="17" onclick="onclick_rss_group_delete(reader_address, '<?=$no?>')" alt=""></td>
				</tr>
				<?
			}
		?>
		</table>

		<table width="100%" cellpadding="0" cellspacing="0" style="margin-top:2"><tr>
		<td class="h2" height="30" align="center" style="padding-top:20; background-image:url('../images/list_bottom1.jpg')"></td>
		</tr></table>

		<table width="100%" style="margin:15 0 3 0"><tr>
		<td width="24" align="right"><img src="../images/num_29.gif" height="17" alt=""></td>
		<td width="9"><img src="../images/ver_01.gif" width="9" height="17" alt=""></td>
		<td><img src="../images/cap_29.gif" height="17" alt=""></td>
		<td align="right"><img class="ib" src="../images/b_add.gif" width="53" height="17" onclick="window.location.href='reader_member_edit.php'" alt=""></td>
		</tr></table>

	<? print_content_line(); ?>

		<table cellspacing="0" cellpadding="0" width="100%">
		<?
			$sql = "
				select
					no, pno, xml_url, title, link, description, regdate, is_sync, is_public
				from
					t3_".$dbid."_rss
				order by
					title asc
			";
		 	$result = @mysql_query($sql);

			$flag = false;
			while(list($no, $pno, $xml_url, $title, $link, $description, $regdate, $is_sync, $is_public) = @mysql_fetch_array($result)) {
				if ($flag) { ?><tr><td colspan="6" height="1" style="background-image:url('../images/dot_width2.gif')"></td></tr><? }
				$flag = true;
				if (!$is_sync) $ifilter = "_g";
				else $ifilter = "";
				?>
				<tr>
				<td width="30" align="right">
				<script type="text/javascript"> a_ary = a_ary.concat(<?=$no?>); </script>
				<input type="checkbox" name="chk<?=$no?>" <? if ($is_public) print "checked"; ?> ></td>
				<td width="40" align="center"><img src="../images/blit_m<?=$ifilter?>.gif" width="11" height="9" alt=""></td>
				<td width="180" style="padding:3 0 0 3;"><a href="<?=$link?>" target="_blank"><?=str_cut($title,27,1)?></a></td>
				<td style="padding-top:3"><?=str_cut(str_tag_off($description),55,1)?></td>
				<td width="56"><img class="ib" src="../images/b_edit.gif" width="53" height="17" onclick="window.location.href='reader_member_edit.php?num=<?=$no?>'" alt=""></td>
				<td width="56"><img class="ib" src="../images/b_delete.gif" width="53" height="17" onclick="onclick_rss_delete(reader_address, '<?=$no?>')" alt=""></td>
				</tr>
				<?
			}
		?>
		</table>

		<table cellpadding="0" cellspacing="0" width="100%" style="margin-top:2"><tr>
		<td class="h2" height="30" style="padding-top:10; background-image:url('../images/list_bottom1.jpg')">
			<table><tr>
			<td style="padding:0 0 3 8"><input type="checkbox" onclick="onclick_toggle('document.reader_address');"></td>
			<td> 全部选择 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 将所选择的日志加入 RSS 日志文章订阅</td>
			<td style="padding:0 0 0 6"><img class="ib" src="../images/b_submit.gif" width="53" height="17" onclick="document.reader_address.mode.value='set_public'; document.reader_address.submit();" alt=""></td>
			</tr></table>
		</td>
		</tr></table>

		<table cellpadding="0" cellspacing="0" width="100%" style="margin-top:30;"><tr>
		<td width="50%" valign="top" style="padding-right:10">

			<table width="100%" style="margin-bottom:3"><tr>
			<td width="24" align="right"><img src="../images/num_31.gif" height="17" alt=""></td>
			<td width="9"><img src="../images/ver_01.gif" width="9" height="17" alt=""></td>
			<td><img src="../images/cap_31.gif" height="17" alt=""></td>
			</tr></table>

		<? print_content_line(); ?>

			<table class="content_back1" cellpadding="0" cellspacing="0" width="100%"><tr>
			<td style="padding:10">
			这里提供备份你的 OPML , 将以 XML 方式编写并储存成(.opml)功能.
			点击下方进行备份并将档案存放好 , 以便日后汇入还原用.lilina-0.7支持OPML,GB版将不支持
			<center><img class="ib" src="../images/b_export.gif" width="68" height="17" style="margin:5 0 1 0;" onclick="window.location.href='reader_opml_export.php'" alt=""><br>
			</td>
			</tr></table>

		</td><td width="50%" valign="top" style="padding-left:10">

			<table width="100%" style="margin-bottom:3"><tr>
			<td width="24" align="right"><img src="../images/num_32.gif" height="17" alt=""></td>
			<td width="9"><img src="../images/ver_01.gif" width="9" height="17" alt=""></td>
			<td><img src="../images/cap_32.gif" height="17" alt=""></td>
			</tr></table>

		<? print_content_line(); ?>

			<table class="content_back1" cellpadding="0" cellspacing="0" width="100%"><tr>
			<td style="padding:10">
			这里提供远端或近端的 .opml 档案读取汇入资料库功能.可以增加网站 RSS 的列表,
			汇入后将自动剔除重复网址,并新增网站.
			<center><img class="ib" src="../images/b_open.gif" width="53" height="17" style="margin:5 0 1 0;" onclick="window.open('reader_opml_import.php','opml_import','width=500,height=170,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0')" alt=""><br>

		</td>
		</tr></table>

	</td>
	</tr></table>

	<center>
	<table style="margin:20 0 0 0"><tr>
	<td><img src="../images/sc.gif" width="16" height="16" alt=""></td>
	<td style="padding:2 0 0 2"><a href="#" onclick="layer_toggle(document.getElementById('sc1')); return false;">本页快捷键列表</a></td>
	</tr></table>

	<div id="sc1" style="display:none;padding:10 5 5 15">
	<table><tr><td>
			<span class="sc" style="padding:1 4 2 4;">A</span> - 网志列表
			&nbsp; <span class="sc" style="padding:1 4 2 4;">S</span> - 下一页
			&nbsp; <span class="sc" style="padding:1 4 2 4;">Q</span> - 不退出返回首页
			<div style="margin:10 0 0 0"></div>
			<span class="sc" style="padding:1 4 2 5;">R</span> - 传送引用的第一页
			&nbsp; <span class="sc" style="padding:1 5 2 5;">T</span> - 收藏文章
			&nbsp; <span class="sc" style="padding:1 5 2 5;">F</span> - 未读的文章
			&nbsp; <span class="sc" style="padding:1 4 2 4;">G</span> - 脚本的文章
	</td></tr></table>
	</div>
	</center>

</form>

<script type="text/javascript">

	function shortcut_onkeydown(evt) {
		evt = get_event(evt);
		if ((set_key = evt.keyCode) && chk_event_tag_name(evt) && !(evt.altKey || evt.ctrlKey)) {
			if (set_key == '70') window.location.href='reader.php?nr=1';
			else if (set_key == '71') window.location.href='reader.php?sc=1';
			else if (set_key == '82') window.location.href='reader.php';
			else if (set_key == '84') window.location.href='reader.php?rc=1';
			else if (set_key == '81') window.location.href='../index.php';
		}
	}

	document.onkeydown = shortcut_onkeydown;

</script>

<? admin_footer("") ?>