脚本说明:
把如下代码加入<body>区域中
<style>
.BODY
{
FONT-SIZE: 9pt;
}
TABLE.datatable
{
CURSOR: default;
BORDER-COLLAPSE: collapse
}
TABLE.datatable THEAD
{
FONT-SIZE: 9pt;
BACKGROUND-COLOR: #e0e0e0;
TEXT-ALIGN: center
}
TABLE.datatable TBODY
{
FONT-SIZE: 9pt
}
TABLE.datatable TFOOT
{
FONT-SIZE: 9pt;
BACKGROUND-COLOR: #e0e0e0;
TEXT-ALIGN: center
}
TABLE.datatable TR.tr1
{
BACKGROUND-COLOR: white
}
TABLE.datatable TR.tr2
{
BACKGROUND-COLOR: whitesmoke
}
TABLE.datatable TR.active_tr
{
BACKGROUND-COLOR: #e0f0ff;
}
TABLE.datatable TR.current_tr
{
BACKGROUND-COLOR: #ffebcd;
}
TABLE.datatable TD.active_cell
{
BACKGROUND-COLOR: #ffffe0;
}
TABLE.dropdowntable
{
BORDER-RIGHT: gray 1px solid;
BORDER-TOP: gray 1px solid;
BORDER-LEFT: gray 1px solid;
CURSOR: default;
BORDER-BOTTOM: gray 1px solid;
BORDER-COLLAPSE: collapse
}
TABLE.dropdowntable THEAD
{
FONT-WEIGHT: bolder;
FONT-SIZE: 9pt;
BACKGROUND-COLOR: #d7ebeb;
TEXT-ALIGN: center
}
TABLE.dropdowntable TBODY
{
FONT-SIZE: 9pt
}
TABLE.dropdowntable TFOOT
{
FONT-SIZE: 9pt;
BACKGROUND-COLOR: #d7ebeb
}
TABLE.dropdowntable TR.tr1
{
BACKGROUND-COLOR: #f0f9ff
}
TABLE.dropdowntable TR.tr2
{
BACKGROUND-COLOR: #e0f0ff
}
TABLE.dropdowntable TR.active_tr
{
BACKGROUND-COLOR: #ffebcd
}
TABLE.dropdowntable TR.current_tr
{
BACKGROUND-COLOR: #ffebcd;
}
.editor
{
FONT-SIZE: 9pt;
BORDER-RIGHT: DarkGray 1px solid;
BORDER-TOP: DarkGray 1px solid;
SCROLLBAR-FACE-COLOR: window;
SCROLLBAR-HIGHLIGHT-COLOR: lightgrey;
BORDER-LEFT: DarkGray 1px solid;
SCROLLBAR-SHADOW-COLOR: gray;
SCROLLBAR-3DLIGHT-COLOR: window;
BORDER-BOTTOM: DarkGray 1px solid;
SCROLLBAR-DARKSHADOW-COLOR: window;
}
.active_editor
{
FONT-SIZE: 9pt;
BORDER-RIGHT: #333333 1px solid;
BORDER-TOP: #333333 1px solid;
SCROLLBAR-FACE-COLOR: #f0f9ff;
SCROLLBAR-HIGHLIGHT-COLOR: lightgrey;
BORDER-LEFT: #333333 1px solid;
SCROLLBAR-SHADOW-COLOR: gray;
SCROLLBAR-3DLIGHT-COLOR: #f0f9ff;
BORDER-BOTTOM: #333333 1px solid;
SCROLLBAR-DARKSHADOW-COLOR: #f0f9ff;
BACKGROUND-COLOR: #e0f0ff;
}
.dockeditor
{
FONT-SIZE: 9pt;
BORDER-RIGHT: #333333 1px solid;
BORDER-TOP: #333333 1px solid;
SCROLLBAR-FACE-COLOR: window;
SCROLLBAR-HIGHLIGHT-COLOR: lightgrey;
BORDER-LEFT: #333333 1px solid;
SCROLLBAR-SHADOW-COLOR: gray;
SCROLLBAR-3DLIGHT-COLOR: window;
BORDER-BOTTOM: #333333 1px solid;
SCROLLBAR-DARKSHADOW-COLOR: window
}
.button
{
BORDER-RIGHT: DarkGray 1px solid;
BORDER-TOP: DarkGray 1px solid;
FONT-SIZE: 9pt;
BORDER-LEFT: DarkGray 1px solid;
CURSOR: hand;
BORDER-BOTTOM: DarkGray 1px solid;
HEIGHT: 22px;
BACKGROUND-COLOR: #d4d0c8;
}
.button_down
{
BORDER-RIGHT: #dddddd 1px solid;
BORDER-TOP: #666666 1px solid;
FONT-SIZE: 9pt;
BORDER-LEFT: #666666 1px solid;
CURSOR: hand;
BORDER-BOTTOM: #dddddd 1px solid;
HEIGHT: 22px;
BACKGROUND-COLOR: #fff1da
}
TABLE.datapilot
{
CURSOR: default;
}
TABLE.datapilot BUTTON
{
CURSOR: hand;
HEIGHT: 20px
}
.editorholder
{
}
.datascrollbar
{
CURSOR: hand;
}
TABLE.tree
{
BORDER-RIGHT: silver 1px solid;
BORDER-TOP: silver 1px solid;
BORDER-LEFT: silver 1px solid;
CURSOR: default;
BORDER-BOTTOM: silver 1px solid;
BORDER-COLLAPSE: collapse
}
TABLE.tree TBODY
{
FONT-SIZE: 9pt
}
TABLE.tree TR.tr1
{
HEIGHT: 20px;
BACKGROUND-COLOR: white
}
TABLE.tree TR.tr2
{
HEIGHT: 20px;
BACKGROUND-COLOR: white
}
TABLE.tree TR.active_tr
{
HEIGHT: 20px;
BACKGROUND-COLOR: #ffebcd
}
TABLE.tree TR.rightclick_tr
{
HEIGHT: 20px;
BACKGROUND-COLOR: #e0f0ff
}
TABLE.tree BUTTON
{
BORDER-RIGHT: gray 1px solid;
BORDER-TOP: gray 1px solid;
MARGIN-BOTTOM: 2px;
BORDER-LEFT: gray 1px solid;
WIDTH: 11px;
CURSOR: hand;
MARGIN-RIGHT: 3px;
BORDER-BOTTOM: gray 1px solid;
HEIGHT: 15px
}
TABLE.tree IMG
{
MARGIN-RIGHT: 2px
}
.fieldlabel
{
font-size:9pt;
}
.datalabel
{
font-size:9pt;
}
.tabpage
{
border-bottom: gray 1px solid;
font-size:9pt;
cursor: default;
}
#CalendarTable
{
BORDER-COLLAPSE: collapse;
BORDER-RIGHT: gray 1px solid;
BORDER-TOP: gray 1px solid;
FONT-SIZE: 9pt;
BORDER-LEFT: gray 1px solid;
BORDER-BOTTOM: gray 1px solid;
CURSOR: default
}
#CalendarTable .calendar_title
{
BACKGROUND-COLOR: #e4e4e4;
}
#CalendarTable .calendar_footer
{
BACKGROUND-COLOR: #e4e4e4;
}
#CalendarTable .calendar_week
{
BACKGROUND-COLOR: #e4e4e4;
}
#CalendarTable .calendar_data
{
BACKGROUND-COLOR: #f0f9ff;
}
.title1
{
HEIGHT: 26;
FONT-WEIGHT: bold;
FONT-SIZE: 10pt;
COLOR: #2f2f2f;
MARGIN-BOTTOM: 4pt;
filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=silver, EndColorStr=white)
}
.title2
{
HEIGHT: 20;
BACKGROUND-COLOR: #d4d0c8;
BORDER-RIGHT: 1px outset;
BORDER-TOP: 1px outset;
MARGIN-BOTTOM: 2px;
BORDER-LEFT: 1px outset;
BORDER-BOTTOM: 1px outset;
BORDER-COLLAPSE: collapse;
FONT-SIZE: 9pt
}
.footer1
{
BACKGROUND-COLOR: white;
MARGIN-BOTTOM: 2pt;
}
DIV
{
SCROLLBAR-FACE-COLOR: Gainsboro;
SCROLLBAR-HIGHLIGHT-COLOR: gray;
SCROLLBAR-SHADOW-COLOR: gray;
SCROLLBAR-3DLIGHT-COLOR: Gainsboro;
SCROLLBAR-DARKSHADOW-COLOR: Gainsboro;
SCROLLBAR-ARROW-COLOR: gray;
}
</style>
<script language="javascript">
<!--
//---- General Setting ----
var xForm_Library_path = "/xform/_xForm_Library/";
var showSubmitCommand = false;
var disableSystemContextMenu = false;
//---- String Table ----
var constErrType = "错误类型";
var constErrDescription = "错误描述";
var constErrUnknown = "未知错误!";
var constErrDataType = "数据超长或类型不匹配!";
var constErrKeyViolence = "主键或外键约束错误!";
var constErrUnsupportBrowse = "由于您使用的不是 Microsoft Internet Explorer 5.0 或更高版本的浏览器,您将无法获得本页面正确的显示结果!\n本页面中使用的 xForm 技术推荐您使用 Microsoft Internet Explorer 5.5 或更高版本的浏览器,以获得最佳的运行效果。";
var constErrDownLoadFailed = "下载数据失败!";
var constErrUpdateFailed = "保存数据失败!";
var constErrAddDataField = "您不能对已完成初始化的记录集添加字段!";
var constErrEmptyFieldName = "字段名不能为空!";
var constErrCantFindMasterField = "主表字段%s不存在!";
var constErrCantFindDetailField = "从表字段%s不存在!";
var constErrLoadPageOnDetailDataset = "已建立主从绑定的从表记录集不能执行分批下载!";
var constErrLoadPageAfterSort = "已进行客户端排序的记录集不能执行分批下载!";
var constErrFieldValueRequired = "字段[%s]的内容不能为空!";
var constErrKeyFieldRequired = "没有定义主键字段!";
var constErrUpdateFieldRequired = "没有可更新的字段!";
var constErrTypeInt = "您输入的值[%s]不是一个有效的整数!";
var constErrTypeNumber = "您输入的值[%s]不是一个有效的数字!";
var constErrTypeDate = "您输入的值[%s]不是一个有效的日期型值!";
var constErrTypeDateTime = "您输入的值[%s]不是一个有效的日期+时间型值!";
var constErrTypeTime = "您输入的值[%s]不是一个有效的时间型值!";
var constErrOutOfDropDownList = "您输入了无效的值!";
var constErrNoCurrentRecord = "由于记录集没有当前记录而无法修改字段值!";
var constDatasetConfirmCancel = "您确定要撤消对当前记录的修改吗?";
var constDatasetConfirmDelete = "您确定要删除当前记录吗?";
var constDatasetMoveFirst = "移动到第一条记录";
var constDatasetPrevPage = "向前翻页";
var constDatasetMovePrev = "移动到上一条记录";
var constDatasetMoveNext = "移动到下一条记录";
var constDatasetNextPage ="向后翻页";
var constDatasetMoveLast = "移动到最后一条记录";
var