source: trunk/plugins/Linker/dialog.html @ 29

Last change on this file since 29 was 29, checked in by gogo, 15 years ago

Add remove button - ticket:18

  • Property svn:eol-style set to native
  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 4.5 KB
Line 
1<h1 id="[h1]"><l10n>Insert/Modify Link</l10n></h1>
2<div style="position:relative">
3<div id="[dTree]">(the dTree goes in here)</div>
4<div id="[options]" >
5  <fieldset>
6    <legend><label><input type="radio" name="[type]" value="url" checked onclick="
7      document.getElementById('[urltable]').style.display=this.checked?'':'none';
8      document.getElementById('[mailtable]').style.display=this.checked?'none':'';
9    " /> <l10n>URL Link</l10n></label></legend>
10    <table id="[urltable]" width="100%">
11      <tr>
12        <th><label for="[href]"><l10n>URL:</l10n> </label></th>
13        <td><input type="text" name="[href]" style="width:100%" value="http://www.example.com/" /></td>
14      </tr>
15      <tr valign="top">
16        <th><l10n>Target:</l10n></th>
17        <td>
18          <div><label><input type="radio" name="[target]" value="" onclick="document.getElementById('[popuptable]').style.display='none';"      checked /> <l10n>Ordinary Link</l10n></label></div>
19          <div><label><input type="radio" name="[target]" value="_top" onclick="document.getElementById('[popuptable]').style.display='none';"   /> <l10n>Same Window (jump out of frames)</l10n></label></div>
20          <div><label><input type="radio" name="[target]" value="_blank" onclick="document.getElementById('[popuptable]').style.display='none';"/> <l10n>New Window</l10n> </label></div>
21          <div>
22            <label><input type="radio" name="[target]" value="popup"    onclick="document.getElementById('[popuptable]').style.display='';" /> <l10n>Popup Window</l10n> </label>
23             <div style="padding-left:10px">
24              <table id="[popuptable]">
25                <tr>
26                  <th align="left"><l10n>Size:</l10n></th>
27                  <td colspan="3"><input type="text" name="[p_width]" size="4" />x<input type="text" name="[p_height]" size="4" /> <l10n>(px)</l10n></td>
28                </tr>
29                <tr>
30                  <th align="left"><l10n>Name:</l10n></th>
31                  <td colspan="3"><input type="text" name="[p_name]" atyle="width:100%" value="_(PopupWindow)" /></td>
32                </tr>
33                <tr>
34                  <th align="left"><l10n>Menu Bar:</l10n></th>
35                  <td><input type="checkbox" name="[p_options]" value="menubar=yes" /></td>
36
37                  <th align="left"><l10n>Toolbar:</l10n></th>
38                  <td><input type="checkbox" name="[p_options]" value="toolbar=yes" checked /></td>
39                </tr>
40                <tr>
41                  <th align="left"><l10n>Location Bar:</l10n></th>
42                  <td><input type="checkbox" name="[p_options]" value="location=yes" /></td>
43
44                  <th align="left"><l10n>Status Bar:</l10n></th>
45                  <td><input type="checkbox" name="[p_options]" value="status=yes"   /></td>
46                </tr>
47                <tr>
48                  <th align="left"><l10n>Scrollbars:</l10n></th>
49                  <td><input type="checkbox" name="[p_options]" value="scrollbars=yes" checked /></td>
50
51                  <th align="left"><l10n>Resizeable:</l10n></th>
52                  <td><input type="checkbox" name="[p_options]" value="resizeable=yes" checked /></td>
53                </tr>
54              </table>
55            </div>
56          </div>
57        </td>
58      </tr>
59    </table>
60  </fieldset>
61  <fieldset>
62    <legend><label><input type="radio" name="[type]" value="mailto" onclick="
63      document.getElementById('[mailtable]').style.display=this.checked?'':'none';
64      document.getElementById('[urltable]').style.display=this.checked?'none':'';
65    "/> <l10n>Email Link</l10n></label></legend>
66    <table id="[mailtable]" width="100%">
67      <tr>
68        <th><label for="[to]"><l10n>Email Address:</l10n> </label></th>
69        <td><input type="text" name="[to]" style="width:100%" value="alice@example.com" /></td>
70      </tr>
71      <tr>
72        <th><label for="[subject]"><l10n>Subject:</l10n> </label></th>
73        <td><input type="text" name="[subject]" style="width:100%" value="" /></td>
74      </tr>
75      <tr>
76        <th><label for="[body]"><l10n>Message Template:</l10n> </label></th>
77        <td><textarea name="[body]" style="width:100%" rows="5"></textarea></td>
78      </tr>
79    </table>
80  </fieldset>
81  <div style="text-align:right">
82    <input type="button" id="[ok]"     value="_(OK)"     />
83    <input type="button" id="[clear]"  value="_(REMOVE LINK)" onclick="this.form['[href]'].value='';this.form['[to]'].value='';document.getElementById('[ok]').click();" />
84    <input type="button" id="[cancel]" value="_(CANCEL)" />
85  </div>
86</div>
87</div>
Note: See TracBrowser for help on using the repository browser.