-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoupons_used.php
executable file
·125 lines (107 loc) · 6.73 KB
/
coupons_used.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
require_once 'common/config/config.inc.php';
require_once CONTROLLERS_PATH . FILENAME_CUSTOMER_DISCOUNT_COUPON_CTRL;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo MY_COUPON_TITLE; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<?php include_once 'common/inc/comman_css_js.inc.php'; ?>
<link rel="stylesheet" type="text/css" href="common/css/layout1.css"/>
<script type="text/javascript">
$(document).ready(function(){
$('.drop_down1').sSelect();
$('#compose_cancel').click(function(e){
$('#post_feeadback').css('display','none');
e.preventDefault();
});
});
function viewMyInvoice(){
$(".my_inv").colorbox({transition:"none", width:"1000px", height:"100%"});
// alert($('.'+str).attr('href'));
// $("."+str).colorbox({iframe:true,innerWidth:900,innerHeight:700});
}
</script>
</head>
<body>
<em> <div id="navBar">
<?php include_once INC_PATH . 'top-header.inc.php'; ?>
</div>
</em>
<div class="header"><div class="layout">
</div>
</div> <?php include_once INC_PATH . 'header.inc.php'; ?>
<div id="ouderContainer" class="ouderContainer_1">
<div class="layout">
<div class="add_pakage_outer">
<div class="top_container">
<div class="top_header border_bottom"><h1><?php echo MY; ?> <?php echo COUPONS; ?></h1></div>
</div>
<div class="body_inner_bg radius">
<div class="topname_outer space_bot">
<div class="topname_inner">
</div>
<div class="topname_links">
<a class="edit2" href="<?php echo $objCore->getUrl('my_orders.php'); ?>"><?php echo MY_ORDER_TITLE?></a>
<a class="edit2" href="<?php echo $objCore->getUrl('assigned_gift_cards.php', array('type' => 'edit')); ?>">Assigned Gift Cards</a>
</div>
</div>
<div class="add_edit_pakage coupons_wish_sec">
<ul class="order_sec1">
<li class="heading">
<span style="width:150px;" class="price"><?php echo TRANJECTION_ID; ?></span>
<span class="price" style="width:300px;"><?php echo COUPON_TITLE; ?></span>
<span class="price" style="width:220px;"><?php echo COUPON_PRICE; ?></span>
<span class="order"><?php echo OR_DATE; ?></span>
<span style="width:90px;" class="read rite_bd"><?php echo STATUS; ?></span>
</li>
<?php
$varCounter = 0;
if (count($objPage->arrCouponList) > 0) {
foreach ($objPage->arrCouponList as $details) {
$varCounter++;
$arrStatus = array('Pending' => 'Red', 'Completed' => 'green', 'Posted' => 'violet', 'Partial Completed' => 'violet');
?>
<li <?php echo $varCounter % 2 == 0 ? 'class="green_bg"' : '' ?>>
<span class="price" style="width:150px;"><a href="<?php echo $objCore->getUrl('my_order_details.php', array('action'=>'view','oid' => $details['pkOrderID'])); ?>" title="View Order"><?php echo $details['TransactionID']; ?> </a></span>
<span class="price" style="width:300px;"><?php echo $details['Title']; ?></span>
<span class="price" style="width:220px;"><?php echo $objCore->getPrice($details['Amount']); ?></span>
<span class="order"><?php echo $objCore->localDateTime(date($details['OrderDateAdded']), DATE_FORMAT_SITE_FRONT); ?></span>
<span style="width:90px; color: <?php echo $arrStatus[$details['status']]; ?>" class="read rite_bd"><?php echo $details['status']; ?></span>
</li>
<?php
}
} else {
echo '<li class="no_resutl_found">' . FRONT_CUSTOMER_ORDERLIST_ERROR_MSG1 . '</li>';
}
?>
</ul>
<?php if (count($objPage->arrCouponNum) > 0) { ?>
<table width="100%">
<tr><td colspan="10"> </td></tr>
<tr>
<td colspan="10">
<table width="100%" border="0" align="center">
<tr>
<td style="font-weight:bolder; text-align:right;" colspan="10" align="right">
<?php
if ($objPage->varNumberPages > 1) {
$objPage->displayFrontPaging($_GET['page'], $objPage->varNumberPages, $objPage->varPageLimit);
}
?>
</td>
</tr>
</table>
</td>
</tr></table>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<?php include_once 'common/inc/footer.inc.php'; ?>
</body>
</html>