Subversion Repositories SmartDukaan

Rev

Rev 11110 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11015 kshitij.so 1
<!DOCTYPE html PUBLIC 
2
"-//W3C//DTD XHTML 1.1 Transitional//EN"
3
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<head>
6
<link type="image/x-icon" href="/Support/images/favicon_alt.ico" rel="shortcut icon">
7
<link href="/Support/css/demo_page_amazon.css" type="text/css" rel="stylesheet">
8
<link href="/Support/css/demo_table_amazon.css" type="text/css" rel="stylesheet">
9
<script type="text/javascript" src="/Support/js/jquery-1.4.2.js"></script>
10
<script type="text/javascript" src="/Support/js/snapdeal-competition-analysis-events.js"></script>
11
<script type="text/javascript" src="/Support/js/snapdeal-competition-analysis-common.js"></script>
12
<style type="text/css">   
13
* { font-family: Verdana; font-size: 96%; }
14
label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }
15
p { clear: both; }
16
.submit { margin-left: 12em; }
17
em { font-weight: bold; padding-right: 1em; vertical-align: top; }
18
ul { padding-left: 13px;}
19
td{background-color:gainsboro};
20
.diffColor {
21
    background: grey;
22
}
23
li {
24
    color: blue;
25
    padding-top: 10px;
26
}
11110 kshitij.so 27
#scraping-data td {
28
    font-size: 14px;
29
    padding: 4px;
30
    text-align: center;
31
}
11015 kshitij.so 32
</style>
33
<style type="text/css">
34
.loading-image {
35
position: fixed;
36
top: 50%;
37
left: 50%;
38
margin-top: -50px;
39
margin-left: -100px;
40
z-index: 100;
41
}
42
</style>
43
<script type="text/javascript">
44
		$(function(){
45
		var temp = $('.itemId').text();
46
jQuery.ajax({
47
        type : "GET",
48
        url : "/Support/snapdeal-list!fetchCompetitionData?itemId="+temp+"&next=0",
49
		beforeSend: function(){
50
        $('#ajax-spinner').show();
51
        },
52
        complete: function(){
53
        $('#ajax-spinner').hide();
54
        },
55
        success : function(response) {
56
        $('#' + 'competition-details').html(response);
57
		$(".previous").css("display", "none");
11048 kshitij.so 58
		var last = $('.valueEnd').text();
11047 kshitij.so 59
		var temp = $('.totalItems').text();
60
			if (parseInt(last) >= parseInt(temp)){
61
				$(".next").css("display", "none");
62
			}
11015 kshitij.so 63
        }
64
    });  
65
});
66
</script>
67
</head>
68
<div id="ajax-spinner" style="display:none;">
69
	<img src="/Support/images/ajax_loader_blue.gif" class="loading-image">
70
</div>
71
<span class="itemId" style="display:none;">$action.getItemId()</span>
11110 kshitij.so 72
<span class="supcCode" style="display:none;">$action.getSupc()</span>
11015 kshitij.so 73
<span class="totalItems" style="display:none;">$action.getCountForCompetitionData($action.getItemId())</span>
74
<div style="padding-top: 6px; padding-left: 25px;">
75
<span class="productName" style="font-weight: bold; color: blue; font-size: 20px;">$action.getProductName()</span>
11110 kshitij.so 76
<input type="button" value="Show Live Data" name="fetchLiveData" id="fetchLiveData" style="padding-left: 5px; margin-left: 10px;width: 15%;float:right;">
11015 kshitij.so 77
</div>
78
<div id="competition-details" style="padding-top: 15px;">
79
</div>
80
<div class="display" style="float: left;display:none;">
81
		Showing&nbsp;<span class="valueStart">1</span>&nbsp;to&nbsp;<span class="valueEnd">10</span>&nbsp;of&nbsp;
82
		<span class="total"></span>&nbsp;entries
83
</div>
84
<div class="paginate" style="float: right;">
85
		<a class="previous" href="#" style="margin: 20px;">Previous</a>
86
		<a class="next" href="#" style="margin: 0px;">Next</a>
87
</div>
88
<div class="legends" style="padding-left: 15px; padding-top: 25px;">
89
<o1 style="list-style: disc outside none; font-size: 14px;">
11076 kshitij.so 90
<li style="">Competitor SP is lowest seller sp in case we are not lowest otherwise it is second lowest seller sp</li>
91
<li>Competitor TP is lowest seller tp in case we are not lowest otherwise it is second lowest seller tp</li>
92
<li>Competitor inventory is inventory of top vendors if we are not lowest else it is second lowest seller inventory</li>
11015 kshitij.so 93
 
94
</o1></div>
11110 kshitij.so 95
 
96
<div style="display: none;padding: 15px; border: 1px solid rgb(41, 120, 193); position: fixed; font-size: 15px; background: none repeat scroll 0% 0% white; box-shadow: 0px 0px 10px 5px darkgrey; top: 110px; width: 90%; left: 60px;" id="hidden-data">
97
<div style="font-size: 20px; font-weight: bold; color: rgb(85, 85, 85); padding-left: 10px;">
98
	<span>Live Result</span>
99
	<span id="closeDiv" style="background: url('/Support/images/close_button.png');height: 25px;width: 25px;cursor:pointer;float: right;"></span>
100
		</div>
101
<table style="width: 100%; padding-top: 15px;" id="scraping-data">
102
<thead>
103
<tr>
104
<th>Our Selling Price</th>
105
<th>Our Offer Price</th>
11122 kshitij.so 106
<th>Our Rank</th>
107
<th>Our Inventory</th>
108
<th>Competitor Name</th>
109
<th>Competitor Type</th>
11110 kshitij.so 110
<th>Competitor Selling Price</th>
111
<th>Competitor Offer Price</th>
112
<th>Competitor Inventory</th>
113
<th>Total Sellers</th>
114
</tr></thead>
115
<tbody>
116
<tr style="width: 100%;">
117
<td></td>
118
<td></td>
119
<td></td>
120
<td></td>
121
<td></td>
122
<td></td>
123
<td></td>
124
<td></td>
11122 kshitij.so 125
<td></td>
126
<td></td>
11110 kshitij.so 127
</tr></tbody>
128
</table>
129
</div>
130
 
131
 
132
 
11015 kshitij.so 133
</html>