<?php
require_once
'conn.php';
?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>
<html xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=gb2312"
/>
<title>添加类别</title>
<link rel=
"stylesheet"
type=
"text/css"
href=
"css/style.css"
rel=
"external nofollow"
rel=
"external nofollow"
/>
</head>
<script language=
"javascript"
src=
"js/fun.js"
></script>
<body>
<table border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<td><img src=
"images/banner.gif"
width=
"608"
height=
"109"
/></td>
</tr>
</table>
<table width=
"200"
height=
"7"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<td></td>
</tr>
</table>
<table width=
"608"
height=
"200"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"1"
bgcolor=
"#7ED227"
>
<tr>
<td width=
"150"
bgcolor=
"#F6FEFE"
valign=
"top"
>
<table width=
"150"
border=
"0"
cellpadding=
"0"
cellspacing=
"1"
bordercolor=
"#FFFFFF"
bgcolor=
"#D6FEFE"
>
<?php
$sql
= mysql_query(
"select typename,username from tb_type order by addtime desc"
,
$connID
);
$result
= mysql_fetch_array(
$sql
);
if
(
$result
){
do
{
?>
<tr>
<td bgcolor=
"#A6E617"
height=
"20"
><p align=
"center"
><a href=
"#"
rel=
"external nofollow"
rel=
"external nofollow"
class
=
"a1"
><?=
$result
['typename']?></a></p></td>
</tr>
<tr>
<td bgcolor=
"#F2F2F2"
height=
"12"
><p align=
"left"
>发布人:
<?=
$result
['username']?>
</a></p></td>
</tr>
<?php
}
while
(
$result
= mysql_fetch_array(
$sql
));
}
else
{
?>
<tr>
<td bgcolor=
"#A6E617"
height=
"20"
>暂无文章类别</td>
</tr>
<?php
}
?>
</table>
</td>
<td width=
"455"
bgcolor=
"#FFFFFF"
style=
"padding-left:30px; line-height:25px"
>
请输入博客类别:<br />
<input type=
"text"
name=
"typename"
size=
"30"
id=
"typename"
/><br /><br/>
发布人:<br />
<input type=
"text"
name=
"username"
size=
"30"
id=
"username"
/><br /><br/>
<input type=
"button"
value=
"保存"
onclick=
"saveType(typename.value, username.value)"
/>
</td>
</tr>
</table>
<table width=
"200"
height=
"7"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<td></td>
</tr>
</table>
<table width=
"608"
height=
"70"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
<tr>
<td background=
"images/bottom.gif"
><p align=
"center"
>
<p align=
"center"
>『博客』 版权所有 <a href=
"http://www.mingri***.com"
rel=
"external nofollow"
rel=
"external nofollow"
rel=
"external nofollow"
rel=
"external nofollow"
class
=
"a1"
>吉林省**科技有限公司</a>! 未经授权禁止复制或建立镜像!<BR>
<BR>Copyright © <a href=
"http://www.mingri***.com"
rel=
"external nofollow"
rel=
"external nofollow"
rel=
"external nofollow"
rel=
"external nofollow"
class
=
"a1"
>www.mingri***.com</a> All Rights Reserved!<BR>
</p>
</p></td>
</tr>
</table>
</body>
</html>