62,040
社区成员
发帖
与我相关
我的任务
分享
<div id="wrap">
<ul id="diya">
<li class="on">新闻管理</li>
<li>新闻添加</li>
<li>产品管理</li>
<li>产品添加</li>
<li>订单管理</li>
<li>用户管理</li>
</ul>
<br clear="all" />
<%-- 新闻管理 --%>
<div class="block">
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDeleting="GridView1_RowDeleting" Height="588px" Width="895px" AllowPaging="True" PageSize="20">
<Columns>
<asp:BoundField DataField="ID" HeaderText="ID" />
<asp:BoundField DataField="新闻标题" HeaderText="新闻标题" />
<asp:BoundField DataField="新闻类别" HeaderText="新闻类别" />
<asp:BoundField DataField="阅读次数" HeaderText="阅读次数" />
<asp:BoundField DataField="添加时间" HeaderText="添加时间" DataFormatString="{0:yyyy-MM-dd}" />
<asp:TemplateField ShowHeader="False">
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
Text="删除" OnClientClick='<%# "if (!confirm(\"你确定要删除" + Eval("ID").ToString() + "吗?\")) return false;"%>'></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
<%-- 新闻添加 --%>
<div class="none">
<table style="width:500px;height:500px" border="1">
<tr style="width:40px">
<td align="left"><strong>新闻类别:</strong> <asp:DropDownList ID="DropDownList1" runat="server" Height="20px" Width="100px"></asp:DropDownList></td>
</tr>
<tr style="width:40px">
<td align="left"><strong>新闻标题:</strong> <asp:TextBox ID="xwbt" runat="server" Height="20px" Width="300px"></asp:TextBox></td>
</tr>
<tr style="width:360px">
<td align="left"><strong>新闻内容:</strong><br />
<asp:TextBox ID="xwnr" runat="server" TextMode="MultiLine" Height="350px" Width="500px"></asp:TextBox></td>
</tr>
<tr style="width:40px">
<td>
<asp:Button ID="Button1" runat="server" Text="添加" Height="30px" Width="100px" OnClick="Button1_Click" /></td>
</tr>
</table>
<asp:Label ID="xianshi" runat="server"></asp:Label>
</div>
<%-- 产品管理 --%>
<div class="none">
</div>
<%-- 产品添加 --%>
<div class="none">
</div>
<%-- 订单管理 --%>
<div class="none">
</div>
<%-- 用户管理 --%>
<div class="none">
</div>
</div>