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

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

	if ($mode == "modify") {

		if ($show_tree_cnt == "on") $show_tree_cnt = 1;
		else $show_tree_cnt = 0;

		set_ct_cnt();

		put_query("
			update t3_".$dbid."_setting set
				tree = '$tree'
				, tree_limit = '$tree_limit'
				, tree_back = '$tree_back'
				, tree_c = '$tree_c'
				, tree_bc = '$tree_bc'
				, tree_c2 = '$tree_c2'
				, tree_bc2 = '$tree_bc2'
				, show_tree_cnt = '$show_tree_cnt'
		");

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

	$g_array = array();
	$m_array = array();

	array_push($m_array, array("num"=>1, "label"=>"Education", "link"=>"", "cnt"=>"5"));
	array_push($m_array, array("num"=>2, "label"=>"Employment", "link"=>"", "cnt"=>"7"));
	array_push($m_array, array("num"=>3, "label"=>"Events", "link"=>"", "cnt"=>"4"));
	array_push($g_array, array("num"=>1, "label"=>"Arts & Humanities", "link"=>"", "cnt"=>"16", "items"=>$m_array));

	$m_array = array();

	array_push($m_array, array("num"=>1, "label"=>"Life Sciences", "link"=>"", "cnt"=>"2"));
	array_push($m_array, array("num"=>2, "label"=>"Mathematics", "link"=>"", "cnt"=>"3"));
	array_push($g_array, array("num"=>2, "label"=>"Science ", "link"=>"", "cnt"=>"5", "items"=>$m_array));

	$rtval = array("label"=>"所有网志分类文章", "link"=>"", "cnt"=>"21");

	admin_pop_header("onclick_all_process(window,'".$s_tree_path.$p_tree."/"."', act = '1', d_ary); onclick_setimp(window, document.getElementById('imp1_1'), c_ary, t_ary);");
?>
<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 type="text/javascript">

	function onclick_reflect(form) {
		form.submit();
	}

</script>

<form method="post" name="setting_tree" action="<?=$PHP_SELF?>">
<input type="hidden" name="mode" value="modify">

	<table width="100%" style="margin:6 0 3 0"><tr>
	<td width="24" align="right"><img src="../images/num_15.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_15.gif" height="17" alt=""></td>
	</tr></table>

<? print_content_line(); ?>

	<table class="content_back1" cellpadding="0" cellspacing="0" width="100%"><tr>
	<td align="center" width="230" style="padding:20 0 20 0">

		<table width="200" cellpadding="0" border="0" cellspacing="1" bgcolor="#808080"><tr>
		<td valign="top" bgcolor="<? if ($p_tree_back) print $p_tree_back; else print "white"; ?>" style="padding:10 10 30 10">
		<? print_tree($rtval, $g_array, $p_tree_limit, $s_tree_path.$p_tree."/",1); ?>
		</td>
		</tr></table>

	</td>
	<td valign="top" style="padding:20 0 10 0">

		<table cellpadding="0" cellspacing="0" style="margin:10 0 10 0"><tr>
		<td width="84" align="right" style="padding-top:1">菜单风格模板 :: &nbsp;</td>
		<td>
		<select name="tree">
		<?
			$dh = @opendir($s_tree_path);
			while($dh && false !== ($folder = readdir($dh))) {
				if ($folder == "." || $folder == "..") continue;
				?> <option value="<?=$folder?>" <? if ($p_tree == $folder) print "selected"; ?> ><?=$folder?></option><?
			}
			closedir($dh);
		?>
		</select>
		</td>
		</tr></table>

	<? input_block() ?>

		<table cellpadding="0" cellspacing="0" style="margin-top:10"><tr>
		<td width="84" align="right" style="padding-top:2">背景颜色 :: &nbsp;</td>
		<td><input class="text_color" type="text" name="tree_back" value="<?=$p_tree_back?>" maxlength="7" style="width:54"></td>
		</tr></table>

		<table cellpadding="0" cellspacing="0" style="margin-top:5"><tr>
		<td width="84" align="right" style="padding-top:2">字体颜色1 :: &nbsp;</td>
		<td><input class="text_color" type="text" name="tree_c" value="<?=$p_tree_c?>" maxlength="7" style="width:54"></td>
		<td width="84" align="right" style="padding-top:2">字体颜色2 :: &nbsp;</td>
		<td><input class="text_color" type="text" name="tree_c2" value="<?=$p_tree_c2?>" maxlength="7" style="width:54"></td>
		</tr></table>

		<table cellpadding="0" cellspacing="0" style="margin:5 0 10 0"><tr>
		<td width="84" align="right" style="padding-top:2">字背景色1 :: &nbsp;</td>
		<td><input class="text_color" type="text" name="tree_bc" value="<?=$p_tree_bc?>" maxlength="7" style="width:54"></td>
		<td width="84" align="right" style="padding-top:2">字背景色2 :: &nbsp;</td>
		<td><input class="text_color" type="text" name="tree_bc2" value="<?=$p_tree_bc2?>" maxlength="7" style="width:54;"></td>
		</tr></table>

	<? input_block() ?>

		<table style="margin-top:10"><tr>
		<td style="padding:2 0 0 0">:: 选单文字长度从第</td>
		<td>
		<select name="tree_limit">
		<? for ($i=2;$i<=256;$i=$i+2) { ?> <option value="<?=$i?>" <? if ($p_tree_limit == $i) print "selected"; ?>><?=$i?></option><? } ?>
		</select>
		</td>
		<td style="padding-top:2">字节后以点作缩减.</td>
		</tr></table>

	<? input_block() ?>

		<table style="margin:5 0 0 0"><tr>
		<td style="padding:3 0 0 0">::</td>
		<td><input type="checkbox" name="show_tree_cnt" <? if ($p_show_tree_cnt) print "checked"; ?>></td>
		<td style="padding:5 0 0 0">在分类名称后显示各个分类文章篇数</td>
		</tr></table>

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

<? print_content_line(); ?>

	<table cellpadding="0" cellspacing="0" width="100%"><tr>
	<td height="35" align="right" style="padding-right:13"><img class="ib" src="../images/b_reflect.gif" width="68" height="17" onclick="onclick_reflect(setting_tree)" style="margin-right:5" alt=""><img class="ib" src="../images/b_close.gif" width="53" height="17" onclick="window.close();" alt=""></td>
	</tr></table>

</form>

<? admin_pop_footer(); ?>