-
Notifications
You must be signed in to change notification settings - Fork 0
/
newmessage.aspx
225 lines (225 loc) · 13.3 KB
/
newmessage.aspx
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
<%@ Page Language="C#" Inherits="anmar.SharpWebMail.UI.Pages.NewMessage" trace="false" validateRequest="false" %>
<%@ Register TagPrefix="FredCK" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>
<%@ Register TagPrefix="SharpUI" TagName="globalUI" Src="globalUI.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title><%=Application["product"]%></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="sharpwebmail.css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script type="text/javascript"><!--
window.onload = function () {
var oFrame = window.frames[ 'SharpUI:FCKEditor___Frame' ];
if ( typeof (oFrame)=='undefined' )
oFrame = window.frames[ 'SharpUI$FCKEditor___Frame' ];
if ( typeof (oFrame)=='undefined' )
oFrame = window.frames[0];
if ( typeof (oFrame)=='object' ) {
for ( var i=0; i<window.document.forms[0].format.length; i++ ) {
if ( window.document.forms[0].format[i].value=="html" ) {
window.document.forms[0].format[i].disabled=false;
window.document.forms[0].format[i].checked=true;
break;
}
}
}
oFrame=null;
}
function switchFCKEditorMode ( mode ) {
var oFrame = window.frames[ 'SharpUI:FCKEditor___Frame' ];
if ( typeof (oFrame)=='undefined' )
oFrame = window.frames[0];
if ( typeof (oFrame)=='object' ) {
var FCK = oFrame.FCK;
if ( typeof (FCK)=='object' ) {
if ( ( FCK.EditMode==FCK_EDITMODE_WYSIWYG && mode=="text" ) || ( FCK.EditMode==FCK_EDITMODE_SOURCE && mode=="html" ) )
FCK.SwitchEditMode();
if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
FCK.ToolbarSet.Expand();
else
FCK.ToolbarSet.Collapse();
if ( !oFrame.FCKBrowserInfo.IsIE )
oFrame.window.onresize();
}
FCK=null;
}
oFrame=null;
}
//--></script>
<form id="sharpwebmailform" method="post" runat="server">
<SharpUI:globalUI id="SharpUI" runat="server">
<CentralPanel>
<table width="95%" cellpadding="0" cellspacing="0" align="center" height="95%">
<tr>
<td class="XPPanelTitleBorderLeft"><img src="images/spacer.gif" width="6" height="3"></td>
<td width="100%" class="XPPanelTitleBorder" valign="middle"></td>
<td class="XPPanelTitleBorderRight"><img src="images/spacer.gif" width="6" height="3"></td>
</tr>
<tr>
<td class="XPPanelTitleBorderLeft"><img src="images/spacer.gif" width="6" height="22"></td>
<td width="100%" class="XPPanel" valign="middle">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="XPPanelTitle" align="left">
<tr>
<td width="80%" align="left" class="XPPanel"><asp:Label id="newMessageWindowTitle" runat="server"/></td>
<td width="20%" align="right" class="XPPanel">
<table width="100%" border="0">
<tr>
<td width="100%"><img src="images/spacer.gif" width="1" height="1"></td>
<td><asp:HyperLink runat="server" ID="msgtoolbarAddressBook" Visible="false"
ImageUrl="images/msgtoolbar_book.gif"/><img src="images/spacer.gif" width="8" height="14"></td>
<td>
<asp:ImageButton runat="server" ID="msgtoolbarCancel" OnCommand="msgtoolbarCommand" CommandName="cancel" causesvalidation="false"
ImageUrl="images/msgtoolbar_delete.gif"/>
</td>
</tr>
</table></td>
</tr>
</table>
</td>
<td class="XPPanelTitleBorderRight"><img src="images/spacer.gif" width="6" height="4"></td>
</tr>
<tr>
<td class="XPPanelBorderTopLeft"><img src="images/spacer.gif" width="6" height="5"></td>
<td width="100%" class="XPPanelBorderTop" valign="middle"></td>
<td class="XPPanelBorderTopRight"><img src="images/spacer.gif" width="6" height="5"></td>
</tr>
<tr>
<td class="XPPanelBorder"><img src="images/spacer.gif" width="6" height="4"></td>
<td width="100%" class="XPWindowBackground">
<asp:PlaceHolder id="newMessagePH" runat="server">
<table align="center" width="97%">
<tr>
<td align="right" nowrap width="1%"><asp:Label id="newMessageWindowFromNameLabel" CssClass="XPFormLabel" runat="server"/></td>
<td>
<input id="fromname" type="text" runat="server" value="" class="XPInputEX" tabindex="10" />
<ASP:RequiredFieldValidator id="ReqfromnameValidator" runat="server" ErrorMessage="*" Display="Static" ControlToValidate="fromname" />
</td>
<td> </td>
</tr>
<tr>
<td align="right" nowrap><asp:Label id="newMessageWindowFromEmailLabel" CssClass="XPFormLabel" runat="server"/></td>
<td> <asp:Label id="newMessageWindowFromEmail" CssClass="XPFormLabel" runat="server"/>
<asp:PlaceHolder id="newMessageFromPH" runat="server" Visible="false">
<input id="fromemail" type="text" runat="server" value="" class="XPInputEX" tabindex="10" />
<ASP:RegularExpressionValidator id="fromemailValidator" ValidationExpression=".+" ControlToValidate="fromemail" runat="server" ErrorMessage="*" Display="Static" />
</asp:PlaceHolder>
</td>
<td></td>
</tr>
<tr>
<td align="right" nowrap><asp:HyperLink id="newMessageWindowToEmailLabel" CssClass="XPFormLabel" runat="server"/></td>
<td>
<input id="toemail" type="text" runat="server" value="" class="XPInputEX" tabindex="10" />
<ASP:RequiredFieldValidator id="ReqemailValidator" runat="server" ErrorMessage="*" Display="Static" ControlToValidate="toemail" />
<ASP:RegularExpressionValidator id="toemailValidator" ValidationExpression=".+" ControlToValidate="toemail" runat="server" ErrorMessage="*" Display="Static" />
</td>
<td> </td>
</tr>
<tr>
<td align="right" nowrap><asp:Label id="newMessageWindowSubjectLabel" CssClass="XPFormLabel" runat="server"/></td>
<td>
<input id="subject" type="text" runat="server" value="" class="XPInputEX" tabindex="10" />
<ASP:RequiredFieldValidator id="ReqsubjectValidator" runat="server" ErrorMessage="*" Display="Static" ControlToValidate="subject" />
</td>
<td> </td>
</tr>
<tr>
<td align="right" nowrap><asp:Label id="newMessageWindowFormatLabel" CssClass="XPFormLabel" runat="server"/></td>
<td>
<input name="format" type="radio" style="XPInput" value="text" onClick="switchFCKEditorMode(this.value)" checked tabindex="10" /> <asp:Label id="newMessageWindowFormatTextLabel" CssClass="XPFormText" runat="server"/>
<input name="format" type="radio" style="XPInput" value="html" onClick="switchFCKEditorMode(this.value)" disabled tabindex="10" /> <asp:Label id="newMessageWindowFormatHtmlLabel" CssClass="XPFormText" runat="server"/>
</td>
<td> </td>
</tr>
<tr>
<td nowrap><asp:button id="newMessageWindowAttachmentsButton" causesvalidation="false" onClick="Attachments_Click" runat="server" text="Send" tabindex="10" /></td>
<td>
<asp:DataList id="newMessageWindowAttachmentsAddedList"
CellPadding="0"
CellSpacing="2"
RepeatDirection="Vertical"
RepeatLayout="Flow"
RepeatColumns="3"
ShowBorder="false"
runat="server">
<ItemTemplate>
<asp:Label id="Attachment" CssClass="XPDownload" Text='<%# DataBinder.Eval(Container.DataItem, "Text")%>' runat="server"/>
</ItemTemplate>
</asp:DataList>
</td>
<td> </td>
</tr>
<tr>
<td colspan="2" height="200">
<FredCK:FCKeditor id="FCKEditor" height="210" runat="server" BasePath="fcke/" />
</td>
<td><ASP:RequiredFieldValidator id="ReqbodyValidator" runat="server" ErrorMessage="*" Display="Static" ControlToValidate="FCKEditor" EnableClientScript="false" /></td>
</tr>
<tr>
<td colspan="2" align="center"><asp:button id="newMessageWindowSendButton" CausesValidation="true" onClick="Send_Click" runat="server" text="Send" tabindex="10" />
</td>
<td> </td>
</tr>
</table>
</asp:PlaceHolder>
<asp:PlaceHolder id="confirmationPH" runat="server">
<table align="center">
<tr>
<td></td>
<td align="center"> <asp:Label id="newMessageWindowConfirmation" CssClass="XPFormLabel" runat="server"/>
</td>
<td> </td>
</tr>
</table>
</asp:PlaceHolder>
<asp:PlaceHolder id="attachmentsPH" runat="server">
<table align="center">
<tr>
<td></td>
<td nowrap align="left"><asp:CheckBoxList id="newMessageWindowAttachmentsList" RepeatColumns="2" runat="server" CssClass="XPDownload" />
</td>
<td> </td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" width="1" height="5"></td>
</tr>
<asp:placeholder id="newattachmentPH" runat="server">
<tr>
<td></td>
<td align="center"><INPUT id="newMessageWindowAttachFile" type="file" size="20" tabindex="10" runat="server" />
</td>
<td> </td>
</tr>
<tr>
<td></td>
<td align="center"><asp:button id="newMessageWindowAttachmentAddButton" onClick="AttachmentAdd_Click" runat="server" Text="Add" tabindex="10" />
</td>
<td> </td>
</tr>
<tr>
<td colspan="3"><img src="images/spacer.gif" width="1" height="5"></td>
</tr>
</asp:placeholder>
<tr>
<td></td>
<td align="center"><asp:button id="newMessageWindowAttachButton" causesvalidation="false" onClick="Attach_Click" runat="server" text="Attach" tabindex="10" />
</td>
<td> </td>
</tr>
</table>
</asp:PlaceHolder></td>
<td class="XPPanelBorder"><img src="images/spacer.gif" width="6" height="6"></td>
</tr>
<tr>
<td class="XPPanelFooterLeft"><img src="images/spacer.gif" width="6" height="8"></td>
<td class="XPPanelFooter"></td>
<td class="XPPanelFooterRight"><img src="images/spacer.gif" width="6" height="6"></td>
</tr>
</table>
</CentralPanel>
</SharpUI:globalUI>
</form>
</body>
</html>