<%@ page language="C#" autoeventwireup="true" inherits="admin_class, App_Web_5fvwns4r" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<!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>
    <title>上海和尘网站系统管理</title>
<link rel="stylesheet" href="style/css.css" type="text/css" /> 
<link rel="stylesheet" href="style/page.css" type="text/css" /> 
<script language="javascript" type="text/javascript" src="../js/jquery-1.10.2.min.js"></script>
<script language="JavaScript">

function CheckForm()
{
 
 if($.trim($("#classname").val())=="") 
 {
	$("#classname").focus();
    alert("请填写栏目名称");
	return false;
  }


 
}

</script>
</head>
<body>
    <form id="form1" runat="server">


<table width="100%" border="0" cellpadding="0" cellspacing="0" class="map">
  <tr>
    <td>栏目管理</td>
    <td align="right"><a href="?" class="sixlink">栏目信息</a> </td>
  </tr>
</table>
 
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="title" align="center">
  <tr>
    <td><%if(id99=="0"){ %>一级<%} %>栏目信息 <font style="color:Red;"><%if(id99=="0"){ %>一级栏目添加修改请联系管理员<%} %></font></td>
    <td width="50%"><span style="color:Red;"><%=classname99 %></span></td>
  </tr>
</table>


  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="list">
    <thead>
    <tr class="header">
      <td align="center">名称</td>
      <td align="center" style="display:none;">英文</td>
      <td align="center">排序</td>
      <td align="center" style="display:none;">图片</td>
      <td align="center" style="display:none;">上传图片</td>
      <td align="center">子栏目</td>
      <td align="center">修改删除</td>
    </tr>
     </thead>

	 <asp:Repeater ID="RepeaterN" runat="server" OnItemDataBound="Repeater1_ItemDataBound" OnItemCommand="Repeater1_ItemCommand">
         <ItemTemplate>     
    <tr>
      <td align="center"><asp:TextBox ID="Classname" Width="150px" CssClass="input" runat="server" Text='<%#Eval("classname")%>' /></td>
      <td align="center" style="display:none;"><asp:TextBox ID="Classname8" Width="150px" CssClass="input" runat="server" Text='<%#Eval("classname1")%>' /></td>
      <td align="center"><asp:TextBox ID="Ordernumber" Width="30px" CssClass="input" runat="server" Text='<%#Eval("ordernumber")%>' /></td>
      <td align="center" style="display:none;"><%#Eval("img").ToString() != "" ? "<img src='../upload/" + Eval("img") + "' height='30' />" : ""%> </td>
      <td align="center" style="display:none;"><asp:FileUpload ID="fileUp" runat="server" Width="200px" Height="20px" /></td>
      <td align="center"><a href="class.aspx?classid=<%#Eval("classid")%>&id=<%#Eval("classid")%>&action=add"><font color=red>子栏目</font></a></td>
      <td align="center">
      
          <asp:ImageButton ID="ImgBtn" CommandName="Update" ImageUrl="images/icon_edit.gif" runat="server" AlternateText="修改" />
          <asp:HiddenField ID="Id" Value='<%#Eval("id")%>' runat="server" />
          <asp:HiddenField ID="Imgold" Value='<%#Eval("img")%>' runat="server" />
          <asp:HiddenField ID="Classid" Value='<%#Eval("classid")%>' runat="server" />      
      <%if(id99!="0")
        { %>
        &nbsp;&nbsp;
     <a href="class.aspx?classid=<%#Eval("classid")%>&id=<%#Eval("id")%>&action=del" onClick="javascript:return confirm('确定删除吗?');"><img src="images/icon_drop.gif" border="0" alt="删除" /></a>
       <%} %>
      </td>
    </tr>
	     </ItemTemplate>
      </asp:Repeater> 
          
  </table>
   




<br>
<br>

<table width="98%" border="0" cellpadding="0" cellspacing="0" class="title" align="center">
  <tr>
    <td>添加<%if(id99=="0"){ %>一级<%} %>栏目</td>
  </tr>
</table>


  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="add">
    <tr>
      <td width="30%" align="right">名称：</td>
      <td align="left"> <input runat="server" name="classname5" type="text" maxlength="50" class="input" id="classname5" style="width:200px;" />
      </td>
    </tr>
    <tr style="display:none;">
      <td width="30%" align="right">英文：</td>
      <td align="left"> <input runat="server" name="classname8" type="text" maxlength="50" class="input" id="classname8" style="width:200px;" />
      </td>
    </tr>

    
    <tr>
      <td align="right">排序：</td>
      <td align="left"><input runat="server" name="ordernumber" type="text" maxlength="6" value="0" class="input" id="ordernumber" style="width:100px;" /> *数字大排前面</td>
    </tr>
    <tr style="display:none;">
      <td align="right">图片：</td>
      <td align="left">
      					  <asp:FileUpload ID="fileUp" runat="server" Width="500px" Height="20px" CssClass="input" />
					  
					  <asp:HiddenField runat="server" ID="Img" />  
      </td>
    </tr>

    <tr>
      <td align="right">&nbsp;</td>
      <td align="left" valign="middle"><label>
        <asp:Button ID="Btn" runat="server" Text="确定" CssClass="btn" OnClick="Btn_Click" />
        <input name="button1" type="reset" class="btn" id="button1" value="清除" />
        <asp:HiddenField ID="Id" runat="server" />
        <asp:HiddenField ID="Classid" runat="server" />
      </label></td>
    </tr>
  </table>

<script language="JavaScript">

function CheckForm()
{
 
 if($.trim($("#classname5").val())=="") 
 {
	$("#classname5").focus();
    alert("请填写栏目名称");
	return false;
  }
 
}

</script>

 
 
<!--#include file="footer.htm"-->


    </form>
</body>
</html>
