📄 unitetype.php
字号:
<?
session_start();
$manager=$_SESSION[manager];
if($manager!="oktop"){
header("Location:error.htm");
}
?>
<? include("../conn.php");?>
<? include("../include/function.php");
$select="select * from type where ismain='1' order by id asc ,parentid asc ";
$query=mysql_query($select);
while($ar=mysql_fetch_array($query))
{
$n[$ar[parentid]][]=$ar[typename];
$i[$ar[parentid]][]=$ar[id];
$shunxu[$ar[parentid]][]=$ar[shunxu];
}
function printtype($parent,$space){
global $n,$i;
$space.=" ";
if(count($parent)){
for($oo=0;$oo<count($n[$parent]);$oo++){
$info.="<option value=\"".$i[$parent][$oo]."\">";
$info.=$space."|-";
$info.=" ".$n[$parent][$oo]."</option>\"";
echo $info;
printtype($i[$parent][$oo],$space);
$info="";
}
}
}
?>
<html>
<head>
<title>妹妹娱乐类别- powered by phpwind.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<style type="text/css">
table { BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 2px}
select {
FONT-SIZE: 12px;
COLOR: #000000; background-color: #E0E2F1;
}
a { TEXT-DECORATION: none; color:#000000}
a:hover{ text-decoration: underline;}
body {font-family:Verdana;FONT-SIZE: 12px;MARGIN: 0;color: #000000;background: #F7F7F7;}
textarea,input,object{font-size: 12px;}
td { BORDER-RIGHT: 1px; BORDER-TOP: 0px; FONT-SIZE: 12px; COLOR: #000000;}
.b{background:#F7F7F7;}
.left_over{background:#F0F0F0;}
.head { color: #ffffff;background: #739ACE;font-weight:bold;}
.head td{color: #ffffff;}
.head a{color: #ffffff;}
.head_2 {background: #CED4E8;}
.head_2 td{color: #000000;}
.hr {border-top: 1px solid #739ACE; border-bottom: 0; border-left: 0; border-right: 0; }
.bold {font-weight:bold;}
.smalltxt {font-family: Tahoma, Verdana; font-size: 12px;color: #000000;}
.i_table{border: 1px solid #739ACE;background:#DEE3EF;}
</style>
<script language="JavaScript">
ifcheck = true;
function CheckAll(form)
{
for (var i=0;i<form.elements.length-2;i++)
{
var e = form.elements[i];
e.checked = ifcheck;
}
ifcheck = ifcheck == true ? false : true;
}
function atccheck()
{
if(document.FORM.atc_title.value==''){
alert('标题为空');
document.FORM.atc_title.focus();
return false;
} else if(document.FORM.fid.value==''){
alert('没有选择文章所属分类');
document.FORM.fid.focus();
return false;
}
_submit();
}
function checkhackset(chars)
{
if(!confirm("确定要卸载此插件吗? 如果您卸载了此插件,程序将自动删除插件相关文件,请确认!"))
return false;
location.href=chars;
}
function checkgroupset(chars)
{
if(!confirm("确定删除吗? 如果您删除了此用户组,请到类别缓存数据管理更新用户头衔缓冲!"))
return false;
location.href=chars;
}
function report_jump(admin_file){
var URL=document.form1.type.options[document.form1.type.selectedIndex].value;
location.href=admin_file+"?adminjob=report&type="+URL;
}
function level_jump(admin_file)
{
var URL=document.mod.selectfid.options[document.mod.selectfid.selectedIndex].value;
location.href=admin_file+"?adminjob=level&action=editgroup&gid="+URL;
}
function ip_jump(name)
{
URL = eval('document.form1.' + name + '.options[document.form1.' + name + '.selectedIndex].value');
location.href=URL;
}
</script>
<!---->
</head>
<body topmargin=5 leftmargin=5>
<table width="99%" align=center cellspacing=2 cellpadding=4 border=0>
<tr class=head>
<td width='30%' align=center>
<a href='http://www.mmei8.com/bbs/' target='_blank'><b>检查最新版本</b></a>
</td>
<td width='30%' align=center>
<a href='http://www.mmei8.com/bbs/' target='_blank'><b>网摘 用户交流</b></a> </td>
<td width='30%' align=center><a href='./index.htm' target='_blank'><b>进入首页</b></a></td>
</tr>
</table>
<br>
<!---->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2><b>提示信息</b></td></tr>
<tr><td class=b>
<ul><br>
1.源类别将被删除,源类别的所有帖子将移动目标类别中<br><br>2.有子类别的类别合并以后所有对应子类别将变成新类别的子类别。<br><br>
</ul>
</td></tr></table><br>
<form action="dotype.php" method="post">
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2><b>合并类别</b></td></tr>
<tr><td class=b>源类别</td><td class=b>
<input type="hidden" name="from" value="unitetype.php">
<input type="hidden" name="action" value="unitetype">
<select name="fid">
<?
for($ii=0;$ii<count($n[0]);$ii++){
?>
<option value="<? echo $i[0][$ii];?>">>> <? echo $n[0][$ii];?></option>
<?
printtype($i[0][$ii]);
?>
<?
}
?>
</select>
</td></tr>
<tr><td class=b>目标类别</td><td class=b><select name='tofid'>
<?
for($ii=0;$ii<count($n[0]);$ii++){
?>
<option value="<? echo $i[0][$ii];?>">>> <? echo $n[0][$ii];?></option>
<?
printtype($i[0][$ii]);
?>
<?
}
?>
</select></td></tr>
</table>
<br><center> <input type=submit value='提 交'></center></form>
<!--<!---->
<center>
<blockquote><br><br><br><br><hr class=hr size=1>
</blockquote>
<br>
</center>
</body></html>
<!---->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -