Subversion Repositories SmartDukaan

Rev

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


 <style>
        .table-striped > tbody > tr:nth-child(odd) > td{
                background: white;
                background-color: white;
        }
        .table-striped > tbody > tr:nth-child(even) > td{
                background: white;
                background-color:white;
        }
        .table-striped > tbody > tr:hover > td,
        .table-striped > tbody > tr:hover {
                background-color: #e98c8f;
                color:white;
        }
        .btn:hover{
                color: grey;
                text-decoration: none;
        }
        .btn-primary:hover{
                color: grey;
                text-decoration: none;
        }
        .sale-details{
                cursor:pointer;
        }
</style>



<section class="wrapper">
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>Web Listing</h3>
                        <ol class="breadcrumb">
                                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                                <li><i class="icon_document_alt"></i>Web Listing</li>
                        </ol>
                </div>
        </div>
        <div class="col-lg-6">
                <div class="row">
                        <form class="form-inline">
                          <div class="form-group">
                            <label for="web-listing-title">Title</label>
                            <input type="text" class="form-control" id="web-listing-title" placeholder="Best Sellers">
                          </div>
                          <div class="form-group">
                            <label for="web-listing-url">Url</label>
                            <input class="form-control" id="web-listing-url" placeholder="best-sellers">
                          </div>
                          <button type="button" class="btn btn-default" onsubmit="addWebListing()">Add</button>
                        </form>
                </div>
                <div class="row">
                        <table class="table table-border table-condensed table-bordered" id="catalog-feature-table">
                                <thead>
                                        <tr>
                                                <th>Listing Name</th>
                                                <th>Actions</th>
                                        </tr>
                                </thead>
                                <tbody>
                                #foreach($webListing in $webListings)
                                        <tr>
                                                <td></td>
                                                <td></td>
                                        </tr>
                                #end
                                </tbody>
                        </table>
                </div>
        </div>
</div>
                  
                  
                  
  <div class="col-lg-6">
                 <div id="feature-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-border table-condensed table-bordered">
                                
                                <thead>
                                        <tr>
                                                <th>Item Name</th>
                                                <th>Catalog Item Id</th>
                                                <th>Rank Points</th>
                                                <th>Feature</th>
                                                <th>Status</th>
                                                <th>Remove</th>
                                        </tr>
                                                </thead>
                                                <tbody>
                                                #if(!$tagRanking.isEmpty())
                                                #foreach( $request in $tagRanking )
                                                        <tr data="$request.getCatalogItemId()">
                                                            <td>$catalogDescription.get($request.getCatalogItemId())</td>
                                                                <td>$request.getCatalogItemId()</td>
                                                                <td>$request.getRankPoints()</td>
                                                                #if($request.getFeature())
                                                                <td>$request.getFeature()</td>
                                                                #else
                                                                <td>null</td>
                                                                #end
                                                                #if($request.getFeature())
                                                                <td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="$request.getFeature()" type="button" >Edit</button>
                                                                     </td>
                                                                #else
                                                                <td><button class="btn btn-primary editfeature"  data-requestid="$request.getCatalogItemId()" data-rank="$request.getRankPoints()" data-feature="" type="button" >Edit</button>
                                                                     </td>
                                                                     #end
                                                                     <td><button class="btn btn-primary deleteCatalogranking"  data-tagid="$request.getId()" type="button" >Delete</button>
                                                                     </td>
                                                                
                                                                        
                                                        </tr>   
                                   #end
                                        #else
                                                <tr>
                                                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>
        
 </section>
 <script type="text/javascript">
        $(document).ready(function() {
          $('#catalog-feature-table').DataTable(
  {
 
    "bPaginate": true,
    "bLengthChange": true,
    "bFilter": true,
    "bInfo": false,
    "bAutoWidth": false ,
     
    }
     
  );

} );
</script>