<%@ Page Language="VB" AutoEventWireup="false" CodeFile="OnePage.aspx.vb" Inherits="user_OnePage" %>

<!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 id="Head1" runat="server">
    <link href="../StyleSheetPC.css" rel="stylesheet" type="text/css" />
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes, minimum-scale=0.5, maxmum-scale=2.0" />
    <title>
        <%= xTab%></title>
</head>
<body id="Backimage" runat="server">
    <form id="form1" runat="server">
    <%--page▼--%>
    <div id="vPage" runat="server">
        <%--header▼--%>
        <div id="header2">
            <h1>
                <a href="Default.aspx">
                    <%= xTitle%>
                </a>
            </h1>
        </div>
        <%--header▲--%>
        <%--pagecontents▼--%>
        <%--left▼--%>
        <div id="left" runat="server">
            <asp:Panel ID="PanelMenuPC" runat="server">
                <asp:Menu ID="Menu1" runat="server" BackColor="#F5F4F1" DataSourceID="SiteMapDataSourceMenu"
                    DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="Large" ForeColor="#7C6F57"
                    StaticDisplayLevels="2" StaticSubMenuIndent="30px" Width="220px">
                    <DynamicHoverStyle BackColor="#666666" ForeColor="White" Width="220px" />
                    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" Width="220px" />
                    <DynamicMenuStyle BackColor="#E3EAEB" Width="220px" />
                    <DynamicSelectedStyle BackColor="#1C5E55" Width="220px" />
                    <StaticHoverStyle BackColor="#666666" ForeColor="White" Width="220px" />
                    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" Width="220px" />
                    <StaticSelectedStyle BackColor="#DA3C41" ForeColor="White" Width="220px" />
                </asp:Menu>
                <br />
                <asp:Label ID="LabelOrder" runat="server" Visible="False"></asp:Label>
            </asp:Panel>
            <asp:Panel ID="PanelMenuMobile" runat="server">
                <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSourceMenu"
                    ShowLines="True" LineImagesFolder="~/img">
                </asp:TreeView>
            </asp:Panel>
        </div>
        <%--left▲--%>
        <%--main▼--%>
        <div id="main" runat="server" style="overflow: auto;">
            <asp:ListView ID="ListViewPages" runat="server" DataKeyNames="id" DataSourceID="SqlDataSourcePages">
                <AlternatingItemTemplate>
                    <tr style="background-color: #FFFFFF; color: #284775;">
                        <td>
                            <asp:Label ID="idLabel" runat="server" Text='<%# Eval("id") %>' />
                        </td>
                        <%--<td>
                                <asp:Label ID="dateLabel" runat="server" Text='<%# Eval("date") %>' />
                            </td>
                            <td>
                                <asp:Label ID="subjectLabel" runat="server" Text='<%# Eval("subject") %>' />
                            </td>
                            <td>
                                <asp:Label ID="bodyLabel" runat="server" Text='<%# Eval("body") %>' />
                            </td>
                            <td>
                                <asp:Label ID="levelLabel" runat="server" Text='<%# Eval("level") %>' />
                            </td>
                            <td>
                                <asp:Label ID="buttonLabel" runat="server" Text='<%# Eval("button") %>' />
                            </td>
                            <td>
                                <asp:Label ID="newLabel" runat="server" Text='<%# Eval("new") %>' />
                            </td>
                            <td>
                                <asp:Label ID="menuLabel" runat="server" Text='<%# Eval("menu") %>' />
                            </td>
                            <td>
                                <asp:Label ID="backcolorLabel" runat="server" Text='<%# Eval("backcolor") %>' />
                            </td>
                            <td>
                                <asp:Label ID="myidLabel" runat="server" Text='<%# Eval("myid") %>' />
                            </td>--%>
                    </tr>
                </AlternatingItemTemplate>
                <EditItemTemplate>
                    <tr style="background-color: #999999;">
                        <td>
                            <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="更新" />
                            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="キャンセル" />
                        </td>
                        <%--<td>
                                <asp:Label ID="idLabel1" runat="server" Text='<%# Eval("id") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="dateTextBox" runat="server" Text='<%# Bind("date") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="subjectTextBox" runat="server" Text='<%# Bind("subject") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="bodyTextBox" runat="server" Text='<%# Bind("body") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="levelTextBox" runat="server" Text='<%# Bind("level") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="buttonTextBox" runat="server" Text='<%# Bind("button") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="newTextBox" runat="server" Text='<%# Bind("new") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="menuTextBox" runat="server" Text='<%# Bind("menu") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="backcolorTextBox" runat="server" Text='<%# Bind("backcolor") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="myidTextBox" runat="server" Text='<%# Bind("myid") %>' />
                            </td>--%>
                    </tr>
                </EditItemTemplate>
                <EmptyDataTemplate>
                    <table id="Table1" runat="server" style="background-color: #FFFFFF; border-collapse: collapse;
                        border-color: #999999; border-style: none; border-width: 1px;">
                        <tr>
                            <td>
                                データは返されませんでした。
                            </td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <InsertItemTemplate>
                    <tr style="">
                        <td>
                            <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="挿入" />
                            <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="クリア" />
                        </td>
                        <%--<td>
                                &nbsp;
                            </td>
                            <td>
                                <asp:TextBox ID="dateTextBox" runat="server" Text='<%# Bind("date") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="subjectTextBox" runat="server" Text='<%# Bind("subject") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="bodyTextBox" runat="server" Text='<%# Bind("body") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="levelTextBox" runat="server" Text='<%# Bind("level") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="buttonTextBox" runat="server" Text='<%# Bind("button") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="newTextBox" runat="server" Text='<%# Bind("new") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="menuTextBox" runat="server" Text='<%# Bind("menu") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="backcolorTextBox" runat="server" Text='<%# Bind("backcolor") %>' />
                            </td>
                            <td>
                                <asp:TextBox ID="myidTextBox" runat="server" Text='<%# Bind("myid") %>' />
                            </td>--%>
                    </tr>
                </InsertItemTemplate>
                <ItemTemplate>
                    <tr style="background-color: #F7F6F3;">
                        <td style="width: 750px; padding-left: 7px;">
                            <asp:Label ID="Label1" runat="server" Text="タイトル："></asp:Label>
                            &nbsp;
                            <asp:Label ID="subjectLabel" runat="server" Text='<%# HttpUtility.HtmlDecode(Eval("subject")) %>' />
                        </td>
                        <%--<td>
                                <asp:Label ID="dateLabel" runat="server" Text='<%# Eval("date") %>' />
                            </td>
                            <td>
                                
                            </td>
                            <td>
                                <asp:Label ID="bodyLabel" runat="server" Text='<%# Eval("body") %>' />
                            </td>
                            <td>
                                <asp:Label ID="levelLabel" runat="server" Text='<%# Eval("level") %>' />
                            </td>
                            <td>
                                <asp:Label ID="buttonLabel" runat="server" Text='<%# Eval("button") %>' />
                            </td>
                            <td>
                                <asp:Label ID="newLabel" runat="server" Text='<%# Eval("new") %>' />
                            </td>
                            <td>
                                <asp:Label ID="menuLabel" runat="server" Text='<%# Eval("menu") %>' />
                            </td>
                            <td>
                                <asp:Label ID="backcolorLabel" runat="server" Text='<%# Eval("backcolor") %>' />
                            </td>
                            <td>
                                <asp:Label ID="myidLabel" runat="server" Text='<%# Eval("myid") %>' />
                            </td>--%>
                    </tr>
                    <tr style="background-color: #F7F6F3;">
                        <td>
                            <asp:Panel ID="Panel1" runat="server" BorderWidth="10px" BorderColor="#F7F6F3" BackColor="White">
                                <asp:Label ID="bodyLabel" runat="server" Text='<%# HttpUtility.HtmlDecode(Eval("body")) %>' />
                            </asp:Panel>
                        </td>
                    </tr>
                </ItemTemplate>
                <LayoutTemplate>
                    <table id="Table2" runat="server">
                        <tr id="Tr1" runat="server">
                            <td id="Td1" runat="server">
                                <table id="itemPlaceholderContainer" runat="server" border="1" style="background-color: #5D7B9D;
                                    border-collapse: collapse; border-color: #999999; border-style: none; border-width: 1px;
                                    font-family: Verdana, Arial, Helvetica, sans-serif;">
                                    <tr id="Tr2" runat="server" style="background-color: #5D7B9D; color: White;">
                                        <th id="Th1" runat="server" style="width: 730px;">
                                            <%= xPageTitle%>
                                        </th>
                                        <%--<th runat="server">
                                                date
                                            </th>
                                            <th runat="server">
                                                subject
                                            </th>
                                            <th runat="server">
                                                body
                                            </th>
                                            <th runat="server">
                                                level
                                            </th>
                                            <th runat="server">
                                                button
                                            </th>
                                            <th runat="server">
                                                new
                                            </th>
                                            <th runat="server">
                                                menu
                                            </th>
                                            <th runat="server">
                                                backcolor
                                            </th>
                                            <th runat="server">
                                                myid
                                            </th>--%>
                                    </tr>
                                    <tr id="itemPlaceholder" runat="server">
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <%--<tr runat="server">
                                <td runat="server" style="text-align: center; background-color: #5D7B9D; font-family: Verdana, Arial, Helvetica, sans-serif;
                                    color: #FFFFFF">
                                    <asp:DataPager ID="DataPager1" runat="server" PageSize="1">
                                        <Fields>
                                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="False" ShowNextPageButton="False"
                                                ShowPreviousPageButton="False" />
                                            <asp:NumericPagerField />
                                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="False" ShowNextPageButton="False"
                                                ShowPreviousPageButton="False" />
                                        </Fields>
                                    </asp:DataPager>
                                </td>
                            </tr>--%>
                    </table>
                </LayoutTemplate>
                <SelectedItemTemplate>
                    <tr style="background-color: #E2DED6; font-weight: bold; color: #333333;">
                        <td>
                            <asp:Label ID="idLabel" runat="server" Text='<%# Eval("id") %>' />
                        </td>
                        <%--<td>
                                <asp:Label ID="dateLabel" runat="server" Text='<%# Eval("date") %>' />
                            </td>
                            <td>
                                <asp:Label ID="subjectLabel" runat="server" Text='<%# Eval("subject") %>' />
                            </td>
                            <td>
                                <asp:Label ID="bodyLabel" runat="server" Text='<%# Eval("body") %>' />
                            </td>
                            <td>
                                <asp:Label ID="levelLabel" runat="server" Text='<%# Eval("level") %>' />
                            </td>
                            <td>
                                <asp:Label ID="buttonLabel" runat="server" Text='<%# Eval("button") %>' />
                            </td>
                            <td>
                                <asp:Label ID="newLabel" runat="server" Text='<%# Eval("new") %>' />
                            </td>
                            <td>
                                <asp:Label ID="menuLabel" runat="server" Text='<%# Eval("menu") %>' />
                            </td>
                            <td>
                                <asp:Label ID="backcolorLabel" runat="server" Text='<%# Eval("backcolor") %>' />
                            </td>
                            <td>
                                <asp:Label ID="myidLabel" runat="server" Text='<%# Eval("myid") %>' />
                            </td>--%>
                    </tr>
                </SelectedItemTemplate>
            </asp:ListView>
            <div style="text-align: center; background-color: #5D7B9D; font-family: Verdana, Arial, Helvetica, sans-serif;
                color: #FFFFFF; height: 25px;">
                <asp:DataPager ID="DataPager2" runat="server" PagedControlID="ListViewPages" PageSize="1">
                    <Fields>
                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowLastPageButton="True" />
                    </Fields>
                </asp:DataPager>
            </div>
            <asp:SqlDataSource ID="SqlDataSourcePages" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                SelectCommand="SELECT * FROM [Novel] ORDER BY [myid] DESC"></asp:SqlDataSource>
            <br />
        </div>
        <%--main▲--%>
        <%--footer▼--%>
        <div id="footer" runat="server">
            <hr />
            <h1>
                Footer</h1>
        </div>
        <%--footer▲--%>
        <asp:SqlDataSource ID="SqlDataSourceFormat" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="SELECT * FROM [Format] ORDER BY [id]"></asp:SqlDataSource>
        <asp:SiteMapDataSource ID="SiteMapDataSourceMenu" runat="server" />
    </div>
    <%--page▲--%>
    </form>
</body>
</html>
