mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
73 lines
2.5 KiB
HTML
73 lines
2.5 KiB
HTML
<html>
|
|
<head>
|
|
<title>ET2 - Test</title>
|
|
|
|
<script src="jquery.js"></script>
|
|
<script src="../et2_xml.js"></script>
|
|
<script src="../et2_inheritance.js"></script>
|
|
<script src="../et2_common.js"></script>
|
|
<script src="../et2_widget.js"></script>
|
|
<script src="../et2_DOMWidget.js"></script>
|
|
<script src="../et2_baseWidget.js"></script>
|
|
<script src="../et2_inputWidget.js"></script>
|
|
<script src="../et2_template.js"></script>
|
|
<script src="../et2_description.js"></script>
|
|
<script src="../et2_grid.js"></script>
|
|
<script src="../et2_button.js"></script>
|
|
<script src="../et2_box.js"></script>
|
|
<script src="../et2_textbox.js"></script>
|
|
<script src="../et2_contentArrayMgr.js"></script>
|
|
<!--<script src="../et2_tabs.js"></script>-->
|
|
<script src="../lib/tooltip.js"></script>
|
|
|
|
<script src="et2_test_timesheet_edit.json"></script>
|
|
<script src="et2_test_expressions.json"></script>
|
|
<link rel="StyleSheet" type="text/css" href="./test.css" />
|
|
</head>
|
|
<body>
|
|
<h1>EGroupware ETemplate2 Test</h1>
|
|
<div class="header">Choose one of the following tests:</div>
|
|
<div id="linklist">
|
|
<a href="#" onclick="open_xet('et2_test_timesheet_edit.xet', timesheet_data.content);">Timesheet edit dialog</a>
|
|
<a href="#" onclick="open_xet('et2_test_template.xet');">Template proxy test</a>
|
|
<a href="#" onclick="open_xet('et2_test_grid.xet');">Grid test</a>
|
|
<a href="#" onclick="open_xet('et2_test_tabbox.xet');">Tabs test</a>
|
|
<a href="#" onclick="open_xet('et2_test_textbox.xet');">Textbox test</a>
|
|
<a href="#" onclick="open_xet('et2_test_description.xet');">Description test</a>
|
|
<a href="#" onclick="open_xet('et2_test_expressions.xet', expression_test_data);">Expression test</a>
|
|
</div>
|
|
<div class="header">ETemplate2 container:</div>
|
|
<div id="time"></div>
|
|
<div id="container"></div>
|
|
<script>
|
|
var container = null;
|
|
|
|
function open_xet(file, content) {
|
|
if (typeof content == "undefined")
|
|
{
|
|
content = {};
|
|
}
|
|
|
|
et2_loadXMLFromURL(file,
|
|
function(_xmldoc) {
|
|
if (container != null)
|
|
{
|
|
container.destroy();
|
|
container = null;
|
|
}
|
|
|
|
var t1 = (new Date).getTime();
|
|
|
|
container = new et2_container(null);
|
|
container.setParentDOMNode(document.getElementById("container"));
|
|
container.setContentMgr(new et2_contentArrayMgr(content));
|
|
container.loadFromXML(_xmldoc);
|
|
|
|
var t2 = (new Date).getTime();
|
|
$j("#time").text("Building the template took " + (t2 - t1) + "ms");
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|