fix spacing with headers

This commit is contained in:
zefie
2025-07-08 10:05:42 -04:00
parent bdd8442052
commit 4c490147ed
4 changed files with 727 additions and 727 deletions

View File

@@ -89,11 +89,11 @@ wtv-expire-all: wtv-head-waiter:
`; `;
if (!limitedLogin && !limitedLoginRegistered) { if (!limitedLogin && !limitedLoginRegistered) {
strf = strftime.timezone(timezone);
headers += `wtv-country: US headers += `wtv-country: US
wtv-client-time-zone: GMT ${timezone} wtv-client-time-zone: GMT -0000
wtv-client-time-dst-rule: GMT wtv-client-time-dst-rule: GMT
wtv-client-date: ${new Date().toUTCString()} wtv-client-date: ${strf("%a, %d %b %Y %H:%M:%S", new Date(new Date().setUTCSeconds(new Date().getUTCSeconds())))}
wtv-language-header: en-US,en wtv-language-header: en-US,en
wtv-noback-all: wtv- wtv-noback-all: wtv-
wtv-transition-override: off wtv-transition-override: off

View File

@@ -83,128 +83,128 @@ if (!session_data.isRegistered()) {
}).getURL(); }).getURL();
headers = `200 OK headers = `200 OK
Content-type: text/html`; Content-type: text/html`;
data = `<sendpanel action="wtv-mail:/sendmail" data = `<sendpanel action="wtv-mail:/sendmail"
message="Write a new e-mail message" message="Write a new e-mail message"
label="Write"> label="Write">
<savepanel <savepanel
action="wtv-mail:/listmail?mailbox_name=mbox" action="wtv-mail:/listmail?mailbox_name=mbox"
message="View your saved e-mail messages" message="View your saved e-mail messages"
label="View saved e-mail messages"> label="View saved e-mail messages">
<HTML> <HTML>
<head> <head>
<title>${(mailbox_name === "Inbox") ? ' Mail list for ' + username : mailbox_name} <title>${(mailbox_name === "Inbox") ? ' Mail list for ' + username : mailbox_name}
</title> </title>
</head> </head>
<body bgcolor="#171726" text="#82A9D9" link="#BDA73A" vlink="#7A9FCC" fontsize="medium" vspace=0 hspace=0> <body bgcolor="#171726" text="#82A9D9" link="#BDA73A" vlink="#7A9FCC" fontsize="medium" vspace=0 hspace=0>
<sidebar width=109> <sidebar width=109>
<table cellspacing=0 cellpadding=0> <table cellspacing=0 cellpadding=0>
<tr> <tr>
<td width=104 height=420 bgcolor=#262E3D valign=top> <td width=104 height=420 bgcolor=#262E3D valign=top>
<table cellspacing=0 cellpadding=0> <table cellspacing=0 cellpadding=0>
<tr> <tr>
<td height=7 colspan=3> <td height=7 colspan=3>
<spacer type=vertical size=7> <spacer type=vertical size=7>
<tr> <tr>
<td width=7> <td width=7>
<spacer type=horizontal size=7> <spacer type=horizontal size=7>
<td width=87 href="wtv-home:/home"> <td width=87 href="wtv-home:/home">
<img src="${minisrv_config.config.service_logo}" width=87 height=67> <img src="${minisrv_config.config.service_logo}" width=87 height=67>
<td width=10> <td width=10>
<spacer type=horizontal size=10> <spacer type=horizontal size=10>
</table> </table>
<spacer type=vertical size=6> <spacer type=vertical size=6>
<table cellspacing=0 cellpadding=0 border=0> <table cellspacing=0 cellpadding=0 border=0>
<tr> <tr>
<td bgcolor=#4A525A height=2 width=104 colspan=3> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valign=middle> <td width=89 valign=middle>
<table cellspacing=0 cellpadding=0 href="wtv-mail:/sendmail" <table cellspacing=0 cellpadding=0 href="wtv-mail:/sendmail"
> >
<tr> <tr>
<td height=1> <td height=1>
<tr> <tr>
<td><shadow><font sizerange=medium color=#E6CD4A>Write</font></shadow> <td><shadow><font sizerange=medium color=#E6CD4A>Write</font></shadow>
</table> </table>
<td width=5> <td width=5>
<tr> <tr>
<td bgcolor=#4A525A height=2 width=104 colspan=3> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valign=middle> <td width=89 valign=middle>
<table cellspacing=0 cellpadding=0 href="${notImplementedAlert}" <table cellspacing=0 cellpadding=0 href="${notImplementedAlert}"
> >
<tr> <tr>
<td height=1> <td height=1>
<tr> <tr>
<td><shadow><font sizerange=medium color=#E6CD4A>Storage</font></shadow> <td><shadow><font sizerange=medium color=#E6CD4A>Storage</font></shadow>
</table> </table>
<td width=5> <td width=5>
<tr> <tr>
<td bgcolor=#4A525A height=2 width=104 colspan=3> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valign=middle> <td width=89 valign=middle>
<table cellspacing=0 cellpadding=0 href="wtv-mail:/addressbook" <table cellspacing=0 cellpadding=0 href="wtv-mail:/addressbook"
> >
<tr> <tr>
<td height=1> <td height=1>
<tr> <tr>
<td><shadow><font sizerange=medium color=#E6CD4A>Addresses</font></shadow> <td><shadow><font sizerange=medium color=#E6CD4A>Addresses</font></shadow>
</table> </table>
<td width=5> <td width=5>
<tr> <tr>
<td bgcolor=#4A525A height=2 width=104 colspan=3> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valign=middle> <td width=89 valign=middle>
<table cellspacing=0 cellpadding=0 href="${notImplementedAlert}" <table cellspacing=0 cellpadding=0 href="${notImplementedAlert}"
> >
<tr> <tr>
<td height=1> <td height=1>
<tr> <tr>
<td><shadow><font sizerange=medium color=#E6CD4A>Clean up</font></shadow> <td><shadow><font sizerange=medium color=#E6CD4A>Clean up</font></shadow>
</table> </table>
<td width=5> <td width=5>
<tr> <tr>
<td bgcolor=#4A525A height=2 width=104 colspan=3> <td bgcolor=#4A525A height=2 width=104 colspan=3>
</table> </table>
<table width=109 cellspacing=0 cellpadding=0> <table width=109 cellspacing=0 cellpadding=0>
<tr> <tr>
<p>&nbsp;<p> <p>&nbsp;<p>
<br><spacer type=vertical size=2> <br><spacer type=vertical size=2>
<tr> <tr>
<td valign=bottom bgcolor=#262E3D> <td valign=bottom bgcolor=#262E3D>
<table cellspacing=9><tr><td> <table cellspacing=9><tr><td>
<font size=-1 color=#E6CD4A>Quick Tip:</font> <font size=-1 color=#E6CD4A>Quick Tip:</font>
<spacer type=vertical size=5> <spacer type=vertical size=5>
<!-- <a href="wtv-guide:/help?topic=Mail&subtopic=KnownTip"> --> <!-- <a href="wtv-guide:/help?topic=Mail&subtopic=KnownTip"> -->
<div> <div>
<img height=10 width=10 src="wtv-mail:/content/images/sidebardot.gif"> <img height=10 width=10 src="wtv-mail:/content/images/sidebardot.gif">
<font size=-1 color=#E6CD4A>indicates messages from known senders</div></font></td></tr></table> <font size=-1 color=#E6CD4A>indicates messages from known senders</div></font></td></tr></table>
<!-- </a> --> <!-- </a> -->
</table> </table>
<td width=5 bgcolor=#5B6C81> <td width=5 bgcolor=#5B6C81>
</table> </table>
</sidebar> </sidebar>
<table cellspacing=0 cellpadding=0 border=0> <table cellspacing=0 cellpadding=0 border=0>
<tr> <tr>
<td width=451 colspan=2 align=center bgcolor=#5B6C81> <td width=451 colspan=2 align=center bgcolor=#5B6C81>
<spacer type=vertical size=13> <spacer type=vertical size=13>
<tr> <tr>
<td height=8 bgcolor=#171726 colspan=2> <td height=8 bgcolor=#171726 colspan=2>
<img src="wtv-mail:/content/images/CornerTop.gif" width=8 height=8> <img src="wtv-mail:/content/images/CornerTop.gif" width=8 height=8>
<tr> <tr>
<td bgcolor=#171726 width=451 valign=top> <td bgcolor=#171726 width=451 valign=top>
<table cellspacing=0 cellpadding=0 width=451> <table cellspacing=0 cellpadding=0 width=451>
<tr> <tr>
<td bgcolor=#171726 width=13> <td bgcolor=#171726 width=13>
<spacer type=horizontal size=13> <spacer type=horizontal size=13>
<td height=80> <td height=80>
<img src="wtv-mail:/content/images/Mail.gif" width=87 height=45> <img src="wtv-mail:/content/images/Mail.gif" width=87 height=45>
`; `;
var icon_image = null; var icon_image = null;
switch (mailbox_name) { switch (mailbox_name) {
case "Inbox": case "Inbox":
@@ -222,67 +222,67 @@ if (!session_data.isRegistered()) {
} }
data += ` data += `
<img src="wtv-mail:/content/images/${icon_image}" width=74 height=45 > <img src="wtv-mail:/content/images/${icon_image}" width=74 height=45 >
<td width=250 align=left><font sizerange=small> <td width=250 align=left><font sizerange=small>
</table> </table>
<tr> <tr>
<td colspan=2> <td colspan=2>
<table cellspacing=0 cellpadding=0 bgcolor=#2C323D> <table cellspacing=0 cellpadding=0 bgcolor=#2C323D>
<tr> <tr>
<td width=451 absheight=25> <td width=451 absheight=25>
<table cellspacing=0 cellpadding=0> <table cellspacing=0 cellpadding=0>
<tr> <tr>
<td width=13 absheight=25> <td width=13 absheight=25>
<spacer type=horizontal size=13> <spacer type=horizontal size=13>
<td width=269 maxlines=1> <td width=269 maxlines=1>
<font sizerange=medium color=#D6D6D6><blackface> ${(mailbox_name === "Inbox") ? ' Mail list for ' + username : mailbox_name} <font sizerange=medium color=#D6D6D6><blackface> ${(mailbox_name === "Inbox") ? ' Mail list for ' + username : mailbox_name}
</blackface></font> </blackface></font>
<td width=21> <td width=21>
<img src="wtv-mail:/content/images/widget.gif" width=16 height=16> <img src="wtv-mail:/content/images/widget.gif" width=16 height=16>
<td width=80 > <td width=80 >
<spacer type=vertical size=1><br> <spacer type=vertical size=1><br>
<a href="wtv-setup:/mail"><font sizerange=small color=#E6CD4A><b>Settings</b></font></a> <a href="wtv-setup:/mail"><font sizerange=small color=#E6CD4A><b>Settings</b></font></a>
<td width=21> <td width=21>
<!-- <!--
<img src="wtv-mail:/content/images/widget.gif" width=16 height=16 noprint> <img src="wtv-mail:/content/images/widget.gif" width=16 height=16 noprint>
<td width=36> <td width=36>
<spacer type=vertical size=1><br> <spacer type=vertical size=1><br>
<a href="wtv-guide:/help?topic=Mail&subtopic=Index&appName=Mail" ><img src="wtv-mail:/content/images/mail_help_image.gif" width=35 height=17 noprint></a> <a href="wtv-guide:/help?topic=Mail&subtopic=Index&appName=Mail" ><img src="wtv-mail:/content/images/mail_help_image.gif" width=35 height=17 noprint></a>
<td width=13> <td width=13>
--> -->
<spacer type=horizontal size=13> <spacer type=horizontal size=13>
</table> </table>
</table> </table>
</table> </table>
<table cellspacing=0 cellpadding=0 border=0> <table cellspacing=0 cellpadding=0 border=0>
<tr> <tr>
<td bgcolor=#171726 width=13> <td bgcolor=#171726 width=13>
<spacer type=horizontal size=13> <spacer type=horizontal size=13>
<td bgcolor=#171726 width="438" valign="top"> <td bgcolor=#171726 width="438" valign="top">
<spacer type=vertical size=13><br>`; <spacer type=vertical size=13><br>`;
if (message_list) { if (message_list) {
data += ` data += `
<font sizerange=medium> ${message_list_string} <font sizerange=medium> ${message_list_string}
<table cellspacing=0 cellpadding=0 border=0> <table cellspacing=0 cellpadding=0 border=0>
<TR><TD maxlines="1"> <TR><TD maxlines="1">
${username}@${minisrv_config.config.service_name} ${username}@${minisrv_config.config.service_name}
</TD></TR> </TD></TR>
</TABLE> </TABLE>
</font><br> </font><br>
<spacer type=vertical size=6> <spacer type=vertical size=6>
<hr width=422 align=left> <hr width=422 align=left>
<spacer type=vertical size=5> <spacer type=vertical size=5>
<table cellspacing=0 cellpadding=0> <table cellspacing=0 cellpadding=0>
<tr> <tr>
<td width=155> <td width=155>
<font sizerange=small color=#8897A6><b><spacer type=horizontal size=20>From</b></font> <font sizerange=small color=#8897A6><b><spacer type=horizontal size=20>From</b></font>
<td width=230><font sizerange=small color=#8897A6><b>Subject</b></font> <td width=230><font sizerange=small color=#8897A6><b>Subject</b></font>
<td width=47><font sizerange=small color=#8897A6><b>Date</b></font> <td width=47><font sizerange=small color=#8897A6><b>Date</b></font>
</table> </table>
<spacer type=vertical size=1> <spacer type=vertical size=1>
<hr width=422 align=left> <hr width=422 align=left>
`; `;
Object.keys(message_list).forEach(function (k) { Object.keys(message_list).forEach(function (k) {
var message = message_list[k]; var message = message_list[k];
if (typeof message.subject == "object" && message.subject) message.subject = wtvshared.decodeBufferText(message.subject); if (typeof message.subject == "object" && message.subject) message.subject = wtvshared.decodeBufferText(message.subject);
@@ -294,48 +294,48 @@ if (!session_data.isRegistered()) {
message_font_close = "</font></b>" message_font_close = "</font></b>"
} }
data += `<spacer type=vertical size=5> data += `<spacer type=vertical size=5>
<table cellspacing=0 cellpadding=0 border=0> <table cellspacing=0 cellpadding=0 border=0>
<tr> <tr>
<td href="readmail?message_id=${message.id}#next" id="id${message.id}" selected> <td href="readmail?message_id=${message.id}#next" id="id${message.id}" selected>
<table cellspacing=0 cellpadding=0> <table cellspacing=0 cellpadding=0>
<tr> <tr>
<td abswidth=20 align=center valign=middle>${(message.known_sender) ? '<img height=10 width=10 src="wtv-mail:/content/images/dot.gif">' : ''} <td abswidth=20 align=center valign=middle>${(message.known_sender) ? '<img height=10 width=10 src="wtv-mail:/content/images/dot.gif">' : ''}
<td abswidth=130 maxlines=1> <td abswidth=130 maxlines=1>
${message_font_open} ${message_font_open}
${(message.from_name) ? message.from_name : message.from_addr} ${(message.from_name) ? message.from_name : message.from_addr}
${message_font_close} ${message_font_close}
<td abswidth=5> <td abswidth=5>
<td abswidth=225 maxlines=1> <td abswidth=225 maxlines=1>
${message_font_open} ${message_font_open}
${(message.subject) ? wtvshared.htmlEntitize(message.subject) : "(No Subject)"} ${(message.subject) ? wtvshared.htmlEntitize(message.subject) : "(No Subject)"}
${message_font_close} ${message_font_close}
<td abswidth=5> <td abswidth=5>
<td abswidth=47 maxlines=1> <td abswidth=47 maxlines=1>
${message_font_open} ${message_font_open}
`; `;
var message_date = new Date(message.date * 1000); var message_date = new Date(message.date * 1000);
data += (message_date.getMonth() + 1) + "/" + message_date.getDate() + "\n"; data += (message_date.getMonth() + 1) + "/" + message_date.getDate() + "\n";
data += ` data += `
${message_font_close} ${message_font_close}
</table> </table>
<tr> <tr>
<td height=5>`; <td height=5>`;
}); });
} else { } else {
data += ` data += `
<font sizerange=medium> No ${(mailbox_name == "Inbox") ? `new e-mail messages for<table cellspacing=0 cellpadding=0 border=0> <font sizerange=medium> No ${(mailbox_name == "Inbox") ? `new e-mail messages for<table cellspacing=0 cellpadding=0 border=0>
<TR><TD maxlines="1"> <TR><TD maxlines="1">
${username}@${minisrv_config.config.service_name} ${username}@${minisrv_config.config.service_name}
</TD></TR> </TD></TR>
</TABLE>` : 'e-mail messages in mailbox ' + mailbox_name} </TABLE>` : 'e-mail messages in mailbox ' + mailbox_name}
</font><br> </font><br>
`; `;
} }
data += ` data += `
<spacer type=vertical size=6> <spacer type=vertical size=6>
</table> </table>
</body> </body>
</HTML> </HTML>
`; `;

View File

@@ -32,9 +32,9 @@ if (!session_data.isRegistered()) {
if (request_headers.query['wtv-saved-message-id']) delete request_headers.query['wtv-saved-message-id']; if (request_headers.query['wtv-saved-message-id']) delete request_headers.query['wtv-saved-message-id'];
headers = `300 OK headers = `300 OK
wtv-expire-all: wtv-mail:/listmail wtv-expire-all: wtv-mail:/listmail
wtv-expire-all: wtv-mail:/sendmail wtv-expire-all: wtv-mail:/sendmail
Location: ${gourl}`; Location: ${gourl}`;
} else { } else {
var doClientError = function (msg) { var doClientError = function (msg) {
var clientErrorMsg = new clientShowAlert({ var clientErrorMsg = new clientShowAlert({
@@ -122,11 +122,11 @@ if (!session_data.isRegistered()) {
if (message_snapshot_data && request_headers.query.get_snap) { if (message_snapshot_data && request_headers.query.get_snap) {
headers = `200 OK headers = `200 OK
Content-Type: image/jpeg`; Content-Type: image/jpeg`;
data = message_snapshot_data; data = message_snapshot_data;
} else if (message_voicemail_data && request_headers.query.get_gab) { } else if (message_voicemail_data && request_headers.query.get_gab) {
headers = `200 OK headers = `200 OK
Content-Type: audio/wav`; Content-Type: audio/wav`;
data = message_voicemail_data; data = message_voicemail_data;
} else { } else {
@@ -258,9 +258,9 @@ if (!session_data.isRegistered()) {
session_data.deleteSessionData("usenet_draft"); session_data.deleteSessionData("usenet_draft");
session_data.deleteSessionData("usenet_draft_attachments"); session_data.deleteSessionData("usenet_draft_attachments");
headers = `300 OK headers = `300 OK
wtv-expire-all: wtv-news:/news?group=${newsgroup} wtv-expire-all: wtv-news:/news?group=${newsgroup}
wtv-expire-all wtv-mail:/sendmail wtv-expire-all wtv-mail:/sendmail
Location: wtv-news:/news?group=${newsgroup}`; Location: wtv-news:/news?group=${newsgroup}`;
sendToClient(socket, headers, ''); sendToClient(socket, headers, '');
}).catch((e) => { }).catch((e) => {
var err = this.wtvshared.doErrorPage(500, null, e.toString()) var err = this.wtvshared.doErrorPage(500, null, e.toString())
@@ -278,9 +278,9 @@ if (!session_data.isRegistered()) {
session_data.deleteSessionData("mail_draft"); session_data.deleteSessionData("mail_draft");
session_data.deleteSessionData("mail_draft_attachments"); session_data.deleteSessionData("mail_draft_attachments");
headers = `300 OK headers = `300 OK
wtv-expire-all: wtv-mail:/listmail wtv-expire-all: wtv-mail:/listmail
wtv-expire-all: wtv-mail:/sendmail wtv-expire-all: wtv-mail:/sendmail
Location: wtv-mail:/listmail`; Location: wtv-mail:/listmail`;
} }
} }
@@ -296,13 +296,13 @@ if (!session_data.isRegistered()) {
if (newsgroup) mail_draft_data.article = article; if (newsgroup) mail_draft_data.article = article;
session_data.setSessionData((newsgroup) ? "usenet_draft" : "mail_draft", mail_draft_data); session_data.setSessionData((newsgroup) ? "usenet_draft" : "mail_draft", mail_draft_data);
headers = `200 OK headers = `200 OK
Content-type: text/html Content-type: text/html
wtv-expire-all: wtv-mail:/sendmail`; wtv-expire-all: wtv-mail:/sendmail`;
} }
} else { } else {
headers = `200 OK headers = `200 OK
Content-type: text/html`; Content-type: text/html`;
var mail_draft_data = session_data.getSessionData((newsgroup) ? "usenet_draft_attachments" : "mail_draft_attachments") || {}; var mail_draft_data = session_data.getSessionData((newsgroup) ? "usenet_draft_attachments" : "mail_draft_attachments") || {};
if (request_headers.query.snapping == "false") { if (request_headers.query.snapping == "false") {
headers += "\nwtv-expire-all: cache:snapshot.jpg"; headers += "\nwtv-expire-all: cache:snapshot.jpg";
@@ -330,474 +330,474 @@ if (!session_data.isRegistered()) {
else message_colors = session_data.mailstore.getSignatureColors(session_data.getSessionData("subscriber_signature"), true); else message_colors = session_data.mailstore.getSignatureColors(session_data.getSessionData("subscriber_signature"), true);
data = `<HTML> data = `<HTML>
<head> <head>
<display poweroffalert > <display poweroffalert >
<sendpanel <sendpanel
action="javascript:Submit()" action="javascript:Submit()"
message="Send this message now" message="Send this message now"
label="Send message"> label="Send message">
<savepanel message="Messages that you are writing cannot be saved. Send it to yourself if you would like a copy."> <savepanel message="Messages that you are writing cannot be saved. Send it to yourself if you would like a copy.">
<script language=javascript> <script language=javascript>
function Submit() { if (document.sendform.message_to.value == "") { location = "client:showalert?message=Your%20message%20could%20not%20be%20sent.%3Cp%3E%0AYou%20must%20specify%20an%20addressee%20in%20the%20%3Cblackface%3ETo%3A%3C%2Fblackface%3E%20area.%0A&buttonLabel1=Continue%0A&buttonAction1=client%3Adonothing&buttonLabel2="; function Submit() { if (document.sendform.message_to.value == "") { location = "client:showalert?message=Your%20message%20could%20not%20be%20sent.%3Cp%3E%0AYou%20must%20specify%20an%20addressee%20in%20the%20%3Cblackface%3ETo%3A%3C%2Fblackface%3E%20area.%0A&buttonLabel1=Continue%0A&buttonAction1=client%3Adonothing&buttonLabel2=";
} else { location = "client:showsplash?message=Sending%20Message&animation=file://ROM/Animations/mail.ani&action=client:submitform%3Fname%3Dsendform%26submitname%3Dsendoff%26submitvalue%3DSend"; } else { location = "client:showsplash?message=Sending%20Message&animation=file://ROM/Animations/mail.ani&action=client:submitform%3Fname%3Dsendform%26submitname%3Dsendoff%26submitvalue%3DSend";
} }
} }
function ErasingMedia(victim) { var myURL; function ErasingMedia(victim) { var myURL;
myURL = "client:submitform?name=sendform&submitvalue=false" + "&submitname=" + victim; myURL = "client:submitform?name=sendform&submitvalue=false" + "&submitname=" + victim;
if (victim == "gabbing") { document.forms.sendform.elements.message_voicemail_data.disabled = true; if (victim == "gabbing") { document.forms.sendform.elements.message_voicemail_data.disabled = true;
} }
if (victim == "snapping") { document.forms.sendform.elements.message_snapshot_data.disabled = true; if (victim == "snapping") { document.forms.sendform.elements.message_snapshot_data.disabled = true;
} }
location = myURL; location = myURL;
location.reload(); } location.reload(); }
function Signing(desiredState) { var myURL; function Signing(desiredState) { var myURL;
myURL="client:submitform?name=sendform&submitvalue="+desiredState+"&submitname=togglesign"; myURL="client:submitform?name=sendform&submitvalue="+desiredState+"&submitname=togglesign";
location = myURL; location = myURL;
location.reload(); location.reload();
} }
function DoneSnapping() { location = "client:submitform?name=sendform&submitname=snapping&submitvalue=true"; function DoneSnapping() { location = "client:submitform?name=sendform&submitname=snapping&submitvalue=true";
location.reload(); } location.reload(); }
function DoneGabbing() { var myURL; function DoneGabbing() { var myURL;
myURL = "client:submitform?name=sendform&submitname=gabbing&submitvalue=cache%3Avoicemail.wav"; myURL = "client:submitform?name=sendform&submitname=gabbing&submitvalue=cache%3Avoicemail.wav";
location = "client:submitform?name=sendform&submitname=gabbing&submitvalue=true"; location = "client:submitform?name=sendform&submitname=gabbing&submitvalue=true";
location.reload(); } location.reload(); }
function clearDraft() { function clearDraft() {
location = "client:submitform?name=sendform&submitname=clear&submitvalue=true"; location = "client:submitform?name=sendform&submitname=clear&submitvalue=true";
location.reload(); location.reload();
} }
</script> </script>
<title> <title>
${pageTitle} ${pageTitle}
</title> </title>
</head> </head>
<body bgcolor="#171726" text="${message_colors.text}" link="${message_colors.link}" vlink="${message_colors.vlink}" vspace=0 hspace=0> <body bgcolor="#171726" text="${message_colors.text}" link="${message_colors.link}" vlink="${message_colors.vlink}" vspace=0 hspace=0>
<form action="wtv-mail:/sendmail#focus" method="post" name=sendform > <form action="wtv-mail:/sendmail#focus" method="post" name=sendform >
<input type=hidden name="wtv-saved-message-id" value="writemessage-outbox"> <input type=hidden name="wtv-saved-message-id" value="writemessage-outbox">
<input type=hidden name="message_reply_all_cc" value=""> <input type=hidden name="message_reply_all_cc" value="">
${(request_headers.query.article) ? `<input type="hidden" name="article" value="${request_headers.query.article}">` : ''} ${(request_headers.query.article) ? `<input type="hidden" name="article" value="${request_headers.query.article}">` : ''}
<input type=hidden name="saveoff" value="true" autosubmit="onleave"> <input type=hidden name="saveoff" value="true" autosubmit="onleave">
<input type=hidden name="discuss" value="${wtvshared.parseBool(request_headers.query.discuss)}"> <input type=hidden name="discuss" value="${wtvshared.parseBool(request_headers.query.discuss)}">
<sidebar width=109> <sidebar width=109>
<table cellspacing=0 cellpadding=0> <table cellspacing=0 cellpadding=0>
<tr> <tr>
<td width=104 height=420 bgcolor=#262E3D valign=top> <td width=104 height=420 bgcolor=#262E3D valign=top>
<table cellspacing=0 cellpadding=0> <table cellspacing=0 cellpadding=0>
<tr> <tr>
<td height=7 colspan=3> <td height=7 colspan=3>
<spacer type=vertical size=7> <spacer type=vertical size=7>
<tr> <tr>
<td width=7> <td width=7>
<spacer type=horizontal size=7> <spacer type=horizontal size=7>
<td width=87 href="wtv-home:/home"> <td width=87 href="wtv-home:/home">
<img src="${minisrv_config.config.service_logo}" width=87 height=67> <img src="${minisrv_config.config.service_logo}" width=87 height=67>
<td width=10> <td width=10>
<spacer type=horizontal size=10> <spacer type=horizontal size=10>
</table> </table>
<spacer type=vertical size=6> <spacer type=vertical size=6>
<table cellspacing=0 cellpadding=0 border=0> <table cellspacing=0 cellpadding=0 border=0>
<tr> <td bgcolor=#4A525A height=2 width=104 colspan=3> <tr> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valgn=middle> <td width=89 valgn=middle>
<table cellspacing=0 cellpadding=0 href="` <table cellspacing=0 cellpadding=0 href="`
if (newsgroup) { if (newsgroup) {
data += "wtv-news:/news?group=" + newsgroup; data += "wtv-news:/news?group=" + newsgroup;
} else { } else {
data += "wtv-mail:/listmail"; data += "wtv-mail:/listmail";
} }
data += `"><tr> data += `"><tr>
<td height=1> <td height=1>
<tr>`; <tr>`;
if (newsgroup) { if (newsgroup) {
data += `<td><shadow><font sizerange=medium color=#E6CD4A>Group list</font></shadow>`; data += `<td><shadow><font sizerange=medium color=#E6CD4A>Group list</font></shadow>`;
} else { } else {
data += `<td><shadow><font sizerange=medium color=#E6CD4A>Mail list</font></shadow>`; data += `<td><shadow><font sizerange=medium color=#E6CD4A>Mail list</font></shadow>`;
} }
data += `</table>`; data += `</table>`;
if (!newsgroup) { if (!newsgroup) {
data += ` data += `
<td width=5> <td width=5>
<tr> <td bgcolor=#4A525A height=2 width=104 colspan=3> <tr> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valgn=middle> <td width=89 valgn=middle>
<table cellspacing=0 cellpadding=0 href="client:openaddresspanel" id=addressbook> <table cellspacing=0 cellpadding=0 href="client:openaddresspanel" id=addressbook>
<tr> <tr>
<td height=1> <td height=1>
<tr> <tr>
<td><shadow><font sizerange=medium color=#E6CD4A>Address</font></shadow> <td><shadow><font sizerange=medium color=#E6CD4A>Address</font></shadow>
</table>`; </table>`;
} }
data += ` data += `
<td width=5> <td width=5>
<tr> <td bgcolor=#4A525A height=2 width=104 colspan=3> <tr> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valgn=middle> <td width=89 valgn=middle>
<table cellspacing=0 cellpadding=0 href="client:videocapture?notify=javascript%3ADoneSnapping()&device=video&width=100%25&height=100%25&name=cache%3Asnapshot.jpg&donebuttonlabel=Add%20to%20Message&open" id=addressbook> <table cellspacing=0 cellpadding=0 href="client:videocapture?notify=javascript%3ADoneSnapping()&device=video&width=100%25&height=100%25&name=cache%3Asnapshot.jpg&donebuttonlabel=Add%20to%20Message&open" id=addressbook>
<tr> <tr>
<td height=1> <td height=1>
<tr> <tr>
<td><shadow><font sizerange=medium color=#E6CD4A>Photo</font></shadow> <td><shadow><font sizerange=medium color=#E6CD4A>Photo</font></shadow>
</table> </table>
<td width=5> <td width=5>
<tr> <td bgcolor=#4A525A height=2 width=104 colspan=3> <tr> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valgn=middle> <td width=89 valgn=middle>
<table cellspacing=0 cellpadding=0 href="client:soundcapture?notify=javascript%3ADoneGabbing()&device=audio&rate=8000&name=cache%3Avoicemail.wav&donebuttonlabel=Add%20to%20Message&open" id=addressbook> <table cellspacing=0 cellpadding=0 href="client:soundcapture?notify=javascript%3ADoneGabbing()&device=audio&rate=8000&name=cache%3Avoicemail.wav&donebuttonlabel=Add%20to%20Message&open" id=addressbook>
<tr> <tr>
<td height=1> <td height=1>
<tr> <tr>
<td><shadow><font sizerange=medium color=#E6CD4A>Recording</font></shadow> <td><shadow><font sizerange=medium color=#E6CD4A>Recording</font></shadow>
</table> </table>
<td width=5> <td width=5>
<tr> <td bgcolor=#4A525A height=2 width=104 colspan=3> <tr> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valgn=middle> <td width=89 valgn=middle>
<table cellspacing=0 cellpadding=0 href="client:showalert?sound=none&message=Are%20you%20sure%20you%20want%20to%20erase%20this%20entire%20message%3F&buttonlabel2=Don't%20Erase&buttonaction2=client:donothing&buttonlabel1=Erase&buttonaction1=javascript:clearDraft()" id=addressbook> <table cellspacing=0 cellpadding=0 href="client:showalert?sound=none&message=Are%20you%20sure%20you%20want%20to%20erase%20this%20entire%20message%3F&buttonlabel2=Don't%20Erase&buttonaction2=client:donothing&buttonlabel1=Erase&buttonaction1=javascript:clearDraft()" id=addressbook>
<tr> <tr>
<td height=1> <td height=1>
<tr> <tr>
<td><shadow><font sizerange=medium color=#E6CD4A>Erase</font></shadow> <td><shadow><font sizerange=medium color=#E6CD4A>Erase</font></shadow>
</table> </table>
<td width=5> <td width=5>
<tr> <td bgcolor=#4A525A height=2 width=104 colspan=3> <tr> <td bgcolor=#4A525A height=2 width=104 colspan=3>
<tr> <tr>
<td width=10 height=26> <td width=10 height=26>
<td width=89 valgn=middle> <td width=89 valgn=middle>
</table> </table>
<td width=5 bgcolor=#5B6C81> <td width=5 bgcolor=#5B6C81>
</table> </table>
</sidebar> </sidebar>
<table cellspacing=0 cellpadding=0 border=0> <table cellspacing=0 cellpadding=0 border=0>
<tr> <tr>
<td width=451 colspan=2 align=center bgcolor=#5B6C81> <td width=451 colspan=2 align=center bgcolor=#5B6C81>
<spacer type=vertical size=4> <spacer type=vertical size=4>
<tr> <tr>
<td height=8 bgcolor=#171726 colspan=2> <td height=8 bgcolor=#171726 colspan=2>
<img src="wtv-mail:/content/images/CornerTop.gif" width=8 height=8> <img src="wtv-mail:/content/images/CornerTop.gif" width=8 height=8>
<tr> <tr>
<td bgcolor=#171726 width=451 valign=top> <td bgcolor=#171726 width=451 valign=top>
<table cellspacing=0 cellpadding=0 width=451> <table cellspacing=0 cellpadding=0 width=451>
<tr> <tr>
<td bgcolor=#171726 width=13> <td bgcolor=#171726 width=13>
<spacer type=horizontal size=13> <spacer type=horizontal size=13>
<td height=80> <td height=80>
<img src="wtv-mail:/content/images/Mail.gif" width=87 height=45> <img src="wtv-mail:/content/images/Mail.gif" width=87 height=45>
<img src="wtv-mail:/content/images/${session_data.mailstore.getMailboxIcon()}" width=74 height=45 transparency=60> <img src="wtv-mail:/content/images/${session_data.mailstore.getMailboxIcon()}" width=74 height=45 transparency=60>
<td width=250 align=left><font sizerange=small> <td width=250 align=left><font sizerange=small>
</table> </table>
<tr> <tr>
<td colspan=2> <td colspan=2>
<table cellspacing=0 cellpadding=0 bgcolor=#2C323D> <table cellspacing=0 cellpadding=0 bgcolor=#2C323D>
<tr> <tr>
<td width=451 absheight=25> <td width=451 absheight=25>
<table cellspacing=0 cellpadding=0> <table cellspacing=0 cellpadding=0>
<tr> <tr>
<td width=13 absheight=25> <td width=13 absheight=25>
<spacer type=horizontal size=13> <spacer type=horizontal size=13>
<td width=370 maxlines=1> <td width=370 maxlines=1>
<font sizerange=medium color=#D6D6D6><blackface> <font sizerange=medium color=#D6D6D6><blackface>
${pageTitle} ${pageTitle}
</blackface></font> </blackface></font>
<!-- <!--
<td width=21> <td width=21>
<img src="wtv-mail:/content/images/widget.gif" width=16 height=16 noprint> <img src="wtv-mail:/content/images/widget.gif" width=16 height=16 noprint>
<td width=36> <td width=36>
<spacer type=vertical size=1><br> <spacer type=vertical size=1><br>
<a href="wtv-guide:/help?topic=Mail&subtopic=Index&appName=Mail" ><img src="wtv-mail:/content/images/mail_help_image.gif" width=35 height=17 noprint></a> --> <a href="wtv-guide:/help?topic=Mail&subtopic=Index&appName=Mail" ><img src="wtv-mail:/content/images/mail_help_image.gif" width=35 height=17 noprint></a> -->
<td width=13> <td width=13>
<spacer type=horizontal size=13> <spacer type=horizontal size=13>
</table> </table>
</table> </table>
</table> </table>
<table cellspacing=0 cellpadding=0 border=0> <table cellspacing=0 cellpadding=0 border=0>
<tr> <tr>
<td bgcolor=#171726 width=13> <td bgcolor=#171726 width=13>
<spacer type=horizontal size=13> <spacer type=horizontal size=13>
<td bgcolor=#171726 width=438 valign=top> <td bgcolor=#171726 width=438 valign=top>
<spacer type=vertical size=5><br> <spacer type=vertical size=5><br>
<table cellspacing=0 cellpadding=0 bgcolor="${message_colors.bgcolor}"> <table cellspacing=0 cellpadding=0 bgcolor="${message_colors.bgcolor}">
<tr> <tr>
<td absheight=2 colspan=5 bgcolor=#495360> <td absheight=2 colspan=5 bgcolor=#495360>
<tr> <tr>
<td abswidth=2 bgcolor=#495360> <td abswidth=2 bgcolor=#495360>
<td absheight=13 colspan=3> <td absheight=13 colspan=3>
<td abswidth=2 bgcolor=#000000> <td abswidth=2 bgcolor=#000000>
<tr> <tr>
<td abswidth=2 bgcolor=#495360> <td abswidth=2 bgcolor=#495360>
<td abswidth=13> <td abswidth=13>
<td abswidth=385> <td abswidth=385>
<table cellspacing=0 cellpadding=0> <tr> <table cellspacing=0 cellpadding=0> <tr>
<td width=80 valign=top align=right> <td width=80 valign=top align=right>
<font color=${message_colors.text}>From:&nbsp;</font> <font color=${message_colors.text}>From:&nbsp;</font>
<td width=305 valign=top> <td width=305 valign=top>
<font color=${message_colors.text}><table cellspacing=0 cellpadding=0 border=0> <font color=${message_colors.text}><table cellspacing=0 cellpadding=0 border=0>
<TR><TD maxlines="1"> <TR><TD maxlines="1">
${address} ${address}
</TD></TR> </TD></TR>
</TABLE></font> </TABLE></font>
<font color=${message_colors.text}>(${userdisplayname})</font> <font color=${message_colors.text}>(${userdisplayname})</font>
<tr> <tr>
<td height=13 valign=middle colspan=2> <td height=13 valign=middle colspan=2>
<img src="wtv-mail:/content/images/sendmail_panel_dots.gif" width=385 height=2> <img src="wtv-mail:/content/images/sendmail_panel_dots.gif" width=385 height=2>
<tr> <tr>
<td width=80 valign=top align=right>`; <td width=80 valign=top align=right>`;
if (!request_headers.query.discuss) { if (!request_headers.query.discuss) {
data += '<a href="client:openaddresspanel">To:</a>'; data += '<a href="client:openaddresspanel">To:</a>';
} else { } else {
data += 'To:'; data += 'To:';
} }
data += `&nbsp; data += `&nbsp;
<td width=305 valign=top> <td width=305 valign=top>
<textarea <textarea
bgcolor="${message_colors.bgcolor}" bgcolor="${message_colors.bgcolor}"
cursor="${message_colors.cursor}" cursor="${message_colors.cursor}"
nosoftbreaks nosoftbreaks
borderimage="file://ROM/Borders/textfield.alt1.bif" borderimage="file://ROM/Borders/textfield.alt1.bif"
nohardbreaks nohardbreaks
selected selected
font=proportional font=proportional
text=${message_colors.text} text=${message_colors.text}
name="message_to" name="message_to"
border=0 border=0
width=305 rows=1 width=305 rows=1
growable growable
autoactivate autoactivate
addresses addresses
autoascii autoascii
nohighlight`; nohighlight`;
if (newsgroup) { data += "\nreadonly" } if (newsgroup) { data += "\nreadonly" }
data += ` data += `
>${(to_addr) ? to_addr : ''}</textarea> >${(to_addr) ? to_addr : ''}</textarea>
<tr> <tr>
<td height=13 valign=middle colspan=2> <td height=13 valign=middle colspan=2>
<img src="wtv-mail:/content/images/sendmail_panel_dots.gif" width=385 height=2> <img src="wtv-mail:/content/images/sendmail_panel_dots.gif" width=385 height=2>
<tr> <tr>
<td abswidth=83 valign=top align=right> <td abswidth=83 valign=top align=right>
<font color=${message_colors.text}>Subject:&nbsp;</font> <font color=${message_colors.text}>Subject:&nbsp;</font>
<td width=305 valign=top> <td width=305 valign=top>
<textarea <textarea
bgcolor="${message_colors.bgcolor}" bgcolor="${message_colors.bgcolor}"
cursor="${message_colors.cursor}" cursor="${message_colors.cursor}"
nosoftbreaks nosoftbreaks
borderimage="file://ROM/Borders/textfield.alt1.bif" borderimage="file://ROM/Borders/textfield.alt1.bif"
nohardbreaks nohardbreaks
text=${message_colors.text} text=${message_colors.text}
name="message_subject" font=proportional name="message_subject" font=proportional
border=0 border=0
width=305 rows=1 width=305 rows=1
growable growable
autoactivate autoactivate
maxlength=70 maxlength=70
nohighlight nohighlight
autohiragana autohiragana
>${(msg_subject) ? msg_subject : ''}</textarea> >${(msg_subject) ? msg_subject : ''}</textarea>
<tr> <tr>
<td height=13 valign=middle colspan=2> <td height=13 valign=middle colspan=2>
<img src="wtv-mail:/content/images/sendmail_panel_dots.gif" width=385 height=2> <img src="wtv-mail:/content/images/sendmail_panel_dots.gif" width=385 height=2>
<tr> <tr>
<td width=305 colspan=2> <td width=305 colspan=2>
<textarea nosoftbreaks <textarea nosoftbreaks
bgcolor="${message_colors.bgcolor}" bgcolor="${message_colors.bgcolor}"
text="${message_colors.text}" text="${message_colors.text}"
cursor="${message_colors.cursor}" cursor="${message_colors.cursor}"
name="message_body" font=proportional name="message_body" font=proportional
border=0 border=0
rows=4 rows=4
width=386 width=386
nohighlight nohighlight
autoactivate autoactivate
autohiragana autohiragana
growable growable
nextdown="Send">${(msg_body) ? msg_body : ''}</textarea> nextdown="Send">${(msg_body) ? msg_body : ''}</textarea>
</table> </table>
<body bgcolor=${message_colors.bgcolor} <body bgcolor=${message_colors.bgcolor}
text=${message_colors.text} text=${message_colors.text}
link=${message_colors.link} link=${message_colors.link}
vlink=${message_colors.vlink} vlink=${message_colors.vlink}
vspace=0 vspace=0
hspace=0>`; hspace=0>`;
if (session_data.getSessionData("subscriber_signature") && session_data.getSessionData("subscriber_signature") != "" && !no_signature) { if (session_data.getSessionData("subscriber_signature") && session_data.getSessionData("subscriber_signature") != "" && !no_signature) {
data += wtvshared.sanitizeSignature(session_data.getSessionData("subscriber_signature")); data += wtvshared.sanitizeSignature(session_data.getSessionData("subscriber_signature"));
} }
if (msg_url) { if (msg_url) {
data += `<input type="hidden" name="message_url" value="${msg_url}"> data += `<input type="hidden" name="message_url" value="${msg_url}">
<input type="hidden" name="message_title" value="${msg_url_title}"> <input type="hidden" name="message_title" value="${msg_url_title}">
Included Page: <a href="${msg_url}">${wtvshared.htmlEntitize(msg_url_title).replace(/&apos;/gi, "'")}</a>`; Included Page: <a href="${msg_url}">${wtvshared.htmlEntitize(msg_url_title).replace(/&apos;/gi, "'")}</a>`;
} }
data += ` data += `
<td abswidth=13> <td abswidth=13>
<td abswidth=2 bgcolor=#000000> <td abswidth=2 bgcolor=#000000>
<tr> <tr>
<td abswidth=2 bgcolor=#495360> <td abswidth=2 bgcolor=#495360>
<td absheight=13 colspan=3> <td absheight=13 colspan=3>
<td abswidth=2 bgcolor=#000000> <td abswidth=2 bgcolor=#000000>
<tr> <tr>
<td absheight=2 colspan=5 bgcolor=#000000> <td absheight=2 colspan=5 bgcolor=#000000>
</table> </table>
<tr> <tr>
<td width=13 bgcolor=#171726> <td width=13 bgcolor=#171726>
<td width=438 bgcolor=#171726> <td width=438 bgcolor=#171726>
<spacer type=vertical size=5><br> <spacer type=vertical size=5><br>
<table cellspacing=0 cellpadding=0 border=0> <table cellspacing=0 cellpadding=0 border=0>
<tr> <tr>
<td width=305 valign=top>`; <td width=305 valign=top>`;
if (!session_data.getSessionData("subscriber_signature") || session_data.getSessionData("subscriber_signature") == "") { if (!session_data.getSessionData("subscriber_signature") || session_data.getSessionData("subscriber_signature") == "") {
data += `<input type = hidden name = "togglesign" value = "false"> <td abswidth=13 > `; data += `<input type = hidden name = "togglesign" value = "false"> <td abswidth=13 > `;
} else if (no_signature) { } else if (no_signature) {
data += `<a href="javascript:Signing('true')"> data += `<a href="javascript:Signing('true')">
<img src="wtv-mail:/content/images/RemoveButton.gif" align=absmiddle height=25 width=25>&nbsp;Add signature&nbsp;</a> <img src="wtv-mail:/content/images/RemoveButton.gif" align=absmiddle height=25 width=25>&nbsp;Add signature&nbsp;</a>
<br>`; <br>`;
} else { } else {
data += `<a href="javascript:Signing('false')"> data += `<a href="javascript:Signing('false')">
<img src="wtv-mail:/content/images/RemoveButton.gif" align=absmiddle height=25 width=25>&nbsp;Remove signature&nbsp;</a> <img src="wtv-mail:/content/images/RemoveButton.gif" align=absmiddle height=25 width=25>&nbsp;Remove signature&nbsp;</a>
<br>`; <br>`;
} }
data += ` data += `
<td align=right valign=top width=110> <FONT COLOR="#E7CE4A"><SHADOW> <td align=right valign=top width=110> <FONT COLOR="#E7CE4A"><SHADOW>
<INPUT TYPE=SUBMIT BORDERIMAGE="file://ROM/Borders/ButtonBorder2.bif" action="javascript:Submit()" <INPUT TYPE=SUBMIT BORDERIMAGE="file://ROM/Borders/ButtonBorder2.bif" action="javascript:Submit()"
value="Send" value="Send"
name="Send" name="Send"
id="Send" id="Send"
xnocancel xnocancel
width=103 width=103
USESTYLE NOARGS> USESTYLE NOARGS>
</SHADOW></FONT> </SHADOW></FONT>
</table> </table>
<spacer type=vertical size=5> <spacer type=vertical size=5>
`; `;
if ((request_headers.query.snapping && request_headers.query.snapping !== 'false') || mail_draft_attachments.message_snapshot_data) { if ((request_headers.query.snapping && request_headers.query.snapping !== 'false') || mail_draft_attachments.message_snapshot_data) {
data += `<tr> data += `<tr>
<td absheight="10"> <td absheight="10">
<img src="ROMCache/Spacer.gif" width="1" height="10"> <img src="ROMCache/Spacer.gif" width="1" height="10">
</td></tr></tbody></table> </td></tr></tbody></table>
<table cellspacing="0" cellpadding="0" bgcolor="${message_colors.bgcolor}" background=""> <table cellspacing="0" cellpadding="0" bgcolor="${message_colors.bgcolor}" background="">
<tbody><tr> <tbody><tr>
<td rowspan="100" abswidth="10" bgcolor="191919"> <td rowspan="100" abswidth="10" bgcolor="191919">
<img src="ROMCache/Spacer.gif" width="10" height="1"> <img src="ROMCache/Spacer.gif" width="10" height="1">
</td><td colspan="9" abswidth="422" valign="bottom"> </td><td colspan="9" abswidth="422" valign="bottom">
<img src="ROMCache/PaperTopFlat.gif" noprint="" width="422" height="6"> <img src="ROMCache/PaperTopFlat.gif" noprint="" width="422" height="6">
</td></tr><tr> </td></tr><tr>
<td rowspan="100" abswidth="2" absheight="0" bgcolor="313131"> <td rowspan="100" abswidth="2" absheight="0" bgcolor="313131">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="14" absheight="0"> </td><td rowspan="100" abswidth="14" absheight="0">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td colspan="2" abswidth="386"> </td><td colspan="2" abswidth="386">
</td><td rowspan="100" abswidth="14" absheight="0"> </td><td rowspan="100" abswidth="14" absheight="0">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="3" absheight="0" bgcolor="0b0b0b"> </td><td rowspan="100" abswidth="3" absheight="0" bgcolor="0b0b0b">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="1" absheight="0" bgcolor="0f0f0f"> </td><td rowspan="100" abswidth="1" absheight="0" bgcolor="0f0f0f">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="1" absheight="0" bgcolor="131313"> </td><td rowspan="100" abswidth="1" absheight="0" bgcolor="131313">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="1" absheight="0" bgcolor="171717"> </td><td rowspan="100" abswidth="1" absheight="0" bgcolor="171717">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td></tr><tr> </td></tr><tr>
<td colspan="2" absheight="15">`; <td colspan="2" absheight="15">`;
if (!mail_draft_attachments.message_snapshot_data) { if (!mail_draft_attachments.message_snapshot_data) {
data += `<input type="file" device="video" name="message_snapshot_data" src="cache:snapshot.jpg" invisible="" width="75%" height="75%"> data += `<input type="file" device="video" name="message_snapshot_data" src="cache:snapshot.jpg" invisible="" width="75%" height="75%">
<input type="hidden" name="message_snapshot_url" value="cache:snapshot.jpg">`; <input type="hidden" name="message_snapshot_url" value="cache:snapshot.jpg">`;
} }
data += ` data += `
</td></tr><tr> </td></tr><tr>
<td colspan="2" align="center"> <td colspan="2" align="center">
<img src="${(mail_draft_attachments.message_snapshot_data) ? 'wtv-mail:/sendmail?get_snap=true' : (request_headers.query.message_snapshot_url) ? request_headers.query.message_snapshot_url : 'cache:snapshot.jpg'}" width="380" height="290"> <img src="${(mail_draft_attachments.message_snapshot_data) ? 'wtv-mail:/sendmail?get_snap=true' : (request_headers.query.message_snapshot_url) ? request_headers.query.message_snapshot_url : 'cache:snapshot.jpg'}" width="380" height="290">
</td></tr><tr> </td></tr><tr>
<td colspan="2" abswidth="386" absheight="10"> <td colspan="2" abswidth="386" absheight="10">
</td></tr><tr> </td></tr><tr>
<td colspan="2"> <td colspan="2">
<table width="386" cellspacing="0" cellpadding="0"> <table width="386" cellspacing="0" cellpadding="0">
<tbody><tr><td valign="middle"> <tbody><tr><td valign="middle">
</td><td valign="middle" align="right"> </td><td valign="middle" align="right">
<a href="javascript:ErasingMedia('snapping')"> <a href="javascript:ErasingMedia('snapping')">
&nbsp;Detach&nbsp;<img src="ROMCache/RemoveButton.gif" width="25" height="25" align="absmiddle"></a> &nbsp;Detach&nbsp;<img src="ROMCache/RemoveButton.gif" width="25" height="25" align="absmiddle"></a>
</td></tr></tbody></table> </td></tr></tbody></table>
</td></tr><tr> </td></tr><tr>
<td colspan="2" absheight="8"> <td colspan="2" absheight="8">
<img src="ROMCache/Spacer.gif" width="1" height="8"> <img src="ROMCache/Spacer.gif" width="1" height="8">
</td></tr></tbody></table> </td></tr></tbody></table>
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tbody><tr> <tbody><tr>
<td rowspan="100" abswidth="10"> <td rowspan="100" abswidth="10">
<img src="ROMCache/Spacer.gif" width="10" height="2"> <img src="ROMCache/Spacer.gif" width="10" height="2">
</td><td abswidth="422"> </td><td abswidth="422">
<img src="ROMCache/PaperBase.gif" noprint="" width="422" height="6"> <img src="ROMCache/PaperBase.gif" noprint="" width="422" height="6">
</td></tr><tr> </td></tr><tr>
<td absheight="6"> <td absheight="6">
<img src="ROMCache/Spacer.gif" width="1" height="6"> <img src="ROMCache/Spacer.gif" width="1" height="6">
</td></tr>`; </td></tr>`;
} }
if ((request_headers.query.gabbing && request_headers.query.gabbing !== 'false') || mail_draft_attachments.message_voicemail_data) { if ((request_headers.query.gabbing && request_headers.query.gabbing !== 'false') || mail_draft_attachments.message_voicemail_data) {
data += `<tr> data += `<tr>
<td absheight="10"> <td absheight="10">
<img src="ROMCache/Spacer.gif" width="1" height="10"> <img src="ROMCache/Spacer.gif" width="1" height="10">
</td></tr></tbody></table> </td></tr></tbody></table>
<table cellspacing="0" cellpadding="0" bgcolor="${message_colors.bgcolor}" background=""> <table cellspacing="0" cellpadding="0" bgcolor="${message_colors.bgcolor}" background="">
<tbody><tr> <tbody><tr>
<td rowspan="100" abswidth="10" bgcolor="191919"> <td rowspan="100" abswidth="10" bgcolor="191919">
<img src="ROMCache/Spacer.gif" width="10" height="1"> <img src="ROMCache/Spacer.gif" width="10" height="1">
</td><td colspan="9" abswidth="422" valign="bottom"> </td><td colspan="9" abswidth="422" valign="bottom">
<img src="ROMCache/PaperTopFlat.gif" noprint="" width="422" height="6"> <img src="ROMCache/PaperTopFlat.gif" noprint="" width="422" height="6">
</td></tr><tr> </td></tr><tr>
<td rowspan="100" abswidth="2" absheight="0" bgcolor="313131"> <td rowspan="100" abswidth="2" absheight="0" bgcolor="313131">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="14" absheight="0"> </td><td rowspan="100" abswidth="14" absheight="0">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td colspan="2" abswidth="386"> </td><td colspan="2" abswidth="386">
</td><td rowspan="100" abswidth="14" absheight="0"> </td><td rowspan="100" abswidth="14" absheight="0">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="3" absheight="0" bgcolor="0b0b0b"> </td><td rowspan="100" abswidth="3" absheight="0" bgcolor="0b0b0b">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="1" absheight="0" bgcolor="0f0f0f"> </td><td rowspan="100" abswidth="1" absheight="0" bgcolor="0f0f0f">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="1" absheight="0" bgcolor="131313"> </td><td rowspan="100" abswidth="1" absheight="0" bgcolor="131313">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td><td rowspan="100" abswidth="1" absheight="0" bgcolor="171717"> </td><td rowspan="100" abswidth="1" absheight="0" bgcolor="171717">
<img src="ROMCache/Spacer.gif" width="1" height="1"> <img src="ROMCache/Spacer.gif" width="1" height="1">
</td></tr><tr> </td></tr><tr>
<td colspan="2" absheight="15"> <td colspan="2" absheight="15">
<input type=file device=audio name=message_voicemail_data <input type=file device=audio name=message_voicemail_data
src="cache:voicemail.wav" rate=8000 invisible> src="cache:voicemail.wav" rate=8000 invisible>
${(!mail_draft_attachments.message_voicemail_data) ? '' : '<input type=hidden name=message_voicemail_url value="cache:voicemail.wav">'} ${(!mail_draft_attachments.message_voicemail_data) ? '' : '<input type=hidden name=message_voicemail_url value="cache:voicemail.wav">'}
</td></tr><tr> </td></tr><tr>
<td colspan="2" align="center"> <td colspan="2" align="center">
<table width=386 cellspacing=0 cellpadding=0> <table width=386 cellspacing=0 cellpadding=0>
<td align=left valign=middle> <td align=left valign=middle>
<a href="${(mail_draft_attachments.message_voicemail_data) ? 'wtv-mail:/sendmail?get_gab=true&wtv-title=Voice%20Mail' : 'cache:voicemail.wav'}" id=focus><img src="ROMCache/FileSound.gif" align=absmiddle></a>&nbsp;&nbsp;Recording <a href="${(mail_draft_attachments.message_voicemail_data) ? 'wtv-mail:/sendmail?get_gab=true&wtv-title=Voice%20Mail' : 'cache:voicemail.wav'}" id=focus><img src="ROMCache/FileSound.gif" align=absmiddle></a>&nbsp;&nbsp;Recording
<td align=right valign=middle> <td align=right valign=middle>
<a href="javascript:ErasingMedia('gabbing')"> <a href="javascript:ErasingMedia('gabbing')">
&nbsp;Detach&nbsp;<img src="ROMCache/RemoveButton.gif" align=absmiddle height=25 width=25></a> &nbsp;Detach&nbsp;<img src="ROMCache/RemoveButton.gif" align=absmiddle height=25 width=25></a>
</table><tr> </table><tr>
<td colspan="2" absheight="8"> <td colspan="2" absheight="8">
<img src="ROMCache/Spacer.gif" width="1" height="8"> <img src="ROMCache/Spacer.gif" width="1" height="8">
</td></tr></tbody></table> </td></tr></tbody></table>
<table cellspacing="0" cellpadding="0"> <table cellspacing="0" cellpadding="0">
<tbody><tr> <tbody><tr>
<td rowspan="100" abswidth="10"> <td rowspan="100" abswidth="10">
<img src="ROMCache/Spacer.gif" width="10" height="2"> <img src="ROMCache/Spacer.gif" width="10" height="2">
</td><td abswidth="422"> </td><td abswidth="422">
<img src="ROMCache/PaperBase.gif" noprint="" width="422" height="6"> <img src="ROMCache/PaperBase.gif" noprint="" width="422" height="6">
</td></tr><tr> </td></tr><tr>
<td absheight="6"> <td absheight="6">
<img src="ROMCache/Spacer.gif" width="1" height="6"> <img src="ROMCache/Spacer.gif" width="1" height="6">
</td></tr>`; </td></tr>`;
} }
data += ` data += `
</form> </form>
</tbody> </tbody>
</table> </table>
</body> </body>
</HTML> </HTML>
`; `;
} }
} }
} }

View File

@@ -17,7 +17,7 @@ wtv-expire-all: wtv-
wtv-expire-all: http wtv-expire-all: http
wtv-client-time-zone: GMT -0000 wtv-client-time-zone: GMT -0000
wtv-client-time-dst-rule: false wtv-client-time-dst-rule: false
wtv-client-date: ${strf("%a, %d %b %Y %H:%M:%S", new Date(new Date().setUTCSeconds(new Date().getUTCSeconds())))} GMT wtv-client-date: ${strf("%a, %d %b %Y %H:%M:%S", new Date(new Date().setUTCSeconds(new Date().getUTCSeconds())))}
Content-Type: text/html` Content-Type: text/html`