<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="admin_Default"
    ValidateRequest="false" %>

<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!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 runat="server">
    <link href="../StyleSheetPC.css" rel="stylesheet" type="text/css" />
    <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 id="top" style="margin-top: 65px; padding-left: 30px; font-size: 14pt;">
                <a href="Default.aspx" style="text-decoration: none; color: White;">
                    <%= xTitle%>
                </a>
            </h1>
        </div>
        <%--header▲--%>
        <%--pagecontents▼--%>
        <%--left▼--%>
        <div id="left" runat="server">
            <asp:Panel ID="Panel2" runat="server" Width="220px">
                <asp:Menu ID="Menu1" runat="server" BackColor="#F7F6F3" DataSourceID="SiteMapDataSourceMenu"
                    DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="Large" ForeColor="#7C6F57"
                    StaticDisplayLevels="2" StaticSubMenuIndent="30px" Width="210px">
                    <DynamicHoverStyle BackColor="#666666" ForeColor="White" />
                    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                    <DynamicMenuStyle BackColor="#E3EAEB" />
                    <DynamicSelectedStyle BackColor="#1C5E55" />
                    <StaticHoverStyle BackColor="#666666" ForeColor="White" />
                    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                    <StaticSelectedStyle BackColor="#DA3C41" ForeColor="White" Width="175px" />
                </asp:Menu>
                <br />
                <asp:Menu ID="Menu2" runat="server" BackColor="#F7F6F3" DataSourceID="SiteMapDataSourceMenu2"
                    DynamicHorizontalOffset="2" Font-Names="Verdana" Font-Size="Large" ForeColor="#7C6F57"
                    StaticDisplayLevels="2" StaticSubMenuIndent="30px" Width="210px">
                    <DynamicHoverStyle BackColor="#666666" ForeColor="White" />
                    <DynamicMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                    <DynamicMenuStyle BackColor="#E3EAEB" />
                    <DynamicSelectedStyle BackColor="#1C5E55" />
                    <StaticHoverStyle BackColor="#666666" ForeColor="White" />
                    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
                    <StaticSelectedStyle BackColor="#DA3C41" ForeColor="White" Width="175px" />
                </asp:Menu>
                <br />
                <asp:Label ID="LabelName" runat="server" Text=""></asp:Label><br />
                <asp:Label ID="LabelMail" runat="server" Text=""></asp:Label><br />
                <asp:Label ID="LabelCookie" runat="server" Text="" Visible="false"></asp:Label>
                <table style="width: 100%;">
                    <tr>
                        <td colspan="2">
                            <table style="width: 100%;">
                                <tr>
                                    <td>
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/img/koma.gif" Visible="False" />
                                    </td>
                                    <td>
                                        <asp:Label ID="LabelIdou" runat="server" Text=""></asp:Label>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
                                AutoPostBack="True">
                                <asp:ListItem Selected="True" Text="編集" Value="編集"></asp:ListItem>
                                <asp:ListItem Selected="False" Text="移動" Value="移動"></asp:ListItem>
                            </asp:RadioButtonList>
                        </td>
                        <td>
                            <asp:Label ID="LabelFrom" runat="server" Text=""></asp:Label>
                        </td>
                    </tr>
                </table>
                <asp:SqlDataSource ID="SqlDataSourceSubjectList" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="SELECT * FROM [Novel] ORDER BY [id] DESC"></asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSourceSubjectList2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="SELECT * FROM [Novel] ORDER BY [id]"></asp:SqlDataSource>
                <asp:ListView ID="ListViewSubjectList" runat="server" DataSourceID="SqlDataSourceSubjectList"
                    DataKeyNames="id">
                    <AlternatingItemTemplate>
                        <tr style="background-color: #F7F6F3; color: #7C6F57; width: 197px; table-layout: fixed;">
                            <td style="white-space: nowrap; overflow: hidden; padding-left: 5px; padding-right: 5px;">
                                <asp:LinkButton ID="LinkButton2" runat="server" Width="197px" CommandName="Sel" CommandArgument='<%# Eval("id") %>'
                                    Font-Underline="false"><%# levelChar(Eval("level")) & HttpUtility.HtmlDecode(Eval("subject") & "")%></asp:LinkButton>
                            </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>--%>
                        </tr>
                    </AlternatingItemTemplate>
                    <EditItemTemplate>
                        <tr style="background-color: #FFCC66; color: #7C6F57;">
                            <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>
                        </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>
                        </tr>
                    </InsertItemTemplate>
                    <ItemTemplate>
                        <tr style="background-color: #F7F6F3; color: #7C6F57; width: 197px;">
                            <td style="white-space: nowrap; overflow: hidden; padding-left: 5px; padding-right: 5px;">
                                <asp:LinkButton ID="LinkButton1" runat="server" Width="197px" CommandName="Sel" CommandArgument='<%# Eval("id") %>'
                                    Font-Underline="false"><%# levelChar(Eval("level")) & HttpUtility.HtmlDecode(Eval("subject") & "")%></asp:LinkButton>
                            </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>--%>
                        </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: #FFFFFF;
                                        border-collapse: collapse; border-color: #999999; border-style: none; border-width: 1px;
                                        font-family: Verdana, Arial, Helvetica, sans-serif; width: 200px;">
                                        <tr id="Tr2" runat="server" style="background-color: #2461BF; color: White;">
                                            <%--<th runat="server">
                                            id</th>
                                        <th runat="server">
                                            date</th>--%>
                                            <th id="Th1" runat="server">
                                                タイトル
                                            </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>--%>
                                        </tr>
                                        <tr id="itemPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr id="Tr3" runat="server">
                                <td id="Td2" runat="server" style="text-align: center; background-color: #5D7B9D;
                                    font-family: Verdana, Arial, Helvetica, sans-serif; color: #333333;">
                                    <asp:DataPager ID="DataPager1" runat="server">
                                        <Fields>
                                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowLastPageButton="True" />
                                        </Fields>
                                    </asp:DataPager>
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                    <SelectedItemTemplate>
                        <tr style="background-color: #FFCC66; font-weight: bold; color: #7C6F57;">
                            <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>
                        </tr>
                    </SelectedItemTemplate>
                </asp:ListView>
                <asp:Label ID="LabelOrder" runat="server" Text=""></asp:Label>
                <asp:Label ID="Label1" runat="server" Text="IP:" Visible="False"></asp:Label>
                <asp:Label ID="LabelIP" runat="server" Visible="False"></asp:Label>
                <asp:Label ID="LabelMyid" runat="server" Text="Label" Visible="false"></asp:Label>
                <asp:Label ID="LabelProxy" runat="server" Text="" Visible="false"></asp:Label>
                <%--リストボックスのデータと書込み--%>
                <asp:SqlDataSource ID="SqlDataSourceAll" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="SELECT * FROM [Novel] ORDER BY [id] DESC" DeleteCommand="DELETE FROM [Novel] WHERE [id] = @id"
                    InsertCommand="INSERT INTO [Novel] ([date], [subject], [body], [level], [button], [new], [menu], [backcolor], [myid], [proxy]) VALUES (@date, @subject, @body, @level, @button, @new, @menu, @backcolor, @myid, @proxy)"
                    UpdateCommand="UPDATE [Novel] SET [date] = @date, [subject] = @subject, [body] = @body, [level] = @level, [button] = @button, [new] = @new, [menu] = @menu, [backcolor] = @backcolor, [myid] = @myid, [proxy] = @proxy WHERE [id] = @id">
                    <DeleteParameters>
                        <asp:SessionParameter Name="id" SessionField="id" Type="Int32" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:SessionParameter Name="date" SessionField="date" Type="DateTime" />
                        <asp:SessionParameter Name="subject" SessionField="subject" Type="String" />
                        <asp:SessionParameter Name="body" SessionField="body" Type="String" />
                        <asp:SessionParameter Name="level" SessionField="level" Type="Int32" />
                        <asp:SessionParameter Name="button" SessionField="button" Type="String" />
                        <asp:SessionParameter Name="new" SessionField="new" Type="String" />
                        <asp:SessionParameter Name="menu" SessionField="menu" Type="String" />
                        <asp:SessionParameter Name="backcolor" SessionField="backcolor" Type="String" />
                        <asp:SessionParameter Name="myid" SessionField="myid" Type="String" />
                        <asp:SessionParameter Name="proxy" SessionField="proxy" Type="String" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:SessionParameter Name="date" SessionField="date" Type="DateTime" />
                        <asp:SessionParameter Name="subject" SessionField="subject" Type="String" />
                        <asp:SessionParameter Name="body" SessionField="body" Type="String" />
                        <asp:SessionParameter Name="level" SessionField="level" Type="Int32" />
                        <asp:SessionParameter Name="button" SessionField="button" Type="String" />
                        <asp:SessionParameter Name="new" SessionField="new" Type="String" />
                        <asp:SessionParameter Name="menu" SessionField="menu" Type="String" />
                        <asp:SessionParameter Name="backcolor" SessionField="backcolor" Type="String" />
                        <asp:SessionParameter Name="myid" SessionField="myid" Type="String" />
                        <asp:SessionParameter Name="proxy" SessionField="proxy" Type="String" />
                        <asp:SessionParameter Name="id" SessionField="id" Type="Int32" />
                    </UpdateParameters>
                </asp:SqlDataSource>
                <br />
                <br />
                <%--リストボックスの移動対象の選択--%>
                <asp:SqlDataSource ID="SqlDataSourceFromTo" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="SELECT * FROM [Novel] WHERE (([id] &gt;= @id) AND ([id] &lt;= @id2)) ORDER BY [id] DESC">
                    <SelectParameters>
                        <asp:SessionParameter Name="id" SessionField="xStart" Type="Int32" />
                        <asp:SessionParameter Name="id2" SessionField="xEnd" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <asp:SqlDataSource ID="SqlDataSourceFromTo2" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="SELECT * FROM [Novel] WHERE (([id] &gt;= @id) AND ([id] &lt;= @id2)) ORDER BY [id]">
                    <SelectParameters>
                        <asp:SessionParameter Name="id" SessionField="xStart" Type="Int32" />
                        <asp:SessionParameter Name="id2" SessionField="xEnd" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <%--選択されたリストボックスのidから対象データの検索--%>
                <asp:SqlDataSource ID="SqlDataSourceID" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    SelectCommand="SELECT * FROM [Novel] WHERE ([id] = @id)">
                    <SelectParameters>
                        <asp:SessionParameter Name="id" SessionField="id" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
                <br />
            </asp:Panel>
        </div>
        <%--left▲--%>
        <%--main▼--%>
        <div id="main" runat="server">
            <asp:Panel ID="Panel3" runat="server">
                <table style="width: 730px;">
                    <tr>
                        <td style="width: 90px">
                            <asp:Label ID="Label4" runat="server" Text="タイトル"></asp:Label>
                        </td>
                        <td style="background-color: White;">
                            <asp:TextBox ID="TextBoxSubject" runat="server" Width="460px" Font-Size="Large"></asp:TextBox>
                            <%--<asp:Literal ID="LiteralSubject" runat="server" Visible="False"></asp:Literal>--%>
                        </td>
                        <td style="width: 50px; text-align: left;">
                            <asp:Label ID="Label5" runat="server" Text="日付"></asp:Label>
                        </td>
                        <td class="style1" style="width: 140px;">
                            <asp:TextBox ID="TextBoxDate" runat="server" Width="70px"></asp:TextBox>
                            <asp:Button ID="ButtonOpen" runat="server" Text="+" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            <asp:Panel ID="PanelOpen" runat="server" Visible="false">
                                <table style="width: 100%;">
                                    <tr>
                                        <td style="width: 90px">
                                        </td>
                                        <td style="text-align: left;">
                                            <asp:CheckBox ID="CheckBox1" runat="server" Checked="True" Text="リンクの有無" />&nbsp;&nbsp;
                                            <asp:Label ID="Label9" runat="server" Text="表示レベル"></asp:Label>
                                            <asp:Button ID="ButtonDown" runat="server" Text="←" />
                                            <asp:TextBox ID="TextBoxLevel" runat="server" Width="30px" ReadOnly="True"></asp:TextBox>
                                            <asp:Button ID="ButtonUp" runat="server" Text="→" />
                                            &nbsp; &nbsp;
                                            <asp:CheckBox ID="CheckBox3" runat="server" Text="代理入力" AutoPostBack="True" />
                                        </td>
                                        <td style="width: 50px; text-align: left;">
                                            &nbsp;<asp:Label ID="Label7" runat="server" Text="ID"></asp:Label>
                                        </td>
                                        <td class="style1" style="width: 140px;">
                                            <asp:Label ID="LabelID" runat="server" Text="0"></asp:Label>
                                            &nbsp;&nbsp;&nbsp;
                                            <asp:DropDownList ID="DropDownList1" runat="server">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <asp:Panel ID="PanelProxy" runat="server" Visible="false">
                                                <table style="width: 100%;">
                                                    <tr>
                                                        <td style="width: 90px">
                                                        </td>
                                                        <td style="width: 50px;">
                                                            <asp:Label ID="Label10" runat="server" Text="名前"></asp:Label>
                                                        </td>
                                                        <td style="width: 110px;">
                                                            <asp:TextBox ID="TextBoxName" runat="server" Width="100px"></asp:TextBox>
                                                        </td>
                                                        <td style="width: 50px;">
                                                            <asp:Button ID="Button3" runat="server" Text="確認" />
                                                        </td>
                                                        <td style="width: 50px;">
                                                            <asp:Label ID="Label11" runat="server" Text="メール"></asp:Label>
                                                        </td>
                                                        <td style="width: 160px;">
                                                            <asp:TextBox ID="TextBoxMail" runat="server"></asp:TextBox>
                                                        </td>
                                                        <td style="width: 50px;">
                                                            <asp:Button ID="Button4" runat="server" Text="確認" />
                                                        </td>
                                                        <td>
                                                        
                                                        </td>
                                                    </tr>
                                                </table>
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td style="text-align: left;">
                                            <asp:CheckBox ID="CheckBox4" runat="server" Text="白地" Checked="true" />
                                            &nbsp;
                                            <asp:CheckBox ID="CheckBoxUpload" runat="server" Text="ファイルのアップロード（名前のまま）" AutoPostBack="True" />
                                            
                                        </td>
                                        <td>
                                            
                                            <asp:Button ID="Button6" runat="server" Text="Trim" />
                                        </td>
                                        <td class="style1">
                                        <asp:Button ID="Button7" runat="server" Text="Spc" />
                                            <asp:CheckBox ID="CheckBox2" runat="server" />
                                            <asp:Image ID="Image2" runat="server" ImageUrl="~/img/newimage.gif" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label6" runat="server" Text="本文"></asp:Label>
                        </td>
                        <td colspan="2">
                            <asp:Button ID="Button2" runat="server" Text="新規" />
                            &nbsp;
                            <asp:Button ID="Button1" runat="server" Text="書込み" BackColor="#CCFFFF" />
                            &nbsp;<asp:Label ID="LabelMsg" runat="server" ForeColor="Red" Text="原稿は、スマホを意識して幅を固定しないでください"></asp:Label>
                        </td>
                        <td class="style1">
                            <asp:Button ID="Button5" runat="server" Text="削除" />
                            <asp:Label ID="Label8" runat="server" Text="　展開↑" Font-Size="Small"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" style="background-color: White;">
                            <asp:Panel ID="PanelAjax" runat="server">
                                <asp:TextBox ID="TextBoxBody" runat="server" TextMode="MultiLine" Height="550px"
                                    Width="100%"></asp:TextBox>
                                <ajaxToolkit:HtmlEditorExtender ID="HtmlEditorExtender1" runat="server" TargetControlID="TextBoxBody"
                                    DisplaySourceTab="true" EnableSanitization="False">
                                    <Toolbar>
                                        <ajaxToolkit:Undo />
                                        <ajaxToolkit:Redo />
                                        <ajaxToolkit:Bold />
                                        <ajaxToolkit:Italic />
                                        <ajaxToolkit:Underline />
                                        <ajaxToolkit:StrikeThrough />
                                        <ajaxToolkit:Subscript />
                                        <ajaxToolkit:Superscript />
                                        <ajaxToolkit:JustifyLeft />
                                        <ajaxToolkit:JustifyCenter />
                                        <ajaxToolkit:JustifyRight />
                                        <ajaxToolkit:JustifyFull />
                                        <ajaxToolkit:InsertOrderedList />
                                        <ajaxToolkit:InsertUnorderedList />
                                        <ajaxToolkit:CreateLink />
                                        <ajaxToolkit:UnLink />
                                        <ajaxToolkit:RemoveFormat />
                                        <ajaxToolkit:SelectAll />
                                        <ajaxToolkit:UnSelect />
                                        <ajaxToolkit:Delete />
                                        <ajaxToolkit:Cut />
                                        <ajaxToolkit:Copy />
                                        <ajaxToolkit:Paste />
                                        <ajaxToolkit:BackgroundColorSelector />
                                        <ajaxToolkit:ForeColorSelector />
                                        <ajaxToolkit:FontNameSelector />
                                        <ajaxToolkit:FontSizeSelector />
                                        <ajaxToolkit:Indent />
                                        <ajaxToolkit:Outdent />
                                        <ajaxToolkit:InsertHorizontalRule />
                                        <ajaxToolkit:HorizontalSeparator />
                                        <ajaxToolkit:InsertImage />
                                    </Toolbar>
                                </ajaxToolkit:HtmlEditorExtender>
                            </asp:Panel>
                            <asp:Panel ID="PanelSpc" runat="server" Visible="False">
                                <FTB:FreeTextBox ID="FreeTextBox1" runat="server" Width="100%">
                                </FTB:FreeTextBox>
                            </asp:Panel>
                        </td>
                    </tr>
                </table>
                <asp:Panel ID="PanelUpload2" runat="server" Width="600px">
                    <br />
                    <asp:Label ID="Label3" runat="server" Text="アップロード "></asp:Label>
                    <asp:Label ID="LabelUp1" runat="server" Text="　ファイルは、直ぐに転送されます。../files/ファイル名 となります。"
                        Font-Bold="true" Font-Size="Small" ForeColor="DarkGreen"></asp:Label>
                    <ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload1" runat="server" AutoStartUpload="True"
                        BackColor="White" Width="600px" />
                </asp:Panel>
                <%--<asp:Panel ID="PanelUpload" runat="server" Width="600px" Visible="False">
                        <br />
                        <asp:Label ID="LabelUp2" runat="server" Text="システム画像のアップロード。　"></asp:Label>
                        <asp:Label ID="Label2" runat="server" Text="../img/ファイル名 となります。" Font-Bold="true"
                            Font-Size="Small" ForeColor="DarkGreen"></asp:Label>
                        <br />
                        <ajaxToolkit:AjaxFileUpload ID="AjaxFileUpload2" runat="server" AutoStartUpload="True"
                            BackColor="White" Width="600px" />
                    </asp:Panel>--%>
                <hr />
            </asp:Panel>
        </div>
        <%--main▲--%>
        <%--footer▼--%>
        <div id="footer" runat="server">
            <hr />
            <h1>
                Footer &nbsp;
                <asp:Label ID="LabelFooter" runat="server" Text=""></asp:Label>
            </h1>
            <br />
        </div>
        <%--footer▲--%>
        <%--pagecontents▲--%>
    </div>
    <%--見てくれデータの読み取り--%>
    <asp:SqlDataSource ID="SqlDataSourceFormat" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
        SelectCommand="SELECT * FROM [Format] ORDER BY [id]"></asp:SqlDataSource>
    <asp:SiteMapDataSource ID="SiteMapDataSourceMenu" runat="server" SiteMapProvider="forViewer" />
    <asp:SiteMapDataSource ID="SiteMapDataSourceMenu2" runat="server" SiteMapProvider="forWriter" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    </form>
</body>
</html>
