/var/www/hkosl.com/sinomax/survey/test.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
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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<?php
    

    
require_once('webadmin/basic_info.php');

    
$id       54;
    
$campaign get_campaign($id1);

    require_once(
"inc/class.phpmailer.php");
    
//send password to member

    
$email_to_customer_subject $campaign{"companyname_en"} . " - Complete " $campaign["name_en"] . " Survey";
    
//email content to customer

?>

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="Generator" content="Microsoft Word 15 (filtered medium)">
    <!--[if !mso]>
    <style>v\: * {
        behavior: url(#default#VML);
    }

    o\: * {
        behavior: url(#default#VML);
    }

    w\: * {
        behavior: url(#default#VML);
    }

    .shape {
        behavior: url(#default#VML);
    }
    </style><![endif]-->
    <style><!--
        /* Font Definitions */
        @font-face {
            font-family: Helvetica;
            panose-1: 2 11 6 4 2 2 2 2 2 4;
        }

        @font-face {
            font-family: 新細明體;
            panose-1: 2 2 5 0 0 0 0 0 0 0;
        }

        @font-face {
            font-family: "Cambria Math";
            panose-1: 2 4 5 3 5 4 6 3 2 4;
        }

        @font-face {
            font-family: Calibri;
            panose-1: 2 15 5 2 2 2 4 3 2 4;
        }

        @font-face {
            font-family: "\@新細明體";
            panose-1: 2 2 5 0 0 0 0 0 0 0;
        }

        @font-face {
            font-family: "MS PGothic";
            panose-1: 2 11 6 0 7 2 5 8 2 4;
        }

        @font-face {
            font-family: "\@MS PGothic";
            panose-1: 2 11 6 0 7 2 5 8 2 4;
        }

        /* Style Definitions */
        p.MsoNormal, li.MsoNormal, div.MsoNormal {
            margin: 0cm;
            margin-bottom: .0001pt;
            font-size: 12.0pt;
            font-family: "MS PGothic", sans-serif;
            mso-fareast-language: JA;
        }

        a:link, span.MsoHyperlink {
            mso-style-priority: 99;
            color: blue;
            text-decoration: underline;
        }

        a:visited, span.MsoHyperlinkFollowed {
            mso-style-priority: 99;
            color: purple;
            text-decoration: none none;
        }

        span.hide-for-small {
            mso-style-name: hide-for-small;
        }

        span.EmailStyle18 {
            mso-style-type: personal-reply;
            font-family: "Calibri", sans-serif;
            color: #1F497D;
        }

        .MsoChpDefault {
            mso-style-type: export-only;
            font-size: 10.0pt;
        }

        @page WordSection1 {
            size: 612.0pt 792.0pt;
            margin: 72.0pt 90.0pt 72.0pt 90.0pt;
        }

        div.WordSection1 {
            page: WordSection1;
        }

        .desc img{
            width: 100%;
        }

        .container1 p{
            margin-bottom: 0;
        }

        table{
            border-collapse: collapse;
        }

        body{
            font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
        }
        --></style>
    <!--[if gte mso 9]>
    <xml>
        <o:shapedefaults v:ext="edit" spidmax="1028"/>
    </xml><![endif]--><!--[if gte mso 9]>
    <xml>
        <o:shapelayout v:ext="edit">
            <o:idmap v:ext="edit" data="1"/>
        </o:shapelayout>
    </xml><![endif]--></head>
<body lang="ZH-TW" style="background:#e4e6ea;">
<div class="WordSection1">
    <div>
        <div align="center">
            <table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" style="width:600px;min-width:200px;">
                <tr>
                    <td style="background:white;padding:0cm 0cm 0cm 0cm;border-collapse:collapse!important">
                        <table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="600" style="    width: 600px; margin: 0 auto;height:75.0pt;border-collapse:collapse !important;">
                            <tr>
                                <td style="background:#1a3363;padding:7.5pt 15.0pt 0.5pt 15.0pt;border-spacing:0; text-align:center;">
                                    <a href="#" target="_blank" title="SINOMAX"><img border="0" id="_x0000_i1027" src="<?=$site_info["url"]?>images/email1.png" alt="SINOMAX"></a>
                                </td>
                            </tr>
                        </table>

                        <table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="600" style="width:450.0pt;border-collapse:collapse!important;">
                            <tr>
                                <td style="background:white;border-spacing:0;">
                                    <div style="background:#1a3363;"><img border="0" id="_x0000_i1027" src="<?=$site_info["url"]?>images/email2.png" alt="SINOMAX"></div>

                                    <div style="margin: 0 auto;border-left: 10px solid #1a3363;border-right: 10px solid #1a3363; text-align: center;" class="container1">
                                        <div style="width: 450px;max-width: 450px;margin: 0 auto; text-align: left;">
                                            <p style="margin-top: 0;">
                                                <?php
                                                    
if (empty($user_name)) {
                                                        
$user_name_en "Sir / Madam";
                                                        
$user_name_tc "先生 / 女士";

                                                        echo 
"Dear " . ($user_name_en) . "/ 尊貴的" . ($user_name_tc) . ",";
                                                    } else {
                                                        
$user_name_en $user_name;
                                                        
$user_name_tc $user_name;

                                                        echo 
"Dear / 尊貴的" strtoupper($user_name_en) . ",";
                                                    }
                                                
?>

                                            </p>

                                            <div class="desc">
                                                <br>
                                                <?php
                                                    
if (!empty($campaign["desc4_en"])) {
                                                        echo 
$campaign["desc4_en"] . "<br><br>";
                                                    }

                                                    if (!empty(
$campaign["desc4_tc"])) {
                                                        echo 
$campaign["desc4_tc"] . "<br><br>";
                                                    }
                                                
?>
                                            </div>


                                            <p>
                                                <?php
                                                    
if ($campaign["user_login"] != "NOT_REQUEST_LOGIN" && !empty($_SESSION["survey_vip_code"])) {
                                                        echo 
"VIP ID / VIP編號: " $_SESSION["survey_vip_code"] . " <br/>";
                                                    }
                                                
?>

                                                Campaign Name / 活動名稱: <?= $campaign["name_en"?><br/> Participation Date /
                                                參加日期: <?= date("d/m/Y"?><br/>

                                                <?php
                                                    
if ($campaign["enable_get_points"] == && $give_points_success) {

                                                        
$points $campaign["get_points"];
                                                        echo 
"Earned / 已獲取S-Dollar: " $points "<br/>";
                                                    }

                                                    
//promotion code
                                                    
if ($campaign["enable_promotion_code"] == && !empty($promotion_code)) {

                                                        echo 
"Promotion Code / 優惠代碼: " $promotion_code "<br/>";
                                                        echo 
"Discount Details / 折扣詳情: " $promotion_code_ref_name "<br/>";
                                                    }

                                                
?>

                                            </p>

                                            <br>
                                        </div>

                                    </div>

                                </td>

                            </tr>

                        </table>

                        <div style="background:#1a3363;"><img border="0" id="_x0000_i1027" src="<?=$site_info["url"]?>images/email3.png" alt="SINOMAX"></div>

                        <table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="600" style="width:450.0pt;border-collapse:collapse;word-break:break-word;border-left: 10px solid #1a3363;border-right: 10px solid #1a3363;background:#1a3363;">
                            <tbody>
                            <tr>
                                <td align="center" valign="middle" style="padding:6.5pt 2.5pt 2.5pt 2.5pt;border-spacing:0em;font-size:22px;color: #fff;">

                                    DOWNLOAD OUR MOBILE APP
                                </td>
                            </tr>
                            <tr>
                                <td align="center" valign="middle" style="padding:7.5pt 17.5pt 0pt 17.5pt;border-spacing:0em;">
                                    <a href="https://itunes.apple.com/hk/app/sinomax/id972941924"><img src="<?= $site_info["url"?>images/app_store.png" border="0" alt="App Store" style="height: 35px;"></a><a href="https://play.google.com/store/apps/details?id=com.sinomax.app" style="margin-left: 50px;"><img src="<?= $site_info["url"?>images/google_play.png" border="0" alt="Google play" style="height: 35px;"></a>

                                </td>
                            </tr>
                            </tbody>
                        </table>

                        <table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="600" style="width:450.0pt;border-collapse:collapse;word-break:break-word">
                            <tbody>
                            <tr>
                                <td valign="top" style="padding:12.5pt 17.5pt 7.5pt 17.5pt;border-spacing:0em;font-size:8.5pt;text-align: center;color:#FFFFFF;background: #1a3363;">
                                    <div class="copyright fl">
                                        <a href="https://www.facebook.com/SinomaxLife/"><img src="<?= $site_info["url"?>images/fb.png" border="0" width="35" alt="Facebook"></a><img src="<?= $site_info["url"?>images/survey_icon_line.png" border="0" height="25"><a href="https://www.youtube.com/channel/UCPIbTu7Zs1w6jMGBOe4YrCg"><img src="<?= $site_info["url"?>images/survey_icon_youtube.png" alt="YouTube" width="42" border="0"></a><img src="<?= $site_info["url"?>images/survey_icon_line.png" border="0" height="25"><a href="http://eshop.sinomax.com"><img src="<?= $site_info["url"?>images/survey_icon_cart.png" border="0" width="42" alt="eSHOP"></a><br><br>Copyright
                                        2016 © Sinomax Health and Household Products Limited. All Rights
                                        Reserved.<br><br>
                                        如欲取消訂閱推廣電郵,請以該電郵地址發電郵至<a href="mailto:cs@sinomax.com" style="color:#FFFFFF;">cs@sinomax.com</a>,並清楚列明「取消訂閱推廣電郵」。

                                        You can choose to opt out of receiving email from SINOMAX at any time. Please
                                        send an email to <a href="mailto:cs@sinomax.com" style="color:#FFFFFF;">cs@sinomax.com</a>
                                        from the email address you wish to unsubscribe by stating "Unsubscribe me from
                                        email marketing" in email.

                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div>
</body>
</html>