<!--#include file="../Include/Const.asp" -->
<!--#include file="../Include/ConnSiteData.asp" -->
<!--#include file="../Include/system_language.asp" -->
<!--#include file="CheckAdmin.asp"-->
<!--#include file="../Include/Version.asp" -->
<%
'*******************************************************
'软件名称：科蚁企业网站内容管理系统（KEYICMS）
'软件开发：成都神笔天成网络科技有限公司
'网   址：http://www.keyicms.com
'本信息不会影响您网站的正常使用，无论免费用户或是收费用户请保留这里的信息.
'神笔(50)天成网络享有软件著作权，如果您擅自删除这里的版权信息,我们将追究法律责任.
'未经公司同意禁止更改以下代码.
'*******************************************************
m_SQL = "select count(*) from keyicms_Admin"
set rs = conn.Execute(m_SQL)
m_ManageNumber = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_Message"
set rs = conn.Execute(m_SQL)
m_Message = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_Apage"
set rs = conn.Execute(m_SQL)
m_Apage = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_Video"
set rs = conn.Execute(m_SQL)
m_Video = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_Download"
set rs = conn.Execute(m_SQL)
m_Download = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_FriendLink"
set rs = conn.Execute(m_SQL)
m_FriendLink = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_Job"
set rs = conn.Execute(m_SQL)
m_Job = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_Team"
set rs = conn.Execute(m_SQL)
m_Team = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_Case"
set rs = conn.Execute(m_SQL)
m_Case = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_News"
set rs = conn.Execute(m_SQL)
m_News = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_Product"
set rs = conn.Execute(m_SQL)
m_Product = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_App"
set rs = conn.Execute(m_SQL)
m_App = rs(0)
rs.Close
set rs = Nothing

m_SQL = "select count(*) from keyicms_Template"
set rs = conn.Execute(m_SQL)
m_Template = rs(0)
rs.Close
set rs = Nothing
%>

<!DOCTYPE html>
<html lang="zh-cn">
<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="<%=Keyicms_Lang_Copyright(13)%>">
<meta name="author" content="<%=Keyicms_Lang_Copyright(3)%>">
<title><%=Keyicms_Lang_Copyright(1)%> <%=Str_Soft_Version%></title>
<!--#Include file="Keyicms_css.Asp"-->
</head>

<body>
<!--#Include file="Keyicms_Top.Asp"-->
<div id="wrap">
	<!--#Include file="Keyicms_Meun.Asp"-->

    <!-- start: Content -->
    <div class="main">
        <div class="row ">
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i> 当前位置</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>快捷菜单</h2> 
                        <div class="panel-actions">
                            <a href="#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
                            <a href="#" class="btn-close"><i class="fa fa-times"></i></a>
                        </div>
                    </div>
                    <div class="panel-body">
                    	<%If Conn.execute("select * from keyicms_System where DataForm=3")("ViewFlag") Then%>
                        <a class="ShortCut1" href="Ky_ProductEdit.Asp?Result=Add">  
                            <i class="fa fa-inbox"></i>
                            <div class="title">添加产品</div>
                        </a>
                        <%End If%>					
                    	<%If Conn.execute("select * from keyicms_System where DataForm=2")("ViewFlag") Then%>
                        <a class="ShortCut2" href="Ky_NewsEdit.Asp?Result=Add">  
                            <i class="fa fa-book"></i>
                            <div class="title">添加信息</div>
                        </a>					
                        <%End If%>					
                    	<%If Conn.execute("select * from keyicms_System where DataForm=4")("ViewFlag") Then%>
                        <a class="ShortCut3" href="Ky_CaseEdit.Asp?Result=Add">  
                            <i class="fa fa-picture-o"></i>
                            <div class="title">添加案例</div>
                        </a>					
                        <%End If%>			
                    	<%If Conn.execute("select * from keyicms_System where DataForm=5")("ViewFlag") Then%>
                        <a class="ShortCut5" href="Ky_VideoEdit.Asp?Result=Add">  
                            <i class="fa fa-youtube-play"></i>
                            <div class="title">添加视频</div>
                        </a>					
                        <%End If%>		
                    	<%If Conn.execute("select * from keyicms_System where DataForm=8")("ViewFlag") Then%>
                        <a class="ShortCut3" href="Ky_TeamEdit.Asp?Result=Add">  
                            <i class="fa fa-users"></i>
                            <div class="title">添加团队</div>
                        </a>					
                        <%End If%>		 		
                        <a class="ShortCut4" href="Ky_App.Asp">  
                            <i class="fa fa-suitcase"></i>
                            <div class="title">企业应用</div>
                        </a>	
                        <a class="ShortCut1" href="Ky_Template.Asp">  
                            <i class="fa fa-desktop"></i>
                            <div class="title">模板管理</div>
                        </a>					
                    </div>
                </div>
            </div><!--/col-->
        </div>	

        <div class="row">
            <div class="col-lg-3 col-md-4">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h2><i class="fa fa-bar-chart-o"></i>信息统计</h2>
                    </div>
                    <div class="panel-body">
                        <table id="user" class="table table-bordered table-striped" style="clear: both">
<!--                        <tr>         
                            <td width="65%">管理员</td>
                            <td width="35%"><%=m_ManageNumber%>个</td>
                        </tr>-->
                        <%
						set rs = server.CreateObject("adodb.recordset")
						rs.open "select * from keyicms_System where ViewFlag Order by ID asc", conn, 1, 2
						do until rs.eof
							DataForm = Conn.execute("select * from keyicms_DataForm where ID="&rs("DataForm"))("DataForm")
							m_rs = Conn.execute("select count(*) from "&DataForm)(0)
							response.Write "<tr>"         
							response.Write "	<td>"&rs("SystemName")&"</td>"
							response.Write "	<td>"&m_rs&"条</td>"
							response.Write "</tr>"  
							rs.movenext
						loop
						rs.close : set rs = nothing
						%>
<!--                        <tr>         
                            <td>企业应用</td>
                            <td><%=m_App%>条</td>
                        </tr> -->
                        <tr>         
                            <td>在线留言</td>
                            <td><%=m_Message%>条</td>
                        </tr>   
                        <tr>         
                            <td>网站模板</td>
                            <td><%=m_Template%>套</td>
                        </tr>                                       
                        </table>
                    </div>
                </div>	
            </div>
                    
            <div class="col-md-6">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <ul class="nav tab-menu nav-tabs" id="myTab">
                            <li class="active"><a href="#messages">关于KEYICMS</a></li>
                            <li class=""><a href="#info">系统基本信息</a></li>
                        </ul>
                    </div>
                    <div class="panel-body">
                        <div id="myTabContent" class="tab-content">
                            <div class="tab-pane" id="info">
							<%
                            set rs = server.createobject("adodb.recordset") 
                            sql = "select top 1 * from keyicms_AdminLog where [id] < (select max(id) from keyicms_AdminLog) order by [id] desc" 
                            rs.open sql,conn,1,1
							If rs.eof Then
								LoginTime = "暂无"
								LoginIP = "暂无"
							Else
								LoginTime = rs("LoginTime")
								LoginIP = rs("LoginIP")
							End If
                            rs.close : set rs = nothing

                            set rs1 = server.createobject("adodb.recordset") 
                            sql = "select top 1 * from keyicms_AdminLog order by id desc " 
                            rs1.open sql,conn,1,1
                            %>														
                            <table id="user" class="table table-bordered table-striped" style="clear: both">
                            <tr>         
                                <td width="35%">登陆角色</td>
                                <td width="65%"><%=session("UserName")%></td>
                            </tr>
                            <tr>         
                                <td>本次登陆时间</td>
                                <td><%=rs1("LoginTime")%></td>
                            </tr>  
                            <tr>         
                                <td>本次登陆IP地址</td>
                                <td><%=rs1("LoginIP")%> </td>
                            </tr>
                            <tr>         
                                <td>最近一次登陆时间</td>
                                <td><%=LoginTime%></td>
                            </tr> 
                            <tr>         
                                <td>最近一次登陆IP地址</td>
                                <td><%=LoginIP%></td>
                            </tr>  
                            <tr>         
                                <td>服务器名称</td>
                                <td><%=Request.ServerVariables("SERVER_NAME")%> (IP:<%=Request.ServerVariables("LOCAL_ADDR")%>) 端口:<%=Request.ServerVariables("SERVER_PORT")%></td>
                            </tr>
                            <tr>         
                                <td>服务器脚本引擎</td>
                                <td><%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %> </td>
                            </tr> 
                            <tr>         
                                <td>站点物理路径</td>
                                <td><%=request.ServerVariables("APPL_PHYSICAL_PAth")%></td>
                            </tr> 
                            <tr>         
                                <td>IIS版本</td>
                                <td><%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
                            </tr> 
                            <tr>         
                                <td>脚本超时时间</td>
                                <td><%=Server.ScriptTimeout%> s</td>
                            </tr>                                       
                            </table>
                            <%
                            rs1.close : set rs1 = nothing
                            %>
                            </div>
                            <div class="tab-pane active" id="messages">
                                <table id="user" class="table table-bordered table-striped" style="clear: both">
                                <tr>         
                                    <td width="30%">当前版本</td>
                                    <td width="70%"><%=Str_Soft_Version%></td>
                                </tr>
                                <tr>         
                                    <td>最新版本</td>
                                    <td><iframe name="mofine_products" src="http://www.keyicms.com/V/banben.asp" frameborder="0" scrolling="auto" width="100%" height="20"></iframe></td>
                                </tr>
        
                                <tr>         
                                    <td>版权所有</td>
                                    <td><a href="http://www.00tc.com/" target="_blank">成都神笔天成网络科技有限公司</a></td>
                                </tr> 
                                <tr>         
                                    <td>项目策划</td>
                                    <td>WenChang.Guo</td>
                                </tr>
                                <tr>         
                                    <td>开发与支持团队</td>
                                    <td>Haicheng.Du  WenChang.Guo</td>
                                </tr>   
                                <tr>         
                                    <td>界面及UI设计</td>
                                    <td>WenChang.Guo Haicheng.Du Yin.Wu</td>
                                </tr>
                                <tr>         
                                    <td>官方网站</td>
                                    <td><a href="http://www.keyicms.com/" target="_blank">http://www.keyicms.com</a></td>
                                </tr> 
                                <tr>         
                                    <td>交流论坛</td>
                                    <td><a href="http://www.ke01.com/forum.php?gid=59" target="_blank">http://www.ke01.com</a></td>
                                </tr>  
                                <tr>         
                                    <td>标签文档</td>
                                    <td><a href="http://help.keyicms.com/" target="_blank">V2.X 在线标签文档(点击阅读)</a></td>
                                </tr>  
                                <tr>         
                                    <td>模板插件</td>
                                    <td><a href="http://www.ke01.com/forum-61-1.html" target="_blank">点击获取商业模板插件</a></td>
                                </tr>                                     
                                </table>
                            </div>
                        </div>
                    </div>
                </div>				
            </div>

            <div class="col-lg-3 col-md-4">
                <div class="panel panel-default">
                    
                    <div class="panel-heading">
                        <h2><i class="fa fa-file-text-o"></i>官方动态</h2>
                    </div>
                    
                    <div class="panel-body">
                        <iframe name="mofine_products" src="http://www.keyicms.com/News/Keyicms.html" frameborder="0" scrolling="auto" width="100%" height="379"></iframe>
                    </div>
                </div>	
            </div>               
        </div>
            
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-default">

                    <div class="panel-heading">
                        <h2><i class="fa fa-bullhorn"></i><span class="break"></span>提示信息</h2>
                        <div class="panel-actions">
                            <a href="#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
                        </div>
                    </div>
                    <div class="panel-body alerts">
                        <div class="alert alert-info">
                            <button type="button" class="close" data-dismiss="alert">×</button>
                            KEYICMS 企业网站管理系统 V2.0 Beta 版本为全新构架版本，不支持 V1.x 版本直接升级，请悉知！
                        </div>
                        <div class="alert alert-danger">
                            <button type="button" class="close" data-dismiss="alert">×</button>
                            您当前使用的是免费开源版，此版本仅供学习交流使用，请勿用于商业用途；如需用于商业用途，请购买商业授权！
                        </div>
                        <div class="alert alert-info">
                            <button type="button" class="close" data-dismiss="alert">×</button>
                            如果您在使用中遇到任何问题，请登录官方论坛【<a href="http://www.ke01.com/forum-62-1.html" target="_blank">安装使用区</a>】发帖将您遇到的问题告知我们，谢谢！
                        </div>
                    </div>
                </div>
            </div>		
        </div>
    </div>
    <!-- end: Content -->
	<!--#Include file="Keyicms_End.Asp"-->				
</div>
<!--#Include file="Keyicms_Js.Asp"-->	
</body>
</html>