<%@ Page Language="c#" AutoEventWireup="true" Inherits="Web.Wpdcc.manageRegService" CodeBehind="manageRegService.aspx.cs" %>

<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>manage RegService</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/head.htm" -->


</head>
<body>
    <div class="main-content-inner">
        <!-- #section:basics/content.breadcrumbs -->
        <div class="breadcrumbs" id="breadcrumbs">
            <ul class="breadcrumb">
                <li>
                    <i class="ace-icon fa  fa-desktop"></i>
                    <a href="../welcome.aspx">主页</a>
                </li>
                <li>网站高级属性设置
                </li>
                <li class="active">服务注册管理</li>
            </ul>
        </div>
        <div class="page-content">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <form id="system" method="post" runat="server">
                        <div class="edit-func-box func-box">
                            <div class="tabbable">
                                <ul class="nav nav-tabs" id="myTab4">
                                    <li>
                                        <a aria-expanded="false" href="manageUploadFilesProperty.aspx" data-toggle="tab">上传限制</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageWatermark.aspx" data-toggle="tab">水印设置</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageMessageBoardProperty.aspx" data-toggle="tab">留言本</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageMobile.aspx" data-toggle="tab">手机微站</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageSSOProperty.aspx" data-toggle="tab">单点登录</a>
                                    </li>
                                    <li class="active">
                                        <a aria-expanded="false" href="manageRegService.aspx" data-toggle="tab">服务注册管理</a>
                                    </li>
                                    <li>
                                        <a aria-expanded="false" href="manageSMTP.aspx" data-toggle="tab">邮件服务参数设置</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="bd  tab-content">
                                <div class="page-header clearfix">
                                    <div class="action-field">
                                        <div class="search-box fr">
                                            服务注册码：
                        <asp:TextBox ID="txtRegServiceCode" runat="server" class="input-md" notNull="true" MaxLength="100" msgname="服务注册码"></asp:TextBox>
                                            &emsp;对应服务：
                        <asp:DropDownList ID="ddlServiceList" runat="server" CssClass="input-md" DataTextField="ServiceName" DataValueField="ServiceId"></asp:DropDownList>
                                            &emsp;
                        <asp:Button ID="add" class="btn btn-sm btn-primary" runat="server" Text="添 加" OnClick="add_Click"></asp:Button>
                                            &emsp;
                                              <asp:Button ID="ok" TabIndex="1" class="btn btn-sm btn-primary" runat="server" Text="保 存" CausesValidation="False" OnClick="ok_Click"></asp:Button>
                                        </div>
                                    </div>
                                </div>
                                <asp:DataGrid ID="adminDataGrid" class="table table-striped table-bordered table-hover" runat="server" AutoGenerateColumns="False"
                                    OnItemCommand="adminDataGrid_ItemCommand">
                                    <Columns>
                                        <asp:BoundColumn DataField="pkId" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="serviceId" HeaderText="服务名称" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="regServiceCode" HeaderText="服务注册码" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                        <asp:TemplateColumn HeaderText="审核" HeaderStyle-CssClass="title">
                                            <ItemTemplate>
                                                <asp:DropDownList ID="isAllowService" runat="server" SelectedValue='<%# DataBinder.Eval(Container, "DataItem.isAllowService") %>' CssClass="input-md" Width="90">
                                                    <asp:ListItem Value="0" Selected="True">待审</asp:ListItem>
                                                    <asp:ListItem Value="1">通过</asp:ListItem>
                                                    <asp:ListItem Value="-1">未通过</asp:ListItem>
                                                </asp:DropDownList>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                        <asp:BoundColumn DataField="regTime" HeaderText="注册时间" HeaderStyle-CssClass="title"></asp:BoundColumn>
                                        <asp:TemplateColumn HeaderText="执行" HeaderStyle-CssClass="title">
                                            <ItemTemplate>
                                                <div class="action-buttons">
                            <asp:LinkButton ID="assign" runat="server" CssClass="FBox " CausesValidation="False" data-toggle="tooltip" data-placement="bottom" title="对应栏目选择"><i class="ace-icon fa fa-cubes bigger-110 blue"></i></asp:LinkButton>
                                                    <asp:LinkButton ID="del" runat="server" CssClass="FDel " data-toggle="tooltip" data-placement="bottom" title="删除" CausesValidation="False" CommandName="del" data='<%# Eval("regServiceCode") %>'  CommandArgument='<%# Eval("regServiceCode") %>'><i class="ace-icon fa fa-trash-o bigger-120 red" ></i></asp:LinkButton>
                                                </div>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                    </Columns>
                                </asp:DataGrid>
                            </div>
                        </div>
                    </form>
                    <!-- PAGE CONTENT ENDS -->
                </div>
            </div>
        </div>
    </div>
    <!--#include file = "../Css/foot.htm" -->
    
    <script type="text/javascript">
        $(document).ready(function () {

            $("#ok").click(function () {
                return confirm("确定继续执行此操作吗？");
            });

            //统一检查页面输入项合法性
            $("#add").click(function () {
                return checkAllValidate();
            });

            $(".FBox").click(function () {
                var h = $(this).attr('href');
                if (h == "#") {
                    $.fancybox.cancle();
                }
            }).fancybox({
                'width': 550,
                'height': 500,
                autoSize: false,
                'hideOnOverlayClick': false,
                'transitionIn': 'elastic',
                'transitionOut': 'elastic',
                'type': 'iframe',
                'padding': '0'
            });

            $(".FDel").click(function () {
                var s = $(this).attr('data');
                return confirm("您确定要删除" + s + "的注册服务吗？");
            });

        });

    </script>
</body>
</html>
