<!--#include file="template_Fun.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<%=sitepath%>css/bootstrap.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/font-awesome.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/animate.min.css" rel="stylesheet">
<link href="<%=sitepath%>css/style.min.css" rel="stylesheet">
<link href="<%=sitepath&adminPath%>css/adminstyle.css" rel="stylesheet">
<link href="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.css" rel="stylesheet">
<script src="<%=sitepath%>js/jquery.min.js"></script>
<script src="<%=sitepath%>plugins/colorpicker/bootstrap-colorpicker.min.js"></script>
<!--[if lte IE 9]>
<script src="<%=sitepath%>js/respond.min.js"></script>
<script src="<%=sitepath%>js/html5.js"></script>
<![endif]-->
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content">
<div class="ibox float-e-margins">
<div class="row row-lg">
<div class="col-md-6">
							<div class="panel">
								<div class="panel-heading">
									<h3 class="panel-title">本地模板</h3>
									<div class="panel-aj">
										<button type="button" class="btn-toggle-collapse"><i class="fa fa-chevron-down"></i></button>
										<button type="button" class="btn-remove"><i class="fa fa-times"></i></button>
									</div>
								</div>
<div class="panel-body">
<div class="panel-body no-padding">		
<div class="ibox-content">

<div class="row m-t">
      <div class="col-sm-6">
        <div class="ibox float-e-margins"> <a class="collapse-link">
          <div class="ibox-title">
            <h5>PC模板</h5>
            <div class="ibox-tools"> <i class="fa fa fa-chevron-up"></i> </div>
          </div>
          </a>
          <div class="ibox-content">
            <div class="row">
              <%
		  Dim tempStr,folderArry		
		  folderArry=getFolderList(sitePath&"Template/pc/")
		 ' echop folderArry
		  if instr(folderArry(0),",")>0 then
				for i=0 to ubound(folderArry)
					folderAttr=split(folderArry(i),",")
					Dim xmlObj : Set xmlObj=new XmlClass
					if isFile(ABSPath(folderAttr(4)&"template.xml")) then
						xmlObj.load folderAttr(4)&"template.xml","xmlfile"						
						if folderAttr(0)&"/"=zset.pcTemplate then
							tempStr="<button type=""button"" class='btn btn-primary' onclick=window.open('"&sitepath&"','_blank');><i class='fa fa-check'></i> PC使用中  点击预览</button>"
						else
							tempStr="<a class='btn btn-info'  href='template_Fun.asp?act=setTemplate&Stype=PcTemplate&style="&folderAttr(0)&"'><i class='fa fa-gears'></i>　使用此模板</a>"
						end if
						%>
              <div class="col-sm-12 file">
                    <div class="image col-xs-5"> <img alt="image" class="feed-photo" src="<%=folderAttr(4)&xmlObj.getNodeValue("ScreenShot",0)%>"> </div>     
                  <div class="file-name  col-sm-7"> 
                    <dt>名称</dt>
                    <dd><%=xmlObj.getNodeValue("name",0)%></dd>
                    <dt>演示</dt>
                    <dd><a href="<%=xmlObj.getNodeValue("demo",0)%>" class="text-navy"><%=xmlObj.getNodeValue("demo",0)%></a> </dd>
                    <dt>作者</dt>
                    <dd><%=xmlObj.getNodeValue("author",0)%></dd>
                    <dt>主页</dt>
                    <dd><a href="<%=xmlObj.getNodeValue("website",0)%>" class="text-navy"><%=xmlObj.getNodeValue("website",0)%></a> </dd>
                    <dt>时间</dt>
                    <dd><%=xmlObj.getNodeValue("time",0)%></dd>
                    <dt>描述</dt>
                    <dd><%=xmlObj.getNodeValue("description",0)%></dd>
                       <%=tempStr%>
                  </div>
                </div>
            
              <%
					end if
				next
			end if
		  %>
            </div>
          </div>
        </div>
      </div>


      <div class="col-sm-6">
        <div class="ibox float-e-margins"> <a class="collapse-link">
          <div class="ibox-title">
            <h5>手机模板</h5>
            <div class="ibox-tools"> <i class="fa fa fa-chevron-up"></i> </div>
          </div>
          </a>
          <div class="ibox-content">
            <div class="row">
              <%
		  folderArry=getFolderList(sitePath&"Template/wap/")
		 ' echop folderArry
		  if instr(folderArry(0),",")>0 then
				for i=0 to ubound(folderArry)
					folderAttr=split(folderArry(i),",")					
					if isFile(ABSPath(folderAttr(4)&"template.xml")) then
						xmlObj.load folderAttr(4)&"template.xml","xmlfile"						
						if folderAttr(0)&"/"=zset.wapTemplate then
							tempStr="<button type=""button"" class='btn btn-primary' onclick=window.open('/wap','_blank');><i class='fa fa-check'></i> Wap使用中 点击预览</button>"
						else
							tempStr="<a class='btn btn-info'  href='template_Fun.asp?act=setTemplate&Stype=wapTemplate&style="&folderAttr(0)&"'><i class='fa fa-gears'></i>　使用此模板</a>"						
						end if
						%>
              <div class="col-sm-12 file">
                  <div class="image col-sm-5"> <img alt="image" class="feed-photo" src="<%=folderAttr(4)&xmlObj.getNodeValue("ScreenShot",0)%>"> </div>
                  <div class="file-name  col-sm-7">
                    <dt>名称</dt>
                    <dd><%=xmlObj.getNodeValue("name",0)%></dd>
                    <dt>演示</dt>
                    <dd><a href="<%=xmlObj.getNodeValue("demo",0)%>" class="text-navy"><%=xmlObj.getNodeValue("demo",0)%></a> </dd>
                    <dt>作者</dt>
                    <dd><%=xmlObj.getNodeValue("author",0)%></dd>
                    <dt>主页</dt>
                    <dd><a href="<%=xmlObj.getNodeValue("website",0)%>" class="text-navy"><%=xmlObj.getNodeValue("website",0)%></a> </dd>
                    <dt>时间</dt>
                    <dd><%=xmlObj.getNodeValue("time",0)%></dd>
                    <dt>描述</dt>
                    <dd><%=xmlObj.getNodeValue("description",0)%></dd> 
                       <%=tempStr%>                   
                                
                </div>
              </div>
              <%
					end if
				next
			end if
		  %>
            </div>
          </div>
        </div>
      </div>
    </div>

</div>
		
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="<%=sitepath%>js/klorofil-common.js"></script>
<script src="<%=sitepath%>js/bootstrap.min.js"></script> 
<script src="<%=sitepath%>plugins/layer/layer.min.js"></script> 
<script src="<%=sitepath&adminPath%>js/content.min.js"></script>
<script src="<%=sitepath&adminPath%>js/adminjs.js"></script>
</body>
</html>