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

Last change on this file since 423 was 198, checked in by niko, 15 years ago

#242: show anchors on the page

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