/
Report.aspx
184 lines (161 loc) · 8.27 KB
/
Report.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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Report.aspx.cs" Inherits="Report" MasterPageFile="~/MasterPage.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<title></title>
<script src="js/jquery-1.8.3.min.js"></script>
<link rel="stylesheet" href="datepicker/css/bootstrap-datepicker.standalone.min.css" />
<script src="datepicker/js/bootstrap-datepicker.min.js"></script>
<link href="home/style.css" rel="stylesheet" />
<script type="text/javascript">
// When the document is ready
$(document).ready(function () {
$('.datepicker').datepicker({
});
});
</script>
<style>
body {
background-image:url('images/bck.jpg')
}
#SectionUpdate table {
min-width:500px;
}
#SectionUpdate table td {
text-align:center;
}
#container {
min-height:100px;
top:-21px;
}
.blur {
display:none;
}
.post {
padding:10px 15px 10px 15px;
border:none;
background-color:#15ce2d;
color:white;
cursor:pointer;
border-bottom:3px solid #4c9a22
}
.post:hover {
background-color:white;
color:#4c9a22;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="form1" runat="server">
<center>
<div style="height:500px">
<h1>Report Section</h1>
<table class="tableDate">
<tr>
<th colspan="2">
<h2>Select a date</h2>
</th>
</tr>
<tr>
<td>From:
<asp:TextBox ID="TextBoxFrom" data-provide="datepicker" CssClass="datepicker" runat="server"></asp:TextBox></td>
<td>To:
<asp:TextBox ID="TextBoxTo" data-provide="datepicker" CssClass="datepicker" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td colspan="2">
Choose Department:
<asp:DropDownList ID="DropDownListDept" runat="server" DataSourceID="SqlDataSourceDept" DataTextField="DeptName" DataValueField="DeptId"></asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSourceDept" runat="server" ConnectionString='<%$ ConnectionStrings:ConnectionString %>' SelectCommand="SELECT [DeptName], [DeptId] FROM [Departments]"></asp:SqlDataSource>
</td>
</tr>
<tr>
<td colspan="2">
<asp:Button ID="ButtonShow" CssClass="post" runat="server" Text="Show" OnClick="ButtonShow_Click"></asp:Button>
</td>
</tr>
</table>
<section id="SectionUpdate">
<asp:Label ID="LabelNOCgiven" runat="server"></asp:Label>
<br /><br />
<asp:Label ID="LabelList" runat="server"></asp:Label>
<%-- <asp:GridView ID="GridView1" runat="server" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" CellPadding="3"><FooterStyle BackColor="White" ForeColor="#000066"></FooterStyle>
<HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White"></HeaderStyle>
<PagerStyle HorizontalAlign="Left" BackColor="White" ForeColor="#000066"></PagerStyle>
<RowStyle ForeColor="#000066"></RowStyle>
<SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White"></SelectedRowStyle>
<SortedAscendingCellStyle BackColor="#F1F1F1"></SortedAscendingCellStyle>
<SortedAscendingHeaderStyle BackColor="#007DBB"></SortedAscendingHeaderStyle>
<SortedDescendingCellStyle BackColor="#CAC9C9"></SortedDescendingCellStyle>
<SortedDescendingHeaderStyle BackColor="#00547E"></SortedDescendingHeaderStyle>
</asp:GridView>--%>
<asp:ListView ID="ListView1" runat="server" OnPagePropertiesChanging="ListView1_PagePropertiesChanging">
<EmptyDataTemplate>
<table runat="server" style="">
<tr>
<td>No data was returned.</td>
</tr>
</table>
</EmptyDataTemplate>
<ItemTemplate>
<div class="details" style="margin:auto;width:90%">
<table class="clr" style="width: 100%; margin: auto; text-align: center;cursor:pointer"cellpadding="10">
<tr align="center" valign="middle" title="Click to show">
<td style="width:105px">
<asp:Label ID="NameLabel" runat="server" Text='<%# Eval("Name") %>' />
</td>
<%--<td style="width:69px">
<asp:Label ID="Applicant_IDLabel" runat="server" Text='<%# Eval("Applicant_ID") %>' />
</td>--%>
<td style="width:120px">
<asp:Label ID="DateFilled" runat="server" Text='<%# Convert.ToDateTime(Eval("Datetime").ToString()).ToLongDateString() %>' />
</td>
<td style="width:190px">
<asp:Label ID="AddressLabel" runat="server" Text='<%# Eval("LOC_Petrol_Pump") %>' />
</td>
<td style="width:80px">
<%#Eval("Oil_Company") %>
</td>
</tr>
</table>
</div>
</ItemTemplate>
<LayoutTemplate>
<table runat="server" style="width:100%;margin:auto">
<tr runat="server">
<td runat="server">
<table id="itemPlaceholderContainer" runat="server" style=" width:90%;margin:auto;text-align:left;border:2px solid #b14949" align="center" cellpadding="10">
<tr runat="server" style=" background-color:#b14949;color:white" align="center" valign="middle">
<th runat="server" style="width:104px;">Applicant</th>
<%--<th runat="server" style="width:72px">Applicant ID</th>--%>
<th runat="server" style="width:120px">Date Filed</th>
<th runat="server" style="width:190px">Petrol Pump Location</th>
<th style="width:80px">Oil Company</th>
<%--<th style="width:20px">NOC Given</th>--%>
<%-- <th>Files</th>
<th>Upload</th>--%>
</tr>
</table>
</td>
</tr>
</table>
<div id="itemPlaceholder" runat="server">
</div>
<table>
<tr runat="server">
<td runat="server" style="">
<asp:DataPager ID="DataPager1" runat="server" PageSize="15">
<Fields>
<asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" />
<asp:NumericPagerField />
<asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False" ShowPreviousPageButton="False" />
</Fields>
</asp:DataPager>
</td>
</tr>
</table>
</LayoutTemplate>
</asp:ListView>
</section>
</div>
</center>
</form>
</asp:Content>