<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PartInfo.aspx.cs" Inherits="Manage_PartInfo" %>
<%@ Import Namespace ="Spaces" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>控制面板 - 文章管理</title>

<link href="General2.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
form{padding:0;margin:0}
fieldset{border:1px solid #669900}
legend{font-weight:bold;color:#000}
input{padding-top:2px;}
.sec_nav {color:#438b47;}
.sec_nav a{text-decoration:none;color:#438b47}
.sec_nav a:hover{text-decoration:underline;}
.form_border{border-left:1px solid #ACD373;border-right:1px solid #ACD373;background:#fff;}
.form_in{line-height:120%;}
.form_in th{background:#c5d7e2}
img {border:0px  }
-->
</style>
    <script src="<%=Globals.ApplicationPath %>/Include/js/dialog.js" type="text/javascript"></script>

    <script src="<%=Globals.ApplicationPath %>/Include/js/base.js" type="text/javascript"></script>
    
 
</head>
<body>
    <form id="form1" runat="server">
        <div align="center">
            &nbsp;
            &nbsp;</div>
        
        <table width="640" border="0" align="center" cellpadding="0" cellspacing="0" class="black333333_red_noline">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="3" height="3"><img src="img/O_angle_up_left.gif" width="3" height="3"></td>
          <td bgcolor="#ACD373" width="100%"></td>
          <td width="3"><img src="img/O_angle_up_right.gif" width="3" height="3"></td>
        </tr>
    </table></td>
  </tr>
  <tr>
       <td bgcolor="#acd373" height=30>&nbsp;&nbsp;&nbsp;&nbsp;<font color="#ffffff"><B><%=Globals.Text["editgroup_groupmanagement"]%></B></font> 
                    </td>
  </tr>
  <tr>
    <td class="form_border">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="20">&nbsp;</td>
          <td>&nbsp;<asp:Label ID="Label1" runat="server">用户组管理</asp:Label></td>
          <td width="20">&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><table width="100%"  border="0" cellspacing="0" cellpadding="0" class="black333333_red_noline">
              <tr> 
                <td align="right" > 
                </td>
              </tr>
              <tr> 
                <td> <fieldset>
                  <legend>&nbsp;<%=Globals.Text["partinfo_modulemanage"]%>&nbsp;</legend>
                  <div align="right">
                      <%=Globals.Text["UserList_BLOGInterface"]%><br>
                      <%=Globals.Text["UserList_BlogManage"]%><br>
                    <br>
                  </div>
                  </fieldset></td>
              </tr>
              <tr> 
                <td height="5"></td>
              </tr>
              <tr> 
                <td ></td>
              <tr> 
                <td> 
                  <!-- 功能列表 -->
                  <!-- /功能列表 -->
                  <!-- 分类列表 -->
                  <!-- /分类列表 -->
                </td>
              </tr>
            </table></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>
              &nbsp;
              &nbsp;&nbsp;<asp:GridView ID="PartsView"   runat="server" CellPadding="3" CellSpacing="2" BackColor="White" CssClass="black333333_red_noline" AutoGenerateColumns="False" Width="100%" BorderWidth="0px">
                                   
                         <RowStyle BackColor="#EEF5E2"  />
                    <HeaderStyle BackColor="#669900" ForeColor="White" />    
                                        <columns>
                <asp:TemplateField HeaderText="模块ID">
                    <ItemTemplate>
                        <asp:Label ID="lblModuleID" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                         <asp:Label ID="lblModuleID" runat="server" Text='<%# Bind("Name") %>'></asp:Label>
                    </EditItemTemplate>
                 
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="模块标题">
                    <ItemTemplate>
                        <asp:Label ID="lblTitle" runat="server" Text='<%# Bind("Title") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtTitle" runat="server" Text='<%# Bind("Title") %>' onblur="check_title(this.value)"></asp:TextBox>
                    </EditItemTemplate>
                 
                </asp:TemplateField>
                <asp:TemplateField HeaderText="模块说明">
                    <ItemTemplate>
                       <asp:Label ID="lblDescription" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                    
                             <asp:TextBox ID="txtDescription" runat="server" Text='<%# Eval("Description") %>'></asp:TextBox>  
                    </EditItemTemplate>
                 
                   
                </asp:TemplateField>
                <asp:TemplateField HeaderText="用户是否可移除" Visible=false>
                    <ItemTemplate>
                        <asp:Label ID="lblEnableRemove" runat="server" Text='<%# Convert.ToBoolean(Eval("EnableRemove"))?"可以":"不可以" %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:CheckBox ID="chkEnableRemove" runat="server" Checked='<%# Convert.ToBoolean(Eval("EnableRemove"))  %>'/>
                    </EditItemTemplate>
                     
                </asp:TemplateField>
                
         
                
                                            <asp:CommandField ShowEditButton="True"   EditText="&lt;img src='./img/edit.gif' width='20' height='18' /&gt;"  HeaderText="编辑">
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:CommandField>
                                     
              <asp:TemplateField HeaderText="删除">
         <ItemTemplate>
          <asp:LinkButton ID="LinkButton1" CommandName="del" runat="server"  CommandArgument='<%# Eval("Name") %>' OnClientClick="javascript:return confirm('是否要删除该模块,如引用了该模块的主页将不在显示该模块？');">
           <img src="./img/icon_Del.gif" />
          </asp:LinkButton>
         </ItemTemplate>
         </asp:TemplateField>
           
            </columns>
            
                                       
                                        </asp:GridView></td>
          <td>
          </td>
        </tr>
          <tr>
              <td>
              </td>
              <td>
                  &nbsp;<fieldset>
                      <legend>&nbsp;<%=Globals.Text["GuestLimits_OrderTemp"]%>&nbsp;</legend>
                      <div align="center">
                        <table>
                            <tr>
                                <td align="right">
                                    模块ID:</td>
                                <td>
                                    <asp:TextBox ID="txtModuleID" runat="server"></asp:TextBox></td>
                                <td rowspan="1">
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <%=Globals.Text["partinfo_modulestitle"]%></td>
                                <td>
                                    <asp:TextBox  id="txtModuleTitle" runat="server"  ></asp:TextBox></td>
                                <td rowspan="2">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <%=Globals.Text["partinfo_modulessummary"]%></td>
                                <td>
                                    <asp:TextBox ID="txtModuleDesc" runat="server" TextMode="MultiLine" Rows=5 ></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td align="right">
                                </td>
                                <td align="left">
                                    <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" OnClientClick="return chkForm()" />
                                    &nbsp;[<a href="PlugInfo.aspx">从插件添加</a>]
                                       <script>
    function chkForm()
   {
   var mid=$('<%=txtModuleID.ClientID %>');
	if (mid.value.trim()== '')
	{
		_error_msg_show('模块ID不能为空!');
		return false;
	}
	 var mTitle=$('<%=txtModuleTitle.ClientID %>');
	if (mTitle.value.trim()== '')
	{
		_error_msg_show('模块标题不能为空！');
		return false;
	}
	return true;
}

    </script>
                                    </td>
                                <td rowspan="1">
                                </td>
                            </tr>
                        </table>
                          <br />
                      </div>
                  </fieldset>
                  <br />
              </td>
              <td>
              </td>
          </tr>
    </table></td>
  </tr>
  <tr>
    <td height="30" bgcolor="#E3F0D0"  align=center >&nbsp;  </td>
  </tr>

</table>
    </form>
</body>
</html>
<asp:literal runat="server" iD="Message"></asp:literal>