Version Notes
First Version of 71lbs magento extension:
- improving auth security in magento, add user check email validation
Download this release
Release Info
Developer | Jose |
Extension | lbs71 |
Version | 0.1.0.9 |
Comparing to | |
See all releases |
Code changes from version 0.1.0.7 to 0.1.0.9
- app/design/adminhtml/default/default/template/adminrefunds/_analytics.phtml +411 -0
- app/design/adminhtml/default/default/template/adminrefunds/_no_analytics.phtml +490 -0
- app/design/adminhtml/default/default/template/adminrefunds/loginform.phtml +1 -0
- app/design/adminhtml/default/default/template/adminrefunds/refunds.phtml +9 -493
- package.xml +4 -4
app/design/adminhtml/default/default/template/adminrefunds/_analytics.phtml
ADDED
@@ -0,0 +1,411 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
<div id="ref_content" class="contents" style="overflow:hidden">
|
3 |
+
<!-- 1140px Grid styles for IE -->
|
4 |
+
<!--[if lte IE 9]><link rel="stylesheet" href="https://www.71lbs.com/assets/ie.css" type="text/css" media="screen" /><![endif]-->
|
5 |
+
<!-- The 1140px Grid - http://cssgrid.net/ -->
|
6 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/1140.css" type="text/css" media="screen" />
|
7 |
+
<!-- Jquery ui styles -->
|
8 |
+
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/redmond/jquery-ui.css" media="screen" rel="stylesheet" type="text/css" />
|
9 |
+
<!-- Your styles -->
|
10 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/businesses.css" type="text/css" media="screen" />
|
11 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/style.css" type="text/css" media="screen" />
|
12 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/users.css" type="text/css" media="screen" />
|
13 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/signup.css" type="text/css" media="screen" />
|
14 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/signup2.css" type="text/css" media="screen" />
|
15 |
+
<!-- JS libraries -->
|
16 |
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
17 |
+
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
|
18 |
+
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
19 |
+
<!--[if lte IE 8]>
|
20 |
+
<script language="javascript" type="text/javascript" src="/assets/flot/excanvas.min.js"></script>
|
21 |
+
<![endif]-->
|
22 |
+
<script language="javascript" type="text/javascript" src="http://localhost:3000/assets/flot/jquery.flot.js"></script>
|
23 |
+
<script language="javascript" type="text/javascript" src="http://localhost:3000/assets/flot/jquery.flot.pie.js"></script>
|
24 |
+
<script type="text/javascript">
|
25 |
+
// <![CDATA[
|
26 |
+
// noConflict so we can use both libraries
|
27 |
+
var $j = jQuery.noConflict();
|
28 |
+
//]]>
|
29 |
+
</script>
|
30 |
+
|
31 |
+
|
32 |
+
<div id="ref_content" class="contents" style="overflow:hidden">
|
33 |
+
|
34 |
+
<!--[if lte IE 8]>
|
35 |
+
<script language="javascript" type="text/javascript" src="https://www.71lbs.com/assets/flot/excanvas.min.js"></script>
|
36 |
+
<![endif]-->
|
37 |
+
<script language="javascript" type="text/javascript" src="https://www.71lbs.com/assets/flot/jquery.flot.js"></script>
|
38 |
+
<script language="javascript" type="text/javascript" src="https://www.71lbs.com/assets/flot/jquery.flot.pie.js"></script>
|
39 |
+
|
40 |
+
<div id="top-info" style="width:<?php echo $result->ref_width ?>px;height:135px;text-align:center;background-color:#E8E8E8;border-radius: 30px;">
|
41 |
+
|
42 |
+
<div id="disp1" style="width:<?php echo $result->ref_width/4 ?>px;float:left;">
|
43 |
+
<center>
|
44 |
+
<img src="https://www.71lbs.com/assets/ytd-refunds.png" style="height:50px;width:50px;padding-top:5px"></img>
|
45 |
+
<div id="ytd-refunds" style="font-size:20px;font-weight:bold;color:white;background-color:rgb(46, 125, 189);width:<?php echo $result->ref_width/6 ?>px;height:24px;"></div>
|
46 |
+
</center>
|
47 |
+
<span style="font-size:20px">YTD Refunds</span>
|
48 |
+
</div>
|
49 |
+
|
50 |
+
<div id="disp2" style="width:<?php echo $result->ref_width/4 ?>px;float:left;">
|
51 |
+
<center>
|
52 |
+
<img src="https://www.71lbs.com/assets/average-refunds.png" style="height:50px;width:50px;padding-top:5px"></img>
|
53 |
+
<div id="average-refunds" style="font-size:20px;font-weight:bold;color:white;background-color:rgb(46, 125, 189);width:<?php echo $result->ref_width/6 ?>px;height:24px;"></div>
|
54 |
+
</center>
|
55 |
+
<span style="font-size:20px">Average Refund</span>
|
56 |
+
</div>
|
57 |
+
|
58 |
+
<div id="disp3" style="width:<?php echo $result->ref_width/4 ?>px;float:left;">
|
59 |
+
<center>
|
60 |
+
<img src="https://www.71lbs.com/assets/monthly-shipping-spend.png" style="height:50px;width:50px;padding-top:5px"></img>
|
61 |
+
<div id="monthly-shipping-spend" style="font-size:20px;font-weight:bold;color:white;background-color:rgb(46, 125, 189);width:<?php echo $result->ref_width/6 ?>px;height:24px;"></div>
|
62 |
+
</center>
|
63 |
+
<span style="font-size:20px">Monthly<br>Shipping Spend</span>
|
64 |
+
</div>
|
65 |
+
|
66 |
+
<div id="disp4" style="width:<?php echo $result->ref_width/4 ?>px;float:left;">
|
67 |
+
<center>
|
68 |
+
<img src="https://www.71lbs.com/assets/accounts-onboarded.png" style="height:50px;width:50px;padding-top:5px"></img>
|
69 |
+
<div id="accounts-onboarded" style="font-size:20px;font-weight:bold;color:white;background-color:rgb(46, 125, 189);width:<?php echo $result->ref_width/6 ?>px;height:24px;"></div>
|
70 |
+
</center>
|
71 |
+
<span style="font-size:20px">Accounts<br>Onboarded</span>
|
72 |
+
</div>
|
73 |
+
|
74 |
+
<br style="clear: left;" />
|
75 |
+
</div>
|
76 |
+
|
77 |
+
<br>
|
78 |
+
|
79 |
+
<div id="flot-charts" style="width:<?php echo $result->ref_width ?>px;text-align:center;">
|
80 |
+
|
81 |
+
<div style="float:left;width:<?php echo $result->ref_width/2 ?>px;height:30px;font-size:20px;font-weight:bold;">Your Refund History</div>
|
82 |
+
<div style="float:left;width:<?php echo $result->ref_width/2 ?>px;height:30px;font-size:20px;font-weight:bold;">Your Shipping Spend: <span id="total-shipping-spend"></span></div>
|
83 |
+
|
84 |
+
<div id="your-refunds" style="float:left;width:<?php echo $result->ref_width/2 ?>px;height:<?php echo $result->ref_width/2 ?>px"></div>
|
85 |
+
<div id="shipping-spend" style="float:left;width:<?php echo $result->ref_width/2 ?>px;height:<?php echo $result->ref_width/2 ?>px"></div>
|
86 |
+
|
87 |
+
<br style="clear: left;" />
|
88 |
+
|
89 |
+
</div>
|
90 |
+
|
91 |
+
<div id="options" style="width:<?php echo $result->ref_width ?>px;text-align:center;">
|
92 |
+
|
93 |
+
<div id="options1" style="float:left;width:<?php echo $result->ref_width/2 ?>px;text-align:center;">
|
94 |
+
<div id="bar-display" style="width:<?php echo $result->ref_width/2 ?>px;height:50px"></div>
|
95 |
+
<br>
|
96 |
+
<div id="bottons1" style="width:<?php echo $result->ref_width/2 ?>px;height:50px">
|
97 |
+
<button onclick="buttonClick('one')" style="width:100px">Graph</button>
|
98 |
+
<button onclick="buttonClick('one')" style="width:100px">Table</button>
|
99 |
+
<br>
|
100 |
+
<button onclick="buttonClick('two')" style="width:100px">YTD</button>
|
101 |
+
<button onclick="buttonClick('two')" style="width:100px">This Month</button>
|
102 |
+
<button onclick="buttonClick('two')" style="width:100px">Last Month</button>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
|
106 |
+
<div id="options2" style="float:left;width:<?php echo $result->ref_width/2 ?>px;text-align:center;">
|
107 |
+
<div id="pie-display2" style="width:<?php echo $result->ref_width/2 ?>px;height:30px"></div>
|
108 |
+
<div id="pie-display" style="width:<?php echo $result->ref_width/2 ?>px;height:20px"></div>
|
109 |
+
<br>
|
110 |
+
<div id="bottons1" style="width:<?php echo $result->ref_width/2 ?>px;height:50px">
|
111 |
+
<button onclick="pieButton('percentage')" style="width:100px">Percent</button>
|
112 |
+
<button onclick="pieButton('value')" style="width:100px">$ Value</button>
|
113 |
+
<br>
|
114 |
+
<button onclick="pieButton('upsfedex')" style="width:100px">FDX & UPS</button>
|
115 |
+
<button onclick="pieButton('fedex')" style="width:100px">FDX</button>
|
116 |
+
<button onclick="pieButton('ups')" style="width:100px">UPS</button>
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
|
120 |
+
<br style="clear: left;" />
|
121 |
+
|
122 |
+
</div>
|
123 |
+
|
124 |
+
<script type="text/javascript">
|
125 |
+
|
126 |
+
emptyData = 0
|
127 |
+
upsSpend = 0
|
128 |
+
fedexSpend = 0
|
129 |
+
upsfedexSpend = 0
|
130 |
+
|
131 |
+
<?php if($result->hasFedex) : ?>
|
132 |
+
fedexSpend = [
|
133 |
+
<?php foreach($result->fedexShippingSpendSort as $value) :?>
|
134 |
+
<?php $type = $value[0] ?>
|
135 |
+
<?php $amount = $value[1] ?>
|
136 |
+
<?php $color = $value[2] ?>
|
137 |
+
<?php if ($amount > 0) :?>
|
138 |
+
{label: "<?php echo $type ?>", data: <?php echo $amount ?>, color: "hsla(<?php echo $color ?>, 61%, 46%, .9)"},
|
139 |
+
<?php endif ?>
|
140 |
+
<?php endforeach ?>
|
141 |
+
]
|
142 |
+
<?php endif ?>
|
143 |
+
|
144 |
+
<?php if($result->hasUPS) : ?>
|
145 |
+
upsSpend = [
|
146 |
+
|
147 |
+
<?php foreach($result->upsShippingSpendSort as $value) :?>
|
148 |
+
<?php $type = $value[0] ?>
|
149 |
+
<?php $amount = $value[1] ?>
|
150 |
+
<?php $color = $value[2] ?>
|
151 |
+
<?php if ($amount > 0) :?>
|
152 |
+
{label: "<?php echo $type ?>", data: <?php echo $amount ?>, color: "hsla(<?php echo $color ?>, 61%, 46%, .9)"},
|
153 |
+
<?php endif ?>
|
154 |
+
<?php endforeach ?>
|
155 |
+
]
|
156 |
+
<?php endif ?>
|
157 |
+
|
158 |
+
<?php if($result->hasUPS && $result->hasFedex) : ?>
|
159 |
+
upsfedexSpend = [
|
160 |
+
|
161 |
+
<?php foreach($result->upsfedexShippingSpendMergeSort as $value) :?>
|
162 |
+
<?php $type = $value[0] ?>
|
163 |
+
<?php $amount = $value[1] ?>
|
164 |
+
<?php $color = $value[2] ?>
|
165 |
+
<?php if ($amount > 0) :?>
|
166 |
+
{label: "<?php echo $type ?>", data: <?php echo $amount ?>, color: "hsla(<?php echo $color ?>, 61%, 46%, .9)"},
|
167 |
+
<?php endif ?>
|
168 |
+
<?php endforeach ?>
|
169 |
+
|
170 |
+
]
|
171 |
+
<?php elseif($result->hasUPS) :?>
|
172 |
+
upsfedexSpend = [
|
173 |
+
<?php foreach($result->upsShippingSpendSort as $value) :?>
|
174 |
+
<?php $type = $value[0] ?>
|
175 |
+
<?php $amount = $value[1] ?>
|
176 |
+
<?php $color = $value[2] ?>
|
177 |
+
<?php if ($amount > 0) :?>
|
178 |
+
{label: "<?php echo $type ?>", data: <?php echo $amount ?>, color: "hsla(<?php echo $color ?>, 61%, 46%, .9)"},
|
179 |
+
<?php endif ?>
|
180 |
+
<?php endforeach ?>
|
181 |
+
|
182 |
+
|
183 |
+
]
|
184 |
+
<?php elseif($result->hasFedex) :?>
|
185 |
+
upsfedexSpend = [
|
186 |
+
|
187 |
+
<?php foreach($result->fedexShippingSpendSort as $value) :?>
|
188 |
+
<?php $type = $value[0] ?>
|
189 |
+
<?php $amount = $value[1] ?>
|
190 |
+
<?php $color = $value[2] ?>
|
191 |
+
<?php if ($amount > 0) :?>
|
192 |
+
{label: "<?php echo $type ?>", data: <?php echo $amount ?>, color: "hsla(<?php echo $color ?>, 61%, 46%, .9)"},
|
193 |
+
<?php endif ?>
|
194 |
+
<?php endforeach ?>
|
195 |
+
]
|
196 |
+
<?php endif ?>
|
197 |
+
|
198 |
+
<?php if (!is_numeric($result->refundsPerMonth)) :?>
|
199 |
+
refundData = [
|
200 |
+
<?php foreach ($result->refundsPerMonth as $month => $refundsPerMonth): ?>
|
201 |
+
[<?php echo $month ?>,<?php echo $refundsPerMonth->refundAmt ?>],
|
202 |
+
<?php endforeach; ?>
|
203 |
+
|
204 |
+
]
|
205 |
+
<?php else :?>
|
206 |
+
refundData = [ [1,-1] ]
|
207 |
+
<?php endif ?>
|
208 |
+
|
209 |
+
shipper = "upsfedex"
|
210 |
+
showType = "percentage"
|
211 |
+
|
212 |
+
pieButton(shipper)
|
213 |
+
graphButton('')
|
214 |
+
|
215 |
+
$j("#ytd-refunds").html("<?php echo $result->totalRefundAmt ?>");
|
216 |
+
$j("#average-refunds").html("<?php echo $result->averageRefunds ?>");
|
217 |
+
$j("#monthly-shipping-spend").html("<?php echo $result->totalShippingSpendPerMonth ?>");
|
218 |
+
$j("#accounts-onboarded").html("<?php echo $result->numOfAccounts ?>");
|
219 |
+
|
220 |
+
$j("#shipping-spend").bind("plothover", pieHover);
|
221 |
+
//$j("#shipping-spend").bind("plotclick", pieClick);
|
222 |
+
|
223 |
+
function pieHover(event, pos, obj)
|
224 |
+
{
|
225 |
+
if (!obj)
|
226 |
+
return;
|
227 |
+
|
228 |
+
percent = parseFloat(obj.series.percent).toFixed(2);
|
229 |
+
dollarValue = (obj.series.data[0][1] + "").replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
|
230 |
+
$j("#pie-display2").html('<span style="font-weight: bold; color: '+obj.series.color+'">'+obj.series.label+' ('+percent+'%): $'+dollarValue+'</span>');
|
231 |
+
}
|
232 |
+
|
233 |
+
function pieClick(event, pos, obj)
|
234 |
+
{
|
235 |
+
if (!obj)
|
236 |
+
return;
|
237 |
+
|
238 |
+
percent = parseFloat(obj.series.percent).toFixed(2);
|
239 |
+
|
240 |
+
|
241 |
+
alert('WHATEVER YOU WANT HERE');
|
242 |
+
}
|
243 |
+
|
244 |
+
function pieButton(input)
|
245 |
+
{
|
246 |
+
$j("#pie-display2").html('')
|
247 |
+
|
248 |
+
if (input == "fedex")
|
249 |
+
{
|
250 |
+
showing = "fedex"
|
251 |
+
data = fedexSpend
|
252 |
+
$j("#total-shipping-spend").html("<?php echo $result->totalFedex ?>");
|
253 |
+
|
254 |
+
if (showType == "percentage")
|
255 |
+
$j("#pie-display").html("Displaying: <b>FDX (Percent)</b>");
|
256 |
+
else
|
257 |
+
$j("#pie-display").html("Displaying: <b>FDX ($ Value)</b>");
|
258 |
+
}
|
259 |
+
else if (input == "ups")
|
260 |
+
{
|
261 |
+
showing = "ups"
|
262 |
+
data = upsSpend
|
263 |
+
$j("#total-shipping-spend").html("<?php echo $result->totalUPS ?>");
|
264 |
+
|
265 |
+
if (showType == "percentage")
|
266 |
+
$j("#pie-display").html("Displaying: <b>UPS (Percent)</b>");
|
267 |
+
else
|
268 |
+
$j("#pie-display").html("Displaying: <b>UPS ($ Value)</b>");
|
269 |
+
}
|
270 |
+
else if (input == "upsfedex")
|
271 |
+
{
|
272 |
+
showing = "upsfedex"
|
273 |
+
data = upsfedexSpend
|
274 |
+
$j("#total-shipping-spend").html("<?php echo $result->totalUPSFedex ?>");
|
275 |
+
|
276 |
+
if (showType == "percentage")
|
277 |
+
$j("#pie-display").html("Displaying: <b>FDX & UPS (Percent)</b>");
|
278 |
+
else
|
279 |
+
$j("#pie-display").html("Displaying: <b>FDX & UPS ($ Value)</b>");
|
280 |
+
}
|
281 |
+
|
282 |
+
if (input == "percentage")
|
283 |
+
{
|
284 |
+
showType = "percentage"
|
285 |
+
|
286 |
+
if (showing == "ups")
|
287 |
+
$j("#pie-display").html("Displaying: <b>UPS (Percent)</b>");
|
288 |
+
else if (showing == "fedex")
|
289 |
+
$j("#pie-display").html("Displaying: <b>FDX (Percent)</b>");
|
290 |
+
else
|
291 |
+
$j("#pie-display").html("Displaying: <b>FDX & UPS (Percent)</b>");
|
292 |
+
}
|
293 |
+
else if (input == "value")
|
294 |
+
{
|
295 |
+
showType = "value"
|
296 |
+
|
297 |
+
if (showing == "ups")
|
298 |
+
$j("#pie-display").html("Displaying: <b>UPS ($ Value)</b>");
|
299 |
+
else if (showing == "fedex")
|
300 |
+
$j("#pie-display").html("Displaying: <b>FDX ($ Value)</b>");
|
301 |
+
else
|
302 |
+
$j("#pie-display").html("Displaying: <b>FDX & UPS ($ Value)</b>");
|
303 |
+
}
|
304 |
+
|
305 |
+
if (data != 0)
|
306 |
+
{
|
307 |
+
$j.plot($j("#shipping-spend"), data,
|
308 |
+
{
|
309 |
+
series:
|
310 |
+
{
|
311 |
+
pie:
|
312 |
+
{
|
313 |
+
show: true,
|
314 |
+
radius: .9,
|
315 |
+
|
316 |
+
label:
|
317 |
+
{
|
318 |
+
show: true,
|
319 |
+
radius: .5,
|
320 |
+
threshold: 0.01,
|
321 |
+
|
322 |
+
formatter: function (label, series)
|
323 |
+
{
|
324 |
+
if (showType == "value")
|
325 |
+
return '<div style="border:1px solid grey;font-size:8pt;text-align:center;padding:5px;color:white;">' + label + ': $' + (series.data[0][1] + "").replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,") + '</div>';
|
326 |
+
else if (showType == "percentage")
|
327 |
+
return '<div style="border:1px solid grey;font-size:8pt;text-align:center;padding:5px;color:white;">' + label + ': ' + series.percent.toFixed(1) + '%</div>';
|
328 |
+
},
|
329 |
+
|
330 |
+
borderWidth: 0,
|
331 |
+
|
332 |
+
background:
|
333 |
+
{
|
334 |
+
opacity: .9
|
335 |
+
}
|
336 |
+
}
|
337 |
+
}
|
338 |
+
},
|
339 |
+
|
340 |
+
grid:
|
341 |
+
{
|
342 |
+
hoverable: true,
|
343 |
+
clickable: true
|
344 |
+
},
|
345 |
+
|
346 |
+
legend: { show: false },
|
347 |
+
|
348 |
+
});
|
349 |
+
}
|
350 |
+
else
|
351 |
+
{
|
352 |
+
$j("#shipping-spend").html('<img style="height:<?php echo $result->ref_width/2 ?>px;width:<?php echo $result->ref_width/2 ?>px;padding-top:5px" src="https://www.71lbs.com/assets/no-data.png"></img>');
|
353 |
+
}
|
354 |
+
}
|
355 |
+
|
356 |
+
function graphButton(input)
|
357 |
+
{
|
358 |
+
var monthNames = [ "", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ];
|
359 |
+
|
360 |
+
currMonth = new Date().getMonth() + 1
|
361 |
+
|
362 |
+
lowestMonth = refundData[0][0]
|
363 |
+
|
364 |
+
for (i=0; i<refundData.length; i++)
|
365 |
+
{
|
366 |
+
if (refundData[i][0] < lowestMonth)
|
367 |
+
lowestMonth = refundData[i][0]
|
368 |
+
}
|
369 |
+
|
370 |
+
data123 = [
|
371 |
+
{
|
372 |
+
color: "rgb(46, 125, 189)",
|
373 |
+
label: "Refunds Per Month",
|
374 |
+
data: refundData,
|
375 |
+
bars:
|
376 |
+
{
|
377 |
+
show: true,
|
378 |
+
barWidth: .7,
|
379 |
+
fill: .9,
|
380 |
+
align: "center"
|
381 |
+
}
|
382 |
+
}
|
383 |
+
]
|
384 |
+
|
385 |
+
$j.plot($j("#your-refunds"),data123,
|
386 |
+
{
|
387 |
+
xaxis:
|
388 |
+
{
|
389 |
+
autoscaleMargin: .1,
|
390 |
+
ticks: [ [1,'Jan'],[2,'Feb'],[3,'Mar'],[4,'Apr'],[5,'May'],[6,'Jun'],[7,'Jul'],[8,'Aug'],[9,'Sep'],[10,'Oct'],[11,'Nov'],[12,'Dec'] ]
|
391 |
+
},
|
392 |
+
|
393 |
+
yaxis:
|
394 |
+
{
|
395 |
+
min: 0,
|
396 |
+
ticks: 10,
|
397 |
+
tickFormatter: function(val, axis)
|
398 |
+
{
|
399 |
+
return "$" + (val.toFixed(2) + "").replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,")
|
400 |
+
}
|
401 |
+
},
|
402 |
+
|
403 |
+
legend: { show: false }
|
404 |
+
});
|
405 |
+
}
|
406 |
+
|
407 |
+
</script>
|
408 |
+
|
409 |
+
|
410 |
+
|
411 |
+
</div> <!-- end refunds -->
|
app/design/adminhtml/default/default/template/adminrefunds/_no_analytics.phtml
ADDED
@@ -0,0 +1,490 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- 1140px Grid styles for IE -->
|
2 |
+
<!--[if lte IE 9]><link rel="stylesheet" href="https://www.71lbs.com/assets/ie.css" type="text/css" media="screen" /><![endif]-->
|
3 |
+
<!-- The 1140px Grid - http://cssgrid.net/ -->
|
4 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/1140.css" type="text/css" media="screen" />
|
5 |
+
<!-- Jquery ui styles -->
|
6 |
+
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/redmond/jquery-ui.css" media="screen" rel="stylesheet" type="text/css" />
|
7 |
+
<!-- Your styles -->
|
8 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/businesses.css" type="text/css" media="screen" />
|
9 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/style.css" type="text/css" media="screen" />
|
10 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/users.css" type="text/css" media="screen" />
|
11 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/signup.css" type="text/css" media="screen" />
|
12 |
+
<link rel="stylesheet" href="https://www.71lbs.com/assets/signup2.css" type="text/css" media="screen" />
|
13 |
+
<!-- JS libraries -->
|
14 |
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
15 |
+
<script type="text/javascript">
|
16 |
+
// <![CDATA[
|
17 |
+
// noConflict so we can use both libraries
|
18 |
+
var $j = jQuery.noConflict();
|
19 |
+
//]]>
|
20 |
+
</script>
|
21 |
+
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
|
22 |
+
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
23 |
+
<script type="text/javascript">
|
24 |
+
//Google API charts
|
25 |
+
google.load("visualization", "1", {packages:["corechart"]});
|
26 |
+
google.setOnLoadCallback(drawChart);
|
27 |
+
function drawChart() {
|
28 |
+
var data = new google.visualization.DataTable();
|
29 |
+
//Add number of Columns
|
30 |
+
data.addColumn('string', 'Month');
|
31 |
+
data.addColumn('number', 'Refund');
|
32 |
+
|
33 |
+
var monthNames = [ "January", "February", "March", "April", "May", "June",
|
34 |
+
"July", "August", "September", "October", "November", "December" ];
|
35 |
+
|
36 |
+
//get first month and last month since business started
|
37 |
+
//if not fedex refunds is empty
|
38 |
+
|
39 |
+
//loop to display a chart with all the months since
|
40 |
+
//business started in current year
|
41 |
+
for (var i = <?php echo $result->first_month; ?>; i <= <?php echo $result->
|
42 |
+
last_month; ?>; i++) {
|
43 |
+
data.addRow([monthNames[i - 1],0]);//Add a row for each refund by month key
|
44 |
+
}
|
45 |
+
|
46 |
+
//Design chart
|
47 |
+
var options = {
|
48 |
+
title: 'Total of Refunds Month over Month',
|
49 |
+
titleTextStyle: {color:'979797', fontSize: 12},
|
50 |
+
hAxis: {title: 'Month', titleTextStyle: {color: '979797', fontSize: 12}},
|
51 |
+
vAxis: {title: 'Economic Value of Refunds Revenue', titleTextStyle: {color: '979797', fontSize: 12}, minValue:0, maxValue:<?php echo
|
52 |
+
$result->max_value; ?>},
|
53 |
+
fontName: 'Arial, Helvetica, sans-serif',
|
54 |
+
animation: { duration: 1000, easing: 'out'}
|
55 |
+
};
|
56 |
+
|
57 |
+
var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
|
58 |
+
chart.draw(data, options);
|
59 |
+
|
60 |
+
//create animation of bars going up
|
61 |
+
//Get hash of total refunds by months for fedex
|
62 |
+
//if not fedex empty do foreach
|
63 |
+
<?php if ($result->fdx_monthly_refunds): ?>
|
64 |
+
setTimeout(function(){
|
65 |
+
<?php foreach ($result->fdx_monthly_refunds as $key => $value): ?>
|
66 |
+
data.setValue(<?php echo $value[0]; ?> - <?php echo $result->
|
67 |
+
first_month; ?>,1,<?php echo
|
68 |
+
$value[1] ?>); //setValue(row index,column index, value)
|
69 |
+
<?php endforeach ?>
|
70 |
+
chart.draw(data, options);
|
71 |
+
},500);
|
72 |
+
<?php endif ?>
|
73 |
+
|
74 |
+
//create animation of bars going up
|
75 |
+
//Get hash of total refunds by months for ups
|
76 |
+
//if not ups empty do foreach
|
77 |
+
<?php if ($result->ups_monthly_refunds): ?>
|
78 |
+
setTimeout(function(){
|
79 |
+
|
80 |
+
<?php foreach ($result->ups_monthly_refunds as $key => $value): ?>
|
81 |
+
var preValue = data.getValue(<?php echo $value[0]; ?> - <?php echo
|
82 |
+
$result->first_month; ?>,1); //get value thats there now and add it to next value
|
83 |
+
data.setValue(<?php echo $value[0]; ?> - <?php echo $result->
|
84 |
+
first_month; ?>,1,<?php echo
|
85 |
+
$value[1] ?> + preValue); //setValue(row index,column index, value)
|
86 |
+
<?php endforeach ?>
|
87 |
+
chart.draw(data, options);
|
88 |
+
},2500);
|
89 |
+
<?php endif ?>
|
90 |
+
|
91 |
+
}
|
92 |
+
|
93 |
+
</script>
|
94 |
+
<script>
|
95 |
+
|
96 |
+
$j(function() {
|
97 |
+
|
98 |
+
|
99 |
+
<!-- Jquery ui datepicker -->
|
100 |
+
$j( "#fdx_from" ).datepicker({
|
101 |
+
defaultDate: "+1w",
|
102 |
+
changeMonth: true,
|
103 |
+
numberOfMonths: 1,
|
104 |
+
maxDate: -1,
|
105 |
+
autoSize: true,
|
106 |
+
onClose: function( selectedDate ) {
|
107 |
+
$j( "#fdx_to" ).datepicker( "option", "minDate", selectedDate );
|
108 |
+
},
|
109 |
+
onSelect: function()
|
110 |
+
{
|
111 |
+
if ($j("#fdx_to").datepicker("getDate") != null)
|
112 |
+
getDataForRange("fdx");
|
113 |
+
}
|
114 |
+
});
|
115 |
+
|
116 |
+
$j( "#fdx_to" ).datepicker({
|
117 |
+
defaultDate: "+1w",
|
118 |
+
changeMonth: true,
|
119 |
+
numberOfMonths: 1,
|
120 |
+
maxDate: 0,
|
121 |
+
autoSize: true,
|
122 |
+
onClose: function( selectedDate ) {
|
123 |
+
$j( "#fdx_from" ).datepicker( "option", "maxDate", selectedDate );
|
124 |
+
},
|
125 |
+
onSelect: function()
|
126 |
+
{
|
127 |
+
if ($j("#fdx_from").datepicker("getDate") != null)
|
128 |
+
getDataForRange("fdx");
|
129 |
+
}
|
130 |
+
});
|
131 |
+
|
132 |
+
$j( "#ups_from" ).datepicker({
|
133 |
+
defaultDate: "+1w",
|
134 |
+
changeMonth: true,
|
135 |
+
numberOfMonths: 1,
|
136 |
+
maxDate: -1,
|
137 |
+
autoSize: true,
|
138 |
+
onClose: function( selectedDate ) {
|
139 |
+
$j( "#ups_to" ).datepicker( "option", "minDate", selectedDate );
|
140 |
+
},
|
141 |
+
onSelect: function()
|
142 |
+
{
|
143 |
+
if ($j("#ups_to").datepicker("getDate") != null)
|
144 |
+
getDataForRange("ups");
|
145 |
+
}
|
146 |
+
});
|
147 |
+
|
148 |
+
$j( "#ups_to" ).datepicker({
|
149 |
+
defaultDate: "+1w",
|
150 |
+
changeMonth: true,
|
151 |
+
numberOfMonths: 1,
|
152 |
+
maxDate: 0,
|
153 |
+
autoSize: true,
|
154 |
+
onClose: function( selectedDate ) {
|
155 |
+
$j( "#ups_from" ).datepicker( "option", "maxDate", selectedDate );
|
156 |
+
},
|
157 |
+
onSelect: function()
|
158 |
+
{
|
159 |
+
if ($j("#ups_from").datepicker("getDate") != null)
|
160 |
+
getDataForRange("ups");
|
161 |
+
}
|
162 |
+
});
|
163 |
+
|
164 |
+
$j(".profile_li").hover(
|
165 |
+
function() {
|
166 |
+
$j(".profile_li").css({'background-color': '#ffffff', 'border-color': '#ffffff'});
|
167 |
+
$j(this).css({'background-color': '#FDFDFD', 'border-color': '#ECE3E3'})
|
168 |
+
},
|
169 |
+
function() {
|
170 |
+
$j(".profile_li").css({'background-color': '#ffffff', 'border-color': '#ffffff'});
|
171 |
+
}
|
172 |
+
);
|
173 |
+
});
|
174 |
+
|
175 |
+
function getDataForRange(acnt_type)
|
176 |
+
{
|
177 |
+
if (acnt_type == "fdx") {
|
178 |
+
var fromDate = $j("#fdx_from").datepicker("getDate");
|
179 |
+
var toDate = $j("#fdx_to").datepicker("getDate");
|
180 |
+
}
|
181 |
+
else {
|
182 |
+
var fromDate = $j("#ups_from").datepicker("getDate");
|
183 |
+
var toDate = $j("#ups_to").datepicker("getDate");
|
184 |
+
}
|
185 |
+
|
186 |
+
fromDate = $j.datepicker.formatDate('mm-dd-yy', fromDate);
|
187 |
+
toDate = $j.datepicker.formatDate('mm-dd-yy', toDate);
|
188 |
+
|
189 |
+
var json = { "id":"<?php echo $result->business_id ?>","from":fromDate, "to":toDate, "acnt":acnt_type, "callback":"data" };
|
190 |
+
var sid ="<?php echo $result->business_id ?>";
|
191 |
+
my_url = "https://54.221.203.199/api/session/selectRefundRange.jsonp?id="+ sid +"&from=" + fromDate + "&to="+toDate+"&acnt="+acnt_type+"&callback=data";
|
192 |
+
|
193 |
+
$j.ajaxSetup({
|
194 |
+
error: function(jqXHR, exception) {
|
195 |
+
if (jqXHR.status === 0) {
|
196 |
+
alert('Not connect.\n Verify Network.');
|
197 |
+
} else if (jqXHR.status == 404) {
|
198 |
+
alert('Requested page not found. [404]');
|
199 |
+
} else if (jqXHR.status == 500) {
|
200 |
+
alert('Internal Server Error [500].');
|
201 |
+
} else if (exception === 'parsererror') {
|
202 |
+
alert('Requested JSON parse failed.');
|
203 |
+
} else if (exception === 'timeout') {
|
204 |
+
alert('Time out error.');
|
205 |
+
} else if (exception === 'abort') {
|
206 |
+
alert('Ajax request aborted.');
|
207 |
+
} else {
|
208 |
+
alert('Uncaught Error.\n' + jqXHR.responseText);
|
209 |
+
}
|
210 |
+
}
|
211 |
+
});
|
212 |
+
|
213 |
+
$j.ajax({
|
214 |
+
url: my_url,
|
215 |
+
type: "GET",
|
216 |
+
dataType: "jsonp",
|
217 |
+
success: function (result) {
|
218 |
+
if (acnt_type == "fdx")
|
219 |
+
populateFedexTable(result);
|
220 |
+
else
|
221 |
+
populateUpsTable(result);
|
222 |
+
},
|
223 |
+
error: function (req, msg, obj) {
|
224 |
+
alert("The requested data could not be processed "+ msg);
|
225 |
+
}
|
226 |
+
});
|
227 |
+
|
228 |
+
}
|
229 |
+
|
230 |
+
function populateFedexTable(result)
|
231 |
+
{
|
232 |
+
if (result.totalRefunds > 0) {
|
233 |
+
fedexRefunds = result.refunds;
|
234 |
+
//links = result.links
|
235 |
+
dates = result.datesArray;
|
236 |
+
$j("#fdx").empty();
|
237 |
+
count = 1;
|
238 |
+
|
239 |
+
$j.each( fedexRefunds, function( i, value ) {
|
240 |
+
//url = ' ';
|
241 |
+
|
242 |
+
//if(links[i] != '-1')
|
243 |
+
//url = "<a href='" +links[i] +"'>refund capture</a>";
|
244 |
+
|
245 |
+
if (count) { //Appended elements belong to class 'even', use for background color white
|
246 |
+
|
247 |
+
$j("#fdx").append("<span class='even f_acnt'>"+fedexRefunds[i].payer_acnt+
|
248 |
+
"</span><span class='even f_track'>"+fedexRefunds[i].tracking+
|
249 |
+
"</span><span class='even f_date'>"+dates[i]+"</span><span class='even f_ref'>"+
|
250 |
+
fedexRefunds[i].refund_amt+"</span><br />");// <span class='even f_acnt'>"+ url +"</span><br />");
|
251 |
+
count = 0;
|
252 |
+
}
|
253 |
+
else { //Appended elements belong to class 'prime', use for background color gray
|
254 |
+
$j("#fdx").append("<span class='prime f_acnt'>"+fedexRefunds[i].payer_acnt+
|
255 |
+
"</span><span class='prime f_track'>"+fedexRefunds[i].tracking+
|
256 |
+
"</span><span class='prime f_date'>"+dates[i]+"</span><span class='prime f_ref'>"+
|
257 |
+
fedexRefunds[i].refund_amt+"</span><br />");// <span class='prime f_acnt'>"+ url +"</span><br />");
|
258 |
+
count = 1;
|
259 |
+
}
|
260 |
+
});
|
261 |
+
|
262 |
+
$j(".dash-wrapper").height($j(".dash-right").height() + 300); //recalculate new height for wrapper
|
263 |
+
$j(".vertical2").height($j(".dash-wrapper").height() - 290); //recalculate new height for image
|
264 |
+
|
265 |
+
$j("#refundsFdx").html("$"+result.totalRefunds);
|
266 |
+
}
|
267 |
+
else {
|
268 |
+
$j(alert("There are no refunds available for the selected dates"));
|
269 |
+
}
|
270 |
+
}
|
271 |
+
|
272 |
+
function populateUpsTable(result)
|
273 |
+
{
|
274 |
+
if (result.totalRefunds > 0) {
|
275 |
+
upsRefunds = result.refunds;
|
276 |
+
dates = result.datesArray;
|
277 |
+
$j("#ups").empty();
|
278 |
+
count = 1;
|
279 |
+
|
280 |
+
$j.each( upsRefunds, function( i, value ) {
|
281 |
+
if (count) {
|
282 |
+
$j("#ups").append("<span class='even f_acnt'>"+upsRefunds[i].acnt_nbr+"</span><span class='even f_track'>"+
|
283 |
+
upsRefunds[i].tracking+"</span><span class='even f_date'>"+dates[i]+
|
284 |
+
"</span><span class='even f_inv'>"+upsRefunds[i].invoice_nbr+
|
285 |
+
"</span><span class='even f_ref'>"+upsRefunds[i].refund_amt+"</span><br />");
|
286 |
+
count = 0;
|
287 |
+
}
|
288 |
+
else {
|
289 |
+
$j("#ups").append("<span class='even f_acnt'>"+upsRefunds[i].acnt_nbr+"</span><span class='even f_track'>"+
|
290 |
+
upsRefunds[i].tracking+"</span><span class='even f_date'>"+dates[i]+
|
291 |
+
"</span><span class='even f_inv'>"+upsRefunds[i].invoice_nbr+
|
292 |
+
"</span><span class='even f_ref'>"+upsRefunds[i].refund_amt+"</span><br />");
|
293 |
+
count = 1;
|
294 |
+
}
|
295 |
+
|
296 |
+
});
|
297 |
+
|
298 |
+
$j(".dash-wrapper").height($j(".dash-right").height() + 300); //recalculate new height for wrapper
|
299 |
+
$j(".vertical2").height($j(".dash-wrapper").height() - 290); //recalculate new height for image
|
300 |
+
$j("#refundsUps").html("$"+result.totalRefunds);
|
301 |
+
}
|
302 |
+
else {
|
303 |
+
$j(alert("There are no refunds available for the selected dates"));
|
304 |
+
}
|
305 |
+
}
|
306 |
+
|
307 |
+
|
308 |
+
|
309 |
+
//mimic folder tabs to display graph and table
|
310 |
+
$j(document).ready(function() {
|
311 |
+
$j("#content").children("div").hide(); // Initially hide all content
|
312 |
+
$j("#tabs li:first").attr("id","current"); // Activate first tab
|
313 |
+
$j("#content div:first").fadeIn(); // Show first tab content
|
314 |
+
|
315 |
+
$j('#tabs a').click(function(e) {
|
316 |
+
e.preventDefault();
|
317 |
+
if ($j(this).closest("li").attr("id") == "current"){ //detection for current tab
|
318 |
+
return
|
319 |
+
}
|
320 |
+
else{
|
321 |
+
$j("#content").children("div").hide(); //Hide all content
|
322 |
+
$j("#tabs li").attr("id",""); //Reset id's
|
323 |
+
$j(this).parent().attr("id","current"); // Activate this
|
324 |
+
$j('#' + $j(this).attr('name')).fadeIn(); // Show content for current tab
|
325 |
+
}
|
326 |
+
});
|
327 |
+
});
|
328 |
+
//Business profile selections
|
329 |
+
</script>
|
330 |
+
|
331 |
+
<form autocomplete="off">
|
332 |
+
|
333 |
+
<div class="dash-wrapper">
|
334 |
+
|
335 |
+
<span class="b_name"><?php echo $result->business_name ?></span>
|
336 |
+
<div style="clear:both"></div>
|
337 |
+
|
338 |
+
<div class="dash-left">
|
339 |
+
<!-- Void -->
|
340 |
+
</div><!-- end dash-left -->
|
341 |
+
<div class="vertical1"></div>
|
342 |
+
<!--<div class="vertical2"></div>-->
|
343 |
+
|
344 |
+
<div class="dash-right">
|
345 |
+
<div id="ref_content" class="contents" style="overflow:hidden">
|
346 |
+
<span class="welcome">Welcome to 71 Pounds</span>
|
347 |
+
<div class="yr_date">Year to date refunds: <?php echo $result->yearly_total ?></div>
|
348 |
+
<?php if ($result->yearly_total > 0): ?>
|
349 |
+
<p class="last_updated_refunds">Last updated: <?php echo $result->last_update ?></p>
|
350 |
+
<?php endif ?>
|
351 |
+
|
352 |
+
<div id="dataChartsTables">
|
353 |
+
<ul id="tabs">
|
354 |
+
<li><a href="#" name="tab1">Graph</a></li>
|
355 |
+
<li><a href="#" name="tab2">Table</a></li>
|
356 |
+
</ul>
|
357 |
+
|
358 |
+
<div id="content">
|
359 |
+
|
360 |
+
<div id="tab1">
|
361 |
+
<div id="chart_div"></div>
|
362 |
+
</div><!-- tab1 -->
|
363 |
+
|
364 |
+
<div id="tab2">
|
365 |
+
<div class="totals">
|
366 |
+
<span class="f_this"> <?php echo ($result->fdx_this_month); ?> </span>
|
367 |
+
<span class="f_last"><?php echo ($result->fdx_prev_month); ?> </span>
|
368 |
+
<span class="f_year"><?php echo ($result->yearly_fdx_ref); ?> </span>
|
369 |
+
<span class="u_this"><?php echo ($result->ups_this_month); ?> </span>
|
370 |
+
<span class="u_last"><?php echo ($result->ups_prev_month); ?> </span>
|
371 |
+
<span class="u_year"><?php echo ($result->yearly_ups_ref); ?> </span>
|
372 |
+
<span class="t_this"><?php echo ($result->month_total); ?> </span>
|
373 |
+
<span class="t_last"><?php echo ($result->prev_total); ?> </span>
|
374 |
+
<span class="t_year"><?php echo($result->yearly_total); ?> </span>
|
375 |
+
</div>
|
376 |
+
</div><!-- tab2 -->
|
377 |
+
</div>
|
378 |
+
</div>
|
379 |
+
|
380 |
+
<?php if ($result->fdx_uname !== null && $result->fdx_uname != ""): ?>
|
381 |
+
<span class="f_latest">Current month activity - FedEx</span>
|
382 |
+
<div style="margin-top: 50px"></div>
|
383 |
+
<div style="width:790px">
|
384 |
+
<div class="acnt_tbl2" style="border-left:1px solid #DADADA;width:140px">Account Number</div>
|
385 |
+
<div class="acnt_tbl2" style="width:140px;padding-left:50px">Tracking</div>
|
386 |
+
<div class="acnt_tbl2" style="width:85px">Date</div>
|
387 |
+
<div class="acnt_tbl2" style="width:130px;padding-left: 30px">Refund Amount</div>
|
388 |
+
<div style="clear:both"></div>
|
389 |
+
|
390 |
+
<div id="fdx">
|
391 |
+
<?php $count = 0 ?>
|
392 |
+
<?php foreach ($result->fedex_refunds as $key => $value): ?>
|
393 |
+
<?php if ($count == 0): ?>
|
394 |
+
<span class="even f_acnt"><?php echo $value->payer_acnt ?></span>
|
395 |
+
<span class="even f_track"><?php echo $value->tracking ?></span>
|
396 |
+
<span class="even f_date"><?php echo $value->invoice_dt ?></span>
|
397 |
+
<span class="even f_ref">$<?php echo $value->refund_amt ?></span>
|
398 |
+
|
399 |
+
<?php $count = 1 ?>
|
400 |
+
<?php else: ?>
|
401 |
+
<span class="prime f_acnt"><?php echo $value->payer_acnt ?></span>
|
402 |
+
<span class="prime f_track"><?php echo $value->tracking ?></span>
|
403 |
+
<span class="prime f_date"><?php echo $value->invoice_dt ?></span>
|
404 |
+
<span class="prime f_ref">$<?php echo $value->refund_amt ?></span>
|
405 |
+
<?php $count = 0 ?>
|
406 |
+
<?php endif ?>
|
407 |
+
<?php endforeach ?>
|
408 |
+
<div style="clear:both"></div>
|
409 |
+
|
410 |
+
</div>
|
411 |
+
<div style="clear:both"></div>
|
412 |
+
<div class="totals_div1">
|
413 |
+
<span style="margin-left: 360px;">Total Refunds</span>
|
414 |
+
</div>
|
415 |
+
<div class="totals_div2">
|
416 |
+
<span id="refundsFdx" class="f_total"><?php echo $result->fdx_this_month ?></span>
|
417 |
+
</div>
|
418 |
+
</div>
|
419 |
+
<span class="from">From</span>
|
420 |
+
<input type="text" id="fdx_from" class="date_input" />
|
421 |
+
<span>to</span>
|
422 |
+
<input type="text" id="fdx_to" class="date_input" />
|
423 |
+
<?php endif ?>
|
424 |
+
<br/>
|
425 |
+
<?php if ($result->ups_uname !== null && $result->ups_uname != ""): ?>
|
426 |
+
<span class="f_latest">Current month activity - UPS</span>
|
427 |
+
<div style="margin-top: 50px"></div>
|
428 |
+
|
429 |
+
<div style="width:900px">
|
430 |
+
<div class="acnt_tbl2" style="border-left:1px solid #DADADA;width:140px">Account Number</div>
|
431 |
+
<div class="acnt_tbl2" style="width:160px;padding-left:30px">Tracking</div>
|
432 |
+
<div class="acnt_tbl2" style="width:85px">Date</div>
|
433 |
+
<div class="acnt_tbl2" style="width:130px;padding-left:30px">Invoice Number</div>
|
434 |
+
<div class="acnt_tbl2" style="width:130px;padding-left: 30px">Refund Amount</div>
|
435 |
+
<div style="clear:both"></div>
|
436 |
+
|
437 |
+
<div id="ups">
|
438 |
+
<?php $count = 0 ?>
|
439 |
+
<?php foreach ($result->ups_refunds as $key => $value): ?>
|
440 |
+
<?php if ($count == 0): ?>
|
441 |
+
<span class="even f_acnt"><?php echo $value->acnt_nbr ?></span>
|
442 |
+
<span class="even f_track"><?php echo $value->tracking ?></span>
|
443 |
+
<span class="even f_date"><?php echo $value->invoice_dt ?></span>
|
444 |
+
<span class="even f_inv"><?php echo $value->invoice_nbr ?></span>
|
445 |
+
<span class="even f_ref">$<?php echo $value->refund_amt ?></span>
|
446 |
+
<?php $count = 1 ?>
|
447 |
+
<?php else: ?>
|
448 |
+
<span class="prime f_acnt"><?php echo $value->acnt_nbr ?></span>
|
449 |
+
<span class="prime f_track"><?php echo $value->tracking ?></span>
|
450 |
+
<span class="prime f_date"><?php echo $value->invoice_dt ?></span>
|
451 |
+
<span class="prime f_inv"><?php echo $value->invoice_nbr ?></span>
|
452 |
+
<span class="prime f_ref">$<?php echo $value->refund_amt ?></span>
|
453 |
+
<?php $count = 0 ?>
|
454 |
+
<?php endif ?>
|
455 |
+
<div style="clear:both"></div>
|
456 |
+
<?php endforeach ?>
|
457 |
+
</div>
|
458 |
+
</div>
|
459 |
+
<div style="clear:both"></div>
|
460 |
+
<div class="totals_div1" style="width:623px">
|
461 |
+
<span style="margin-left:520px;">Total Refunds</span>
|
462 |
+
</div>
|
463 |
+
<div class="totals_div2" style="margin-left:630px">
|
464 |
+
<span id="refundsUps" class="f_total"><?php echo $result->ups_this_month ?></span>
|
465 |
+
</div>
|
466 |
+
|
467 |
+
<span class="from">From</span>
|
468 |
+
<input type="text" id="ups_from" class="date_input" />
|
469 |
+
<span>to</span>
|
470 |
+
<input type="text" id="ups_to" class="date_input" />
|
471 |
+
<?php endif ?>
|
472 |
+
|
473 |
+
</div> <!-- end refunds -->
|
474 |
+
|
475 |
+
<!-- Accounts -->
|
476 |
+
<div id="acnt_content" class="contents" style="display:none">
|
477 |
+
<!-- Void -->
|
478 |
+
</div>
|
479 |
+
|
480 |
+
<!-- Users -->
|
481 |
+
<div id="usr_content" class="contents" style="display:none; overflow: hidden;">
|
482 |
+
<!-- Void -->
|
483 |
+
</div>
|
484 |
+
</div>
|
485 |
+
</div>
|
486 |
+
<a href="https://www.71lbs.com/businesses/<?php echo $result->business_id ?>" target="_blank">More Information</a>
|
487 |
+
|
488 |
+
</form>
|
489 |
+
<div id="test">
|
490 |
+
</div>
|
app/design/adminhtml/default/default/template/adminrefunds/loginform.phtml
CHANGED
@@ -23,6 +23,7 @@
|
|
23 |
//myurl = "http://localhost:3000/api/session/exist.jsonp?callback=data";
|
24 |
//myurl = "https://54.221.203.199/api/session/exist.jsonp?callback=data";
|
25 |
myurl = "https://www.71lbs.com/api/session/exist.jsonp?callback=data";
|
|
|
26 |
|
27 |
//data = {"created_at":null,"email":"Andrea2@gmail.com","id":null,"name":"Andrea2","updated_at":null};
|
28 |
var data = {"email": $j("#signupEmail").val(),"password":$j("#signupPass").val()};
|
23 |
//myurl = "http://localhost:3000/api/session/exist.jsonp?callback=data";
|
24 |
//myurl = "https://54.221.203.199/api/session/exist.jsonp?callback=data";
|
25 |
myurl = "https://www.71lbs.com/api/session/exist.jsonp?callback=data";
|
26 |
+
//myurl = "http://localhost:3000/api/session/exist.jsonp?callback=data";
|
27 |
|
28 |
//data = {"created_at":null,"email":"Andrea2@gmail.com","id":null,"name":"Andrea2","updated_at":null};
|
29 |
var data = {"email": $j("#signupEmail").val(),"password":$j("#signupPass").val()};
|
app/design/adminhtml/default/default/template/adminrefunds/refunds.phtml
CHANGED
@@ -15,6 +15,9 @@ $context = stream_context_create($opts);
|
|
15 |
$url = 'https://www.71lbs.com/api/session';
|
16 |
//$url = 'https://54.221.203.199/api/session';
|
17 |
//$url = 'http://localhost:3000/api/session';
|
|
|
|
|
|
|
18 |
|
19 |
$result = file_get_contents($url, false, $context);
|
20 |
$result = json_decode($result);
|
@@ -27,496 +30,9 @@ if($result->error){
|
|
27 |
echo("<div style='color: red'><b>Error:</b> " . $result->msj) . "</div>";
|
28 |
echo '<a href="javascript:history.go(-1)" title="Back">« Go back</a>';
|
29 |
exit();
|
30 |
-
}
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<link rel="stylesheet" href="https://www.71lbs.com/assets/1140.css" type="text/css" media="screen" />
|
37 |
-
<!-- Jquery ui styles -->
|
38 |
-
<link href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/themes/redmond/jquery-ui.css" media="screen" rel="stylesheet" type="text/css" />
|
39 |
-
<!-- Your styles -->
|
40 |
-
<link rel="stylesheet" href="https://www.71lbs.com/assets/businesses.css" type="text/css" media="screen" />
|
41 |
-
<link rel="stylesheet" href="https://www.71lbs.com/assets/style.css" type="text/css" media="screen" />
|
42 |
-
<link rel="stylesheet" href="https://www.71lbs.com/assets/users.css" type="text/css" media="screen" />
|
43 |
-
<link rel="stylesheet" href="https://www.71lbs.com/assets/signup.css" type="text/css" media="screen" />
|
44 |
-
<link rel="stylesheet" href="https://www.71lbs.com/assets/signup2.css" type="text/css" media="screen" />
|
45 |
-
<!-- JS libraries -->
|
46 |
-
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
47 |
-
<script type="text/javascript">
|
48 |
-
// <![CDATA[
|
49 |
-
// noConflict so we can use both libraries
|
50 |
-
var $j = jQuery.noConflict();
|
51 |
-
//]]>
|
52 |
-
</script>
|
53 |
-
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"></script>
|
54 |
-
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
55 |
-
<script type="text/javascript">
|
56 |
-
//Google API charts
|
57 |
-
google.load("visualization", "1", {packages:["corechart"]});
|
58 |
-
google.setOnLoadCallback(drawChart);
|
59 |
-
function drawChart() {
|
60 |
-
var data = new google.visualization.DataTable();
|
61 |
-
//Add number of Columns
|
62 |
-
data.addColumn('string', 'Month');
|
63 |
-
data.addColumn('number', 'Refund');
|
64 |
-
|
65 |
-
var monthNames = [ "January", "February", "March", "April", "May", "June",
|
66 |
-
"July", "August", "September", "October", "November", "December" ];
|
67 |
-
|
68 |
-
//get first month and last month since business started
|
69 |
-
//if not fedex refunds is empty
|
70 |
-
|
71 |
-
//loop to display a chart with all the months since
|
72 |
-
//business started in current year
|
73 |
-
for (var i = <?php echo $result->first_month; ?>; i <= <?php echo $result->
|
74 |
-
last_month; ?>; i++) {
|
75 |
-
data.addRow([monthNames[i - 1],0]);//Add a row for each refund by month key
|
76 |
-
}
|
77 |
-
|
78 |
-
//Design chart
|
79 |
-
var options = {
|
80 |
-
title: 'Total of Refunds Month over Month',
|
81 |
-
titleTextStyle: {color:'979797', fontSize: 12},
|
82 |
-
hAxis: {title: 'Month', titleTextStyle: {color: '979797', fontSize: 12}},
|
83 |
-
vAxis: {title: 'Economic Value of Refunds Revenue', titleTextStyle: {color: '979797', fontSize: 12}, minValue:0, maxValue:<?php echo
|
84 |
-
$result->max_value; ?>},
|
85 |
-
fontName: 'Arial, Helvetica, sans-serif',
|
86 |
-
animation: { duration: 1000, easing: 'out'}
|
87 |
-
};
|
88 |
-
|
89 |
-
var chart = new google.visualization.ColumnChart(document.getElementById('chart_div'));
|
90 |
-
chart.draw(data, options);
|
91 |
-
|
92 |
-
//create animation of bars going up
|
93 |
-
//Get hash of total refunds by months for fedex
|
94 |
-
//if not fedex empty do foreach
|
95 |
-
<?php if ($result->fdx_monthly_refunds): ?>
|
96 |
-
setTimeout(function(){
|
97 |
-
<?php foreach ($result->fdx_monthly_refunds as $key => $value): ?>
|
98 |
-
data.setValue(<?php echo $value[0]; ?> - <?php echo $result->
|
99 |
-
first_month; ?>,1,<?php echo
|
100 |
-
$value[1] ?>); //setValue(row index,column index, value)
|
101 |
-
<?php endforeach ?>
|
102 |
-
chart.draw(data, options);
|
103 |
-
},500);
|
104 |
-
<?php endif ?>
|
105 |
-
|
106 |
-
//create animation of bars going up
|
107 |
-
//Get hash of total refunds by months for ups
|
108 |
-
//if not ups empty do foreach
|
109 |
-
<?php if ($result->ups_monthly_refunds): ?>
|
110 |
-
setTimeout(function(){
|
111 |
-
|
112 |
-
<?php foreach ($result->ups_monthly_refunds as $key => $value): ?>
|
113 |
-
var preValue = data.getValue(<?php echo $value[0]; ?> - <?php echo
|
114 |
-
$result->first_month; ?>,1); //get value thats there now and add it to next value
|
115 |
-
data.setValue(<?php echo $value[0]; ?> - <?php echo $result->
|
116 |
-
first_month; ?>,1,<?php echo
|
117 |
-
$value[1] ?> + preValue); //setValue(row index,column index, value)
|
118 |
-
<?php endforeach ?>
|
119 |
-
chart.draw(data, options);
|
120 |
-
},2500);
|
121 |
-
<?php endif ?>
|
122 |
-
|
123 |
-
}
|
124 |
-
|
125 |
-
</script>
|
126 |
-
<script>
|
127 |
-
|
128 |
-
$j(function() {
|
129 |
-
|
130 |
-
|
131 |
-
<!-- Jquery ui datepicker -->
|
132 |
-
$j( "#fdx_from" ).datepicker({
|
133 |
-
defaultDate: "+1w",
|
134 |
-
changeMonth: true,
|
135 |
-
numberOfMonths: 1,
|
136 |
-
maxDate: -1,
|
137 |
-
autoSize: true,
|
138 |
-
onClose: function( selectedDate ) {
|
139 |
-
$j( "#fdx_to" ).datepicker( "option", "minDate", selectedDate );
|
140 |
-
},
|
141 |
-
onSelect: function()
|
142 |
-
{
|
143 |
-
if ($j("#fdx_to").datepicker("getDate") != null)
|
144 |
-
getDataForRange("fdx");
|
145 |
-
}
|
146 |
-
});
|
147 |
-
|
148 |
-
$j( "#fdx_to" ).datepicker({
|
149 |
-
defaultDate: "+1w",
|
150 |
-
changeMonth: true,
|
151 |
-
numberOfMonths: 1,
|
152 |
-
maxDate: 0,
|
153 |
-
autoSize: true,
|
154 |
-
onClose: function( selectedDate ) {
|
155 |
-
$j( "#fdx_from" ).datepicker( "option", "maxDate", selectedDate );
|
156 |
-
},
|
157 |
-
onSelect: function()
|
158 |
-
{
|
159 |
-
if ($j("#fdx_from").datepicker("getDate") != null)
|
160 |
-
getDataForRange("fdx");
|
161 |
-
}
|
162 |
-
});
|
163 |
-
|
164 |
-
$j( "#ups_from" ).datepicker({
|
165 |
-
defaultDate: "+1w",
|
166 |
-
changeMonth: true,
|
167 |
-
numberOfMonths: 1,
|
168 |
-
maxDate: -1,
|
169 |
-
autoSize: true,
|
170 |
-
onClose: function( selectedDate ) {
|
171 |
-
$j( "#ups_to" ).datepicker( "option", "minDate", selectedDate );
|
172 |
-
},
|
173 |
-
onSelect: function()
|
174 |
-
{
|
175 |
-
if ($j("#ups_to").datepicker("getDate") != null)
|
176 |
-
getDataForRange("ups");
|
177 |
-
}
|
178 |
-
});
|
179 |
-
|
180 |
-
$j( "#ups_to" ).datepicker({
|
181 |
-
defaultDate: "+1w",
|
182 |
-
changeMonth: true,
|
183 |
-
numberOfMonths: 1,
|
184 |
-
maxDate: 0,
|
185 |
-
autoSize: true,
|
186 |
-
onClose: function( selectedDate ) {
|
187 |
-
$j( "#ups_from" ).datepicker( "option", "maxDate", selectedDate );
|
188 |
-
},
|
189 |
-
onSelect: function()
|
190 |
-
{
|
191 |
-
if ($j("#ups_from").datepicker("getDate") != null)
|
192 |
-
getDataForRange("ups");
|
193 |
-
}
|
194 |
-
});
|
195 |
-
|
196 |
-
$j(".profile_li").hover(
|
197 |
-
function() {
|
198 |
-
$j(".profile_li").css({'background-color': '#ffffff', 'border-color': '#ffffff'});
|
199 |
-
$j(this).css({'background-color': '#FDFDFD', 'border-color': '#ECE3E3'})
|
200 |
-
},
|
201 |
-
function() {
|
202 |
-
$j(".profile_li").css({'background-color': '#ffffff', 'border-color': '#ffffff'});
|
203 |
-
}
|
204 |
-
);
|
205 |
-
});
|
206 |
-
|
207 |
-
function getDataForRange(acnt_type)
|
208 |
-
{
|
209 |
-
if (acnt_type == "fdx") {
|
210 |
-
var fromDate = $j("#fdx_from").datepicker("getDate");
|
211 |
-
var toDate = $j("#fdx_to").datepicker("getDate");
|
212 |
-
}
|
213 |
-
else {
|
214 |
-
var fromDate = $j("#ups_from").datepicker("getDate");
|
215 |
-
var toDate = $j("#ups_to").datepicker("getDate");
|
216 |
-
}
|
217 |
-
|
218 |
-
fromDate = $j.datepicker.formatDate('mm-dd-yy', fromDate);
|
219 |
-
toDate = $j.datepicker.formatDate('mm-dd-yy', toDate);
|
220 |
-
|
221 |
-
var json = { "id":"<?php echo $result->business_id ?>","from":fromDate, "to":toDate, "acnt":acnt_type, "callback":"data" };
|
222 |
-
var sid ="<?php echo $result->business_id ?>";
|
223 |
-
my_url = "https://54.221.203.199/api/session/selectRefundRange.jsonp?id="+ sid +"&from=" + fromDate + "&to="+toDate+"&acnt="+acnt_type+"&callback=data";
|
224 |
-
|
225 |
-
$j.ajaxSetup({
|
226 |
-
error: function(jqXHR, exception) {
|
227 |
-
if (jqXHR.status === 0) {
|
228 |
-
alert('Not connect.\n Verify Network.');
|
229 |
-
} else if (jqXHR.status == 404) {
|
230 |
-
alert('Requested page not found. [404]');
|
231 |
-
} else if (jqXHR.status == 500) {
|
232 |
-
alert('Internal Server Error [500].');
|
233 |
-
} else if (exception === 'parsererror') {
|
234 |
-
alert('Requested JSON parse failed.');
|
235 |
-
} else if (exception === 'timeout') {
|
236 |
-
alert('Time out error.');
|
237 |
-
} else if (exception === 'abort') {
|
238 |
-
alert('Ajax request aborted.');
|
239 |
-
} else {
|
240 |
-
alert('Uncaught Error.\n' + jqXHR.responseText);
|
241 |
-
}
|
242 |
-
}
|
243 |
-
});
|
244 |
-
|
245 |
-
$j.ajax({
|
246 |
-
url: my_url,
|
247 |
-
type: "GET",
|
248 |
-
dataType: "jsonp",
|
249 |
-
success: function (result) {
|
250 |
-
if (acnt_type == "fdx")
|
251 |
-
populateFedexTable(result);
|
252 |
-
else
|
253 |
-
populateUpsTable(result);
|
254 |
-
},
|
255 |
-
error: function (req, msg, obj) {
|
256 |
-
alert("The requested data could not be processed "+ msg);
|
257 |
-
}
|
258 |
-
});
|
259 |
-
|
260 |
-
}
|
261 |
-
|
262 |
-
function populateFedexTable(result)
|
263 |
-
{
|
264 |
-
if (result.totalRefunds > 0) {
|
265 |
-
fedexRefunds = result.refunds;
|
266 |
-
//links = result.links
|
267 |
-
dates = result.datesArray;
|
268 |
-
$j("#fdx").empty();
|
269 |
-
count = 1;
|
270 |
-
|
271 |
-
$j.each( fedexRefunds, function( i, value ) {
|
272 |
-
//url = ' ';
|
273 |
-
|
274 |
-
//if(links[i] != '-1')
|
275 |
-
//url = "<a href='" +links[i] +"'>refund capture</a>";
|
276 |
-
|
277 |
-
if (count) { //Appended elements belong to class 'even', use for background color white
|
278 |
-
|
279 |
-
$j("#fdx").append("<span class='even f_acnt'>"+fedexRefunds[i].payer_acnt+
|
280 |
-
"</span><span class='even f_track'>"+fedexRefunds[i].tracking+
|
281 |
-
"</span><span class='even f_date'>"+dates[i]+"</span><span class='even f_ref'>"+
|
282 |
-
fedexRefunds[i].refund_amt+"</span><br />");// <span class='even f_acnt'>"+ url +"</span><br />");
|
283 |
-
count = 0;
|
284 |
-
}
|
285 |
-
else { //Appended elements belong to class 'prime', use for background color gray
|
286 |
-
$j("#fdx").append("<span class='prime f_acnt'>"+fedexRefunds[i].payer_acnt+
|
287 |
-
"</span><span class='prime f_track'>"+fedexRefunds[i].tracking+
|
288 |
-
"</span><span class='prime f_date'>"+dates[i]+"</span><span class='prime f_ref'>"+
|
289 |
-
fedexRefunds[i].refund_amt+"</span><br />");// <span class='prime f_acnt'>"+ url +"</span><br />");
|
290 |
-
count = 1;
|
291 |
-
}
|
292 |
-
});
|
293 |
-
|
294 |
-
$j(".dash-wrapper").height($j(".dash-right").height() + 300); //recalculate new height for wrapper
|
295 |
-
$j(".vertical2").height($j(".dash-wrapper").height() - 290); //recalculate new height for image
|
296 |
-
|
297 |
-
$j("#refundsFdx").html("$"+result.totalRefunds);
|
298 |
-
}
|
299 |
-
else {
|
300 |
-
$j(alert("There are no refunds available for the selected dates"));
|
301 |
-
}
|
302 |
-
}
|
303 |
-
|
304 |
-
function populateUpsTable(result)
|
305 |
-
{
|
306 |
-
if (result.totalRefunds > 0) {
|
307 |
-
upsRefunds = result.refunds;
|
308 |
-
dates = result.datesArray;
|
309 |
-
$j("#ups").empty();
|
310 |
-
count = 1;
|
311 |
-
|
312 |
-
$j.each( upsRefunds, function( i, value ) {
|
313 |
-
if (count) {
|
314 |
-
$j("#ups").append("<span class='even f_acnt'>"+upsRefunds[i].acnt_nbr+"</span><span class='even f_track'>"+
|
315 |
-
upsRefunds[i].tracking+"</span><span class='even f_date'>"+dates[i]+
|
316 |
-
"</span><span class='even f_inv'>"+upsRefunds[i].invoice_nbr+
|
317 |
-
"</span><span class='even f_ref'>"+upsRefunds[i].refund_amt+"</span><br />");
|
318 |
-
count = 0;
|
319 |
-
}
|
320 |
-
else {
|
321 |
-
$j("#ups").append("<span class='even f_acnt'>"+upsRefunds[i].acnt_nbr+"</span><span class='even f_track'>"+
|
322 |
-
upsRefunds[i].tracking+"</span><span class='even f_date'>"+dates[i]+
|
323 |
-
"</span><span class='even f_inv'>"+upsRefunds[i].invoice_nbr+
|
324 |
-
"</span><span class='even f_ref'>"+upsRefunds[i].refund_amt+"</span><br />");
|
325 |
-
count = 1;
|
326 |
-
}
|
327 |
-
|
328 |
-
});
|
329 |
-
|
330 |
-
$j(".dash-wrapper").height($j(".dash-right").height() + 300); //recalculate new height for wrapper
|
331 |
-
$j(".vertical2").height($j(".dash-wrapper").height() - 290); //recalculate new height for image
|
332 |
-
$j("#refundsUps").html("$"+result.totalRefunds);
|
333 |
-
}
|
334 |
-
else {
|
335 |
-
$j(alert("There are no refunds available for the selected dates"));
|
336 |
-
}
|
337 |
-
}
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
//mimic folder tabs to display graph and table
|
342 |
-
$j(document).ready(function() {
|
343 |
-
$j("#content").children("div").hide(); // Initially hide all content
|
344 |
-
$j("#tabs li:first").attr("id","current"); // Activate first tab
|
345 |
-
$j("#content div:first").fadeIn(); // Show first tab content
|
346 |
-
|
347 |
-
$j('#tabs a').click(function(e) {
|
348 |
-
e.preventDefault();
|
349 |
-
if ($j(this).closest("li").attr("id") == "current"){ //detection for current tab
|
350 |
-
return
|
351 |
-
}
|
352 |
-
else{
|
353 |
-
$j("#content").children("div").hide(); //Hide all content
|
354 |
-
$j("#tabs li").attr("id",""); //Reset id's
|
355 |
-
$j(this).parent().attr("id","current"); // Activate this
|
356 |
-
$j('#' + $j(this).attr('name')).fadeIn(); // Show content for current tab
|
357 |
-
}
|
358 |
-
});
|
359 |
-
});
|
360 |
-
//Business profile selections
|
361 |
-
</script>
|
362 |
-
|
363 |
-
<form autocomplete="off">
|
364 |
-
|
365 |
-
<div class="dash-wrapper">
|
366 |
-
|
367 |
-
<span class="b_name"><?php echo $result->business_name ?></span>
|
368 |
-
<div style="clear:both"></div>
|
369 |
-
|
370 |
-
<div class="dash-left">
|
371 |
-
<!-- Void -->
|
372 |
-
</div><!-- end dash-left -->
|
373 |
-
<div class="vertical1"></div>
|
374 |
-
<!--<div class="vertical2"></div>-->
|
375 |
-
|
376 |
-
<div class="dash-right">
|
377 |
-
<div id="ref_content" class="contents" style="overflow:hidden">
|
378 |
-
<span class="welcome">Welcome to 71 Pounds</span>
|
379 |
-
<div class="yr_date">Year to date refunds: <?php echo $result->yearly_total ?></div>
|
380 |
-
<?php if ($result->yearly_total > 0): ?>
|
381 |
-
<p class="last_updated_refunds">Last updated: <?php echo $result->last_update ?></p>
|
382 |
-
<?php endif ?>
|
383 |
-
|
384 |
-
<div id="dataChartsTables">
|
385 |
-
<ul id="tabs">
|
386 |
-
<li><a href="#" name="tab1">Graph</a></li>
|
387 |
-
<li><a href="#" name="tab2">Table</a></li>
|
388 |
-
</ul>
|
389 |
-
|
390 |
-
<div id="content">
|
391 |
-
|
392 |
-
<div id="tab1">
|
393 |
-
<div id="chart_div"></div>
|
394 |
-
</div><!-- tab1 -->
|
395 |
-
|
396 |
-
<div id="tab2">
|
397 |
-
<div class="totals">
|
398 |
-
<span class="f_this"> <?php echo ($result->fdx_this_month); ?> </span>
|
399 |
-
<span class="f_last"><?php echo ($result->fdx_prev_month); ?> </span>
|
400 |
-
<span class="f_year"><?php echo ($result->yearly_fdx_ref); ?> </span>
|
401 |
-
<span class="u_this"><?php echo ($result->ups_this_month); ?> </span>
|
402 |
-
<span class="u_last"><?php echo ($result->ups_prev_month); ?> </span>
|
403 |
-
<span class="u_year"><?php echo ($result->yearly_ups_ref); ?> </span>
|
404 |
-
<span class="t_this"><?php echo ($result->month_total); ?> </span>
|
405 |
-
<span class="t_last"><?php echo ($result->prev_total); ?> </span>
|
406 |
-
<span class="t_year"><?php echo($result->yearly_total); ?> </span>
|
407 |
-
</div>
|
408 |
-
</div><!-- tab2 -->
|
409 |
-
</div>
|
410 |
-
</div>
|
411 |
-
|
412 |
-
<?php if ($result->fdx_uname !== null && $result->fdx_uname != ""): ?>
|
413 |
-
<span class="f_latest">Current month activity - FedEx</span>
|
414 |
-
<div style="margin-top: 50px"></div>
|
415 |
-
<div style="width:790px">
|
416 |
-
<div class="acnt_tbl2" style="border-left:1px solid #DADADA;width:140px">Account Number</div>
|
417 |
-
<div class="acnt_tbl2" style="width:140px;padding-left:50px">Tracking</div>
|
418 |
-
<div class="acnt_tbl2" style="width:85px">Date</div>
|
419 |
-
<div class="acnt_tbl2" style="width:130px;padding-left: 30px">Refund Amount</div>
|
420 |
-
<div style="clear:both"></div>
|
421 |
-
|
422 |
-
<div id="fdx">
|
423 |
-
<?php $count = 0 ?>
|
424 |
-
<?php foreach ($result->fedex_refunds as $key => $value): ?>
|
425 |
-
<?php if ($count == 0): ?>
|
426 |
-
<span class="even f_acnt"><?php echo $value->payer_acnt ?></span>
|
427 |
-
<span class="even f_track"><?php echo $value->tracking ?></span>
|
428 |
-
<span class="even f_date"><?php echo $value->invoice_dt ?></span>
|
429 |
-
<span class="even f_ref">$<?php echo $value->refund_amt ?></span>
|
430 |
-
|
431 |
-
<?php $count = 1 ?>
|
432 |
-
<?php else: ?>
|
433 |
-
<span class="prime f_acnt"><?php echo $value->payer_acnt ?></span>
|
434 |
-
<span class="prime f_track"><?php echo $value->tracking ?></span>
|
435 |
-
<span class="prime f_date"><?php echo $value->invoice_dt ?></span>
|
436 |
-
<span class="prime f_ref">$<?php echo $value->refund_amt ?></span>
|
437 |
-
<?php $count = 0 ?>
|
438 |
-
<?php endif ?>
|
439 |
-
<?php endforeach ?>
|
440 |
-
<div style="clear:both"></div>
|
441 |
-
|
442 |
-
</div>
|
443 |
-
<div style="clear:both"></div>
|
444 |
-
<div class="totals_div1">
|
445 |
-
<span style="margin-left: 360px;">Total Refunds</span>
|
446 |
-
</div>
|
447 |
-
<div class="totals_div2">
|
448 |
-
<span id="refundsFdx" class="f_total"><?php echo $result->fdx_this_month ?></span>
|
449 |
-
</div>
|
450 |
-
</div>
|
451 |
-
<span class="from">From</span>
|
452 |
-
<input type="text" id="fdx_from" class="date_input" />
|
453 |
-
<span>to</span>
|
454 |
-
<input type="text" id="fdx_to" class="date_input" />
|
455 |
-
<?php endif ?>
|
456 |
-
<br/>
|
457 |
-
<?php if ($result->ups_uname !== null && $result->ups_uname != ""): ?>
|
458 |
-
<span class="f_latest">Current month activity - UPS</span>
|
459 |
-
<div style="margin-top: 50px"></div>
|
460 |
-
|
461 |
-
<div style="width:900px">
|
462 |
-
<div class="acnt_tbl2" style="border-left:1px solid #DADADA;width:140px">Account Number</div>
|
463 |
-
<div class="acnt_tbl2" style="width:160px;padding-left:30px">Tracking</div>
|
464 |
-
<div class="acnt_tbl2" style="width:85px">Date</div>
|
465 |
-
<div class="acnt_tbl2" style="width:130px;padding-left:30px">Invoice Number</div>
|
466 |
-
<div class="acnt_tbl2" style="width:130px;padding-left: 30px">Refund Amount</div>
|
467 |
-
<div style="clear:both"></div>
|
468 |
-
|
469 |
-
<div id="ups">
|
470 |
-
<?php $count = 0 ?>
|
471 |
-
<?php foreach ($result->ups_refunds as $key => $value): ?>
|
472 |
-
<?php if ($count == 0): ?>
|
473 |
-
<span class="even f_acnt"><?php echo $value->acnt_nbr ?></span>
|
474 |
-
<span class="even f_track"><?php echo $value->tracking ?></span>
|
475 |
-
<span class="even f_date"><?php echo $value->invoice_dt ?></span>
|
476 |
-
<span class="even f_inv"><?php echo $value->invoice_nbr ?></span>
|
477 |
-
<span class="even f_ref">$<?php echo $value->refund_amt ?></span>
|
478 |
-
<?php $count = 1 ?>
|
479 |
-
<?php else: ?>
|
480 |
-
<span class="prime f_acnt"><?php echo $value->acnt_nbr ?></span>
|
481 |
-
<span class="prime f_track"><?php echo $value->tracking ?></span>
|
482 |
-
<span class="prime f_date"><?php echo $value->invoice_dt ?></span>
|
483 |
-
<span class="prime f_inv"><?php echo $value->invoice_nbr ?></span>
|
484 |
-
<span class="prime f_ref">$<?php echo $value->refund_amt ?></span>
|
485 |
-
<?php $count = 0 ?>
|
486 |
-
<?php endif ?>
|
487 |
-
<div style="clear:both"></div>
|
488 |
-
<?php endforeach ?>
|
489 |
-
</div>
|
490 |
-
</div>
|
491 |
-
<div style="clear:both"></div>
|
492 |
-
<div class="totals_div1" style="width:623px">
|
493 |
-
<span style="margin-left:520px;">Total Refunds</span>
|
494 |
-
</div>
|
495 |
-
<div class="totals_div2" style="margin-left:630px">
|
496 |
-
<span id="refundsUps" class="f_total"><?php echo $result->ups_this_month ?></span>
|
497 |
-
</div>
|
498 |
-
|
499 |
-
<span class="from">From</span>
|
500 |
-
<input type="text" id="ups_from" class="date_input" />
|
501 |
-
<span>to</span>
|
502 |
-
<input type="text" id="ups_to" class="date_input" />
|
503 |
-
<?php endif ?>
|
504 |
-
|
505 |
-
</div> <!-- end refunds -->
|
506 |
-
|
507 |
-
<!-- Accounts -->
|
508 |
-
<div id="acnt_content" class="contents" style="display:none">
|
509 |
-
<!-- Void -->
|
510 |
-
</div>
|
511 |
-
|
512 |
-
<!-- Users -->
|
513 |
-
<div id="usr_content" class="contents" style="display:none; overflow: hidden;">
|
514 |
-
<!-- Void -->
|
515 |
-
</div>
|
516 |
-
</div>
|
517 |
-
</div>
|
518 |
-
<a href="https://www.71lbs.com/businesses/<?php echo $result->business_id ?>" target="_blank">More Information</a>
|
519 |
-
|
520 |
-
</form>
|
521 |
-
<div id="test">
|
522 |
-
</div>
|
15 |
$url = 'https://www.71lbs.com/api/session';
|
16 |
//$url = 'https://54.221.203.199/api/session';
|
17 |
//$url = 'http://localhost:3000/api/session';
|
18 |
+
//testing
|
19 |
+
//$url = 'http://localhost/test.json';
|
20 |
+
//$url = 'http://localhost/no_analytics.json';
|
21 |
|
22 |
$result = file_get_contents($url, false, $context);
|
23 |
$result = json_decode($result);
|
30 |
echo("<div style='color: red'><b>Error:</b> " . $result->msj) . "</div>";
|
31 |
echo '<a href="javascript:history.go(-1)" title="Back">« Go back</a>';
|
32 |
exit();
|
33 |
+
}
|
34 |
+
if ($result->analytics_is_active)
|
35 |
+
require_once("_analytics.phtml");
|
36 |
+
else
|
37 |
+
require_once("_no_analytics.phtml");
|
38 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>lbs71</name>
|
4 |
-
<version>0.1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
@@ -11,9 +11,9 @@
|
|
11 |
<notes>First Version of 71lbs magento extension:
|
12 |
- improving auth security in magento, add user check email validation</notes>
|
13 |
<authors><author><name>Jose</name><user>jose</user><email>jose@71lbs.com</email></author></authors>
|
14 |
-
<date>
|
15 |
-
<time>
|
16 |
-
<contents><target name="magecommunity"><dir name="lbs71"><dir name="Adminrefunds"><dir name="Helper"><file name="Data.php" hash="f67bbcee1a0dc3ae098f1be7dbe8b8dd"/></dir><dir name="controllers"><file name="AdminRefundsController.php" hash="e34be3af35557f01cde71bba3155d1b7"/></dir><dir name="etc"><file name="adminhtml.xml" hash="55ce2355972a6f5f291866632e58f5a9"/><file name="config.xml" hash="2973fe59a6d8bbfd4b7f5d4ef11a175c"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="adminrefunds"><file name="about.phtml" hash="bdef28c10b8e35233315a60c0bea8fcf"/><file name="loginform.phtml" hash="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.1.0</min><max>5.4.16</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>lbs71</name>
|
4 |
+
<version>0.1.0.9</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
11 |
<notes>First Version of 71lbs magento extension:
|
12 |
- improving auth security in magento, add user check email validation</notes>
|
13 |
<authors><author><name>Jose</name><user>jose</user><email>jose@71lbs.com</email></author></authors>
|
14 |
+
<date>2014-01-07</date>
|
15 |
+
<time>19:54:22</time>
|
16 |
+
<contents><target name="magecommunity"><dir name="lbs71"><dir name="Adminrefunds"><dir name="Helper"><file name="Data.php" hash="f67bbcee1a0dc3ae098f1be7dbe8b8dd"/></dir><dir name="controllers"><file name="AdminRefundsController.php" hash="e34be3af35557f01cde71bba3155d1b7"/></dir><dir name="etc"><file name="adminhtml.xml" hash="55ce2355972a6f5f291866632e58f5a9"/><file name="config.xml" hash="2973fe59a6d8bbfd4b7f5d4ef11a175c"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="adminrefunds"><file name="_analytics.phtml" hash="e1a89398abcf4e50dd947f84cf12d2dd"/><file name="_no_analytics.phtml" hash="4093e0e733aa1dafcf04ac498f4264c5"/><file name="about.phtml" hash="bdef28c10b8e35233315a60c0bea8fcf"/><file name="loginform.phtml" hash="172f8d04e37ef043682f35412ea985fd"/><file name="refunds.phtml" hash="365d17bebdabf52aba2be4283bd8c417"/></dir></dir><dir name="layout"><file name="lbs71_refunds.xml" hash="e51300247881edf596bb80c0dee3080a"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Lbs71_Adminrefunds.xml" hash="ce98574fb38a544d2ea26c9e0243bcdd"/></dir></target></contents>
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.1.0</min><max>5.4.16</max></php></required></dependencies>
|
19 |
</package>
|