<%@ page language="C#" autoeventwireup="true" masterpagefile="AdminIndexMaster.master" inherits="Admin_Admin_Main, mallz" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script src="Js/tabpane.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
var xmlhttp=GetAjaxObject();
var title=[];
var link=[];
var description=[];
var pubDate=[];
var version=[];
var question;
var version;
//获取XML
function GetAjaxObject(){
  var httprequest=false;
  if(window.XMLHttpRequest){
     httprequest=new XMLHttpRequest();
     if(httprequest.overrideMimeType){
        httprequest.overrideMimeType('text/xml');
     }
  }
  else if(window.ActiveXObject){
     try{
        httprequest=new ActiveXObject("Msxml2.XMLHTTP");
        
     }
     catch(e){
       try{
          httprequest=new ActiveXObject("Microsoft.XMLHTTP");
       }
       catch(e){}
     }  
  }
  return httprequest;
}

function GetRss(obj,url,id){
  var contentobj= document.getElementById(id).innerHTML;   
  if(contentobj.length==0)
  {     
       document.getElementById(id).innerHTML="正在连接网站，请稍候...";      
       xmlhttp=GetAjaxObject();
      
       var submitURL="AdminService.ashx?Action=GetRssContent&rssurl="+url;   
       xmlhttp.open("GET",submitURL,true);  
       xmlhttp.onreadystatechange=function()
       {  
           if(xmlhttp.readystate==4)
           {  
              if(xmlhttp.status==200)
              {
                 title.length=0;
                 link.length=0;
                 pubDate.length=0;
                 description.length=0;
                 version.length=0;                
                 var rssobj=xmlhttp.responseXML;
                 obj=rssobj.getElementsByTagName("item");                
                 processRequest(obj,id);                                   
                 
              }
              else
                 alert("资源未找到");      
            }
      }
      xmlhttp.send(null);
  }  
   
}


function processRequest(obj,id)
{ 
  for(var i=0;i<obj.length;i++)
  { 
     title[i]=obj[i].getElementsByTagName("title")[0].firstChild.nodeValue; 
     pubDate[i]=obj[i].getElementsByTagName("pubDate")[0].firstChild.nodeValue; 
     if(obj[i].getElementsByTagName("link")[0]!=null)
     {
        link[i]=obj[i].getElementsByTagName("link")[0].firstChild.nodeValue;       
     }
     else
     {
        link[i]="#";
     }                        
                           
     if(obj[i].getElementsByTagName("description")[0]!=null && obj[i].getElementsByTagName("description")[0].hasChildNodes())
     {
        description[i]=obj[i].getElementsByTagName("description")[0].firstChild.nodeValue;  
     }       
     else
     {
        description[i]="略";
     }  
  }
  
      
  var result="<ul>";
  for(var i=0;i<title.length;i++)
  {
      result+="<li><a href='"+link[i]+"' target='_blank' >"+title[i]+"</a>&nbsp;&nbsp;&nbsp;<span>"+pubDate[i]+"</span></li>";
  }
  result+="</ul>"
  document.getElementById(id).innerHTML=result;
}

// ]]>
    </script>

<table class="adminheading" border="0" >
<tr><th class="cpanel">首页</th></tr>
</table>
<table class="adminform">
<tr>
	<td width="50%" valign="top">
           <table width="100%">                     
                  <tr>
                    <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                        <a href="Admin_Config.aspx">
                    <img src="Images/config.png" style="width:48; height:48; border:0;" alt="网站信息配置" align="middle"/><br>
                     网站管理&nbsp;<br>
                        </a>
                    </td>
                    <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                     <a href="Admin_Passport.aspx"> 
                    <img src="Images/user.png" alt="帐号管理" width="48" height="48" border="0" align="middle"/><BR>
                     用户管理<br></a>
                    </td>
                    <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                    <a href="Admin_ManageTemplate.aspx">
                    <img src="Images/menu.png" alt="模板管理" width="48" height="48" border="0" align="middle"/><BR>
                     模板管理</a>
                     <br>
                    </td>
                    <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                    <a href="Admin_Shop.aspx">
                    <img src="Images/categories.png" alt="组件管理" width="48" height="48" border="0" align="middle"/><BR>
                     店铺管理</a>
                     <br>
                    </td>                         
                   </tr>
                   <tr>
                    <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                    <a href="Admin_BackUpDB.aspx">
                    <IMG height="48" src="Images/sections.png" width=48 align=middle border=0/><br>
                     数据库区 </a>
                    </td>
                    <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                    <a target="_blank" href="http://www.mall-z.com">
                    <img  height=48 src="Images/support.png"width=48 align=middle border=0/><br>
                    帮助 &nbsp;
                    </a>
                    </td>
                    <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                    </td>
                   </tr>
                   <tr>
                      <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                      </td>
                      <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                       </td>
                      <td style="height:100px; vertical-align:middle; width:24%; text-align:center">
                     
                      </td>
                      <td style="height:100px; vertical-align:middle; width:24%; text-align:center"></td>
                     </tr>                     
                  </table>
    </td>
    <td width="50%" valign="top">
        <div style="Width: 100%; text-align:left;">                        
              <div class="tab-page" id="modules-cpanel">
                <script type="text/javascript">
                   var tabPane1 = new WebFXTabPane( document.getElementById( "modules-cpanel" ), 1 )
                </script>
                <div class="tab-page"    id="module33">
                   <h2 class="tab">已登录</h2>
                   <script type=text/javascript>
                      tabPane1.addTabPage( document.getElementById( "module33" ) );
                   </script><br />
                   你的用户名是：<asp:Literal ID="LoginName" runat="server" /><br /><br />
                   你的身份是：<asp:literal ID="LoginAccess" runat="server" /><br /> <br />
                   所属管理组：<asp:Literal ID="AdminGroupNames" runat="server" /><br /> <br />
                   上次登录时间是：<asp:Literal  ID="LastLoginTime" runat="server" /><br /><br />
                   上次登录IP是：<asp:Literal ID="LastLoginIP" runat="server" /><br /><br />
                   登录次数是：<asp:Literal ID="LoginTimes" runat="server" /><br />
                   
                </div>
                <div class="tab-page" id="module19">
                   <h2 class="tab">官方动态</h2>
                   <script type="text/javascript">
                       tabPane1.addTabPage( document.getElementById( "module19" ) );
                   </script>
                    <table class="adminform">                              
                        <tr>
                          <th>标题 日期</th>
                        </tr>                       
                        <tr>
                           <td style="line-height:20px;">
                             <script language='javascript' src='http://www.mall-z.com/Article/JS/mallz_news.js'  charset="gb2312"></script>
                           </td>
                        </tr>                        
                     </table>
                </div>
                <div class="tab-page" id="module20">
                   <H2 class="tab"><div onclick="document.getElementById('weather').src='http://weather.news.qq.com/inc/ss292.htm';">天气预报</div></H2>
                    <script type="text/javascript">
                       tabPane1.addTabPage( document.getElementById( "module20" ) );
                   </script>
                   <table class="adminform">                              
                        <tr>
                          <td>
                            <iframe id="weather" src="" frameborder="0" scrolling="no" height="250px"></iframe>                                  
                          </td>
                        </tr>                                
                    </table>
                 </div>
                  <div class=tab-page id=module21 >
                    <H2 class=tab>
                        <div>技术论坛</div></H2>
                            <script type=text/javascript>
                            tabPane1.addTabPage(document.getElementById( "module21" ));
                            </script>
                    <table class="adminform">                              
                        <tr>
                          <th>最近新增的内容 </th>
                        </tr>                       
                        <tr>
                           <td>
                             <div id="new_question">
                             <script language="JavaScript" src="http://bbs.jsp163.com/api/javascript.php?key=threads_mY9" charset="gb2312"></script>
                             </div>
                           </td>
                        </tr>                        
                     </table>
                  </div>
               </div>                      
            </div>
    </td>
</tr>
</table>
</asp:Content>