<%@ Page Title="系统信息" Language="C#" MasterPageFile="~/Manager/Manger.Master" EnableEventValidation="false" validateRequest="false" AutoEventWireup="true" CodeBehind="MWebConfig.aspx.cs" Inherits="Stat.web.Manerger.MWebConfig" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">

$(document).ready(function(){ 
     $("input[name$='btnEditSave']").bind('click', chefrom);
});
function chefrom()
{
   var show= $("input[name$='txtShowID']").val();
   if(!checkNum(show)){   
       alert("演示站点 需要一个数字");
        $("input[name$='txtShowID']").focus();
        return false; 
    }
}

</script>




</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cpTop" runat="server">
<div style="margin-top: 5px;">
    当前位置：系统配置 &gt; 系统信息
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cpMSG" runat="server">
 <span class="M_b14">小贴士：</span> 你可以配置 本系统的相关信息。     
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cpMain" runat="server">
<br />
       <table align="left" width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td valign="top" align="center">
                    <asp:Panel ID="pnWebList" runat="server" BackColor="White" Width="100%">
                        <asp:GridView ID="gvWebList" runat="server" AutoGenerateColumns="False" EmptyDataText="没有找到，请添加"
                            GridLines="None" Width="100%" BorderColor="#CEDFEF" BorderWidth="1px" 
                            onrowdatabound="gvWebList_RowDataBound" onrowdeleting="gvWebList_RowDeleting" 
                            onrowediting="gvWebList_RowEditing">
                            <Columns>
                                <asp:BoundField DataField="id" HeaderText="ID" SortExpression="WebId">
                                    <HeaderStyle Height="25px" />
                                    <ItemStyle Width="50px" />
                                </asp:BoundField>
                                <asp:BoundField DataField="WebName" HeaderText="系统名称" 
                                    SortExpression="WebName" >
                                    <ItemStyle HorizontalAlign="Left" Width="150px" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="WebUrl" HeaderText="系统地址" SortExpression="WebUrl" >
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="开放" >
                                    <ItemTemplate >
                                        <asp:Label ID="Label1" runat="server" Text='<%# IsReg(Eval("IsReg")) %>'></asp:Label>                                      
                                    </ItemTemplate>
                                    <ItemStyle Width="70px" CssClass="forumRow" />
                                </asp:TemplateField>
                                <asp:ButtonField CommandName="Edit" Text="编辑">
                                    <ItemStyle Width="40px" />
                                </asp:ButtonField>
                                <asp:CommandField ShowDeleteButton="True">
                                    <ItemStyle Width="40px" />
                                </asp:CommandField>
                            </Columns>                            
                            <HeaderStyle BackColor="#E9F1FA" Height="20px" />
                        </asp:GridView>
                       </asp:Panel>
                    <asp:Panel ID="pnEditWeb" runat="server" BackColor="White" Visible="False"
                        Width="100%">
                        <table bgcolor="#cedfef" border="0" cellpadding="0" cellspacing="1" class="padding" width="100%">
                            <tr>
                                <td  colspan="2" style="height: 26px" bgcolor="#e9f1fa" height="25">
                                    <strong><span style="font-size: 12pt">
                                    系统信息</span></strong></td>
                            </tr>
                            <tr>
                                <td style="width: 165px; height: 25px; text-align: right" bgcolor="#FFFFFF">
                                    网站名称：</td>
                                <td style="width: 512px; height: 25px; text-align: left" bgcolor="#FFFFFF">
                                    <asp:TextBox ID="txtWebName" runat="server" Width="150px"></asp:TextBox>
                                    </td>
                            </tr>
                            <tr style="color: #000000">
                                <td style="width: 165px; height: 26px; text-align: right" bgcolor="#FFFFFF">
                                    网站地址：</td>
                                <td style="width: 512px; height: 26px; text-align: left" bgcolor="#FFFFFF">
                                    <asp:TextBox ID="txtWebUrl" runat="server" Width="250px"></asp:TextBox>
                                    </td>
                            </tr>
                            <tr style="color: #000000">
                                <td bgcolor="#FFFFFF" style="width: 165px; height: 26px; text-align: right">
                                    LOGO图片：</td>
                                <td bgcolor="#FFFFFF" style="width: 512px; height: 26px; text-align: left">
                                
                                <asp:Panel ID="pnBtnUpLoad" runat="server">
    <asp:FileUpload ID="fupd" runat="server" />
    <asp:Button ID="btnUpFileImg" runat="server" Text="上传" onclick="btnUpFile1_Click" CausesValidation="False" />
</asp:Panel>
 <asp:Panel ID="pnSignImg" runat="server" Visible="false">
                             <asp:TextBox ID="txtImgPath" runat="server" Width="250px"></asp:TextBox>
      <asp:Button ID="rebtn" runat="server" Text="重新上传"  onclick="rebtn1_Click" CausesValidation="False" />
</asp:Panel>
       
       
                                </td>
                            </tr>
                            <tr style="color: #000000">
                                <td bgcolor="#ffffff" style="width: 165px; height: 26px; text-align: right">
                                    统计代码：</td>
                                <td bgcolor="#ffffff" style="width: 512px; height: 26px; text-align: left">
                                    <asp:TextBox ID="txtStat" runat="server" Width="250px" Height="65px" 
                                        TextMode="MultiLine"></asp:TextBox>&nbsp; </td>
                            </tr>
                            <tr style="color: #000000">
                                <td bgcolor="#ffffff" style="width: 165px; height: 26px; text-align: right">
                                    服务协议：</td>
                                <td bgcolor="#ffffff" style="width: 512px; height: 26px; text-align: left">
                                    <asp:TextBox ID="txtCopy" runat="server" Height="65px" TextMode="MultiLine" 
                                        Width="250px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="color: #000000">
                                <td bgcolor="#ffffff" style="width: 165px; height: 26px; text-align: right">
                                    网站底部：</td>
                                <td bgcolor="#ffffff" style="width: 512px; height: 26px; text-align: left">
                                    <asp:TextBox ID="txtFoot" runat="server" Height="65px" TextMode="MultiLine" 
                                        Width="250px"></asp:TextBox>
                                </td>
                            </tr>
                            <tr style="color: #000000">
                                <td bgcolor="#ffffff" style="width: 165px; height: 26px; text-align: right">
                                    演示站点ID：</td>
                                <td bgcolor="#ffffff" style="width: 512px; height: 26px; text-align: left">
                                    <asp:TextBox ID="txtShowID" runat="server" MaxLength="6" Width="80px"></asp:TextBox>
                                    (数字)</td>
                            </tr>
                            <tr style="color: #000000">
                                <td bgcolor="#ffffff" style="width: 165px; height: 26px; text-align: right">
                                    用户注册：</td>
                                <td bgcolor="#ffffff" style="width: 512px; height: 26px; text-align: left">
                                    <asp:RadioButtonList ID="rBtnIsReg" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Selected="True" Value="1">启用</asp:ListItem>
                                        <asp:ListItem Value="0">禁止</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr style="color: #000000">
                                <td bgcolor="#ffffff" style="width: 165px; height: 26px; text-align: right">
                                    用户登录：</td>
                                <td bgcolor="#ffffff" style="width: 512px; height: 26px; text-align: left">
                                    <asp:RadioButtonList ID="rBtnState" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Selected="True" Value="1">启用</asp:ListItem>
                                        <asp:ListItem Value="0">停止</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr style="color: #000000">
                                <td bgcolor="#ffffff" style="width: 165px; height: 26px; text-align: right">
                                    用户密码：</td>
                                <td bgcolor="#ffffff" style="width: 512px; height: 26px; text-align: left">
                                    <asp:RadioButtonList ID="rBtnIsMD5" runat="server" RepeatDirection="Horizontal">
                                        <asp:ListItem Selected="True" Value="1">加密</asp:ListItem>
                                        <asp:ListItem Value="0">明文</asp:ListItem>
                                    </asp:RadioButtonList>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="height: 26px" bgcolor="#FFFFFF">
                                    &nbsp;<asp:Button ID="btnEditSave" runat="server" OnClick="btnEditSave_Click" 
                                        Text="保存数据" />
                                    <asp:HiddenField ID="hdfId" runat="server" />
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
        </table> 
</asp:Content>
