-
Notifications
You must be signed in to change notification settings - Fork 10
/
affiliates.ascx
43 lines (43 loc) · 2.68 KB
/
affiliates.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
<%@ Control Language="C#" AutoEventWireup="false" Inherits="Dnn.Modules.Vendors.Affiliates" Codebehind="Affiliates.ascx.cs" %>
<%@ Register TagPrefix="dnn" Assembly="DotNetNuke.Web" Namespace="DotNetNuke.Web.UI.WebControls" %>
<div class="dnnForm dnnAffiliates dnnClear">
<asp:DataGrid ID="grdAffiliates" runat="server" Width="100%" AutoGenerateColumns="false" EnableViewState="true" GridLines="None" CssClass="dnnAffiliatesGrid">
<headerstyle cssclass="dnnGridHeader" verticalalign="Top"/>
<itemstyle cssclass="dnnGridItem" horizontalalign="Left" />
<alternatingitemstyle cssclass="dnnGridAltItem" />
<edititemstyle cssclass="dnnFormInput" />
<selecteditemstyle cssclass="dnnFormError" />
<footerstyle cssclass="dnnGridFooter" />
<pagerstyle cssclass="dnnGridPager" />
<Columns>
<asp:TemplateColumn>
<ItemStyle Width="20px"></ItemStyle>
<ItemTemplate>
<asp:HyperLink NavigateUrl='<%# FormatURL("AffilId",DataBinder.Eval(Container.DataItem,"AffiliateId").ToString()) %>'
runat="server" ID="Hyperlink1">
<dnn:DnnImage IconKey="Edit" resourcekey="Edit" AlternateText="Edit" runat="server" ID="Hyperlink1Image" />
</asp:HyperLink>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="Start">
<ItemTemplate>
<asp:Label ID="lblStartDate" runat="server" Text='<%# DisplayDate((DateTime)DataBinder.Eval(Container.DataItem, "StartDate")) %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn HeaderText="End">
<ItemTemplate>
<asp:Label ID="lblEndDate" runat="server" Text='<%# DisplayDate((DateTime)DataBinder.Eval(Container.DataItem, "EndDate")) %>' />
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn DataField="CPC" HeaderText="CPC" DataFormatString="{0:#,##0.0####}" />
<asp:BoundColumn DataField="Clicks" HeaderText="Clicks"/>
<asp:BoundColumn DataField="CPCTotal" HeaderText="Total" DataFormatString="{0:#,##0.0####}" />
<asp:BoundColumn DataField="CPA" HeaderText="CPA" DataFormatString="{0:#,##0.0####}" />
<asp:BoundColumn DataField="Acquisitions" HeaderText="Acquisitions"/>
<asp:BoundColumn DataField="CPATotal" HeaderText="Total" DataFormatString="{0:#,##0.0####}" />
</Columns>
</asp:DataGrid>
<ul class="dnnActions dnnClear">
<li><asp:hyperlink CssClass="dnnPrimaryAction" id="cmdAdd" resourcekey="cmdAdd" runat="server" /></li>
</ul>
</div>