<%on error resume next%>
<!--#include file="conn.asp"-->
<!--#include file="chk_logs.asp"-->

<%
if session("AdminName")="" then
	response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='index.asp';</script>"
	response.End
else
	if session("flag")>1 then
	response.Write "<script LANGUAGE='javascript'>alert('您没有此项目管理权限！请于管理员联系!!!');window.location.href='admin.asp';</script>"
	response.End
	end if
end if
%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>企业信息发布平台V8.0</title>
<style type="text/css">
<!--
@import url("css2.css");
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE2 {color: #FF0000}
-->
</style>
</head>

<body class="admin-top-bg">
<table width="100%" height="480" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="480" align="left" valign="top">&nbsp;</td>
    <td width="99%" align="left" valign="top"><table width="100%" height="5" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
      <table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="163" valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="25" align="center" bgcolor="254B8F" class="a03 STYLE1 STYLE2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left"><span class="bsz">&nbsp; ⊙ 类别管理 </span></td>
        <td align="right"><span class="bsz">当前位置：网站后台管理___类别管理</span>&nbsp;&nbsp; </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="bj07"><table width="100%"  border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#CCCCCC" bgcolor="#D0E8FF">
      <tr align="center" valign="top" bgcolor="#E7F6EF">
        <td bgcolor="#E8F1FF"><table width="100%"  border="0" cellspacing="1" cellpadding="5">
          <tr>
            <td align="left" class="wz">
<%
flag=trim(request("flag"))
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
sql="select * from lb where flag='"&flag&"' order by id asc"
rs.open sql,conn,1,1
if not rs.eof then
  for i=1 to rs.recordcount
%>
<a href="leibiexiugai.asp?id=<%=rs("id")%>">
	<span class="wz"><font color="#666666"><%=rs("lb")%></font></span>
</a>
<a href="leibie_del.asp?id=<%=rs("id")%>">
	<span class="wz">[<span class="STYLE2">删除</span>]</span>
</a>|&nbsp;
<%
rs.movenext
if rs.eof then exit for
next
else
  response.write "暂时没有类别，请及时添加!"
end if
rs.close
%></td>
          </tr>
        </table></td>
      </tr>
      <tr align="left" bgcolor="#E7F6EF">
        <td align="center" bgcolor="#FFFFFF" class="a01"><script language=javascript>
<!--
function CheckForm()
{
	if(document.form1.lb.value=="")
	{
		alert("请输入类别名称，它不能为空！");
		document.form1.lb.focus();
		return false;
	}
}
//-->
</script>
              <form name="form1" method="post" action="leibie_add.asp" onSubmit="return CheckForm();">
                <table width="90%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="20" colspan="3" align="right" class="wz">&nbsp;</td>
                  </tr>
                  <tr>
                    <td width="33%" height="30" align="right" class="wz">&nbsp;</td>
                    <td width="12%" align="right" class="wz">类别名称：</td>
                    <td width="55%" align="left" class="wz"><input name="lb" type="text" class="textline" id="lb" size="24">
                      <a name="t"></a></td>
                  </tr>
                  <tr>
                    <td height="22" colspan="2" align="right" valign="top" bordercolor="#666666" class="wz">类别说明：</td>
                    <td width="55%" align="left" bordercolor="#666666" class="wz"><textarea cols="" name="content" rows="" class="textarea" style="display:none"></textarea>
                      <textarea name="f1" cols="60" rows="8" id="f1"></textarea></td>
                  </tr>
				  <tr>
                  <td height="30" colspan="2" align="right" class="wz">信息类别：</td>
                  <td width="55%" align="left" class="wz">
                      <select name="flag" class="wenbenkuang" id="flag">
                        <option value="1">1</option>
						<option value="2">2</option>
                         <option value="3">3</option>
					  </select>
                  </td>
                 </tr>
                  <tr>
                    <td height="30" colspan="2" align="center" class="wz">&nbsp;</td>
                    <td align="left" class="wz"><input type="submit" name="Submit" value="添加">
                        <input type="reset" name="Submit2" value="重添"></td>
                  </tr>
                </table>
              </form></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center">&nbsp;</td>
  </tr>
</table></td>
      </tr>
    </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      <table width="97%" height="140" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td bgcolor="65CEE7"><table width="100%" height="147" border="0" cellpadding="0" cellspacing="1">
          <tr>
            <td height="20" background="images/admin-00.jpg"><span class="STYLE4">&nbsp; </span><span class="bsz">⊙ 温馨提示</span></td>
          </tr>
          <tr>
            <td height="124" valign="top" bgcolor="#E4F4FC"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="3%" height="124">&nbsp;</td>
                <td width="97%" valign="top" class="wz">尊敬的用户：<br>
                  &nbsp;&nbsp;&nbsp; 感谢您选择芜湖天颂！我们将一如即往的为您提供优质的服务。<br>
                  &nbsp;&nbsp;&nbsp; 您在使用过程中遇到任何问题请拨打服务热线：0553-3846251，如果您觉得我们哪里还可以做的更好，请拨打：0553-3846257！<br>
                 &nbsp;&nbsp;&nbsp; 如果您对我们的服务有任何不满请拨打投诉电话：0553-3846696&nbsp;&nbsp; 3316160。<br>
                 &nbsp;&nbsp;&nbsp; 邮箱：002@tian-song.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;传真：0553-3872351&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 客服QQ：40581502</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
