source: trunk/plugins/Forms/popups/label.html @ 236

Last change on this file since 236 was 236, checked in by gocher, 14 years ago

new elements for plugin forms
file, fieldset, label

and for existing elements more attributes

File size: 1.5 KB
Line 
1<html>
2
3<head>
4  <title>Insert/Edit Form Element LABEL</title>
5  <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
6  <script type="text/javascript" src="../../../popups/popup.js"></script>
7
8<script type="text/javascript">
9var fields = ["f_text","f_for","f_accesskey"];
10
11function Init() {
12        window.resizeTo(350,320);
13  __dlg_translate("Forms");
14        __dlg_init();
15        var param = window.dialogArguments;
16  for (var i in fields) {
17    document.getElementById(fields[i]).value = param[fields[i]];
18  }
19  document.getElementById("f_text").focus();
20};
21
22function onOK() {
23        // pass data back to the calling window
24    // pass data back to the calling window
25  var param = new Object();
26  for (var i in fields) {
27    param[fields[i]] = document.getElementById(fields[i]).value;
28  }
29        __dlg_close(param);
30  return false;
31};
32
33function onCancel() {
34        __dlg_close(null);
35        return false;
36};
37
38</script>
39</head>
40
41<body onload="Init()">
42  <div id="f_type" class="title">Form Element: LABEL</div>
43  <form action="" method="get">
44    <div class="fr">Text:</div>
45    <input type="text" name="text" id="f_text" />
46    <p />
47    <div class="fr">For Control:</div>
48    <input type="text" name="for" id="f_for" />
49    <p />
50    <div class="fr">Access Key:</div>
51    <input type="text" name="accesskey" id="f_accesskey" />
52    <p />
53    <div id="buttons">
54      <button type="button" name="ok" onclick="return onOK();">OK</button>
55      <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
56    </div>     
57  </form>
58</body>
59</html>
Note: See TracBrowser for help on using the repository browser.