<%@ Page Title="模块配置" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Tablayout.aspx.cs" Inherits="Portal.Admin.Tablayout" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">





 <div class="result-wrap">


 
            <div class="result-title">
                <h1>模块配置</h1>
            </div>



  
    
  <table  class="table" >
  
   <tr>
   <th width="150px">
   模板类型
   </th>
   
   <td>
       <asp:DropDownList id="moduleType"    Width="250"   DataValueField="ModuleDefID" DataTextField="friendlyname" runat="server" />
   </td>
   </tr>
   
   <tr>
   
   <th>模块名称</th>
   
   <td>
    <asp:Textbox id="moduleTitle"     Text="新模块名称"    CssClass="form-control"  runat="server" />
    </td>
   </tr>
   
   
   <tr> 
   <th>
    模块类型
   </th>
   <td>
       <asp:DropDownList ID="modulePanename"  HintShowType="down"  Width="200px"  runat="server">
        <asp:ListItem Text="LeftPanel" Value="LeftPanel"></asp:ListItem>
         <asp:ListItem Text="ContentPanel" Value="ContentPanel"></asp:ListItem>
          <asp:ListItem Text="RightPanel" Value="RightPanel"></asp:ListItem>
        </asp:DropDownList>
   </td>
   </tr>
   
     
   
   
   <tr><td colspan="2"  >
   <div class="btnc">
       <asp:Button   id="AddModuleBtn" onclick="AddModuleToPane_Click" runat="server" class="btn btn-primary" Text="添加新模块" />
       </div>
   </td></tr>
   </table>
   
     
 

    <asp:Panel runat="server" ID="pnl">
   
   
   
   <table  >
   <tr valign="top">
   <td width="150px">
      <table border="0" cellspacing="0" cellpadding="2" width="100%">
                                                    <tr>
                                                        <td class="NormalBold">
                                                            &nbsp;左迷你窗格
                                                        </td>
                                                    </tr>
                                                    <tr valign="top">
                                                        <td>
                                          <table border="0" cellspacing="2" cellpadding="0">
                                                                <tr valign="top">
                                                                    <td rowspan="2">
                                                                        <asp:ListBox id="LeftPanel"  DataTextField="modulename" DataValueField="ModuleId" width="180"  Height="200px" runat="server" />
                                                                    </td>
                                                                    <td valign="top" nowrap>
                                                                        <asp:ImageButton ImageUrl="images/up.gif" CommandName="up" CommandArgument="LeftPanel"    OnClick="UpDown_Click" AlternateText="上移" runat="server" id="LeftUpBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/rt.gif"  CommandName="right" Sourcepane="LeftPanel" OnClick="RightLeft_Click" targetpane="ContentPanel" AlternateText="右移" runat="server" id="LeftRightBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/dn.gif" CommandName="down" CommandArgument="LeftPanel"  OnClick="UpDown_Click" AlternateText="下移" runat="server" id="LeftDownBtn" />
                                                                        &nbsp;&nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="bottom" nowrap>
                                                                        <asp:ImageButton ImageUrl="images/edit.gif" OnClick="EditBtn_Click" CommandName="edit" CommandArgument="LeftPanel" AlternateText="编辑" runat="server" id="LeftEditBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/delete.gif" OnClick="DeleteBtn_Click" CommandName="delete" CommandArgument="LeftPanel" AlternateText="删除" runat="server" id="LeftDeleteBtn" />
                                                                    </td>
                                                                </tr>
                                              </table>
                                                        </td>
                                                    </tr>
                                                </table>
   </td>
   
    <td width="*">
      <table border="0" cellspacing="0" cellpadding="2" width="100%">
                                                    <tr>
                                                        <td class="NormalBold">
                                                            &nbsp;內容窗格
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td align="middle">
                                                            <table border="0" cellspacing="2" cellpadding="0">
                                                                <tr valign="top">
                                                                    <td rowspan="2">
                                                                        <asp:ListBox id="ContentPanel"   DataTextField="modulename" DataValueField="ModuleId" width="200"  Height="200px" runat="server" />
                                                                    </td>
                                                                    <td valign="top" nowrap>
                                                                        <asp:ImageButton ImageUrl="images/up.gif" CommandName="up" OnClick="UpDown_Click" CommandArgument="ContentPanel" AlternateText="上移" runat="server" id="ContentUpBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/lt.gif" sourcepane="ContentPanel" targetpane="LeftPanel" OnClick="RightLeft_Click" AlternateText="左移" runat="server" id="ContentLeftBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/rt.gif" sourcepane="ContentPanel" targetpane="RightPanel" OnClick="RightLeft_Click" AlternateText="右移" runat="server" id="ContentRightBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/dn.gif" CommandName="down" CommandArgument="ContentPanel"  OnClick="UpDown_Click" AlternateText="下移" runat="server" id="ContentDownBtn" />
                                                                        <br>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="bottom" nowrap>
                                                                        <asp:ImageButton ImageUrl="images/edit.gif"  OnClick="EditBtn_Click"  CommandName="edit" CommandArgument="ContentPanel" AlternateText="编辑" runat="server" id="ContentEditBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/delete.gif" OnClick="DeleteBtn_Click" CommandName="delete" CommandArgument="ContentPanel" AlternateText="删除" runat="server" id="ContentDeleteBtn" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
    </td>
   
     <td width="150">
        <table border="0" cellspacing="0" cellpadding="2" width="100%">
                                                    <tr>
                                                        <td class="NormalBold">
                                                            &nbsp;右迷你窗格
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>
                                                            <table border="0" cellspacing="2" cellpadding="0">
                                                                <tr valign="top">
                                                                    <td rowspan="2">
                                                                        <asp:ListBox id="RightPanel"  DataTextField="modulename"  DataValueField="ModuleId" width="180" Height="200px" runat="server" />
                                                                    </td>
                                                                    <td valign="top" nowrap>
                                                                        <asp:ImageButton ImageUrl="images/up.gif" CommandName="up" CommandArgument="RightPanel" AlternateText="上移"  OnClick="UpDown_Click" runat="server" id="RightUpBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/lt.gif" sourcepane="RightPanel" targetpane="ContentPanel" OnClick="RightLeft_Click" AlternateText="左移" runat="server" id="RightLeftBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/dn.gif" CommandName="down" CommandArgument="RightPanel" AlternateText="下移" runat="server"  OnClick="UpDown_Click" id="RightDownBtn" />
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td valign="bottom" nowrap>
                                                                        <asp:ImageButton ImageUrl="images/edit.gif"  OnClick="EditBtn_Click"  CommandName="edit" CommandArgument="RightPanel" AlternateText="编辑" runat="server" id="RightEditBtn" />
                                                                        <br>
                                                                        <asp:ImageButton ImageUrl="images/delete.gif" OnClick="DeleteBtn_Click" CommandName="delete" CommandArgument="RightPanel" AlternateText="删除" runat="server" id="RightDeleteBtn" />
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
    </td>
   </tr>
  </table>
                                    
                                
                             
            <div style=" width:600px; text-align:center; margin:5px">  
                                
        <input  type="button" value="预览" Class="btn" onclick="window.open('../portal/default.aspx?tabid=<%=Request.QueryString["tabid"]%>'); return false;" />   
        <input  type="button" value="取消" Class="btn" onclick="window.location='tabs.aspx'" />   
                 </div>                       
<br /><br /><br />

   </asp:Panel>
                                    

</div>






</asp:Content>
