-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle_coupon.php
More file actions
executable file
·242 lines (158 loc) · 8.8 KB
/
single_coupon.php
File metadata and controls
executable file
·242 lines (158 loc) · 8.8 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?PHP ob_start();
require_once "lib/clsSocialLikeLocker.php";
?>
<?PHP
$oLocker = new clsSocialLikeLocker();
$share_url = clsSocialLikeLocker::getCurrentURL();
$isLiked = $oLocker->isLiked($share_url);
?>
<!DOCTYPE HTML>
<head>
<title>Theme by CssTemplateHeaven</title>
<meta name="keywords" content="create from keywords">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Google Fonts -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300' rel='stylesheet' type='text/css'>
<!-- CSS Files -->
<link rel="stylesheet" type="text/css" media="screen" href="style.css">
<link rel="stylesheet" type="text/css" media="screen" href="menu/css/simple_menu.css">
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen"/>
<link rel="stylesheet" href="css/nivo-slider.css" type="text/css" media="screen"/>
<link rel="stylesheet" type="text/css" href="boxes/css/style6.css" />
<!-- JS Files -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js#xfbml=1" /></script>
<script type="text/javascript" src="assets/events.js" /></script>
</head>
<body>
<div class="header">
<div id="site_title"><a href="index.html"><img src="img/logo.png" /></a></div>
<!-- Main Menu -->
<ol id="menu">
<li class="active_menu_item"><a href="index.html">Home</a>
<!-- sub menu -->
<ol>
<li><a href="product_viewer.html">Product Viewer</a></li>
<li><a href="nivo.html">Nivo Slider</a></li>
<li><a href="ei_slider.html">EI Slider</a></li>
<li><a href="fullscreen_gallery.html">Fullscreen Slider</a></li>
<li><a href="image_frontpage.html">Static Image</a></li>
</ol>
</li><!-- END sub menu -->
<li><a href="#">Pages</a>
<!-- sub menu -->
<ol>
<li><a href="single_coupon.php">Coupon</a></li>
<li><a href="magazine.html">Magazine</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="full-width.html">Full Width Page</a></li>
<li><a href="columns.html">Columns</a></li>
</ol>
</li><!-- END sub menu -->
<li><a href="elements.html">Elements</a></li>
<li><a href="#">Galleries</a>
<!-- sub menu -->
<ol>
<li><a href="gallery-simple.html">Simple</a></li>
<li><a href="portfolio.html">Filterable</a></li>
<li><a href="gallery_fader.html">Fade Scroll</a></li>
<li><a href="video.html">Video</a></li>
<li class="last"><a href="photogrid.html">PhotoGrid</a></li>
</ol>
</li><!-- END sub menu -->
<li><a href="contact.html">Contact</a></li>
</ol>
</div><!-- END header -->
<div id="container">
<div class="two-third">
<div class="coupon_content">
<img title="" src="img/masonry/4.jpg" alt="" style="float:left; margin-right: 20px" />
<h2 style="margin-top:0; margin-bottom:5px">Coupon Heading</h2>
<div class="discount_value">15%</div>
<small>Expiry Date: March 30th 2012</small>
<p><strong>Description:</strong> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur ipsum eros, mattis vel iaculis vel, viverra ac augue. Morbi diam nulla, porta in feugiat sed, adipiscing et risus.
</p>
<p style="font-weight:bold">Price: $ 1000 | Coupon Price: $ 800 </p>
<!-- PHP Coupong Code -->
<input type="hidden" id="url_request" value="unlock_handler.php?url=<?PHP echo urlencode($share_url); ?>" />
<?PHP if($isLiked == true): ?>
<div style="background: #690; color: #FFF; padding: 10px 10px 20px; margin-bottom: 5px; border-radius: 5px; text-align: center; font-weight: bold; float: right; width: 268px">
<p>Coupon Code: </p> <p style="font-size: 1.8em; padding-bottom: 20px">
<?php // Generate a random number
echo mt_rand(2100, 2200); ?>
</p>
</div>
<div style="margin-top: 15px; text-align:right">
<?PHP else: ?>
<div style="background:#F00; color: #FFF; padding: 10px 10px 20px; border-radius: 5px; text-align: center; font-weight: bold; float: right; width: 268px">
<p><span style="font-style:italic">Hit the Like to get coupon code</span></p>
<?PHP endif; ?>
<!-- Share Buttons -->
<div title="Like on Facebook">
<fb:like href="<?PHP echo $share_url; ?>" layout="box_count" action="like" font="arial" show_faces="true" width="48" height="65"></fb:like>
</div>
</div> <!-- END PHP Coupon Code -->
<div style="clear:both"></div>
</div> <!-- END Coupon content box -->
<h2>Some general info about the seller</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur ipsum eros, mattis vel iaculis vel, viverra ac augue. Morbi diam nulla, porta in feugiat sed, adipiscing et risus.</p>
<h2>Video</h2>
<iframe src="http://player.vimeo.com/video/34904146?title=0&byline=0&portrait=0" width="629" height="354" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div><!-- close two third -->
<div class="sidebar_right">
<h3 style="margin-top:0">Seller Information</h3>
<div id="coupon_seller_info">
<ul>
<li><strong>Company inc.</strong></li>
<li>Streetname 36</li>
<li>4343, Bergen</li>
<li>Tel: 99 88 88 99</li>
<li><a href="http://dieter.no" title="website">www.dieter.no</a></li>
<li><a href="http://www.facebook.com/schneiderfoto" title="website">Facebook</a></li>
</ul>
</div>
<h3>Map</h3>
<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.no/maps?f=q&source=s_q&hl=no&geocode=&q=Hafstadvegen+36,+F%C3%B8rde&aq=0&oq=hafstadvegen+,36&sll=61.143235,9.09668&sspn=14.119743,46.538086&ie=UTF8&hq=&hnear=Hafstadvegen+36,+6800+F%C3%B8rde,+Sogn+og+Fjordane&t=m&z=14&ll=61.45023,5.855604&output=embed"></iframe><br /><small><a href="http://maps.google.no/maps?f=q&source=embed&hl=no&geocode=&q=Hafstadvegen+36,+F%C3%B8rde&aq=0&oq=hafstadvegen+,36&sll=61.143235,9.09668&sspn=14.119743,46.538086&ie=UTF8&hq=&hnear=Hafstadvegen+36,+6800+F%C3%B8rde,+Sogn+og+Fjordane&t=m&z=14&ll=61.45023,5.855604" style="color:#0000FF;text-align:left">Large Map</a></small>
</div><!-- end sidebar right -->
<div style="clear:both; height: 40px"></div>
</div><!-- end container -->
<div id="footer">
<!-- First Column -->
<div class="one-fourth">
<h3>Useful Links</h3>
<ul class="footer_links">
<li><a href="#">Lorem Ipsum</a></li>
<li><a href="#">Ellem Ciet</a></li>
<li><a href="#">Currivitas</a></li>
<li><a href="#">Salim Aritu</a></li>
</ul>
</div>
<!-- Second Column -->
<div class="one-fourth">
<h3>Terms</h3>
<ul class="footer_links">
<li><a href="#">Lorem Ipsum</a></li>
<li><a href="#">Ellem Ciet</a></li>
<li><a href="#">Currivitas</a></li>
<li><a href="#">Salim Aritu</a></li>
</ul>
</div>
<!-- Third Column -->
<div class="one-fourth">
<h3>Information</h3>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sit amet enim id dui tincidunt vestibulum rhoncus a felis.
<div id="social_icons">
Theme by <a href="http://www.csstemplateheaven.com">CssTemplateHeaven</a><br /> Photos © <a href="http://dieterschneider.net" title="Dieter Schneider Photography">Dieter Schneider</a>
</div>
</div>
<!-- Fourth Column -->
<div class="one-fourth last">
<h3>Socialize</h3>
<img src="img/icon_fb.png" alt="Facebook">
<img src="img/icon_twitter.png" alt="Facebook">
<img src="img/icon_in.png" alt="Facebook">
</div>
<div style="clear:both"></div>
</div> <!-- END footer -->
</body>
</html>