<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="RenewCook.aspx.cs" Inherits="Admin_RenewCook" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table border="0" cellpadding="0" cellspacing="0" width="694">
<!-- fwtable fwsrc="3_People.png" fwbase="3_People.jpg" fwstyle="Dreamweaver" fwdocid = "504323635" fwnested="0" -->
  <tr>
   <td><img src="imgs/spacer.gif" width="131" height="1" border="0" alt="" /></td>
   <td><img src="imgs/spacer.gif" width="563" height="1" border="0" alt="" /></td>
   <td><img src="imgs/spacer.gif" width="1" height="1" border="0" alt="" /></td>
  </tr>

  <tr>
   <td background="imgs/3_People_r1_c1.jpg" width="131" height="573" valign=top><br />
       <table width=100% border=0 >
       <asp:Repeater ID="itemTypeList" runat="server" EnableViewState=false>
       <ItemTemplate>
       <tr class="title">
       <td ><a href="?id=<%#Eval("ItemTypeId")%>"><%#Eval("TypeName")%></a></td>
       </tr>
       </ItemTemplate>
       </asp:Repeater>
       </table>
   </td>
   <td background="imgs/3_People_r1_c2.jpg" width="563" height="573"  valign=top><br />
   
    <div id="nifty">
    <a href=# onclick="AddItems();">增加新菜</a>
    <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
   <table width="100%" border="0" cellspacing="0" cellpadding="0" id="userslist">
       <tr class="title">
        <th scope="col">编号</th>
        <th scope="col">菜名</th>
        <th scope="col">价格</th>
        <th scope="col">详细介绍</th>
        <th scope="col">操作</th>
      </tr>
       <asp:Repeater ID="itemList" runat="server" EnableViewState="False">
       <ItemTemplate>
       <tr class="label2">
        <th scope="col"><%#Container.ItemIndex+1%></th>
        <th scope="col"><%#Eval("ItemName") %></th>
        <th scope="col"><%#Eval("Price") %></th>
        <th scope="col"><%#Eval("Detail").ToString().Length < 10 ? Eval("Detail").ToString() : Eval("Detail").ToString().Substring(0,10)+"...."%></th>
        <th scope="col"><a href=# onclick="AlterType('<%#Eval("SystemId") %>',this);">更改类别</a>,<a href=# onclick="EditItem('<%#Eval("SystemId") %>')"> 修改</a>,<a href=# onclick="DeleteItem('<%#Eval("SystemId") %>',this);">删除</a></th>
      </tr>
       </ItemTemplate>
       </asp:Repeater>
       </table>
       <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
     </div>
     <div id="Div2"  style="display:none">
    <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
    <a  href=# onclick="ShowItems();">返回</a>
     <table width="85%" border="0" >
     
      <tr>
        <td>菜名:<input type=text id="itemName" name="itemName" class="inputbox"/></td>
      </tr>
      <tr>
        <td id="itemType">类别:<select id="itemTypeLists" name="itemTypeLists" onfocus="loadType();" ></select><input type=hidden id="iType"  name="iType"/></td>
      </tr>
      <tr>
        <td>图片:<img id="itemPic" style="display:none"/><br /><asp:FileUpload ID="FileUpload1" runat="server" class="inputbox" />
            </td>
      </tr>
      <tr>
        <td>价格:<input type=text id="itemPrice" name="itemPrice" class="inputbox"/></td>
      </tr>
      <tr>
        <td>介绍:<textarea name="context" class="inputare"  id="context" ></textarea></td>
      </tr>
      <tr>
        <td>&nbsp;<asp:Button ID="Button1" runat="server" Text="确认" /></td>
      </tr>
    </table>
     <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
     </div>
   </td>
   <td><img src="imgs/spacer.gif" width="1" height="573" border="0" alt="" /></td>
  </tr>
</table>
</asp:Content>

