Subversion Repositories SmartDukaan

Rev

Rev 26732 | Rev 26739 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26732 Rev 26738
Line 38... Line 38...
38
			</ol>
38
			</ol>
39
		</div>
39
		</div>
40
	</div>
40
	</div>
41
	<div class="col-lg-6">
41
	<div class="col-lg-6">
42
		<div class="row">
42
		<div class="row">
43
			<form class="form-inline">
43
			<form class="form-inline" onsubmit="addWebListing()">
44
			  <div class="form-group">
44
			  <div class="form-group">
45
			    <label for="web-listing-title">Title</label>
45
			    <label for="web-listing-title">Title</label>
46
			    <input type="text" class="form-control" id="web-listing-title" placeholder="Best Sellers">
46
			    <input type="text" class="form-control" id="web-listing-title" placeholder="Best Sellers">
47
			  </div>
47
			  </div>
48
			  <div class="form-group">
48
			  <div class="form-group">
49
			    <label for="web-listing-url">Url</label>
49
			    <label for="web-listing-url">Url</label>
50
			    <input class="form-control" id="web-listing-url" placeholder="best-sellers">
50
			    <input class="form-control" id="web-listing-url" placeholder="best-sellers">
51
			  </div>
51
			  </div>
52
			  <button type="button" class="btn btn-default" onsubmit="addWebListing()">Add</button>
52
			  <button type="submit" class="btn btn-default">Add</button>
53
			</form>
53
			</form>
54
		</div>
54
		</div>
55
		<div class="row">
55
		<div class="row">
56
			<table class="table table-border table-condensed table-bordered" id="catalog-feature-table">
56
			<table class="table table-border table-condensed table-bordered" id="catalog-feature-table">
57
				<thead>
57
				<thead>
58
					<tr>
58
					<tr>
-
 
59
						<th>Id</th>
59
						<th>Listing Name</th>
60
						<th>Title</th>
-
 
61
						<th>Rank</th>
-
 
62
						<th>Url</th>
60
						<th>Actions</th>
63
						<th>Actions</th>
61
					</tr>
64
					</tr>
62
				</thead>
65
				</thead>
63
				<tbody>
66
				<tbody>
64
				#foreach($webListing in $webListings)
67
				#foreach($webListing in $webListings)
-
 
68
					<tr data-id="$webListing.getId()">
65
					<tr>
69
						<td>$webListing.getId()</td>
-
 
70
						<td>$webListing.getRank()</td>
-
 
71
						<td><a href="javascript:void(0)" data-id="$webListing.getId()" class="listing-details">$webListing.getTitle()</a></td>
66
						<td></td>
72
						<td>$webListing.getUrl()</td>
67
						<td></td>
73
						<td></td>
68
					</tr>
74
					</tr>
69
				#end
75
				#end
70
				</tbody>
76
				</tbody>
71
			</table>
77
			</table>
72
		</div>
78
		</div>
73
	</div>
79
	</div>
74
</div>
-
 
75
		  
-
 
76
		  
-
 
77
		  
-
 
78
  <div class="col-lg-6">
80
	<div class="col-lg-6">
79
		 <div id="feature-table">
81
		<div id="feature-table">
80
		<div class="row">
82
			<div class="row">
81
	    	<div class="col-lg-12">
83
    			<div class="col-lg-12 web-products-container">
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>
84
	    		</div>
126
	    	</div>
85
		    </div>
127
	    </div>
86
		</div>
128
    </div>
87
	</div>
129
	
-
 
130
 </section>
88
 </section>
131
 <script type="text/javascript">
89
 <script type="text/javascript">
132
 	$(document).ready(function() {
90
 	$(document).ready(function() {
133
 	  $('#catalog-feature-table').DataTable(
91
 	  $('#catalog-feature-table').DataTable(
134
  {
92
  {