1 <%@ Page Title="木头盒子 - 家居,创意家居,家居分享,淘宝家居,购物分享,装修指南,家装美图,家装效果图,装修交流,设计,简约,宜家" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
2 CodeBehind="Default.aspx.cs" Inherits="PumpkinHouse._Default" %>
4 <asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
5 <script type="text/javascript">
9 <asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ScriptContent">
11 <asp:ScriptManagerProxy ID="ScriptManager2" runat="server">
13 <asp:ScriptReference Path="/Scripts/default.js" />
14 <asp:ScriptReference Path="/Scripts/likePicture.js" />
16 </asp:ScriptManagerProxy>
18 <asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
19 <div class="Hot-Space-Style">
22 <li><a href="javascript:void(0);" class="HeadTag-a">热门</a></li>
23 <li><a href="javascript:void(0);" class="HeadTag-b">空间</a></li>
24 <li><a href="javascript:void(0);" class="HeadTag-c">潮品</a></li>
25 <li><a href="javascript:void(0);" class="HeadTag-d">风格</a></li>
27 <div class="ad_158X33"><a href="/activities/20120708/20120708.aspx"><img src="/activities/20120708/images/index-ad.png" /></a></div>
30 <a href="javascript:moveLeft()" class="left-Btn"></a>
31 <a href="javascript:moveRight()" class="right-Btn"></a>
32 <div class="Pic-list">
33 <% for (int i = 0; i < rTags.Length; i++)
35 <ul class="Pic-list-ul-<%= (char) (i + 'a') %>" style="position: absolute; width: 2000px" display: <%= i==0 ? "block": "none" %>">
36 <% foreach (var t in rTags[i])
38 <li><a href="/<% Response.Write(FindOrderString()); %>/<%= CommodityOnly ? "commodity" : "all" %>/<%= t.Name %>?cate=<%=i %>" class="imgUrl"><img src="<%= t.ImageUrl %>" width="150" height="150" /></a><a href="/hot/<%= CommodityOnly ? "commodity" : "all" %>/<%= t.Name %>" class="title"><%= t.Name%></a></li>
47 $('.Hot-Space-Style').css('width', width);
48 $('.Hot-Space-Style .HeadTag').css('width', width);
49 $('.Hot-Space-Style .Panel').css('width', width - 24);
50 $('.Hot-Space-Style .Pic-list').css('width', width - 180);
52 $('.Hot-Space-Style .Pic-list').css('width', width - 105);
56 <div class="Popu-Hot">
58 $('.Popu-Hot').css('width', width);
61 <div class="leftPic float_l"></div>
62 <div class="Con float_l"><% if (string.IsNullOrEmpty(Tag)) { Response.Write("全部"); } else { Response.Write(Tag); } %></div>
63 <div class="rightPic float_l"></div>
65 <a href="/hot/<%= CommodityOnly ? "commodity" : "all" %>/<%= Tag %>" class="ch-tag hottag">人气</a>
66 <a href="/latest/<%= CommodityOnly ? "commodity" : "all" %>/<%= Tag %>" class="ch-tag newtag">最新</a>
67 <a class="onlyShow"><input type="checkbox" id="commodityOnly" style="margin-top:-2px; margin-top:-3px\0; *margin-top:0px; _margin-top:0px; margin-left:8px; +margin-left:4px;" /></a>
70 var globalCommodityOnly = '<%= CommodityOnly %>' === 'True';
71 var globalTag = '<%= Tag %>';
72 var globalKeywordCategories;
73 var globalAssociatedKeywords;
74 var globalOrderMode = <%= (int)OrderMode %>;
75 var globalPageNumber = 0;
77 var jsonStr = '<%= JsonObject %>';
78 var json = $.parseJSON(jsonStr);
80 var globalAllPictures;
81 if (globalOrderMode == 1) {
82 $(".hottag").css("color", "#aacd60");
83 }else if(globalOrderMode == 2) {
84 $(".newtag").css("color", "#aacd60");
87 var globalTagCateId = <%= TagCategoryId %>
89 <!--line globalLoggedIn-->
91 <style type="text/css">
94 display: none !important;
99 <a href="#" class="bigPref" style="display:none"></a>
100 <a href="#" class="bigNext" style="display:none"></a>
102 <div class="PublicCon clearfix gallery">
103 <ul class="PublicList clearfix">
105 <div class="clearfix">
108 <div class="hide" style="display:none">
109 <% foreach (var pic in pictures)
111 <a href="/picture/<%= pic.Id %>">
112 <img class="preview" alt="<%= Server.HtmlEncode(pic.Description) %>" src="<%=pic.Url %>_200_0_thumbnail.<%= pic.Extention %>" />
114 <%= Server.HtmlEncode(pic.Description) %></div>
116 <%= Server.HtmlEncode(pic.Tags) %></div>
117 </a><a href="/User/<%= pic.Username %>">
118 <%= Server.HtmlEncode(pic.NickName) %></a>
119 <% if (pic.AlbumId == 0)
121 <a href="/album/default/<%= pic.Username %>">
122 <%= Server.HtmlEncode(pic.AlbumName) %></a>
126 <a href="/album/<%= pic.AlbumId %>">
127 <%= Server.HtmlEncode(pic.AlbumName) %></a>
131 <div id="paginationHolder"></div>
132 <div id="bottom" class="clearfix">
134 <!-- #Include virtual="/template/collectTemplate.html" -->
135 <!-- #Include virtual="/template/replyTemplate.html" -->