Subversion Repositories SmartDukaan

Rev

Rev 26738 | Rev 26745 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
26732 amit.gupta 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>Web Listing</li>
38
			</ol>
39
		</div>
40
	</div>
41
	<div class="col-lg-6">
42
		<div class="row">
26738 amit.gupta 43
			<form class="form-inline" onsubmit="addWebListing()">
26732 amit.gupta 44
			  <div class="form-group">
45
			    <label for="web-listing-title">Title</label>
46
			    <input type="text" class="form-control" id="web-listing-title" placeholder="Best Sellers">
47
			  </div>
48
			  <div class="form-group">
49
			    <label for="web-listing-url">Url</label>
50
			    <input class="form-control" id="web-listing-url" placeholder="best-sellers">
51
			  </div>
26738 amit.gupta 52
			  <button type="submit" class="btn btn-default">Add</button>
26732 amit.gupta 53
			</form>
54
		</div>
55
		<div class="row">
56
			<table class="table table-border table-condensed table-bordered" id="catalog-feature-table">
57
				<thead>
58
					<tr>
26738 amit.gupta 59
						<th>Id</th>
60
						<th>Title</th>
61
						<th>Rank</th>
62
						<th>Url</th>
26732 amit.gupta 63
						<th>Actions</th>
64
					</tr>
65
				</thead>
66
				<tbody>
67
				#foreach($webListing in $webListings)
26738 amit.gupta 68
					<tr data-id="$webListing.getId()">
69
						<td>$webListing.getId()</td>
26739 amit.gupta 70
						<td><a href="javascript:void(0)" data-id="$webListing.getId()" class="listing-details">$webListing.getTitle()</a></td>
26738 amit.gupta 71
						<td>$webListing.getRank()</td>
72
						<td>$webListing.getUrl()</td>
26732 amit.gupta 73
						<td></td>
74
					</tr>
75
				#end
76
				</tbody>
77
			</table>
78
		</div>
79
	</div>
26738 amit.gupta 80
	<div class="col-lg-6">
81
		<div id="feature-table">
82
			<div class="row">
83
    			<div class="col-lg-12 web-products-container">
84
	    		</div>
85
		    </div>
86
		</div>
87
	</div>
26732 amit.gupta 88
 </section>
89
 <script type="text/javascript">
90
 	$(document).ready(function() {
91
 	  $('#catalog-feature-table').DataTable(
92
  {
93
 
94
    "bPaginate": true,
95
    "bLengthChange": true,
96
    "bFilter": true,
97
    "bInfo": false,
98
    "bAutoWidth": false ,
99
 
100
    }
101
 
102
  );
103
 
104
} );
105
</script>
106