<%@Page Language="C#" Inherits="TopWinCMS.BLL.PageFactory.Pages.Index" EnableSessionState="false" EnableViewState="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>[PageTitle]</title>
    <link href="{StylePath}/Base.css" rel="stylesheet" type="text/css" />
    <script src="/JS/Ajax/AJAX.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript" src="/JS/TopWinCMS.js"></script>
    <script language="JavaScript" type="text/javascript" src="JS/fourpicshow.js"></script>
    <script language="javascript" type="text/javascript" src="JS/Ajax/GetVote.js"></script>
    <script language="javascript" type="text/javascript" src="JS/Ajax/MemberLoginBar.js"></script>
    <script language="javascript" type="text/javascript" src="JS/Ajax/CheckMessage.js"></script>
    <script language="javascript" type="text/javascript">
        function Show_NewData(InPut)
        {
            var tablist = InPut.parentNode.getElementsByTagName("div");

            for (var i = 0; i < tablist.length; i++)
            {
                if (tablist[i].id == InPut.id)
                {
                    tablist[i].className = "current";
                    $("dl_" + tablist[i].id).style.display = "block";
                }
                else
                {
                    tablist[i].className = "";
                    $("dl_" + tablist[i].id).style.display = "none";
                }
            }

        }

        addLoadEvent(function ()
        {
            GetVote(1); //绑定投票
        });
    </script>
    </head>
    <body>
    <!--#include file="Header.aspx"-->
    <div class="wherePath"> <img src="{StylePath}/Images/arrow.gif" alt="" /> 您现在的位置： 拓文网络 ［首页］ </div>
    <div style="height:4px">&nbsp;</div>
    <div class="mainDiv">
      <div class="Left">
       <!--#include file="LoginPanel.inc"-->
        <div class="divPanel_title">
          <div class="left" >&nbsp;</div>
          <div class="middle"> 网 站 公 告</div>
          <div class="right">&nbsp;</div>
        </div>
        <div class="divPanel_Content">
          <div class="divPanel">
            <ul>
              <TW:Announce Rows="10">
                <ItemTemplet>
                  <li><a href='javascript:var win =window.open("Announce/Announce.aspx?ID=@ID@",null,"width=502,height=200");'>@DateTime@&nbsp;［@Title@］</a></li>
                </ItemTemplet>
                <EmptyTemplet>没有公告</EmptyTemplet>
              </TW:Announce>
            </ul>
          </div>
        </div>
        <div class="divPanel_title">
          <div class="left" >&nbsp;</div>
          <div class="middle">热 门 文 章</div>
          <div class="right">&nbsp;</div>
        </div>
        <div class="divPanel_Content">
          <div class="divPanel">
            <ul>
              <TW:HotArticle Rows="10" Length="0" ModelID=2>
                <ItemTemplet>
                  <li><a href="@StaticURL@" title="@Title@">@ShortTitle@</a></li>
                </ItemTemplet>
                <EmptyTemplet>没有文章</EmptyTemplet>
              </TW:HotArticle>
            </ul>
          </div>
        </div>
        <div class="divPanel_title">
          <div class="left" >&nbsp;</div>
          <div class="middle">推 荐 文 章</div>
          <div class="right">&nbsp;</div>
        </div>
        <div class="divPanel_Content">
          <div class="divPanel">
            <ul>
              <TW:EliteArticle Rows="10" Length="32" ModelID=2>
                <ItemTemplet>
                  <li><a href="@StaticURL@" title="@ContentTitle@">@ShortTitle@</a></li>
                </ItemTemplet>
                <EmptyTemplet>没有文章</EmptyTemplet>
              </TW:EliteArticle>
            </ul>
          </div>
        </div>
        <div class="divPanel_title">
          <div class="left" >&nbsp;</div>
          <div class="middle">月 排 行</div>
          <div class="right">&nbsp;</div>
        </div>
        <div class="divPanel_Content">
          <div class="divPanel">
            <ul>
              <TW:TopMonthDown Rows="10" Length="32" ModelID=1>
                <ItemTemplet>
                  <li><a href="@StaticURL@" title="@SoftName@ @SoftVersion@">@ShortTitle@</a></li>
                </ItemTemplet>
              </TW:TopMonthDown>
            </ul>
          </div>
        </div>
        <div class="divPanel_title">
          <div class="left" >&nbsp;</div>
          <div class="middle"> 周 排 行</div>
          <div class="right">&nbsp;</div>
        </div>
        <div class="divPanel_Content">
          <div class="divPanel">
            <ul>
              <TW:TopWeekDown Rows="10" Length="32" ModelID=1>
                <ItemTemplet>
                  <li><a href="@StaticURL@" title="@SoftName@ @SoftVersion@">@ShortTitle@</a></li>
                </ItemTemplet>
              </TW:TopWeekDown>
            </ul>
          </div>
        </div>
        <div class="divPanel_title">
          <div class="left" >&nbsp;</div>
          <div class="middle"> 投 票 调 查</div>
          <div class="right">&nbsp;</div>
        </div>
        <div class="divPanel_Content">
          <div class="divPanel">
            <ul id="vote" >
            </ul>
          </div>
        </div>
      </div>
      <div class="Right">
        <div style="float:left; width:59%;margin-bottom:10px">
          <div class="DataList-Tabs">
            <div id="modelid_2" class="current" onmouseover="Show_NewData(this)"> 文章更新</div>
            <div id="modelid_1" onmousemove="Show_NewData(this)"> 软件更新</div>
          </div>
          <div class="DataList" id="dl_modelid_2">
            <ul>
              <TW:NewArticle Rows="12" Length="40" ModelID=2>
                <ItemTemplet>
                  <li><a href="@StaticURL@" title="文章标题：@ContentTitle@&#13;&#10;阅读：@Hits@">@ShortTitle@</a> </li>
                </ItemTemplet>
              </TW:NewArticle>
            </ul>
          </div>
          <div class="DataList" id="dl_modelid_1" style="display:none">
            <ul>
              <TW:NewSoft  Rows="12" Length="40" ModelID=1>
                <ItemTemplet>
                  <li><a href="@StaticURL@" title="@ContentTitle@">@ShortTitle@</a></li>
                </ItemTemplet>
              </TW:NewSoft>
            </ul>
          </div>
        </div>
        <div style="width:276px; height:auto; float:right;border: 1px solid #CCC; padding:3px">
          <div id="idPicShow" class="container">
            <ul id="idNum">
            </ul>
          </div>
          <div id="idPicText"></div>
          <script type="text/javascript">  
var rvt = new RevealTrans("idPicShow");

//添加变换对象
 <TW:Slide ModelID="2" Rows="5">
 <ItemTemplet>
rvt.Add('@PicUrl@', '@ContentTitle@', '@StaticURL@');
 </ItemTemplet>
</TW:Slide>
 
var oText = $("idPicText"), arrImg = [];

var oNum = $("idNum"), arrNum = [];

//设置图片列表
Each(rvt.List, function(list, i){
	//图片式
	var img = document.createElement("img");
	img.src = list["img"]; 
	img.alt = list["text"];
	arrImg[i] = img;
	//oList.appendChild(img);
	//按钮式
	var li = document.createElement("li");
	li.innerHTML = i + 1;
	arrNum[i] = li;
	oNum.appendChild(li);
	//事件设置
	img.onmouseover = li.onmouseover = function(){ rvt.Auto = false; rvt.Index = i; rvt.Start(); };
	img.onmouseout = li.onmouseout = function(){ rvt.Auto = true; rvt.Start(); };
});

//设置图片列表样式 文本显示区域
rvt.onShow = function(){
	var i = this.Index, list = this.List[i];
	//图片式
	Each(arrImg, function(o){ o.className = ""; }); arrImg[i].className = "on";
	//按钮式
	Each(arrNum, function(o){ o.className = ""; }); arrNum[i].className = "on";
	//文本区域
	oText.innerHTML = !!list.url ? "<a href='" + list.url + "' target='_blank'>" + list.text + "</a>" : list.text;
}

//文本显示区域
oText.onmouseover = function(){ rvt.Auto = false; rvt.Stop(); };
oText.onmouseout = function(){ rvt.Auto = true; rvt.Start(); };

rvt.Start();

</script> 
        </div>
        <div style="height:4px">&nbsp;</div>
        <TW:NewArticleList Rows=12 Length=50 Column=2 ShowClassName=true ModelID=2>
          <div style="width:100%; clear:both;">
            <Rows>
              <Column>
                <div class="DataList-Head">
                  <Articles>
                    <h1><a href="@StaticURL@">@ClassName@</a></h1>
                    <div class="DataList">
                      <ul>
                        <Article>
                          <li><a href="@StaticURL@">@ShortTitle@</a></li>
                        </Article>
                      </ul>
                    </div>
                  </Articles>
                </div>
              </Column>
            </Rows>
          </div>
        </TW:NewArticleList>
        <TW:NewSoftList Rows=12 Length=50 Column=2 ShowClassName=true ModelID=1>
          <div style="width:100%;clear:both;">
            <Rows>
              <Column>
                <div class="DataList-Head">
                  <Softs>
                    <h1><a href="@StaticURL@">@ClassName@</a></h1>
                    <div class="DataList">
                      <ul>
                        <Soft>
                          <li><a href="@StaticURL@"  title="@ContentTitle@">@ShortTitle@</a></li>
                        </Soft>
                      </ul>
                    </div>
                  </Softs>
                </div>
              </Column>
            </Rows>
          </div>
        </TW:NewSoftList>
      </div>
    </div>
    <div style="width:986px; margin-left:auto; margin-right:auto;clear:both;">
      <div style="height:4px">&nbsp;</div>
      <div style="width:926px; height:20px; float:left"><img src="{SysPath}/Images/FriendLink.gif" alt="" width="100%" height="20" /></div>
      <div style="width:60px; height:20px; float:left"><a href="ApplyFriend.aspx" target="_blank">申请链接</a></div>
      <div>
        <TW:FriendLink Type="Logo">
          <ItemTemplet> <a href="@FL_URL@" target="_blank"><img src="@FL_Logo@" width="88" height="33" alt="@FL_Title@" title="@FL_Title@" /></a> </ItemTemplet>
          <EmptyTemplet>没有Logo链接</EmptyTemplet>
        </TW:FriendLink>
      </div>
      <div>
        <TW:FriendLink Type="Text">
          <ItemTemplet> <a href="@FL_URL@" target="_blank">@FL_Title@</a> </ItemTemplet>
          <EmptyTemplet>没有文字链接</EmptyTemplet>
        </TW:FriendLink>
      </div>
    </div> 
    <!--#include file="Footer.aspx"-->

    </body>
</html>