根据原理已经制作出相应的完美补丁,点save自动保存为utf-8,自动读取翻译成中文
补丁下载
初步方案想法
修改UserOptions.aspx文件
查找 :
<
asp:label
id
=lblFullName
runat
="server"
/></
td
><
td
class
=contentLabelCell
valign
=top
width
="80%"
>
然后在下面添加:
<
!
--
UTF
-
8转换插件 By:羽毛飞 Begin
-->
<
input type
=
"
text
"
id
=
"
code
"
value
=
""
>
<
input type
=
button onclick
=
encode(code,this) value
=
转化
>
<
script
>
var mode
=
"
zhuan
"
;
function
encode(obj,btn){
if
(mode
==
"
zhuan
"
){
obj.value
=
obj.value.replace(
/
[
^
u0000
-
u00FF]
/
g,
function
($
0
){return escape

($
0
).replace(
/
(%u)(
w{
4
})
/
gi,
"
&#x$2;
"
)});
btn.value
=
"
还原
"
;
mode
=
"
huan
"
;
}
else
{
obj.value
=
unescape(obj.value.replace(
/&
#x
/
g,
'
%u').replace(/;/g,''));
btn.value
=
"
转化
"
;
mode
=
"
zhuan
"
;
}
}
</
script
>
<
span class
=
"
STYLE1
"
>
(说明,将转化好的内容填入到下面全名)
</
span
>
<
br
>
<
!
--
UTF
-
8转换插件 By:羽毛飞
End
-->
保存。
完整的UserOptions.aspx文件:
<
%@ Register TagPrefix
=
"
ipsILB
"
Namespace
=
"
Ipswitch.Web.Client
"
%
>
<
%@ page language
=
"
c#
"
inherits
=
"
Ipswitch.Web.Client.UserOptions, App_Web_r1ymgwqt
"
%
>
<
!DOCTYPE HTML
PUBLIC
"
-//W3C//DTD HTML 4.0 Transitional//EN
"
>
<
html
>
<
head
>
<
title
>
User Preferences
</
title
>
<
link href
=
"
Cypress.css
"
type
=
"
text/css
"
rel
=
"
stylesheet
"
>
<
style
>
TEXTAREA { WIDTH: 400px; HEIGHT: 110px }
INPUT { FONT
-
SIZE:
90
%; COLOR: black; FONT
-
FAMILY: Arial }
SELECT
{ FONT
-
SIZE:
90
%; COLOR: black; FONT
-
FAMILY: Arial }
.STYLE1 {color: #FF0000}
</
style
>
<
meta content
=
"
Microsoft Visual Studio .NET 7.1
"
name
=
"
GENERATOR
"
>
<
meta content
=
"
C#
"
name
=
"
CODE_LANGUAGE
"
>
<
meta content
=
"
JavaScript
"
name
=
"
vs_defaultClientScript
"
>
<
meta content
=
"
http://schemas.microsoft.com/intellisense/ie5
"
name
=
"
vs_targetSchema
"
>
<
script src
=
"
javascripts/prototype.js
"
type
=
"
text/javascript
"
></
script
>
<
asp:literal id
=
"
litJavascript
"
runat
=
"
server
"
></
asp:literal
>
<
script language
=
"
JavaScript
"
>
if
(top.location.href.toLowerCase().indexOf(
"
useroptions.aspx
"
) !
=
-
1
)
{
top.location.href
=
"
default.aspx
"
;
}
function
AutoResponderClick()
{
document.Form1.txtAutoResponderMessage.disabled
=
(!
(document.Form1.ckAutoRespondEnable.checked));
document.Form1.txtAutoRespondForwardTo.disabled
=
(!
(document.Form1.ckAutoRespondEnable.checked));
}
function
VacationMessageClick()
{
document.Form1.txtVacationMessage.disabled
=
(!
(document.Form1.ckVacationMessageEnable.checked));
}
function
PopHiddenFields()
{
document.Form1.hdnAutoResponderMessage.value
=
document.Form1.txtAutoResponderMessage.value;
document.Form1.hdnAutoRespondForwardTo.value
=
document.Form1.txtAutoRespondForwardTo.value;
}
function
getViewportHeight()
{
var y;
if
(typeof window.innerHeight !
=
'
undefined')
{
y
=
window.innerHeight;
}
else
if
(typeof document.documentElement !
=
'
undefined'
&&
typeof document.documentElement.clientHeight !
=
'
undefined' && document.documentElement.clientHeight != 0)
{
y
=
document.documentElement.clientHeight;
}
else
{
y
=
document.getElementsByTagName(
'
body')[0].clientHeight;
}
return y;
}
window.onresize
=
SizeWindow;
function
SizeWindow()
{
var y
=
getViewportHeight();
y
=
y
-
document.getElementById(
'
ButtonBar').offsetHeight;
document.getElementById(
'
dataDiv').style.height = y + 'px';
}
function
UpdateAR(request)
{
var nodeResult
=
request.responseXML.getElementsByTagName(
"
result
"
);
var node;
node
=
nodeResult[
0
].getElementsByTagName(
"
error
"
);
if
(node[
0
] !
=
null
)
{
alert(node[
0
].childNodes[
0
].nodeValue);
}
else
{
node
=
nodeResult[
0
].getElementsByTagName(
"
Checked
"
);
document.Form1.ckAutoRespondEnable.checked
=
(node[
0
].childNodes[
0
].nodeValue
==
"
True
"
);
node
=
nodeResult[
0
].getElementsByTagName(
"
ForwardTo
"
);
if
(node[
0
].childNodes[
0
] !
=
undefined)
{
document.Form1.txtAutoRespondForwardTo.value
=
node[
0
].childNodes
[
0
].nodeValue;
}
else
document.Form1.txtAutoRespondForwardTo.value
=
'
';
node
=
nodeResult[
0
].getElementsByTagName(
"
Message
"
);
if
(node[
0
].childNodes[
0
] !
=
undefined)
{
document.Form1.txtAutoResponderMessage.value
=
node[
0
].childNodes
[
0
].nodeValue;
}
else
document.Form1.txtAutoResponderMessage.value
=
'
';
AutoResponderClick();
}
}
</
script
>
</
head
>
<
body bgcolor
=
"
#ece9d8
"
onload
=
"
SizeWindow();
"
style
=
"
overflow:auto
"
>
<
form id
=
"
Form1
"
method
=
"
post
"
runat
=
"
server
"
>
<
input type
=
"
hidden
"
id
=
"
hdnAutoRespondForwardTo
"
name
=
"
hdnAutoRespondForwardTo
"
runat
=
"
server
"
/>
<
input type
=
"
hidden
"
id
=
"
hdnAutoResponderMessage
"
name
=
"
hdnAutoResponderMessage
"
runat
=
"
server
"
/>
<
input type
=
"
hidden
"
id
=
"
hdnAutoRespondFolder
"
name
=
"
hdnAutoRespondFolder
"
runat
=
"
server
"
/>
<
input type
=
"
hidden
"
id
=
"
hdnOrigPreviewExists
"
name
=
"
hdnOrigPreviewExists
"
runat
=
"
server
"
/>
<
input type
=
"
hidden
"
id
=
"
hdnEnableUsageBar
"
name
=
"
hdnEnableUsageBar
"
runat
=
"
server
"
/>
<
table id
=
"
ButtonBar
"
class
=
"
ButtonBarBG
"
cellspacing
=
"
0
"
cellpadding
=
"
0
"
width
=
"
100%
"
border
=
"
0
"
>
<
tr
>
<
td class
=
"
outlookTitleCell
"
nowrap width
=
"
100%
"
colspan
=
"
2
"
><
asp:label id
=
"
lblUserOptsHeader
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
ButtonBar
"
id
=
"
savecol
"
style
=
"
PADDING-RIGHT: 10px;
PADDING
-
LEFT
: 10px; HEIGHT: 24px
"
nowrap align=
"
center
"
name=
"
savecol
"
onmouseover
=
"
this.className='ButtonBarHover'
"
onmouseout
=
"
this.className='ButtonBar'
"
>
<
ipsILB:ImageLinkButton id
=
"
lnkSave
"
tabindex
=
"
1
"
runat
=
"
server
"
cssclass
=
"
NoUnderline
"
ImageUrl
=
"
images/icn_save_16.gif
"
ImageAlign
=
"
absmiddle
"
onclick
=
"
lnkSave_Click
"
></
ipsILB:ImageLinkButton
>
</
td
>
<
td width
=
"
95%
"
>&
nbsp;
</
td
>
</
tr
>
</
table
>
<
div id
=
"
dataDiv
"
style
=
"
overflow:scroll;width:100%;height:100%
"
>
<
table cellspacing
=
"
3
"
cellpadding
=
"
0
"
width
=
"
100%
"
height
=
"
100%
"
border
=
"
0
"
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserOptsGeneral
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
top width
=
40
rowspan
=
2
><
img
src
=
"
images/icn_general_settings_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
contentLabelCell valign
=
top nowrap
><
br
>
<
asp:label id
=
lblFullName runat
=
"
server
"
/></
td
><
td
class
=
contentLabelCell valign
=
top width
=
"
80%
"
>
<
!
--
UTF
-
8转换插件 By:羽毛飞 Begin
-->
<
input type
=
"
text
"
id
=
"
code
"
value
=
""
>
<
input type
=
button onclick
=
encode(code,this) value
=
转化
>
<
script
>
var mode
=
"
zhuan
"
;
function
encode(obj,btn){
if
(mode
==
"
zhuan
"
){
obj.value
=
obj.value.replace(
/
[
^
u0000
-
u00FF]
/
g,
function
($
0
){return escape
($
0
).replace(
/
(%u)(
w{
4
})
/
gi,
"
&#x$2;
"
)});
btn.value
=
"
还原
"
;
mode
=
"
huan
"
;
}
else
{
obj.value
=
unescape(obj.value.replace(
/&
#x
/
g,
'
%u').replace(/;/g,''));
btn.value
=
"
转化
"
;
mode
=
"
zhuan
"
;
}
}
</
script
>
<
span class
=
"
STYLE1
"
>
(说明,将转化好的内容填入到下面全名)
</
span
>
<
br
>
<
!
--
UTF
-
8转换插件 By:羽毛飞
End
-->
<
asp:textbox id
=
txtFullName runat
=
"
server
"
width
=
"
240px
"
></
asp:textbox
>
<
span class
=
"
STYLE1
"
>
(转化好的填入到这里!)
</
span
>
</
td
>
</
tr
>
<
tr
>
<
td class
=
contentLabelCell valign
=
top nowrap
><
asp:label
id
=
lblEmailAddr runat
=
"
server
"
/></
td
>
<
td class
=
contentLabelCell valign
=
top width
=
"
80%
"
><
asp:textbox
id
=
txtEmailAddr runat
=
"
server
"
width
=
"
240px
"
></
asp:textbox
><
asp:regularexpressionvalidator id
=
revEmailAddress
runat
=
"
server
"
enableclientscript
=
"
False
"
display
=
"
Dynamic
"
controltovalidate
=
"
txtEmailAddr
"
validationexpression
=
"
(("+.+")|([w!#$%&'*+-/=?^_`{}|~])|([w!#$%&'*+-/=?
^
_`
{
}
|~]
+
([
.
w!#
$%
&
amp;
'
*+-/=?^_`{}|~]*)+[w!#$%&'*+-/=?^_`{}|~]))+@+[w!#$%
&
amp;
'
*+-/=?^_`{}|~]+([.w!#$%&'*+-/=?^_`{}|~]*)+[w!#$%&'*+-/=?^_`{}
|~]
"
></asp:regularexpressionvalidator></td>
</
tr
>
<
tr
>
<
td valign
=
top width
=
40
></
td
>
<
td class
=
contentLabelCell valign
=
top nowrap
><
asp:label
id
=
"
lblUserOptsAddToForwardTo
"
runat
=
"
server
"
></
asp:label
></
td
>
<
td class
=
contentLabelCell valign
=
top width
=
"
100%
"
><
asp:textbox
id
=
"
txtForwardAddress
"
runat
=
"
server
"
width
=
"
240px
"
></
asp:textbox
></
td
></
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
>
<
asp:checkbox id
=
"
ckShowMessagePreview
"
runat
=
"
server
"
text
=
"
Show Message Preview Pane
"
checked
=
"
True
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label
id
=
"
lblUserOptsChangePwdText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
rowspan
=
"
3
"
><
img
src
=
"
images/icn_changepwd_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:label id
=
"
lblPwdMsg
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
><
asp:label id
=
"
lblUserOptsNewPwdText
"
runat
=
"
server
"
></
asp:label
></
td
>
<
td class
=
"
contentLabelCell
"
><
asp:textbox id
=
"
txtNewPwd
"
runat
=
"
server
"
width
=
"
150px
"
text
=
""
textmode
=
"
Password
"
maxlength
=
"
30
"
></
asp:textbox
><
asp:customvalidator
id
=
"
PasswordCustVal
"
runat
=
"
server
"
controltovalidate
=
"
txtNewPwd
"
display
=
"
Dynamic
"
onservervalidate
=
"
InvalidPasswordCheck
"
enableclientscript
=
"
False
"
></
asp:customvalidator
><
asp:customvalidator
id
=
"
RetypePwdCustVal
"
runat
=
"
server
"
controltovalidate
=
"
txtPwdRetype
"
display
=
"
Dynamic
"
onservervalidate
=
"
InvalidPasswordRetypeCheck
"
enableclientscript
=
"
False
"
></
asp:customvalidator
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
><
asp:label id
=
"
lblUserOptsRetypePwdText
"
runat
=
"
server
"
></
asp:label
></
td
>
<
td class
=
"
contentLabelCell
"
><
asp:textbox id
=
"
txtPwdRetype
"
runat
=
"
server
"
width
=
"
150px
"
text
=
""
textmode
=
"
Password
"
maxlength
=
"
30
"
></
asp:textbox
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label
id
=
"
lblUserOptsComposingText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
valign
=
"
top
"
>
<
table cellpadding
=
"
0
"
cellspacing
=
"
0
"
border
=
"
0
"
>
<
tr
>
<
td valign
=
"
top
"
rowspan
=
"
6
"
><
img
src
=
"
images/icn_compose_task_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
><
asp:label
id
=
"
lblUserDefaultMsgEncoding
"
runat
=
"
server
"
></
asp:label
>&
nbsp;
&
nbsp;
</
td
>
<
td class
=
"
contentLabelCell
"
valign
=
"
top
"
><
asp:DropDownList
id
=
"
drpMessageCharset
"
runat
=
"
server
"
></
asp:DropDownList
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
><
asp:label id
=
"
lblMessageStyle
"
runat
=
"
server
"
></
asp:label
>&
nbsp;
&
nbsp;
</
td
>
<
td class
=
"
contentLabelCell
"
valign
=
"
top
"
><
asp:DropDownList
id
=
"
drpMessageStyle
"
runat
=
"
server
"
></
asp:DropDownList
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
valign
=
"
top
"
nowrap
><
asp:label
id
=
"
lblUserOptsOpenComposeIn
"
runat
=
"
server
"
></
asp:label
>&
nbsp;
&
nbsp;
</
td
>
<
td class
=
"
contentLabelCell
"
valign
=
"
top
"
>
<
asp:dropdownlist id
=
"
drpComposeIn
"
runat
=
"
server
"
>
<
asp:listitem value
=
"
1
"
></
asp:listitem
>
<
asp:listitem value
=
"
0
"
></
asp:listitem
>
</
asp:dropdownlist
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:checkbox
id
=
"
ckSaveCopyToSent
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:checkbox
id
=
"
chkSaveRecip
"
runat
=
"
server
"
checked
=
"
false
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:checkbox
id
=
"
chkEnableAutoSuggest
"
runat
=
"
server
"
checked
=
"
true
"
></
asp:checkbox
></
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label
id
=
"
lblUserOptsForwardingText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
><
img src
=
"
images/icn_forwarding_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
>
<
p
><
asp:checkbox id
=
"
ckFwdIncludeOriginal
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
>&
nbsp;
&
nbsp;
&
nbsp;
&
nbsp;
<
asp:checkbox id
=
"
ckIncludeAttachments
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
></
p
>
</
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label
id
=
"
lblUserOptsReplyingText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
><
img src
=
"
images/icn_replying_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:checkbox
id
=
"
ckReplyIncludeOriginal
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label
id
=
"
lblUserDeleteOptionsText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
><
img src
=
"
images/mail_delete_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:radiobutton
id
=
"
rdoMoveToDeleted
"
runat
=
"
server
"
checked
=
"
True
"
groupname
=
"
DeleteOptions
"
></
asp:radiobutton
>&
nbsp;
<
asp:radiobutton id
=
"
rdoPurgeMessage
"
runat
=
"
server
"
groupname
=
"
DeleteOptions
"
></
asp:radiobutton
><
img height
=
"
5
"
alt
=
""
src
=
"
images/sp.gif
"
width
=
"
40
"
border
=
"
0
"
>
<
asp:checkbox id
=
"
ckConfirmBeforeDelete
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label
id
=
"
lblUserAutoResponderText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
rowspan
=
"
4
"
><
img
src
=
"
images/icn_autoresponder_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:label
id
=
"
lblUserFolderText
"
runat
=
"
server
"
></
asp:label
><
asp:dropdownlist runat
=
"
server
"
id
=
"
drpAutoRespondFolder
"
></
asp:dropdownlist
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
>
<
asp:checkbox id
=
"
ckAutoRespondEnable
"
runat
=
"
server
"
text
=
"
Enable
"
></
asp:checkbox
>
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:label
id
=
"
lblUserAfterRespondingText
"
runat
=
"
server
"
></
asp:label
><
input id
=
"
txtAutoRespondForwardTo
"
type
=
"
text
"
size
=
"
50
"
name
=
"
txtAutoRespondForwardTo
"
runat
=
"
server
"
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:label
id
=
"
lblUserMessageText
"
runat
=
"
server
"
font
-
bold
=
"
True
"
></
asp:label
><
br
>
<
textarea id
=
"
txtAutoResponderMessage
"
name
=
"
txtAutoResponderMessage
"
runat
=
"
server
"
></
textarea
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label
id
=
"
lblUserSignatureText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
><
img src
=
"
images/icn_signature_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td colspan
=
"
2
"
><
textarea id
=
"
txtSignature
"
name
=
"
txtSignature
"
runat
=
"
server
"
></
textarea
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label
id
=
"
lblUserVacationMsgText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
rowspan
=
"
2
"
><
img
src
=
"
images/icn_vacation_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
>
<
asp:checkbox id
=
"
ckVacationMessageEnable
"
runat
=
"
server
"
></
asp:checkbox
>
</
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
2
"
><
textarea id
=
"
txtVacationMessage
"
name
=
"
txtVacationMessage
"
runat
=
"
server
"
></
textarea
></
td
>
</
tr
>
</
table
>
</
div
>
</
form
>
<
script type
=
"
text/javascript
"
>
AutoResponderClick();
</
script
>
</
body
>
</
html
>
感谢無夜遊民修改完善!完美自动版UserOptions.aspx代码:
<
%@ Register TagPrefix
=
"
ipsILB
"
Namespace
=
"
Ipswitch.Web.Client
"
%
>
<
%@ page language
=
"
c#
"
inherits
=
"
Ipswitch.Web.Client.UserOptions, App_Web_r1ymgwqt
"
%
>
<
!DOCTYPE HTML
PUBLIC
"
-//W3C//DTD HTML 4.0 Transitional//EN
"
>
<
html
>
<
head
>
<
title
>
User Preferences
</
title
>
<
link href
=
"
Cypress.css
"
type
=
"
text/css
"
rel
=
"
stylesheet
"
>
<
style
>
TEXTAREA { WIDTH: 400px; HEIGHT: 110px }
INPUT { FONT
-
SIZE:
90
%; COLOR: black; FONT
-
FAMILY: Arial }
SELECT
{ FONT
-
SIZE:
90
%; COLOR: black; FONT
-
FAMILY: Arial }
</
style
>
<
meta content
=
"
Microsoft Visual Studio .NET 7.1
"
name
=
"
GENERATOR
"
>
<
meta content
=
"
C#
"
name
=
"
CODE_LANGUAGE
"
>
<
meta content
=
"
JavaScript
"
name
=
"
vs_defaultClientScript
"
>
<
meta content
=
"
http://schemas.microsoft.com/intellisense/ie5
"
name
=
"
vs_targetSchema
"
>
<
script src
=
"
javascripts/prototype.js
"
type
=
"
text/javascript
"
></
script
>
<
asp:literal id
=
"
litJavascript
"
runat
=
"
server
"
></
asp:literal
>
<
script language
=
"
JavaScript
"
>
if
(top.location.href.toLowerCase().indexOf(
"
useroptions.aspx
"
) !
=
-
1
)
{
top.location.href
=
"
default.aspx
"
;
}
function
AutoResponderClick()
{
document.Form1.txtAutoResponderMessage.disabled
=
(!(document.Form1.ckAutoRespondEnable.checked));
document.Form1.txtAutoRespondForwardTo.disabled
=
(!(document.Form1.ckAutoRespondEnable.checked));
}
function
VacationMessageClick()
{
document.Form1.txtVacationMessage.disabled
=
(!(document.Form1.ckVacationMessageEnable.checked));
}
function
PopHiddenFields()
{
document.Form1.hdnAutoResponderMessage.value
=
document.Form1.txtAutoResponderMessage.value;
document.Form1.hdnAutoRespondForwardTo.value
=
document.Form1.txtAutoRespondForwardTo.value;
}
function
getViewportHeight()
{
var y;
if
(typeof window.innerHeight !
=
'
undefined')
{
y
=
window.innerHeight;
}
else
if
(typeof document.documentElement !
=
'
undefined'
&&
typeof document.documentElement.clientHeight !
=
'
undefined' && document.documentElement.clientHeight != 0)
{
y
=
document.documentElement.clientHeight;
}
else
{
y
=
document.getElementsByTagName(
'
body')[0].clientHeight;
}
return y;
}
window.onresize
=
SizeWindow;
function
SizeWindow()
{
var y
=
getViewportHeight();
y
=
y
-
document.getElementById(
'
ButtonBar').offsetHeight;
document.getElementById(
'
dataDiv').style.height = y + 'px';
}
function
UpdateAR(request)
{
var nodeResult
=
request.responseXML.getElementsByTagName(
"
result
"
);
var node;
node
=
nodeResult[
0
].getElementsByTagName(
"
error
"
);
if
(node[
0
] !
=
null
)
{
alert(node[
0
].childNodes[
0
].nodeValue);
}
else
{
node
=
nodeResult[
0
].getElementsByTagName(
"
Checked
"
);
document.Form1.ckAutoRespondEnable.checked
=
(node[
0
].childNodes[
0
].nodeValue
==
"
True
"
);
node
=
nodeResult[
0
].getElementsByTagName(
"
ForwardTo
"
);
if
(node[
0
].childNodes[
0
] !
=
undefined)
{
document.Form1.txtAutoRespondForwardTo.value
=
node[
0
].childNodes[
0
].nodeValue;
}
else
document.Form1.txtAutoRespondForwardTo.value
=
'
';
node
=
nodeResult[
0
].getElementsByTagName(
"
Message
"
);
if
(node[
0
].childNodes[
0
] !
=
undefined)
{
document.Form1.txtAutoResponderMessage.value
=
node[
0
].childNodes[
0
].nodeValue;
}
else
document.Form1.txtAutoResponderMessage.value
=
'
';
AutoResponderClick();
}
}
function
TransformName()
{
document.Form1.txtFullName.value
=
document.Form1.txtFullName.value.replace(
/
[
^
u0000
-
u00FF]
/
g,
function
($
0
){return escape($
0
).replace(
/
(%u)(
w{
4
})
/
gi,
"
&#x$2;
"
)});
}
function
UnTransformName()
{
document.Form1.txtFullName.value
=
unescape(document.Form1.txtFullName.value.replace(
/&
#x
/
g,
'
%u').replace(/;/g,''));
}
</
script
>
</
head
>
<
body bgcolor
=
"
#ece9d8
"
onLoad
=
"
SizeWindow();
"
style
=
"
overflow:auto
"
>
<
form id
=
"
Form1
"
method
=
"
post
"
runat
=
"
server
"
onSubmit
=
"
javascript:TransformName();
"
>
<
input type
=
"
hidden
"
id
=
"
hdnAutoRespondForwardTo
"
name
=
"
hdnAutoRespondForwardTo
"
runat
=
"
server
"
/>
<
input type
=
"
hidden
"
id
=
"
hdnAutoResponderMessage
"
name
=
"
hdnAutoResponderMessage
"
runat
=
"
server
"
/>
<
input type
=
"
hidden
"
id
=
"
hdnAutoRespondFolder
"
name
=
"
hdnAutoRespondFolder
"
runat
=
"
server
"
/>
<
input type
=
"
hidden
"
id
=
"
hdnOrigPreviewExists
"
name
=
"
hdnOrigPreviewExists
"
runat
=
"
server
"
/>
<
input type
=
"
hidden
"
id
=
"
hdnEnableUsageBar
"
name
=
"
hdnEnableUsageBar
"
runat
=
"
server
"
/>
<
table id
=
"
ButtonBar
"
class
=
"
ButtonBarBG
"
cellspacing
=
"
0
"
cellpadding
=
"
0
"
width
=
"
100%
"
border
=
"
0
"
>
<
tr
>
<
td class
=
"
outlookTitleCell
"
nowrap width
=
"
100%
"
colspan
=
"
2
"
><
asp:label id
=
"
lblUserOptsHeader
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
ButtonBar
"
id
=
"
savecol
"
style
=
"
PADDING-RIGHT: 10px; PADDING-LEFT: 10px; HEIGHT: 24px
"
nowrap align
=
"
center
"
name
=
"
savecol
"
onMouseOver
=
"
this.className='ButtonBarHover'
"
onMouseOut
=
"
this.className='ButtonBar'
"
>
<
ipsILB:ImageLinkButton id
=
"
lnkSave
"
tabindex
=
"
1
"
runat
=
"
server
"
cssclass
=
"
NoUnderline
"
ImageUrl
=
"
images/icn_save_16.gif
"
ImageAlign
=
"
absmiddle
"
onclick
=
"
lnkSave_Click
"
></
ipsILB:ImageLinkButton
>
</
td
>
<
td width
=
"
95%
"
>&
nbsp;
</
td
>
</
tr
>
</
table
>
<
div id
=
"
dataDiv
"
style
=
"
overflow:scroll;width:100%;height:100%
"
>
<
table cellspacing
=
"
3
"
cellpadding
=
"
0
"
width
=
"
100%
"
height
=
"
100%
"
border
=
"
0
"
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserOptsGeneral
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
top width
=
40
rowspan
=
2
><
img src
=
"
images/icn_general_settings_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
contentLabelCell valign
=
top nowrap
><
asp:label id
=
lblFullName runat
=
"
server
"
/></
td
>
<
td class
=
contentLabelCell valign
=
top width
=
"
80%
"
><
asp:textbox id
=
txtFullName runat
=
"
server
"
width
=
"
240px
"
></
asp:textbox
></
td
></
tr
>
<
tr
>
<
td class
=
contentLabelCell valign
=
top nowrap
><
asp:label id
=
lblEmailAddr runat
=
"
server
"
/></
td
>
<
td class
=
contentLabelCell valign
=
top width
=
"
80%
"
><
asp:textbox id
=
txtEmailAddr runat
=
"
server
"
width
=
"
240px
"
></
asp:textbox
><
asp:regularexpressionvalidator id
=
revEmailAddress runat
=
"
server
"
enableclientscript
=
"
False
"
display
=
"
Dynamic
"
controltovalidate
=
"
txtEmailAddr
"
validationexpression
=
"
(("+.+")|([w!#$%&'*+-/=?^_`{}|~])|([w!#$%&'*+-/=?^_`{}|~]+([.w!#$%&'*+-/=?^_`{}|~]*)+[w!#$%&'*+-/=?^_`{}|~]))+@+[w!#$%&'*+-/=?^_`{}|~]+([.w!#$%&'*+-/=?^_`{}|~]*)+[w!#$%&'*+-/=?^_`{}|~]
"
></
asp:regularexpressionvalidator
></
td
>
</
tr
>
<
tr
>
<
td valign
=
top width
=
40
></
td
>
<
td class
=
contentLabelCell valign
=
top nowrap
><
asp:label id
=
"
lblUserOptsAddToForwardTo
"
runat
=
"
server
"
></
asp:label
></
td
>
<
td class
=
contentLabelCell valign
=
top width
=
"
100%
"
><
asp:textbox id
=
"
txtForwardAddress
"
runat
=
"
server
"
width
=
"
240px
"
></
asp:textbox
></
td
></
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
>
<
asp:checkbox id
=
"
ckShowMessagePreview
"
runat
=
"
server
"
text
=
"
Show Message Preview Pane
"
checked
=
"
True
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserOptsChangePwdText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
rowspan
=
"
3
"
><
img src
=
"
images/icn_changepwd_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:label id
=
"
lblPwdMsg
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
><
asp:label id
=
"
lblUserOptsNewPwdText
"
runat
=
"
server
"
></
asp:label
></
td
>
<
td class
=
"
contentLabelCell
"
><
asp:textbox id
=
"
txtNewPwd
"
runat
=
"
server
"
width
=
"
150px
"
text
=
""
textmode
=
"
Password
"
maxlength
=
"
30
"
></
asp:textbox
><
asp:customvalidator id
=
"
PasswordCustVal
"
runat
=
"
server
"
controltovalidate
=
"
txtNewPwd
"
display
=
"
Dynamic
"
onservervalidate
=
"
InvalidPasswordCheck
"
enableclientscript
=
"
False
"
></
asp:customvalidator
><
asp:customvalidator id
=
"
RetypePwdCustVal
"
runat
=
"
server
"
controltovalidate
=
"
txtPwdRetype
"
display
=
"
Dynamic
"
onservervalidate
=
"
InvalidPasswordRetypeCheck
"
enableclientscript
=
"
False
"
></
asp:customvalidator
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
><
asp:label id
=
"
lblUserOptsRetypePwdText
"
runat
=
"
server
"
></
asp:label
></
td
>
<
td class
=
"
contentLabelCell
"
><
asp:textbox id
=
"
txtPwdRetype
"
runat
=
"
server
"
width
=
"
150px
"
text
=
""
textmode
=
"
Password
"
maxlength
=
"
30
"
></
asp:textbox
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserOptsComposingText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
valign
=
"
top
"
>
<
table cellpadding
=
"
0
"
cellspacing
=
"
0
"
border
=
"
0
"
>
<
tr
>
<
td valign
=
"
top
"
rowspan
=
"
6
"
><
img src
=
"
images/icn_compose_task_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
><
asp:label id
=
"
lblUserDefaultMsgEncoding
"
runat
=
"
server
"
></
asp:label
>&
nbsp;
&
nbsp;
</
td
>
<
td class
=
"
contentLabelCell
"
valign
=
"
top
"
><
asp:DropDownList id
=
"
drpMessageCharset
"
runat
=
"
server
"
></
asp:DropDownList
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
><
asp:label id
=
"
lblMessageStyle
"
runat
=
"
server
"
></
asp:label
>&
nbsp;
&
nbsp;
</
td
>
<
td class
=
"
contentLabelCell
"
valign
=
"
top
"
><
asp:DropDownList id
=
"
drpMessageStyle
"
runat
=
"
server
"
></
asp:DropDownList
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
valign
=
"
top
"
nowrap
><
asp:label id
=
"
lblUserOptsOpenComposeIn
"
runat
=
"
server
"
></
asp:label
>&
nbsp;
&
nbsp;
</
td
>
<
td class
=
"
contentLabelCell
"
valign
=
"
top
"
>
<
asp:dropdownlist id
=
"
drpComposeIn
"
runat
=
"
server
"
>
<
asp:listitem value
=
"
1
"
></
asp:listitem
>
<
asp:listitem value
=
"
0
"
></
asp:listitem
>
</
asp:dropdownlist
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:checkbox id
=
"
ckSaveCopyToSent
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:checkbox id
=
"
chkSaveRecip
"
runat
=
"
server
"
checked
=
"
false
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:checkbox id
=
"
chkEnableAutoSuggest
"
runat
=
"
server
"
checked
=
"
true
"
></
asp:checkbox
></
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserOptsForwardingText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
><
img src
=
"
images/icn_forwarding_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
>
<
p
><
asp:checkbox id
=
"
ckFwdIncludeOriginal
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
>&
nbsp;
&
nbsp;
&
nbsp;
&
nbsp;
<
asp:checkbox id
=
"
ckIncludeAttachments
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
></
p
>
</
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserOptsReplyingText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
><
img src
=
"
images/icn_replying_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:checkbox id
=
"
ckReplyIncludeOriginal
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserDeleteOptionsText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
><
img src
=
"
images/mail_delete_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:radiobutton id
=
"
rdoMoveToDeleted
"
runat
=
"
server
"
checked
=
"
True
"
groupname
=
"
DeleteOptions
"
></
asp:radiobutton
>&
nbsp;
<
asp:radiobutton id
=
"
rdoPurgeMessage
"
runat
=
"
server
"
groupname
=
"
DeleteOptions
"
></
asp:radiobutton
><
img height
=
"
5
"
alt
=
""
src
=
"
images/sp.gif
"
width
=
"
40
"
border
=
"
0
"
>
<
asp:checkbox id
=
"
ckConfirmBeforeDelete
"
runat
=
"
server
"
checked
=
"
True
"
></
asp:checkbox
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserAutoResponderText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
rowspan
=
"
4
"
><
img src
=
"
images/icn_autoresponder_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:label id
=
"
lblUserFolderText
"
runat
=
"
server
"
></
asp:label
><
asp:dropdownlist runat
=
"
server
"
id
=
"
drpAutoRespondFolder
"
></
asp:dropdownlist
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
>
<
asp:checkbox id
=
"
ckAutoRespondEnable
"
runat
=
"
server
"
text
=
"
Enable
"
></
asp:checkbox
>
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:label id
=
"
lblUserAfterRespondingText
"
runat
=
"
server
"
></
asp:label
><
input id
=
"
txtAutoRespondForwardTo
"
type
=
"
text
"
size
=
"
50
"
name
=
"
txtAutoRespondForwardTo
"
runat
=
"
server
"
></
td
>
</
tr
>
<
tr
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
><
asp:label id
=
"
lblUserMessageText
"
runat
=
"
server
"
font
-
bold
=
"
True
"
></
asp:label
><
br
>
<
textarea id
=
"
txtAutoResponderMessage
"
name
=
"
txtAutoResponderMessage
"
runat
=
"
server
"
></
textarea
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserSignatureText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
><
img src
=
"
images/icn_signature_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td colspan
=
"
2
"
><
textarea id
=
"
txtSignature
"
name
=
"
txtSignature
"
runat
=
"
server
"
></
textarea
></
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
3
"
>&
nbsp;
</
td
>
</
tr
>
<
tr
>
<
td class
=
"
header3Cell
"
colspan
=
"
3
"
><
asp:label id
=
"
lblUserVacationMsgText
"
runat
=
"
server
"
></
asp:label
></
td
>
</
tr
>
<
tr
>
<
td valign
=
"
top
"
width
=
"
40
"
rowspan
=
"
2
"
><
img src
=
"
images/icn_vacation_24.gif
"
align
=
"
absMiddle
"
></
td
>
<
td class
=
"
contentLabelCell
"
colspan
=
"
2
"
>
<
asp:checkbox id
=
"
ckVacationMessageEnable
"
runat
=
"
server
"
></
asp:checkbox
>
</
td
>
</
tr
>
<
tr
>
<
td colspan
=
"
2
"
><
textarea id
=
"
txtVacationMessage
"
name
=
"
txtVacationMessage
"
runat
=
"
server
"
></
textarea
></
td
>
</
tr
>
</
table
>
</
div
>
</
form
>
<
script type
=
"
text/javascript
"
>
AutoResponderClick();
UnTransformName();
</
script
>
</
body
>
</
html
>