-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSystemMod.aspx
299 lines (267 loc) · 17.7 KB
/
SystemMod.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<%@ Page Title="" Language="C#" MasterPageFile="~/immain.Master" AutoEventWireup="true" CodeFile="SystemMod.aspx.cs" Inherits="SystemMod" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageHeadPlaceHolder" runat="server">
<title>System Module </title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageHeaderTitlePlaceHolder" runat="server">
<div class="header-title">
<h1>Management of Module
</h1>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageBodyPlaceHolder" runat="server">
<div class="row">
<div class="col-lg-6 col-sm-6 col-xs-12">
<asp:UpdatePanel ID="UpdatePanel"
UpdateMode="Conditional"
runat="server">
<ContentTemplate>
<div class="alert alert-success fade in" id="global_success" runat="server" visible="false">
<button class="close" title="Close the alert" data-dismiss="alert">
×
</button>
<i class="fa-fw fa fa-check"></i>
<strong>
<asp:Literal ID="global_success_msg" runat="server"></asp:Literal></strong>
</div>
<div class="alert alert-danger fade in" id="global_error" runat="server" visible="false">
<button class="close" title="Close the alert" data-dismiss="alert">
×
</button>
<i class="fa-fw fa fa-times"></i>
<strong>Error ! </strong>
<asp:Literal ID="global_error_msg" runat="server"></asp:Literal>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="form-group " style="float: left">
<asp:UpdatePanel ID="UpdAdd" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<asp:LinkButton ID="BtnNew" runat="server" OnClick="BtnNew_Click" CssClass="btn btn-blue-eu"> <i class="fa fa-plus"></i> Add New </asp:LinkButton>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div class="form-group" style="float: right">
<a class="btn btn-magenta" href="javascript:window.open('','_self')"><i class="fa fa-print"></i>Print List</a>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="widget">
<div class="widget-header ">
<span class="widget-caption this-search-widget-caption">Search</span>
</div>
<asp:UpdatePanel ID="upSearch" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="BtnSearch" EventName="Click" />
</Triggers>
<ContentTemplate>
<div class="widget-body">
<div>
<div class="row">
<div class="col-sm-7">
<div class="form-group ">
<asp:TextBox ID="txtSearch" runat="server" type="text"
class="form-control" placeholder="Type a Module">
</asp:TextBox>
</div>
</div>
<div class="col-sm-4">
<asp:Button ID="BtnSearch" CssClass="btn btn-default" UseSubmitBehavior="false" runat="server" OnClick="BtnSearch_Click" Text="Search" />
</div>
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="well with-header with-footer">
<asp:UpdatePanel ID="upCrudGrid" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div class="header bordered-blueberry this-search-widget-caption">
<div style="float: left">List of Module</div>
<div style="float: right">Total : <span style="color: red"><%=l%> </span>Module </div>
</div>
<div runat="server" id="no_data">
<asp:Label ID="NoDatalbl" class="h3" runat="server"></asp:Label>
</div>
<asp:GridView
ID="EntGridView"
runat="server"
AutoGenerateColumns="False"
OnRowCommand="EntGridView_RowCommand"
AllowPaging="true"
OnRowDataBound="EntGridView_RowDataBound"
DataKeysName="ModuleID"
PageSize="10"
Style="font-size: 14px"
OnPreRender="EntGridView_PreRender"
OnPageIndexChanging="EntGridView_PageIndexChanging"
CssClass="table table-striped table-bordered table-hover ">
<AlternatingRowStyle BackColor="White" />
<Columns>
<asp:TemplateField ItemStyle-HorizontalAlign="Left"
HeaderText="Module Name">
<ItemTemplate>
<asp:HiddenField ID="ModuleID" Value='<%# Bind("ModuleID") %>' runat="server" />
<asp:Label ID="ModuleName" runat="server" Text='<%# Bind("ModuleName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left"
HeaderText="Description">
<ItemTemplate>
<asp:Label ID="ModuleDescription" runat="server" Text='<%# Bind("ModuleDescription") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left"
HeaderText="Last Modified By">
<ItemTemplate>
<asp:Label ID="UserFullName" runat="server" Text='<%# Bind("UserFullName") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left"
HeaderText="Modifié Le">
<ItemTemplate>
<asp:Label ID="LastModifiedDate" runat="server" Text='<%# Bind("LastModifiedDate" ,"{0:dd/MM/yyyy}") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="ACTIONS" HeaderStyle-Width="30%">
<ItemTemplate>
<div class="row-command-preview" style="text-align: center">
<asp:LinkButton ID="BtnEdit" runat="server" CommandArgument="<%# Container.DataItemIndex %>" CssClass="btn btn-default btn-xs purple" CommandName="view" Text="Update"><i class="fa fa-edit"></i> Update</asp:LinkButton>
<asp:LinkButton ID="BtnDelete" runat="server" CommandArgument="<%# Container.DataItemIndex %>" CssClass="btn btn-default btn-xs red" CommandName="deleting" Text="Delete"><i class="fa fa-trash-o"></i> Delete</asp:LinkButton>
</div>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerStyle HorizontalAlign="Center" CssClass="pagination-ys" />
<PagerSettings Position="Bottom"
Mode="Numeric"
FirstPageText="First"
LastPageText="Last"
NextPageText="Next"
PreviousPageText="Prev" />
</asp:GridView>
</ContentTemplate>
<Triggers></Triggers>
</asp:UpdatePanel>
<div id="addEdiModal" class="bootbox modal fade modal-silver in" tabindex="-1" role="dialog" style="display: none;" aria-hidden="true">
<asp:UpdatePanel ID="upEdit" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnSave" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="EntGridView" EventName="RowCommand" />
</Triggers>
<ContentTemplate>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Humanitarian Addres Book</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="alert alert-danger fade in" id="Edit_global" runat="server" visible="false">
<button class="close" title="Close the alert" data-dismiss="alert">
×
</button>
<i class="fa-fw fa fa-check"></i>
<strong>
<asp:Literal ID="Edit_global_alert_msg" runat="server"></asp:Literal></strong>
</div>
</div>
</div>
<span class="alert-header darker">Add/Update a Module</span>
<div>
<div class="row">
<div class="col-sm-12">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="form-group">
<label for="txtModuleName">Module Name</label>
<div class="form-group">
<asp:TextBox ID="txtModuleName" runat="server" type="text"
data-bv-message="This value is not valid"
data-bv-notempty="true"
data-bv-notempty-message="Mandatory field and can not be empty"
data-bv-regexp="true"
data-bv-regexp-regexp="[a-zA-Z0-9_\.]+"
data-bv-regexp-message="Alphanumeric field only"
class="form-control" placeholder="Module Name">
</asp:TextBox>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="row">
<div class="col-lg-12 col-sm-12 col-xs-12">
<div class="form-group ">
<label for="txtModuleDescription">Description</label>
<asp:TextBox ID="txtModuleDescription" runat="server" type="text"
data-bv-message="This value is not valid"
data-bv-notempty="true"
data-bv-notempty-message="Mandatory field and can not be empty"
data-bv-regexp="true"
data-bv-regexp-regexp="[a-zA-Z0-9_\.]+"
data-bv-regexp-message="Alphanumeric field only"
TextMode="MultiLine" Rows="4"
class="form-control" placeholder="Description">
</asp:TextBox>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<asp:Button ID="BtnSave" CssClass="btn btn-orange" UseSubmitBehavior="false" runat="server" OnClick="BtnSave_Click" Text="Save" />
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
</div>
</div>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div id="deleteModal" class="bootbox modal fade modal-silver in" tabindex="-1" role="dialog" style="display: none;" aria-hidden="true">
<asp:UpdatePanel ID="upDel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="BtnDelete" EventName="Click" />
</Triggers>
<ContentTemplate>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">ContactHub Lebanon</h4>
</div>
<div class="modal-body">
<asp:Label ID="lblDeletemessage" runat="server" Text="This data will be deleted. Please confirm"></asp:Label>
</div>
<div class="modal-footer">
<asp:Button ID="BtnDelete" UseSubmitBehavior="false" type="button" CssClass="btn btn-danger" runat="server" Text="Delete" OnClick="BtnDelete_Click" />
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
</div>
</div>
<!-- /.modal-content -->
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
<div class="footer">Execution time :
<asp:Literal ID="execTimeLit" runat="server"></asp:Literal>
</div>
</div>
</div>
</div>
</asp:Content>