<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="template.aspx.cs" Inherits="JuSNS.Web.home.space.template" %>
<!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>
<title id="ptitle" runat="server"> 装扮空间</title>
<script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>
<script language="javascript" type="text/javascript" src="../../js/public.js"></script>
<link href="../../template/<% Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/css/base.css" id="skinpath" type="text/css" rel="stylesheet" />
</head>
<body>
<!--头部-->
<%=this.GetHtmlShort()%>
<div id="divhead">
    <%=this.GetHtmlHead()%>
</div>

<div id="divbody">
    <div id="body_first">
        <div class="body_menu"> 
        <%=this.GetHtmlLeft()%>
        </div>
    </div>
    <div id="body_sec">
            <div id="body_mid"> 
                <div class="body_frame"> 
                 <!--主题内容中-->    
                
                              
                <div class="body_frame_otherinfo">
	                        <div class="title">
                                <div class="l"><img src="../../template/<%Response.Write(JuSNS.Config.UiConfig.SkinStyle); %>/images/site/acc.gif" align="absmiddle" /> <span class="shenlan bold font14 ocolor">装扮空间</span></div>
                                <div class="r"><a href="javascript:window.history.back();" title="返回上一页">返回上一页</a></div>
                                <div class="c"></div>
                            </div>
            		       
                            <div class="nav-menu">
                                <ul>
                                 <li><a href="edit.aspx">基本信息</a></li>
                                 <li><a href="edit-link.aspx">联系信息</a></li>
                                 <li><a href="edit-like.aspx">个人爱好</a></li>
                                 <li><a href="edit-edu.aspx">教育信息</a></li>
                                 <li><a href="edit-work.aspx">工作信息</a></li>
                                 <li><a href="userheadphoto.aspx">上传头像</a></li>
                                 <li class="current"><a href="template.aspx">装扮空间</a></li>
                                 <li><a href="../privacy">隐私设置</a></li>
                                 <li><a href="../base">帐号管理</a></li>
                                 </ul>
                            </div>        
                     </div>
                     <div class="body_sec_all">
                     <div class="content-reshow">
                         装扮我的空间，选择模板。
                     </div>         
                    <div class="msg-error" id="Div_Error" runat="server" visible="false"></div>
                    <div class="msg-succ" id="Div_Succ" runat="server" visible="false"></div>
                    <div class="content">
                            <asp:Repeater runat="server" ID="RptData">
                            <HeaderTemplate>
                              <div id="showTemplate" class="stemplate">
                               <ul>
		                        </HeaderTemplate>
                                    <ItemTemplate>
		                           <li>
                                    <a href="?r=get&id=<%# DataBinder.Eval(Container.DataItem, "ID")%>"><img src="<%=rooDir %>/uploads/template/user/s_<%# DataBinder.Eval(Container.DataItem, "TPicture")%>" style="width:110px;height:130px;" /></a>
                                    <span><b><a href="template.aspx?r=get&id=<%# DataBinder.Eval(Container.DataItem, "ID")%>" title="点击使用"><%# DataBinder.Eval(Container.DataItem, "TName")%></a></b></span>
                                    <span>积分:<%# DataBinder.Eval(Container.DataItem, "Ipoint")%> &nbsp; <%Response.Write(JuSNS.Config.UiConfig.gName); %>:<%# DataBinder.Eval(Container.DataItem, "GPoint")%></span>
                                    <span><a href="<%# GetReview(DataBinder.Eval(Container.DataItem, "TPicture"))%>" target="_blank">预览</a>|<%# GetTPATH(DataBinder.Eval(Container.DataItem, "ID"), DataBinder.Eval(Container.DataItem, "TPath"), DataBinder.Eval(Container.DataItem, "iPoint"), DataBinder.Eval(Container.DataItem, "gPoint"))%>|<%# DataBinder.Eval(Container.DataItem, "UserNumber")%>人</span>
                                  </li>
                                </ItemTemplate>   
                                <FooterTemplate>
                                </ul>
                                </div>
                            </FooterTemplate>
                        </asp:Repeater>
                        <div class="pagination" runat="server" id="DivPage"></div>                         
                    </div>
                    <div class="spline"></div> 
                    </div>
           </div>  
           <!--底部-->
             <div class="divbottom">
              <%=this.GetHtmlFoot()%>
              </div>
           </div>
   </div>
</div>
</body>
</html>
<script type="text/javascript">
function userTemplate(tid,ipoint,gpoint)
{
    if(ipoint!="0"||gpoint!="0")
    {
           if(window.confirm("使用此模板，将扣除积分:"+ipoint+",<%Response.Write(JuSNS.Config.UiConfig.gName);%>:"+gpoint+"\n确认继续吗？"))
            {
                self.location="template.aspx?r=get&id="+tid+"";
                location.reload();
            }
    } 
   else
   {
         self.location="template.aspx?r=get&id="+tid+"";
         location.reload();
   } 
}
</script>