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

Last change on this file since 967 was 854, checked in by gocher, 13 years ago

change htmlarea to Xinha in plugin Forms and some formating

  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
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  __dlg_translate("Forms");
13  __dlg_init(null,{width:260, height:220});
14  var param = window.dialogArguments;
15  for (var i in fields) {
16    document.getElementById(fields[i]).value = param[fields[i]];
17  }
18  document.getElementById("f_text").focus();
19}
20
21function onOK() {
22  // pass data back to the calling window
23    // pass data back to the calling window
24  var param = new Object();
25  for (var i in fields) {
26    param[fields[i]] = document.getElementById(fields[i]).value;
27  }
28  __dlg_close(param);
29  return false;
30}
31
32function onCancel() {
33  __dlg_close(null);
34  return false;
35}
36
37</script>
38</head>
39
40<body class="dialog" onload="Init()">
41  <div id="f_type" class="title">Form Element: LABEL</div>
42  <form action="" method="get">
43    <div class="fr">Text:</div>
44    <input type="text" name="text" id="f_text" />
45    <p />
46    <div class="fr">For Control:</div>
47    <input type="text" name="for" id="f_for" />
48    <p />
49    <div class="fr">Access Key:</div>
50    <input type="text" name="accesskey" id="f_accesskey" />
51    <p />
52    <div id="buttons">
53      <button type="button" name="ok" onclick="return onOK();">OK</button>
54      <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
55    </div>
56  </form>
57</body>
58</html>
Note: See TracBrowser for help on using the repository browser.