Import xinha so we can switch from htmlarea and fix a bunch of in-browser issues that htmlarea has
This commit is contained in:
59
xinha/plugins/Forms/popups/label.html
Normal file
59
xinha/plugins/Forms/popups/label.html
Normal file
@@ -0,0 +1,59 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Insert/Edit Form Element LABEL</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
|
||||
<script type="text/javascript" src="../../../popups/popup.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
var fields = ["f_text","f_for","f_accesskey"];
|
||||
|
||||
function Init() {
|
||||
window.resizeTo(350,320);
|
||||
__dlg_translate("Forms");
|
||||
__dlg_init();
|
||||
var param = window.dialogArguments;
|
||||
for (var i in fields) {
|
||||
document.getElementById(fields[i]).value = param[fields[i]];
|
||||
}
|
||||
document.getElementById("f_text").focus();
|
||||
};
|
||||
|
||||
function onOK() {
|
||||
// pass data back to the calling window
|
||||
// pass data back to the calling window
|
||||
var param = new Object();
|
||||
for (var i in fields) {
|
||||
param[fields[i]] = document.getElementById(fields[i]).value;
|
||||
}
|
||||
__dlg_close(param);
|
||||
return false;
|
||||
};
|
||||
|
||||
function onCancel() {
|
||||
__dlg_close(null);
|
||||
return false;
|
||||
};
|
||||
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body class="dialog" onload="Init()">
|
||||
<div id="f_type" class="title">Form Element: LABEL</div>
|
||||
<form action="" method="get">
|
||||
<div class="fr">Text:</div>
|
||||
<input type="text" name="text" id="f_text" />
|
||||
<p />
|
||||
<div class="fr">For Control:</div>
|
||||
<input type="text" name="for" id="f_for" />
|
||||
<p />
|
||||
<div class="fr">Access Key:</div>
|
||||
<input type="text" name="accesskey" id="f_accesskey" />
|
||||
<p />
|
||||
<div id="buttons">
|
||||
<button type="button" name="ok" onclick="return onOK();">OK</button>
|
||||
<button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user