-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.php
179 lines (165 loc) · 4.78 KB
/
template.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>ForexPeaceArmy.com : Mad Mimi Email Marketing</title>
<link href="http://go.madmimi.com/stylesheets/base.css" media="screen" rel="stylesheet" type="text/css" />
<link href="http://go.madmimi.com/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css" />
<style>
body {
padding: 0;
border: 0;
background: #efefef;
color: #000;
font-family: "Helvetica Neue", Helvetica, Arial, Verdana, sans-serif;
}
table#wrapper {
margin: 100px auto;
border: 0;
font-size: 13px;
}
table#inner {
border:1px solid #ccc;
padding: 10px 20px 20px 20px;
}
table#inner thead tr.underlined th {
border-bottom: 1px solid #ccc;
text-align: left;
padding-bottom: 5px;
padding-right: 10px;
padding-top: 20px;
}
table#inner td {
padding-top: 4px
}
td.unsubscribe {
padding-bottom: 5px;
}
h4 {
color: #000;
}
p {
font-family: georgia, serif;
font-style: italic;
line-height: 1.5em;
margin: 10px 0 0 0;
}
a {
}
a:hover, a:focus {
}
</style>
</head>
<body>
<form action="" method="post">
<table id="wrapper" width="520" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center">
<table id="inner" width="520" cellspacing="0" bgcolor="#FFFFFF">
<thead>
<?php if (!empty($logo)) { ?>
<tr>
<th colspan="3">
<img src="<?php echo $logo; ?>" alt="" />
</th>
</tr>
<?php } ?>
<?php if ((empty($error) && (!$admin_mode)) || ($admin_mode && empty($show_form))) { ?>
<tr class="underlined">
<th width="25%">Subscribed</th>
<th width="25%">Unsubscribed</th>
<th>List Name</th>
</tr>
<?php } ?>
</thead>
<?php if ((empty($error) && (!$admin_mode)) || ($admin_mode && empty($show_form))) { ?>
<?php foreach ($lists as $id => $name) { ?>
<tr>
<td>
<input name="audience_list_ids[<?php echo $id; ?>]" type="radio" value="1" <?php if (!empty($user_lists[$id])) { ?>checked="checked"<?php } ?> />
</td>
<td>
<input name="audience_list_ids[<?php echo $id; ?>]" type="radio" value="0" <?php if (empty($user_lists[$id])) { ?>checked="checked"<?php } ?> />
</td>
<td>
<?php echo $name; ?>
</td>
</tr>
<?php } ?>
<?php if ($admin_mode) { ?>
<tr>
<td>
<input name="suppressed" type="radio" value="1" <?php if ($user_suppressed) { ?>checked="checked"<?php } ?> />
</td>
<td>
<input name="suppressed" type="radio" value="0" <?php if (!$user_suppressed) { ?>checked="checked"<?php } ?> />
</td>
<td>
Suppressed
</td>
</tr>
<?php } ?>
<tr>
<td colspan="3">
<p>Subscription will be updated for this email address</p>
</td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td class="unsubscribe" colspan="3">
<input id="email" name="email" type="text" value="<?php echo $email; ?>" <?php if (!$admin_mode) { ?>readonly="readonly"<?php } ?> />
</td>
</tr>
<tr>
<td colspan="3">
<input name="commit" type="submit" value="Save<?php if ($admin_mode) { ?> or Change email<?php } ?>" />
</td>
</tr>
<?php } else if (!empty($error)) {
if ($error == 'not-found') {
$error = 'The email you are trying to change subscription option is not in our database.';
}
?>
<tr>
<td colspan="3">
<p><?php echo $error; ?></p>
</td>
</tr>
<?php } ?>
<?php if ($admin_mode && (!empty($show_form) || !empty($error))) { ?>
<tr>
<td colspan="3">
<p>Enter email address</p>
</td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
<tr>
<td colspan="3" class="unsubscribe">
<input id="email" name="email" type="text" value="<?php echo $email; ?>" />
</td>
</tr>
<tr>
<td>
<input name="commit" type="submit" value="Edit subscriptions" />
</td>
</tr>
<?php } ?>
</table>
</td>
</tr>
<tr>
<td colspan="3">
<p style='font-size:11px;color:#999;text-align:center;'>
On behalf of this sender, Mad Mimi<sup>®</sup> ensures prompt and permanent<br /> handling of each and every removal request.<br />
To contact Mad Mimi<sup>®</sup> or to report abuse, send an email <a style='color:#666' href="mailto:[email protected]">here</a>.
</p>
</td>
</tr>
</table>
</form>
</body>
</html>