| 26958 |
tejbeer |
1 |
|
|
|
2 |
<style>
|
|
|
3 |
.table-striped > tbody > tr:nth-child(odd) > td{
|
|
|
4 |
background: white;
|
|
|
5 |
background-color: white;
|
|
|
6 |
}
|
|
|
7 |
.table-striped > tbody > tr:nth-child(even) > td{
|
|
|
8 |
background: white;
|
|
|
9 |
background-color:white;
|
|
|
10 |
}
|
|
|
11 |
.table-striped > tbody > tr:hover > td,
|
|
|
12 |
.table-striped > tbody > tr:hover {
|
|
|
13 |
background-color: #e98c8f;
|
|
|
14 |
color:white;
|
|
|
15 |
}
|
|
|
16 |
.btn:hover{
|
|
|
17 |
color: grey;
|
|
|
18 |
text-decoration: none;
|
|
|
19 |
}
|
|
|
20 |
.btn-primary:hover{
|
|
|
21 |
color: grey;
|
|
|
22 |
text-decoration: none;
|
|
|
23 |
}
|
|
|
24 |
.sale-details{
|
|
|
25 |
cursor:pointer;
|
|
|
26 |
}
|
|
|
27 |
</style>
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
<section class="wrapper">
|
|
|
32 |
<div class="row">
|
|
|
33 |
<div class="col-lg-12">
|
|
|
34 |
<h3 class="page-header"><i class="icon_document_alt"></i>Web Listing</h3>
|
|
|
35 |
<ol class="breadcrumb">
|
|
|
36 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
37 |
<li><i class="icon_document_alt"></i>Banner Listing</li>
|
|
|
38 |
</ol>
|
|
|
39 |
</div>
|
|
|
40 |
</div>
|
|
|
41 |
<div class="col-lg-6">
|
|
|
42 |
<div class="row">
|
|
|
43 |
<form class="form-inline" onsubmit="event.preventDefault();addBannerListing();">
|
|
|
44 |
<div class="form-group">
|
|
|
45 |
<label for="page-url">Page Url</label>
|
|
|
46 |
<input type="text" class="form-control" id="page-url" placeholder="Page Url">
|
|
|
47 |
</div>
|
|
|
48 |
<div class="form-group">
|
|
|
49 |
<label for="page-description">Page Description</label>
|
|
|
50 |
<input class="form-control" id="page-description" placeholder="Page Description">
|
|
|
51 |
</div>
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
<div class="form-group">
|
|
|
55 |
<label for="website-name">Website Name</label>
|
|
|
56 |
<select class="form-control input-sm" id = "website-name" name = "website-name" placeholder="Website Name">
|
|
|
57 |
<option value="" disabled selected>Website Name</option>
|
|
|
58 |
<option value="Store Website">Store Website</option>
|
|
|
59 |
<option value="Partner Website">Partner Website</option>
|
|
|
60 |
</select>
|
|
|
61 |
</div>
|
|
|
62 |
<button type="submit" class="btn btn-default">Add</button>
|
|
|
63 |
</form>
|
|
|
64 |
</div>
|
|
|
65 |
|
|
|
66 |
<div class="row">
|
|
|
67 |
<table class="table table-border table-condensed table-bordered" id="catalog-feature-table">
|
|
|
68 |
<thead>
|
|
|
69 |
<tr>
|
|
|
70 |
<th>Id</th>
|
|
|
71 |
<th>Page Url</th>
|
|
|
72 |
<th>Page Description</th>
|
|
|
73 |
<th>Website</th>
|
|
|
74 |
</tr>
|
|
|
75 |
</thead>
|
|
|
76 |
<tbody>
|
|
|
77 |
#foreach($bannerListing in $bannerListings)
|
|
|
78 |
<tr data-id="$bannerListing.getId()">
|
|
|
79 |
<td>$bannerListing.getId()</td>
|
|
|
80 |
<td><a href="javascript:void(0)" data-id="$bannerListing.getId()" class="banner-listing-detail">$bannerListing.getPageUrl()</a></td>
|
|
|
81 |
<td>$bannerListing.getPageDescription()</td>
|
|
|
82 |
<td>$bannerListing.getWebsiteName()</td>
|
|
|
83 |
|
|
|
84 |
</tr>
|
|
|
85 |
#end
|
|
|
86 |
</tbody>
|
|
|
87 |
</table>
|
|
|
88 |
</div>
|
|
|
89 |
|
|
|
90 |
</div>
|
|
|
91 |
|
|
|
92 |
<div class="col-lg-6">
|
|
|
93 |
<div id="banner-table">
|
|
|
94 |
<div class="row">
|
|
|
95 |
<div class="col-lg-12 banner-products-container">
|
|
|
96 |
</div>
|
|
|
97 |
</div>
|
|
|
98 |
</div>
|
|
|
99 |
</div>
|
|
|
100 |
</section>
|
|
|
101 |
|
|
|
102 |
<script type="text/javascript">
|
|
|
103 |
$(document).ready(function() {
|
|
|
104 |
$('#catalog-feature-table').DataTable(
|
|
|
105 |
{
|
|
|
106 |
|
|
|
107 |
"bPaginate": true,
|
|
|
108 |
"bLengthChange": true,
|
|
|
109 |
"bFilter": true,
|
|
|
110 |
"bInfo": false,
|
|
|
111 |
"bAutoWidth": false ,
|
|
|
112 |
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
);
|
|
|
116 |
|
|
|
117 |
} );
|
|
|
118 |
</script>
|