repetter

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CoursewareSectionList.aspx.cs" Inherits="MCS.WDEDUCloud.Portal.Vendor.CoursewareSectionList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>课件栏目维护</title>
    <link href="Content/GridView.css" rel="stylesheet" />
     <script type="text/javascript">
         function showWindown(url,width,heigth) {           
             window.showModalDialog(url, null,'dialogWidth='+width+'px;dialogHeight='+heigth+'px;help:no;status:no')
         }
    </script>
    <style type="text/css">
        .auto-style1 {
            height: 24px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div class="opreateNav">
                <img alt="添加分类" src="Images/add.png" style="cursor: pointer;" onclick="javascript:showWindown('CoursewareSectionAdd.aspx?courseWareId=<%=CourseWareID%>',700,500);" />
            </div>
            <table class="listTable">
                <asp:Repeater ID="rptChapterData" runat="server" OnItemDataBound="rptChapterData_ItemDataBound">
                    <%-- <HeaderTemplate>
                        <tr>
                            <%--<th>序号</th>                
                            <th colspan="2">栏目分类名称</th>
                        </tr>
                    </HeaderTemplate>--%>
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%#Container.ItemIndex+1%>
                            </td>
                            <td><%#Eval("ChapterName")%></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Repeater ID="rptSection" runat="server">
                                    <HeaderTemplate>
                                        <table border="1" style="width: 100%">
                                            <tr>
                                                <th>序号</th>
                                                <th>栏目名称</th>
                                                <th>操作</th>
                                            </tr>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <tr>
                                            <td>
                                                <%#Container.ItemIndex+1%>
                                            </td>
                                            <td>
                                                <%#Eval("SectionName") %>
                                            </td>
                                            <td>
                                                <asp:HyperLink ID="hlEdit" runat="server" NavigateUrl='<%#"CoursewareSectionEdit.aspx?courseWareId="+CourseWareID+"&sectionId="+Eval("SectionID") %>' Target="_blank">编辑</asp:HyperLink>
                                                <asp:LinkButton ID="lbMoveUp" runat="server" CommandName="up" OnCommand="lbMoveUp_Command" CommandArgument='<%# Eval("Sort")+","+Eval("SectionId")+","+Eval("ChapterId") %>'>上移</asp:LinkButton>
                                                <asp:LinkButton ID="lbMoveDown" runat="server" CommandName="down" OnCommand="lbMoveDown_Command" CommandArgument='<%# Eval("Sort")+","+Eval("SectionId")+","+Eval("ChapterId") %>'>下移</asp:LinkButton>

                                                <asp:LinkButton ID="lbDelete"  runat="server" CommandArgument='<%#Eval("SectionID")%>' OnCommand="lbDelete_Command" OnClientClick="return confirm('确定要删除该栏目吗?');">删除</asp:LinkButton>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <FooterTemplate></table></FooterTemplate>
                                </asp:Repeater>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </table>
            <div class="navigation">
                <div style="text-align: left; float: left; width: 349px;">
                    [第<asp:Label ID="lblcurPage" runat="server"></asp:Label>页/共<asp:Label ID="lblPageCount"
                        runat="server"></asp:Label>页] 共[<asp:Label ID="lblTotal" runat="server"></asp:Label>]条记录
                </div>
                <div style="text-align: right;">
                    <asp:LinkButton ID="lbtnFirstPage" runat="server" CommandName="First" OnCommand="Pager_Command">首页</asp:LinkButton>
                    <asp:LinkButton ID="lbtnPreview" runat="server" CommandName="Prev" OnCommand="Pager_Command">上一页</asp:LinkButton>
                    <asp:LinkButton ID="lbtnNext" runat="server" CommandName="Next" OnCommand="Pager_Command">下一页</asp:LinkButton>
                    <asp:LinkButton ID="lbtnLastPage" runat="server" CommandName="Last" OnCommand="Pager_Command">尾页</asp:LinkButton>
                    转到第<asp:TextBox ID="txtGoTo" runat="server" Width="30px" onKeyUp="value=value.replace(/\D/g,'')" onafterpaste="value=value.replace(/\D/g,'')" onpaste="return false"></asp:TextBox>页
                    <asp:Button ID="btnGO" runat="server" Text="确定" OnClick="btnGO_Click" />
                </div>

            </div>
            <%--<ul id="SectionList">
                <asp:Repeater runat="server" ID="rptList" OnItemCommand="rptList_ItemCommand">
                    <ItemTemplate>
                        <li style="height: 64px;">
                            <!--<img alt="" src="" style="width: 56px; height: 64px; display: inline-block; float: left;" />-->
                            <div style="height: 64px; line-height: 64px; vertical-align: middle; display: inline-block; float: left;">
                                <asp:CheckBox runat="server" ID="cbxSelect" />
                            </div>
                            <div style="height: 54px; line-height: 18px; display: inline-block; float: left; padding: 5px 9px 5px 9px; width: 80%;"><%#Eval("Description") %></div>
                            <div style="height: 64px; display: inline-block; float: right; line-height: 21px;">
                                <asp:LinkButton runat="server" ID="lbtnEdit" Text="编辑" PostBackUrl="~/CoursewareSectionEdit.aspx?1"></asp:LinkButton><br />
                                <asp:LinkButton runat="server" ID="lbtnDelete" CommandName="delete" Text="删除"></asp:LinkButton><br />
                                <asp:LinkButton runat="server" ID="lbtnInsert" Text="插入" CommandName="insert"></asp:LinkButton>
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>--%>
        </div>
    </form>
</body>
</html>

你可能感兴趣的:(r)