活动页面添加参赛作品瀑布流
[PumpkinHouse.git] / PumpkinHouseWeb / Search.aspx.cs
blobfde40b5d88996ff8b4d9b9837cf37974cc6b556d
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Web;
5 using System.Web.UI;
6 using System.Web.UI.WebControls;
8 namespace PumpkinHouse
10 public partial class Search : System.Web.UI.Page
12 public string type;
13 public string keyword;
14 public bool commodityOnly = false;
15 public int mode;
16 protected void Page_Load(object sender, EventArgs e)
18 type = Request.Params["type"];
19 keyword = Request.Params["keyword"];
21 commodityOnly = type == "commodity";
23 if (keyword != null) keyword = keyword.Trim();
24 if (string.IsNullOrWhiteSpace(type))
25 type = "picture";
27 string title = "- 木头盒子";
28 switch (type)
30 case "picture":
31 case "commodity":
33 title = " 最热图片 - 木头盒子";
34 mode = 0;
35 break;
37 case "album":
39 title = " 最热专辑 - 木头盒子";
40 mode = 1;
41 break;
43 case "user":
45 title = " 盒友 - 木头盒子";
46 mode = 2;
47 break;
52 Page.Title = "搜索" + keyword + title;