<%@ Page Language="C#" AutoEventWireup="true" Inherits="WebApp.Wpdcc.WebSiteList" CodeBehind="WebSiteList.aspx.cs" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>子站站点列表</title>
    <meta name="description" content="overview &amp; stats" />

	<!--#include file = "../assets/head.htm" -->
	
</head>
<body class="no-skin">
    <form id="form1" runat="server">
    <div class="main-content-inner">
			<!-- #section:basics/content.breadcrumbs -->
			<div class="breadcrumbs" id="breadcrumbs">
				<script type="text/javascript">
					try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
				</script>

				<ul class="breadcrumb">
					<li>
						<i class="ace-icon fa fa-home home-icon"></i>
						主页
					</li>
					<li>站群基本信息</li>
					<li>WEB服务</li>
					<li class="active"><asp:Label ID="lblTitle" runat="server"></asp:Label></li>
				</ul><!-- /.breadcrumb -->

				<!-- /section:basics/content.searchbox -->
			</div>
			<!-- /section:basics/content.breadcrumbs -->
			
			<div class="page-content">
			<!-- PAGE CONTENT BEGINS -->
			<div class="page-header">
			    <asp:Button ID="btnBack" runat="server" Text="返回" OnClick="btnBack_Click" CssClass="btn btn-sm btn-primary" />
			</div>
			<div class="row">
				<div class="col-xs-12">
				
                <asp:DataGrid ID="dgWebSite" runat="server" class="table table-striped table-bordered" AutoGenerateColumns="False" DataKeyField="pkID" OnItemCommand="dgWebSite_ItemCommand">
                    <Columns>
                        <asp:TemplateColumn HeaderText="选择" HeaderStyle-CssClass="title" Visible="False">
                            <ItemTemplate>
                                <asp:CheckBox ID="cbxCheck" runat="server" />
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="pkID" HeaderText="ID" HeaderStyle-CssClass="title"></asp:BoundColumn>
                        <asp:BoundColumn DataField="applyID" HeaderText="站点ID" Visible="False" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="SchoolName" HeaderText="站点名称" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="域名" HeaderStyle-CssClass="title">
                            <ItemTemplate>
                                <asp:HyperLink ID="linkSchool" runat="server" NavigateUrl='<%# GetDomainName(Convert.ToInt32(DataBinder.Eval(Container, "DataItem.applyID").ToString())) %>'
                                    Target="_blank" Text='<%# DataBinder.Eval(Container, "DataItem.domainName") %>'> 
                                </asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="IP" HeaderText="IP" HeaderStyle-CssClass="title"></asp:BoundColumn>
                        <asp:BoundColumn DataField="Port" HeaderText="端口" HeaderStyle-CssClass="title"></asp:BoundColumn>
                        <asp:BoundColumn DataField="dbIP" HeaderText="数据库IP" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="dbName" HeaderText="数据库名称" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="webState" HeaderText="网站状态" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:TemplateColumn HeaderText="执行" HeaderStyle-CssClass="title">
                            <ItemTemplate>
                                <div class="action-buttons">
                                <asp:HyperLink ID="hplDetail" runat="server" NavigateUrl='<%# "WebDetail.aspx?applyID="+Eval("applyID") %>' Target="_blank" CssClass="FBox" ><i class="ace-icon fa fa-search-plus bigger-130" title="详细信息" ></i></asp:HyperLink>
                                <asp:LinkButton ID="btnDel" runat="server" CommandName="Del" Visible="False"><i class="ace-icon fa fa-trash-o bigger-130 red" title="删除"></i></asp:LinkButton>
                                </div>
                            </ItemTemplate>
                        </asp:TemplateColumn>
                        <asp:BoundColumn DataField="webId" HeaderText="webId" Visible="False" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="dbId" HeaderText="dbId" Visible="False" HeaderStyle-CssClass="title">
                        </asp:BoundColumn>
                    </Columns>
                </asp:DataGrid>

                <div class="clearfix">
				    <div class="col-md-12">
                        <asp:Label ID="lblSqlPage" runat="server"></asp:Label>
                    </div>
                </div>
            
            </div>
            </div>
            <!-- PAGE CONTENT ENDS -->
        </div>
        </div>
    </form>
    <!--#include file = "../assets/foot.htm" -->
    <script lang="javascript" type="text/javascript">
        jQuery(function ($) {
            //编辑：打开弹出层
            $(".FBox").click().fancybox({
                autoSize:false,
                'width': 1000,
                'height': 630,
                'hideOnOverlayClick': false,
                'type': 'iframe',
                'padding': '0'
            });

        });
    </script>
</body>
</html>