Subversion Repositories SmartDukaan

Rev

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

Rev 26719 Rev 27875
Line 1... Line 1...
1
<style>
1
<style>
2
	.table-striped > tbody > tr:nth-child(odd) > td{
2
    .table-striped > tbody > tr:nth-child(odd) > td {
3
  		background: white;
3
        background: white;
4
  		background-color: white;
4
        background-color: white;
-
 
5
    }
5
	}
6
 
6
	.table-striped > tbody > tr:nth-child(even) > td{
7
    .table-striped > tbody > tr:nth-child(even) > td {
7
  		background: white;
8
        background: white;
8
  		background-color:white;
9
        background-color: white;
-
 
10
    }
9
	}
11
 
10
	.table-striped > tbody > tr:hover > td,
12
    .table-striped > tbody > tr:hover > td,
11
	.table-striped > tbody > tr:hover {
13
    .table-striped > tbody > tr:hover {
12
		background-color: #e98c8f;
14
        background-color: #e98c8f;
13
	  	color:white;
15
        color: white;
-
 
16
    }
14
	}
17
 
15
	.btn:hover{
18
    .btn:hover {
16
  		color: grey;
19
        color: grey;
17
  		text-decoration: none;
20
        text-decoration: none;
-
 
21
    }
18
	}
22
 
19
	.btn-primary:hover{
23
    .btn-primary:hover {
20
  		color: grey;
24
        color: grey;
21
  		text-decoration: none;
25
        text-decoration: none;
-
 
26
    }
22
	}
27
 
23
	.sale-details{
28
    .sale-details {
24
		cursor:pointer;
29
        cursor: pointer;
25
	}
30
    }
26
</style>
31
</style>
27
 
32
 
28
<section class="wrapper">
33
<section class="wrapper">
29
	<div class="row">
34
    <div class="row">
30
		<div class="col-lg-12">
35
        <div class="col-lg-12">
31
			<h3 class="page-header"><i class="icon_document_alt"></i>OFFERS</h3>
36
            <h3 class="page-header"><i class="icon_document_alt"></i>OFFERS</h3>
32
			<ol class="breadcrumb">
37
            <ol class="breadcrumb">
33
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
38
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
34
				<li><i class="icon_document_alt"></i>LISTINGS</li>						  	
39
                <li><i class="icon_document_alt"></i>LISTINGS</li>
35
			</ol>
40
            </ol>
36
		</div>
41
        </div>
37
	</div>
42
    </div>
38
	
43
 
39
	<table style="Width:100%">
44
    <table style="Width:100%">
40
	
45
 
41
	<td align="left" style="Width:20%">
46
        <td align="left" style="Width:20%">
42
        </td>
47
        </td>
43
      
48
 
44
      
49
 
45
        <td style="Width:80%">
50
        <td style="Width:80%">
46
       
51
 
47
	      <div id="offer-search">
52
            <div id="offer-search">
48
    		<div class="row">
53
                <div class="row">
49
    			<div class="col-lg-12">
54
                    <div class="col-lg-12">
50
                <div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search">
55
                        <div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search">
51
                  <div class="input-group">
56
                            <div class="input-group">
52
                    <input type="text" class="form-control" id="offer-search-text" placeholder="Search for offerID..." value="$searchTerm" />
57
                                <input type="month" class="form-control" id="yearmonth"
-
 
58
                                       placeholder="YYYY-MM" />
53
                    <span class="input-group-btn">
59
                                <span class="input-group-btn">
54
                      <button class="btn btn-primary submit" id="offer-search-button" type="button">Go!</button>
60
                      <button class="btn btn-primary submit" id="yearmonth-submit" type="button">Go!</button>
55
                    </span>
61
                    </span>
-
 
62
                            </div>
-
 
63
                        </div>
56
                  </div>
64
                    </div>
57
                </div>
65
                </div>
58
              </div>
66
            </div>
59
         </div>
-
 
60
        </div>
-
 
61
        </td>
67
        </td>
62
       </table>
68
    </table>
63
  	<div id="offer-listings-table">
69
    <div id="offer-listings-table">
64
		<div class="row">
70
        <div class="row">
65
	    	<div class="col-lg-12">
71
            <div class="col-lg-12">
66
	    		<table class="table table-striped table-advance table-hover">
72
                <table class="table table-striped table-advance table-hover">
67
	    			<tbody>
73
                    <tbody>
68
	    				<tr>
74
                    <tr>
69
	    				    <th>Id</th>
75
                        <th>Id</th>
70
	    					<th>Name</th>
76
                        <th>Name</th>
71
	    					<th>Scheme Type</th>
77
                        <th>Target Type</th>
72
	    					<th>Criteria</th>
78
                        <th>Scheme Type</th>
73
	    					<th>Item Criteria</th>
79
                        <th>Brand %</th>
74
	    					<th>Target Type</th>
-
 
75
	    					<th>Amount Type</th>
80
                        <th>Sellin %</th>
76
	    					<th>Partner Type</th>
81
                        <th>Partner Criteria</th>
77
	    					<th>Created On</th>
82
                        <th>Item Criteria</th>
78
	    					<th>Start Timestamp</th>
83
                        <th>Start</th>
79
	    					<th>End Timestamp</th>
84
                        <th>End</th>
80
	    					<th>Status</th>
85
                        <th>Created</th>
81
	    					<th>Detail</th>
86
                        <th>Actions</th>
82
	    					
-
 
83
	    				</tr>
87
                    </tr>
84
	    				#if(!$offers.isEmpty())
88
                    #if(!$offers.isEmpty())
85
			    			#foreach( $offer in $offers )
89
                    #foreach( $offer in $offers )
86
			    				<tr class="offer-listing-details" data="$offer.getId()">
90
                    <tr class="offer-details" data-offerid="$offer.getId()">
87
			    				    <td>$offer.getId()</td>
91
                        <td>$offer.getId()</td>
88
			    					<td>$offer.getName()</td>
92
                        <td><a class="mk_offer_detail" href="javascript:void(0)">$offer.getName()</a></td>
89
			    					<td>$offer.getSchemeType()</td>
93
                        <td>$offer.getTargetType()</td>
90
			    					<td>$offer.getCriteria()</td>
94
                        <td>$offer.getSchemeType()</td>
91
			    					<td>$offer.getItemCriteria()</td>
95
                        <td>$offer.getBrandShareTerms()</td>
92
			    					<td>$offer.getTargetType()</td>
96
                        <td>$offer.getSellinPercentage()</td>
93
			    					<td>$offer.getAmountType()</td>
97
                        <td>$offer.getPartnerCriteriaString()</td>
94
			    					<td>$offer.getPartnerType()</td>
98
                        <td>$offer.getItemCriteriaString()</td>
95
			    					<td>$offer.getCreatedTimestamp().format($dateTimeFormatter)</td>
99
                        <td>$offer.getStartDate().format($dateFormatter)</td>
96
			    					<td>$offer.getStartDateTime().format($dateTimeFormatter)</td>
100
                        <td>$offer.getEndDate().format($dateFormatter)</td>
97
			    					<td>$offer.getEndDateTime().format($dateTimeFormatter)</td>
101
                        <td>$offer.getCreatedOn().format($dateTimeFormatter)</td>
98
			    					#if($offer.getStatus())
-
 
99
			    					<td><button class="btn btn-primary change-status"  data-offid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">Inactive</button></td>
-
 
100
			    					#else
-
 
101
			    						<td><button class="btn btn-primary change-status"  data-offid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">Active</button></td>
102
                        <td><a class="download_offer" href="javascript:void(0)">Download Report</a></td>
102
			    					
-
 
103
			    					#end
-
 
104
			    					<td><button class="btn btn-primary marginDetail" data-toggle="modal" data-target="#marginPartnerDetail"  data-offerid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">View</button>
-
 
105
								     </td>
103
                    </tr>
106
			    				</tr>
-
 
107
			    			#end
104
                    #end
108
		    			#else
105
                    #else
109
		    				<tr>
106
                    <tr>
110
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
107
                        <td colspan="13" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
111
		    				</tr>
108
                    </tr>
112
		    			#end
109
                    #end
113
	    			</tbody>
110
                    </tbody>
114
	    		</table>
111
                </table>
115
	    	</div>
112
            </div>
116
	    </div>
113
        </div>
117
    </div>
114
    </div>
118
    
-
 
119
    
-
 
120
    
115
 
121
     #if(!$offers.isEmpty())
-
 
122
    	<div class="row" id="offer-history-paginated">
116
	<div  class="modal" id="offerDescription">
123
    		<div class="col-lg-9">
117
		<div class="modal-dialog modal-lg">
124
    			<p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
-
 
125
    		</div>
-
 
126
    		<div class="col-lg-3" style="text-align:right;">
118
		    <div class="modal-content" >
127
				<div class="btn-group" style="width:40%">
-
 
128
					<button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
-
 
129
				</div>
-
 
130
				<div class="btn-group" style="width:40%">
-
 
131
					#if($end >= $size)
-
 
132
						<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
-
 
133
					#else
-
 
134
						<button class="btn btn-primary next" style="width:100%">Next</button>
-
 
135
					#end
-
 
136
				</div>
-
 
137
	    	</div>
119
		    </div>
138
	    </div>
120
	    </div>
-
 
121
	</div>
139
    #end
122
</section>
140
    
123
 
141
   <div class="offer-container">
124
<script type="text/javascript">
-
 
125
	$(function(){
142
   <div  class="modal  text-center" id="marginPartnerDetail">
126
		$("#offerDescription").modal('hide');
143
	<div class="modal-dialog">
127
		$('#offerDescription').on('hide.bs.modal', function () {
144
    <div class="modal-content" style="width:900px;height:600px;overflow:auto">
128
		  $(this).find(".modal-content").html("");
145
    </div>
-
 
146
    </div>
-
 
147
    </div>
129
		});
148
    </div>
130
	});
149
 </section>
131
</script>
150
 
132
 
151
 <div id="offer-details-container" style="background:white;background-color:white;">
-
 
152
</div>
-
 
153
    
133
    
154
    
134
    
155
135