<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxform_dhx_blue.css">
<link rel="stylesheet" type="text/css" href="../../../dhtmlxWindows/codebase/dhtmlxwindows.css">
<link rel="stylesheet" type="text/css" href="../../../dhtmlxWindows/codebase/skins/dhtmlxwindows_dhx_blue.css">
<script src="../../../dhtmlxWindows/codebase/dhtmlxcommon.js"></script>
<script src="../../../dhtmlxWindows/codebase/dhtmlxcontainer.js"></script>
<script src="../../../dhtmlxWindows/codebase/dhtmlxwindows.js"></script>
<link rel="stylesheet" type="text/css" href="../../../dhtmlxTabbar/codebase/dhtmlxtabbar.css">
<script src="../../../dhtmlxTabbar/codebase/dhtmlxtabbar.js"></script>
<link rel="stylesheet" type="text/css" href="../../../dhtmlxToolbar/codebase/skins/dhtmlxtoolbar_dhx_blue.css">
<script src="../../../dhtmlxToolbar/codebase/dhtmlxtoolbar.js"></script>
<script src="../../codebase/dhtmlxform.js"></script>
<style>
.dhx_toolbar_base_dhx_blue {
background-image:url("../../../dhtmlxToolbar/codebase/imgs/dhxtoolbar_dhx_blue/dhxtoolbar_bg_layoutcell.gif") !important;
}
</style>
<style>
html, body {
width: 100%;
height: 100%;
margin: 0px;
overflow: hidden;
}
div#a1,div#a2,div#a3,div#a4 {
width: 100%;
height: 100%;
overflow: auto;
}
p {
font-family: Tahoma;
font-size: 12px;
font-weight: bold;
color: #4D84B3;
margin: 0px;
padding: 10px;
}
</style>
<script>var dhxWins,
w1,
tabbar,
dhxList,
dhxList2;
function doOnLoad() {
dhxWins = new dhtmlXWindows();
dhxWins.setSkin("dhx_blue");
dhxWins.setImagePath("../../../dhtmlxWindows/codebase/imgs/");
w1 = dhxWins.createWindow("w1", 10, 10, 420, 370);
w1.setText("Preferences");
tabbar = w1.attachTabbar();
tabbar.setImagePath("../../../dhtmlxTabbar/codebase/imgs/");
tabbar.addTab("a1", "General", 100);
tabbar.addTab("a2", "Update", 100);
tabbar.addTab("a3", "Encryption", 100);
tabbar.setTabActive("a1");
var toolbar = tabbar.cells("a1").attachToolbar();
toolbar.setIconsPath("../../../dhtmlxToolbar/samples/common/imgs/");
toolbar.loadXML("../../../dhtmlxToolbar/samples/common/dhxtoolbar_button.xml");
dhxList = tabbar.cells("a1").attachForm(a1Data);
dhxList2 = tabbar.cells("a2").attachForm(a2Data);
dhxList3 = tabbar.cells("a3").attachForm(a3Data);
}
var a1Data = [{
type: "label",
label: "Accessbility"
}, {
type: "checkbox",
label: "Always use the cursor keys to navigate within pages"
}, {
type: "checkbox",
label: "Search for text when I start typing"
}, {
type: "checkbox",
label: "Warn me when sew sites try to redirect or reload the page",
checked: true
}, {
type: "label",
label: "Browsing"
}, {
type: "checkbox",
label: "Use autoscrolling",
checked: true
}, {
type: "checkbox",
label: "Use smooth scrolling",
checked: true
}, {
type: "checkbox",
label: "Check my spell as I type"
}, {
type: "label",
label: "System Defaults"
}, {
type: "checkbox",
label: "Always check to see if Firefox is the default browser on startup",
checked: true
}, {
type: "button",
value: "Save Changes"
}];
var a2Data = [{
type: "label",
label: "Automaticaly check for updates to:"
}, {
type: "checkbox",
label: "Firefox",
checked: true
}, {
type: "checkbox",
label: "Installed Add-ons",
checked: true
}, {
type: "checkbox",
label: "Search Engines"
}, {
type: "label",
label: "When updates to Firefox are found:"
}, {
type: "radio",
name: "todo",
label: "Ask me what I want to do",
checked: true
}, {
type: "radio",
name: "todo",
label: "Automatically download and install the update",
list: [{
type: "checkbox",
label: "Warn me if this will disable any of my add-ons",
checked: true
}]
}, {
type: "button",
value: "Save Changes"
}];
var a3Data = [{
type: "label",
label: "Protocols"
}, {
type: "checkbox",
label: "Use SSL 3.0",
checked: true
}, {
type: "checkbox",
label: "Use TLS 1.0",
checked: true
}, {
type: "label",
label: "When a server requires my personal certificate:"
}, {
type: "radio",
name: "cert",
label: "Select one automatically"
}, {
type: "radio",
name: "cert",
label: "Ask me every time",
checked: true
}, {
type: "button",
value: "Save Changes"
}];
dhtmlxEvent(window, "load", function() {
doOnLoad();
});
</script>