[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 authored at 2024-08-09 00:30:41 石头 committed at 2024-08-10 14:22:24
1.57 KiB
X
<html>
<head>
<meta http-equiv="content-type" content="text/xml; charset=utf-8" />
<title>My97DatePicker</title>
<script type="text/javascript" src="<%= WebResource("XControl.TextBox.DateTimePicker.config.js") %>"></script>
<script type="text/javascript" language="javascript">
//if (parent == window) location.href = 'http://www.my97.net';
var $d, $dp, $pdp = parent.$dp,
    $dt, $tdt, $sdt, $IE = $pdp.ie,
    $FF = $pdp.ff,
    $OPERA = $pdp.opera,
    $ny, $cMark = false;
if ($pdp.eCont) {
    $dp = {};
    for (var p in $pdp) {
        $dp[p] = $pdp[p];
    }
} else $dp = $pdp;

$dp.getLangIndex = function (name) {
    var arr = langList;
    for (var i = 0; i < arr.length; i++) {
        if (arr[i].name == name) {
            return i;
        }
    }
    return -1;
}

$dp.getLang = function (name) {
    var index = $dp.getLangIndex(name);
    if (index == -1) {
        index = 0;
    }
    return langList[index];
}

$dp.realLang = $dp.getLang($dp.lang);
document.write("<script src='" + $dp.realLang.script + "' charset='" + $dp.realLang.charset + "'><\/script>");

for (var i = 0; i < skinList.length; i++) {
    document.write('<link rel="stylesheet" type="text/css" href="' + skinList[i].css + '" title="' + skinList[i].name + '" charset="' + skinList[i].charset + '" disabled="true"/>');
}
</script>
<script type="text/javascript" src="<%= WebResource("XControl.TextBox.DateTimePicker.calendar.js") %>"></script>
</head>
<body leftmargin="0" topmargin="0" onload="$c.autoSize()" tabindex=0>
</body>
</html>
<script>new My97DP();</script>