Subversion Repositories SmartDukaan

Rev

Rev 26738 | Go to most recent revision | Details | 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">
43
			<form class="form-inline">
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>
52
			  <button type="button" class="btn btn-default" onsubmit="addWebListing()">Add</button>
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>
59
						<th>Listing Name</th>
60
						<th>Actions</th>
61
					</tr>
62
				</thead>
63
				<tbody>
64
				#foreach($webListing in $webListings)
65
					<tr>
66
						<td></td>
67
						<td></td>
68
					</tr>
69
				#end
70
				</tbody>
71
			</table>
72
		</div>
73
	</div>
74
</div>
75
 
76
 
77
 
78
  <div class="col-lg-6">
79
		 <div id="feature-table">
80
		<div class="row">
81
	    	<div class="col-lg-12">
82
	    		<table class="table table-border table-condensed table-bordered">
83
 
84
	    			<thead>
85
	    				<tr>
86
	    					<th>Item Name</th>
87
	    					<th>Catalog Item Id</th>
88
	    					<th>Rank Points</th>
89
	    					<th>Feature</th>
90
	    					<th>Status</th>
91
	    					<th>Remove</th>
92
	    				</tr>
93
	    					</thead>
94
	    					<tbody>
95
	    					#if(!$tagRanking.isEmpty())
96
			    			#foreach( $request in $tagRanking )
97
			    				<tr data="$request.getCatalogItemId()">
98
			    				    <td>$catalogDescription.get($request.getCatalogItemId())</td>
99
			    					<td>$request.getCatalogItemId()</td>
100
			    					<td>$request.getRankPoints()</td>
101
			    					#if($request.getFeature())
102
			    					<td>$request.getFeature()</td>
103
			    					#else
104
			    					<td>null</td>
105
			    					#end
106
			    					#if($request.getFeature())
107
			    					<td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="$request.getFeature()" type="button" >Edit</button>
108
								     </td>
109
			    					#else
110
			    					<td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="" type="button" >Edit</button>
111
								     </td>
112
								     #end
113
								     <td><button class="btn btn-primary deleteCatalogranking"  data-tagid="$request.getId()" type="button" >Delete</button>
114
								     </td>
115
 
116
 
117
			    				</tr>	
118
			    	   #end
119
		    			#else
120
		    				<tr>
121
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
122
		    				</tr>
123
		    			#end
124
	    			</tbody>
125
	    		</table>
126
	    	</div>
127
	    </div>
128
    </div>
129
 
130
 </section>
131
 <script type="text/javascript">
132
 	$(document).ready(function() {
133
 	  $('#catalog-feature-table').DataTable(
134
  {
135
 
136
    "bPaginate": true,
137
    "bLengthChange": true,
138
    "bFilter": true,
139
    "bInfo": false,
140
    "bAutoWidth": false ,
141
 
142
    }
143
 
144
  );
145
 
146
} );
147
</script>
148