<!--#include file="../Include/Const.Asp" -->
<!--#include file="../Include/ConnDatabase.asp" -->
<!--#include file="../Include/System_Language.asp" -->
<!--#include file="../Include/Version.Asp" -->
<!--#include file="CheckAdmin.Asp"-->
<%
'*********************************************
'软件名称：电家企业网站内容管理系统（DianJiaCMS）
'软件开发：电脑家园工作室
'网   址：http://www.537600.cn
'服务QQ：530051328
'服务邮箱：bbfhq@163.com
'微信公众号：diannaojiayuan
'*********************************************
%>
<%
Call SiteInfo()
%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<%=DianJiaCMS_Lang_Copyright(13)%>">
<meta name="author" content="<%=DianJiaCMS_Lang_Copyright(3)%>">
<title><%=DianJiaCMS_Lang_Copyright(1)%> <%=Soft_Version%></title>
<!--#Include file="DianJiaCMS_Css.Asp"-->
</head>
<body>
<!--#Include file="DianJiaCMS_Top.Asp"-->
<!--#Include file="DianJiaCMS_Meun.Asp"-->
<div id="wrap">
    <%
	If InStr(CompanyAdminPurview, "|26,") = 0 Then
		response.Write ("<br /><br /><div style='height:100%; text-align:center' class='main'><font style='color:red; font-size:14px;')>"&DianJiaCMS_Lang_System(26)&"</font></div>")
		response.End
	End If
	%>
    <div class="main">
        <div class="row">
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i> <%=DianJiaCMS_Lang_Copyright(14)%></li>
                <li><%=DianJiaCMS_Lang_Copyright(2)%></li>
                <li class='active'>生成静态</li>
            </ol>	
        </div>	
        <div class="row">
            <div class="col-lg-12 hideInIE8">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h2><i class="fa fa-edit"></i><span class="break"></span>生成网站静态页面（PC）</h2> 
                    </div>
                    <div class="panel-body">
                        <%Call Html("PC")%>
                        <div class="btn-group"  style="margin:10px 10px 10px 10px;">             
                            <a target="html_Bar" type="button" class="btn btn-primary" href="DianJiaCMS_Html_Index.Asp?bkkey=PC"><i class="fa fa-home"></i> 生成首页、联系及留言</a>
                        </div>
                        <div class="btn-group"  style="margin:10px 10px 10px 10px;">             
                            <a target="html_Bar" type="button" class="btn btn-danger" href="JavaScript:void(0)" onClick="JavaScript:HtmlSite('PC')"><i class="fa fa-home"></i> 生成PC全站静态</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <%If mStatus Then%>
        <div class="row">
            <div class="col-lg-12 hideInIE8">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h2><i class="fa fa-edit"></i><span class="break"></span>生成网站静态页面（手机）</h2> 
                    </div>
                    <div class="panel-body">
<img src='/mfb/15.jpg'><br>
         <a href="http://www.537600.cn" target="_blank" class="nav-header" ><img src='/mfb/mfb.png' width='500' height='100'></a>
                    </div>
                </div>
            </div>
        </div>
		<%End If%>
        <iframe style="border:0; width:100%;" scrolling="no" src="" name="html_Bar" id="html_Bar"></iframe>
    </div>
	<!--#Include file="DianJiaCMS_End.Asp"-->
</div>
<!--#Include file="DianJiaCMS_Js.Asp"-->
</body>
</html>
<%
Function Html(bkkey)
set rs = server.CreateObject("adodb.recordset")
rs.open "select * from DianJiaCMS_Module where ViewFlag Order by ID asc", conn, 1, 2
do until rs.eof
	If rs("DataForm") = 1 Then
		html1 = "DianJiaCMS_Html_AboutSort.Asp?bkkey="&bkkey
		html2 = "DianJiaCMS_Html_About.Asp?bkkey="&bkkey
	End If
	If rs("DataForm") = 2 Then
		html1 = "DianJiaCMS_Html_NewsSort.Asp?bkkey="&bkkey
		html2 = "DianJiaCMS_Html_News.Asp?bkkey="&bkkey
	End If
	If rs("DataForm") = 3 Then
		html1 = "DianJiaCMS_Html_ProductSort.Asp?bkkey="&bkkey
		html2 = "DianJiaCMS_Html_Product.Asp?bkkey="&bkkey
	End If
	If rs("DataForm") = 4 Then
		html1 = "DianJiaCMS_Html_CaseSort.Asp?bkkey="&bkkey
		html2 = "DianJiaCMS_Html_Case.Asp?bkkey="&bkkey
	End If
	If rs("DataForm") = 5 Then
		html1 = "DianJiaCMS_Html_DownSort.Asp?bkkey="&bkkey
		html2 = "DianJiaCMS_Html_Download.Asp?bkkey="&bkkey
	End If
	If rs("DataForm") = 6 Then
		html1 = "DianJiaCMS_Html_RecruitmentSort.Asp?bkkey="&bkkey
		html2 = "DianJiaCMS_Html_Recruitment.Asp?bkkey="&bkkey
	End If
	If rs("DataForm") = 7 Then
		html1 = "DianJiaCMS_Html_videoSort.Asp?bkkey="&bkkey
		html2 = "DianJiaCMS_Html_video.Asp?bkkey="&bkkey
	End If
	response.Write "<div class='btn-group' style='margin:10px 10px 10px 10px;'>"         
	response.Write "	<button type='button' class='btn btn-success'>"&rs("SystemName")&"静态管理</button>"
	response.Write "	<button type='button' class='btn btn-success dropdown-toggle' data-toggle='dropdown'>"
	response.Write "		<span class='caret'></span>"  
	response.Write "		<span class='sr-only'>"&rs("SystemName")&"静态管理</span>"  
	response.Write "	</button>"
	response.Write "	<ul class='dropdown-menu' role='menu'>"
	If rs("DataForm") = 1 Then
		response.Write "	<li><a target='html_Bar' href='"&html1&"'>生成"&rs("SystemName")&"栏目页</a></li>"
	Else
		response.Write "	<li><a target='html_Bar' href='"&html1&"'>生成"&rs("SystemName")&"栏目及分类页</a></li>"
	End If
	response.Write "	<li><a target='html_Bar' href='"&html2&"'>生成"&rs("SystemName")&"详细页</a></li>"
	response.Write "	</ul>"
	response.Write "</div>"  
	rs.movenext
loop
rs.close : set rs = nothing
End Function
%>