Last change
on this file since 608 was
467,
checked in by gocher, 14 years ago
|
New Plugin to set the ID and Name
|
File size:
1.4 KB
|
Rev | Line | |
---|
[467] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <title>Set Id/Name</title> |
---|
| 4 | <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" /> |
---|
| 5 | <script type="text/javascript" src="../../../popups/popup.js"></script> |
---|
| 6 | <script type="text/javascript"> |
---|
| 7 | |
---|
| 8 | function Init() { |
---|
| 9 | __dlg_translate("SetId"); |
---|
| 10 | __dlg_init(); |
---|
| 11 | var param = window.dialogArguments; |
---|
| 12 | if (param) { |
---|
| 13 | document.getElementById("name").value = param["name"]; |
---|
| 14 | } |
---|
| 15 | document.getElementById("name").focus(); |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | function onOK() { |
---|
| 19 | // pass data back to the calling window |
---|
| 20 | var param = new Object(); |
---|
| 21 | param["name"] = document.getElementById("name").value; |
---|
| 22 | __dlg_close(param); |
---|
| 23 | return false; |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | function onDelete() { |
---|
| 27 | // pass data back to the calling window |
---|
| 28 | var param = new Object(); |
---|
| 29 | param["name"] = ""; |
---|
| 30 | __dlg_close(param); |
---|
| 31 | return false; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | function onCancel() { |
---|
| 35 | __dlg_close(null); |
---|
| 36 | return false; |
---|
| 37 | } |
---|
| 38 | </script> |
---|
| 39 | </head> |
---|
| 40 | |
---|
| 41 | <body class="dialog" onload="Init()"> |
---|
| 42 | <div class="title">Set ID/Name</div> |
---|
| 43 | <form> |
---|
| 44 | <table border="0" style="width: 300px;"> |
---|
| 45 | <tr> |
---|
| 46 | <td class="label">ID/Name:</td> |
---|
| 47 | <td><input type="text" id="name" style="width: 200px" /></td> |
---|
| 48 | </tr> |
---|
| 49 | </table> |
---|
| 50 | |
---|
| 51 | <div id="buttons"> |
---|
| 52 | <button type="submit" name="ok" onclick="return onOK();">OK</button> |
---|
| 53 | <button type="button" name="delete" onclick="return onDelete();">Delete</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.