-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathVoting.ascx
119 lines (119 loc) · 5.89 KB
/
Voting.ascx
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
<%@ Control language="vb" Inherits="DotNetNuke.Modules.Gallery.Voting" AutoEventWireup="false" Codebehind="Voting.ascx.vb" %>
<%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/LabelControl.ascx" %>
<script type="text/javascript" language="javascript" src='<%= Page.ResolveUrl("DesktopModules/Gallery/Popup/gallerypopup.js") %>'></script>
<table class="Gallery_Voting">
<tr>
<td class="Gallery_HeaderCapLeft"></td>
<td id="tdTitle" runat="server" class="Gallery_HeaderImage" colspan="2"> </td>
<td class="Gallery_HeaderCapRight"></td>
</tr>
<tr>
<td class="Gallery_RowCapLeft"></td>
<td id="tdFilePreview" runat="server" class="Gallery_FileEditImage">
<span><asp:image id="imgTitle" runat="server" /> <asp:hyperlink id="lnkTitle" runat="server" cssclass="CommandButton"></asp:hyperlink></span>
<asp:hyperlink id="lnkThumb" runat="server"></asp:hyperlink>
<asp:image id="imgVoteSummary" runat="server" />
</td>
<td>
<div id="divDetails" runat="server">
<table>
<tr>
<td id="tdResult" runat="server" class="Gallery_AdminRowPanel">Rating Summary:</td>
<td class="Gallery_AdminRow"><asp:label id="lblResult" runat="server" cssclass="Normal"></asp:label></td>
</tr>
<tr>
<td id="tdName" runat="server" class="Gallery_AdminRowPanel">Name:</td>
<td class="Gallery_AdminRow"><asp:label id="lblName" runat="server" cssclass="Normal"></asp:label></td>
</tr>
<tr>
<td id="tdCreatedDate" runat="server" class="Gallery_AdminRowPanel">Created Date:</td>
<td class="Gallery_AdminRow"><asp:label id="lblDate" runat="server" cssclass="Normal"></asp:label></td>
</tr>
<tr>
<td id="tdAuthor" runat="server" class="Gallery_AdminRowPanel">Author:</td>
<td class="Gallery_AdminRow"><asp:label id="lblAuthor" runat="server" cssclass="Normal"></asp:label></td>
</tr>
<tr>
<td id="tdDescription" runat="server" class="Gallery_AdminRowPanel">Description:</td>
<td class="Gallery_AdminRow"><asp:label id="lblDescription" runat="server" cssclass="Normal"></asp:label></td>
</tr>
<tr>
<td class="Gallery_AdminRowPanel"> </td>
<td class="Gallery_AdminRow">
<asp:Linkbutton id="btnAddVote" runat="server" cssclass="CommandButton" resourcekey="btnAddVote" text="Add Vote"></asp:Linkbutton>
</td>
</tr>
</table>
</div>
<div id="divAddVote" runat="server" visible="false">
<table>
<tr>
<td id="tdYourRating" runat="server" class="Gallery_AdminRowPanel">Your Rating:</td>
<td class="Gallery_AdminRow">
<asp:radiobuttonlist id="lstVote" runat="server" RepeatDirection="Vertical" RepeatLayout="Flow"></asp:radiobuttonlist>
</td>
</tr>
<tr>
<td class="Gallery_AdminRowPanel">
<dnn:Label ID="plComments" runat="server" ControlName="txtComment" Text="Your Comments:" />
</td>
<td class="Gallery_AdminRow">
<asp:textbox id="txtComment" runat="server" cssclass="NormalTextBox" TextMode="MultiLine"></asp:textbox>
</td>
</tr>
<tr>
<td class="Gallery_AdminRowPanel"> </td>
<td class="Gallery_RowPanel Centered">
<span class="Gallery_Commands">
<asp:Linkbutton id="cmdCancel" runat="server" text="Cancel" cssclass="CommandButton" resourcekey="cmdCancel"></asp:Linkbutton>
<asp:Linkbutton id="btnSave" runat="server" text="Update" cssclass="CommandButton" resourcekey="cmdUpdate"></asp:Linkbutton>
</span>
</td>
</tr>
</table>
</div>
</td>
<td class="Gallery_RowCapRight"></td>
</tr>
<tr id="trVotes" runat="server" visible="false">
<td class="Gallery_RowCapLeft"></td>
<td class="Gallery_RecordedVotes" colspan="2">
<asp:label ID="lblVotes" runat="server" CssClass="NormalBold"></asp:label><br /><br />
<asp:datalist id="dlVotes" runat="server" DataKeyField="FileName" EnableViewState="False" RepeatDirection="Vertical">
<ItemTemplate>
<table class="Gallery_RecordedVote">
<tr>
<td>
<asp:label id="lblItemName" cssclass="NormalBold" runat="server" text='<%# GetUserName(Container.DataItem) %>'></asp:label> -
<asp:label id="lblCreatedDate" cssclass="Normal" runat="server" text= '<%# DataBinder.Eval(Container.DataItem, "CreatedDate").ToShortDateString %>'></asp:label>
</td>
<td>
<asp:Image id="imgScore" ImageUrl='<%# ScoreImage(Container.DataItem) %>' runat="server"></asp:Image>
</td>
</tr>
<tr>
<td class="Gallery_Comment" colspan="2">
<asp:label id="lblComment" runat="server" text='<%# DataBinder.Eval(Container.DataItem, "Comment") %>'></asp:label>
</td>
</tr>
</table>
</ItemTemplate>
</asp:datalist>
</td>
<td class="Gallery_RowCapRight"></td>
</tr>
<tr>
<td class="Gallery_FooterCapLeft"></td>
<td class="Gallery_FooterImage Centered" colspan="2">
<span class="Gallery_Commands">
<asp:Linkbutton id="btnBack" runat="server" CssClass="CommandButton" ResourceKey="btnBack" Text="Back" CommandName="back"></asp:Linkbutton>
</span>
</td>
<td class="Gallery_FooterCapRight"></td>
</tr>
<tr>
<td class="Gallery_BottomCapLeft"></td>
<td class="Gallery_Bottom" colspan="2"></td>
<td class="Gallery_BottomCapRight"></td>
</tr>
</table>