forked from qmail/qmailadmin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
html.h
63 lines (52 loc) · 2.39 KB
/
html.h
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
/*
* $Id: html.h,v 1.1.2.1 2007-09-21 23:16:45 tomcollins Exp $
* Copyright (C) 1999-2006 Inter7 Internet Technologies, Inc.
* Copyright (C) 2006 Tom Logic LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#define HTML_MENU_START "[ "
#define HTML_MENU_SEP " | "
#define HTML_MENU_END " ]"
#define HTML_EMPTY_TD "<td> </td>"
#define HTML_BTN_GENERIC "<span class=\"material-icons\">clear</span>"
#define HTML_BTN_DELETE "<span class=\"material-icons\">delete_forever</span>"
#define HTML_ALIAS_ERROR "<tr><td colspan=\"4\">%s %s</td></tr>\n"
#define HTML_ALIAS_ROW_START "<tr>"
#define HTML_ALIAS_ROW_END "</tr>\n"
#define HTML_ALIAS_NAME "<td>%H</td>"
// start of the list of destination addresses
#define HTML_ALIAS_DEST_START "<td>"
#define HTML_ALIAS_DEST_END "</td>"
// Possible destinations in list
// BLACKHOLE uses text string 303 (All mail deleted)
#define HTML_ALIAS_BLACKHOLE "%s"
// LOCAL is for local addresses (no domain shown)
#define HTML_ALIAS_LOCAL "%H"
// INVALID is for local addresses that no longer exist (error condition)
#define HTML_ALIAS_INVALID "%H"
// REMOTE is for remote addresses (domain is shown)
#define HTML_ALIAS_REMOTE "%H"
#define HTML_ALIAS_SHOWPAGE "<a href=\"%s&page=%d\">%s</a>"
#define HTML_ALIAS_DOSEARCH "<a href=\"%s&searchuser=%C\">%s</a>"
#define HTML_ALIAS_FOOTER_START "<tr><td class=\"text-center\" colspan=\"4\">"
#define HTML_ALIAS_FOOTER_END "</td></tr>"
// HTML from the "modify alias" page
#define HTML_ALIAS_MOD_ROW_START "<tr>"
#define HTML_ALIAS_MOD_ROW_END "</tr>"
#define HTML_ALIAS_MOD_NAME "<td>%H</td>"
#define HTML_ALIAS_MOD_DEST "<td>%s</td>\n"
#define HTML_ALIAS_MOD_DELETE "<td>" \
"<a href=\"%s&modu=%C&linedata=%C&action=delentry\">" HTML_BTN_DELETE "</a></td>\n"