-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefault.aspx
151 lines (150 loc) · 6.85 KB
/
Default.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
147
148
149
150
151
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
CodeBehind="Default.aspx.cs" Inherits="BigShelf._Default" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<title>Big Shelf - Read books, share books.</title>
<!-- Frameworks -->
<script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.6.2.js" type="text/javascript"></script>
<script src="http://ajax.microsoft.com/ajax/jquery.ui/1.8.14/jquery-ui.js" type="text/javascript"></script>
<!-- jquery plugins -->
<script src="Scripts/SharedScripts/jquery.render.js" type="text/javascript"></script>
<script src="Scripts/SharedScripts/jquery.views.js" type="text/javascript"></script>
<script src="Scripts/SharedScripts/jquery.bb.watermark.min.js" type="text/javascript"></script>
<script src="Scripts/SharedScripts/jquery.disable.js" type="text/javascript"></script>
<!-- Client library code -->
<script src="Scripts/UpshotScripts/upshot.js" type="text/javascript"></script>
<script src="Scripts/SharedScripts/jquery.observable.js" type="text/javascript"></script>
<script src="Scripts/UpshotScripts/Upshot.Compat.JsViews.js" type="text/javascript"></script>
<!-- App scripts -->
<script src="Scripts/SharedScripts/jquery.pager.js" type="text/javascript"></script>
<script src="Scripts/SharedScripts/jquery.starrating.js" type="text/javascript"></script>
<script src="Scripts/SharedScripts/jquery.list.js" type="text/javascript"></script>
<!-- Templates -->
<script id="friendsListTemplate" type="text/x-jquery-tmpl">
<td class="friendButton selected">${FriendProfile.Name}</td>
<td width='10px'></td>
</script>
<script id="bookTemplate" type="text/x-jquery-tmpl">
<div class="book-item">
<div class="book-image-column">
<table style="width:100%">
<tr>
<td class="book-image">
<img src="${'http://images.amazon.com/images/P/' + ASIN + '.01.TZZ.jpg'}" />
</td>
</tr>
<tr class="save-button">
<td>
<input type="button" value="Save" class="book-button book-notadded"/>
</td>
</tr>
</table>
</div>
<div class="book-details-column">
<table>
<tr>
<td class="book-title">${Title}</td>
</tr>
<tr>
<td class="book-author">by ${Author}</td>
</tr>
<tr>
<td class="star-rating"></td>
</tr>
</table>
</div>
</div>
</script>
<script id="pageNumberTemplate" type="text/x-jquery-tmpl">
<td class="pagerButton">${pageNumber * pageSize + 1}-${(pageNumber + 1) * pageSize}</td>
<td width='10px'></td>
</script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<asp:LoginView ID="LoginView1" runat="server" EnableViewState="false">
<AnonymousTemplate>
<div class="anonymousContent">
Welcome to Big Shelf! Login first to access your personalized shelf.
</div>
</AnonymousTemplate>
<LoggedInTemplate>
<!-- Default.js makes AJAX requests that require authentication and should only be included on authenticated pages -->
<script src="Scripts/Default.js" type="text/javascript"></script>
<div id="content">
<div class="catalogFilter" id="booksFilter">
<table border="0">
<tr>
<td style="color: #999999; padding: 4px 4px 4px 4px">
Show Me
</td>
<td width="4px">
</td>
<td class="filterButton" data-book-view="1">
All
</td>
<td width="4px">
</td>
<td class="filterButton" data-book-view="2">
My books
</td>
<td width="4px">
</td>
<td class="filterButton" data-book-view="3">
Just friends
</td>
</tr>
</table>
</div>
<div class="friendsList">
<table border="0">
<tr id="friendsList" style="display: none">
<td style="color: #999999; padding: 4px 4px 4px 4px">
Show Friends
</td>
<td width="4px">
</td>
</tr>
</table>
</div>
<div class="search">
<input id="searchBox" type="text" size="25" title="search books..." /></div>
<div class="sortBy" id="sortBy">
<table border="0">
<tr>
<td style="color: #999999; padding: 4px 4px 4px 4px">
Sort By
</td>
<td width="4px">
</td>
<td class="sortButton" data-book-sort="1">
Title
</td>
<td width="4px">
</td>
<td class="sortButton" data-book-sort="2">
Author
</td>
<td width="4px">
</td>
<td class="sortButton" data-book-sort="3">
Rating
</td>
<td width="4px">
</td>
<td class="sortButton" data-book-sort="4">
Might Read
</td>
</tr>
</table>
</div>
<div class="catalog" id="books">
</div>
<div class="catalogNavigation">
<table border="0">
<tr id="pager">
</tr>
</table>
</div>
</div>
</LoggedInTemplate>
</asp:LoginView>
</asp:Content>