-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcategory.aspx
147 lines (144 loc) · 10.1 KB
/
category.aspx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<%@ Page Language="C#" MasterPageFile="~/SiteTemplate.master" EnableViewState="false" AutoEventWireup="true" CodeFile="category.aspx.cs" Inherits="recipecategory" Title="Untitled Page" %>
<%@ Register TagPrefix="ucl" TagName="alphaletter" Src="Control/alphaletter.ascx" %>
<%@ Register TagPrefix="ucl" TagName="sortoptionlinks" Src="Control/sortoptionlinks.ascx" %>
<%@ Register TagPrefix="ucl" TagName="categorylistsidemenu" Src="Control/categorylistsidemenu.ascx" %>
<%@ Register TagPrefix="ucl" TagName="sidemenu" Src="Control/sidemenu.ascx" %>
<%@ Register TagPrefix="ucl" TagName="searchtab" Src="Control/searchtab.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftPanel" Runat="Server">
<ucl:sidemenu id="menu1" runat="server"></ucl:sidemenu>
<div style="clear: both;"></div>
<ucl:categorylistsidemenu id="catlistcont" runat="server"></ucl:categorylistsidemenu>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<ucl:searchtab id="searchcont" runat="server"></ucl:searchtab>
<div style="margin-left: 10px; margin-right: 12px; background-color: #FFF9EC; margin-top: 0px;">
<a href="default.aspx" class="dsort" title="Back to recipe homepage">Home</a> <span class="bluearrow">»</span> <asp:Label cssClass="content10" runat="server" id="lblcatname2" EnableViewState="false" /> <span class="content2"><asp:Label cssClass="content2" id="lblcount" runat="server" EnableViewState="false" /></span>
<asp:Label cssClass="content2" id="lblsortname" runat="server" Font-Bold="True" EnableViewState="false" />
</div>
<div style="padding: 2px; margin-bottom: 14px; margin-top: 12px; margin-left: 16px; margin-right: 26px;">
<ucl:alphaletter id="alpha1" runat="server"></ucl:alphaletter>
<br />
</div>
<!--Begin Center Container-->
<div style="margin-left: 5px; margin-right: 5px;">
<!--Begin sort category links-->
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" style="width: 79%">
<ucl:sortoptionlinks id="opt1" runat="server"></ucl:sortoptionlinks>
</td>
<td width="20%" align="right">
<div style="margin-right: 20px;">
<asp:label ID="lblRecpagetop" runat="server" cssClass="content2" EnableViewState="false" />
</div>
</td>
</tr>
</table>
<!--End sort category links-->
<div style="float: right; text-align: right; margin-right: 18px;">
<asp:Panel ID="PanelDropdownOptionTopNotPreferred" Visible="false" runat="server">
<select name="urllayout" class="ddlps" onchange="javascript:document.location = options[selectedIndex].value">
<option selected>
<%=SelectedValuePrefLayout%>
</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=<%=psPageSize%>&layout=1">Rows</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=<%=psPageSize%>&layout=2">Grid 2 Columns</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=<%=psPageSize%>&layout=3">Grid 3 Columns</option>
</select>
<select name="url" class="ddlps" onchange="javascript:document.location = options[selectedIndex].value">
<option selected>
<%=psPageSize + " Records Page"%>
</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=10&layout=<%=pLayout%>">10 Records Page</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=20&layout=<%=pLayout%>">20 Records Page</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=30&layout=<%=pLayout%>">30 Records Page</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=40&layout=<%=pLayout%>">40 Records Page</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=50&layout=<%=pLayout%>">50 Records Page</option>
</select>
</asp:Panel>
<asp:Panel ID="PanelDropdownOptionTopPreferred" Visible="false" runat="server">
<select name="urllayoutlogin" class="ddlps" onchange="javascript:document.location = options[selectedIndex].value">
<option selected>
<%=SelectedValuePrefLayout%>
</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=L&playout=1">Rows</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=L&playout=2">Grid 2 Columns</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=L&playout=3">Grid 3 Columns</option>
</select>
<select name="urlpagesizelogin" class="ddlps" onchange="javascript:document.location = options[selectedIndex].value">
<option selected>
<%=psPageSize + " Records Page"%>
</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=10">10 Records Page</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=20">20 Records Page</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=30">30 Records Page</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=40">40 Records Page</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=50">50 Records Page</option>
</select>
</asp:Panel>
</div>
<div style="margin-bottom: 10px; border-top: solid 1px #D5E6FF; margin-right: 18px; margin-left: 4px;"></div>
<div style="clear: both;"></div>
<!--Begin repeater center content-->
<asp:DataList id="RecipeCat" OnItemDataBound="RecipeCatItemDataBound" RepeatDirection="Horizontal" runat="server" EnableViewState="false">
<ItemTemplate>
<div class="divwrap5">
<div class="divhd">
<img src="images/arrow7.gif" alt="" />
<a class="dtcat" onmouseover="Tip('<img src="RecipeImageUpload/<%# Eval("RecipeImage")%>" width="150" height="120">', BGCOLOR, '#FFFBE1', BORDERCOLOR, '#acc6db')" onmouseout="UnTip()" href='<%# Eval("ID", "recipedetail.aspx?id={0}") %>'><%# Eval("RecipeName") %></a>
<asp:Label ID="lblpopular" cssClass="hot" runat="server" EnableViewState="false" /> <asp:Image ID="newimg" runat="server" EnableViewState="false" /><asp:Image id="thumbsup" runat="server" AlternateText = "Thumsb up" EnableViewState="false" />
</div>
<div class="divbd">
Category: <a class="dt2" title="Go to <%# Eval("Category") %> category" href='javascript:void(0)'><%# Eval("Category") %></a>
<br />
By: <img src="images/user-icon.gif" /> <a href="findallrecipebyauthor.aspx?author=<%# Eval("Author") %>" onmouseover="Tip('View all recipe submitted by <b><%# Eval("Author") %></b>.', BGCOLOR, '#FFFBE1', BORDERCOLOR, '#acc6db')" onmouseout="UnTip()"><%# Eval("Author") %></a>
<br />
Rating: <img src="images/<%# Eval("Rating", "{0:0.0}")%>.gif" align="absmiddle" /> (<span class="cgr"><%# Eval("Rating", "{0:0.0}")%></span>) votes <span class="cyel"><%# Eval("NoRates")%></span>
<br />
Added: <span class="cyel"><%# CustomDateFormat(Eval("Date"))%></span>
<br />
Hits: <span class="cmaron3"><%# Eval("Hits", "{0:#,###}")%></span>
</div>
</div>
<div style="margin: 15px;"></div>
</ItemTemplate>
</asp:DataList>
</div>
<!--Begin repeater center content-->
<!--End Center Container-->
<!--Begin Record count,page count and paging link-->
<div style="margin-left: 12px; margin-top: 22px;">
<asp:label ID="lblRecpage" runat="server" cssClass="content2" EnableViewState="false" /><asp:label ID="lbps" runat="server" cssClass="content2" EnableViewState="false" />
<div style="margin-top: 10px;">
<asp:Label cssClass="content2" id="lbPagerLink" runat="server" Font-Bold="True" EnableViewState="false" />
</div>
</div>
<!--End Record count,page count and paging link-->
<div style="clear:both;"></div>
<div style="margin-left: 12px; margin-top: 8px;">
<span class="content2">Pagesize:</span> <asp:Panel ID="PanelDropdownOptionBottomPreferred" Visible="false" runat="server">
<select name="urlpagesizeloginbottom" class="ddlps" onchange="javascript:document.location = options[selectedIndex].value">
<option selected>
<%=psPageSize + " Records Page"%>
</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=10">10 Records Page</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=20">20 Records Page</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=30">30 Records Page</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=40">40 Records Page</option>
<option value="confirmlayoutchange.aspx?ReturnURL=<%=ReturnURL%>&mode=P&psize=50">50 Records Page</option>
</select>
</asp:Panel>
<asp:Panel ID="PanelDropdownOptionBottomNotPreferred" Visible="false" runat="server">
<select name="url2" class="ddlps" onchange="javascript:document.location = options[selectedIndex].value">
<option selected>
<%=psPageSize + " Records Page"%>
</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=10&layout=<%=pLayout%>" >10 Records Page</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=20&layout=<%=pLayout%>">20 Records Page</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=30&layout=<%=pLayout%>">30 Records Page</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=40&layout=<%=pLayout%>">40 Records Page</option>
<option value="category.aspx?catid=<%=psCatId%>&ob=<%=psOrderBy%>&sb=<%=psSortBy%>&page=<%=psPageIndex%>&ps=50&layout=<%=pLayout%>">50 Records Page</option>
</select>
</asp:Panel>
</div>
</asp:Content>