<%@ Import Namespace="System.Data.SqlClient"%>
<%@ Import Namespace="System.Data"%>
<%@ Page CodeBehind="ad_class.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="yn165.admin.ad_class" %>
<HTML>
	<HEAD>
		<TITLE>创库网络(昆明)后台管理系统</TITLE>
		<META content="text/html; charset=gb2312" http-equiv="Content-Type">
		<META content="no-cache" http-equiv="Pragma">
		<STYLE type="text/css">INPUT { FONT-SIZE: 9pt; FONT-FAMILY: "宋体"; TEXT-DECORATION: none }
	.big { FONT-SIZE: 10.5pt; FONT-FAMILY: "宋体"; TEXT-DECORATION: none }
	A:hover { COLOR: #ff6666; FONT-FAMILY: "宋体"; TEXT-DECORATION: none }
	A { FONT-FAMILY: "宋体"; TEXT-DECORATION: none }
	TD { FONT-SIZE: 9pt; FONT-FAMILY: "宋体", "Arial", "Times New Roman"; TEXT-DECORATION: none }
	.big2 { FONT-SIZE: 10.5pt; LINE-HEIGHT: 13pt; FONT-FAMILY: "宋体"; TEXT-DECORATION: none }
	.unnamed1 { FONT-SIZE: 7pt; TEXT-DECORATION: none }
	.unnamed2 { FONT-SIZE: 12pt; TEXT-DECORATION: none }
	</STYLE>
		<!--web design:zheng guiwen E-mail:guiwen@zheng.com.cn -->
		<META content="Microsoft FrontPage 4.0" name="GENERATOR">
		<base target="bottom">
		<script language="JavaScript">
<!--
function delete_confirm(e){
	event.returnValue=confirm("确认删除?");
}

//-->
		</script>
	</HEAD>
	<BODY aLink="#000000" bgColor="#f0f0f0" link="#000000" text="#000000" vLink="#990000" leftmargin="0" topmargin="10" marginwidth="0" marginheight="0" onLoad="">
		<form runat=server target=_self>
		<table width="100%" border="0" cellspacing="3" cellpadding="3">
			<tr>
				<td>
					<div align="center" class="unnamed2"><font color="#ff3300">查看编辑文章</font></div>
				</td>
			</tr>
		</table>
		
  <table width="562" border="0" cellspacing="1" cellpadding="5" height="8" bgcolor="#cccccc" align="center">
    <%
SqlConnection conn = new SqlConnection("server=211.155.254.117;database=yn165;uid=yn165;pwd=159753");
conn.Open();
string sql="select * from class";
SqlCommand cmd = new SqlCommand(sql,conn);
SqlDataReader reader = cmd.ExecuteReader();
while(reader.Read())
{
%> 
    <tr bgcolor="#ffffff"> 
      <td width="98">已有文章类别：</td>
      <td>
        <input type=text value=<%=reader.GetValue(1)%> >
      </td>
      <td width="180"> <a href=ad_delclass.aspx?id=<%=reader.GetValue(0)%> onclick="delete_confirm(this)" target=_self ><img src="../img/del.gif" border=0></a></td>
    </tr>
    <% }
		reader.Close();
		cmd.Dispose();
		conn.Close();
		%> 
    <tr bgcolor="#ffffff"> 
      <td width="98">增加文章类别：</td>
      <td width="180"><asp:TextBox id="addclass" runat="server"></asp:TextBox> 
      </td>
      <td width="247"><asp:ImageButton id="ImageButton1" runat="server" ImageUrl="../img/003.gif"></asp:ImageButton> 
      </td>
    </tr>
  </table>
	</form>
	</BODY>
</HTML>
