Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 27852f0e

Von Moritz Bunkus vor mehr als 17 Jahren hinzugefügt

  • ID 27852f0e1c726ea1610b5349c2f064cae2c3470c
  • Vorgänger 4d983050
  • Nachfolger fec09045

Kosmetik: Anordnung der Zeilen etwas verändert; Betreffsfeld vergrößert; Button etwas eindeutiger benannt.

Unterschiede anzeigen:

templates/webpages/dunning/set_email_de.html
1 1
<body <TMPL_IF NAME=onload>onload="<TMPL_VAR NAME=onload>"</TMPL_IF>>
2 2

  
3
 <script type="text/javascript">
4
  <!--
5
      function email_updated() {
6
        window.opener.document.getElementsByName(document.Form.input_subject.value)[0].value = document.getElementsByName("email_subject")[0].value;
7
        window.opener.document.getElementsByName(document.Form.input_body.value)[0].value = document.getElementsByName("email_body")[0].value;
8
        window.opener.document.getElementsByName(document.Form.input_attachment.value)[0].value = document.getElementsByName("email_attachment")[0].value;        self.close();
9
      }
10
    -->
11
 </script>
12

  
3 13
 <form name="Form">
4 14

  
5
  <input type="hidden" name="input_subject" value="<TMPL_VAR NAME=input_subject ESCAPE=HTML>">
6
  <input type="hidden" name="input_body" value="<TMPL_VAR NAME=input_body ESCAPE=HTML>">
7
  <input type="hidden" name="input_attachment" value="<TMPL_VAR NAME=input_attachment ESCAPE=HTML>">
15
  <input type="hidden" name="input_subject" value="<TMPL_VAR input_subject ESCAPE=HTML>">
16
  <input type="hidden" name="input_body" value="<TMPL_VAR input_body ESCAPE=HTML>">
17
  <input type="hidden" name="input_attachment" value="<TMPL_VAR input_attachment ESCAPE=HTML>">
18

  
19
  <div class="listtop" width="100%"><TMPL_VAR title></div>
8 20

  
9 21
  <table width="100%">
10 22
   <tr>
11
    <th colspan=2 class="listtop"><TMPL_VAR NAME=title></th>
23
    <td valign="top">Betreff:</td>
24
    <td valign="top"><input id="email_subject" name="email_subject" size="40" value="<TMPL_VAR email_subject ESCAPE=HTML>"></td>
12 25
   </tr>
26

  
13 27
   <tr>
14
    <td>Betreff:</td>
15
    <td><input id="email_subject" name="email_subject" value="<TMPL_VAR NAME=email_subject ESCAPE=HTML>">
16
    </td>
28
    <td valign="top">Text:</td>
29
    <td valign="top"><textarea id="email_body" name="email_body" rows="20" cols="70" wrap="soft"><TMPL_VAR email_body ESCAPE=HTML></textarea></td>
17 30
   </tr>
18
   <tr>
19
    <td>Text:</td>
20
    <td>
21
<textarea id="email_body" name="email_body" rows=20 cols=70 wrap=soft><TMPL_VAR NAME=email_body ESCAPE=HTML></textarea>
22 31

  
23
    </td>
24
   </tr>
25 32
   <tr>
26
    <td>PDF anh?ngen</td>
27
    <td><input id="email_attachment" type=checkbox name="email_attachment" value=1 "<TMPL_VAR NAME=email_attachment ESCAPE=HTML>">
28
    </td>
29
    </tr>
33
    <td valign="top">PDF anh?ngen</td>
34
    <td valign="top"><input id="email_attachment" type="checkbox" name="email_attachment" value="1" "<TMPL_VAR email_attachment ESCAPE=HTML>"></td>
35
   </tr>
30 36
  </table>
31
 <button type="button" onclick="email_updated()">?bernehmen</button></td>
32
 </form>
33 37

  
34
 <script type="text/javascript">
35
  <!--
36
      function email_updated() {
37
        window.opener.document.getElementsByName(document.Form.input_subject.value)[0].value = document.getElementsByName("email_subject")[0].value;
38
        window.opener.document.getElementsByName(document.Form.input_body.value)[0].value = document.getElementsByName("email_body")[0].value;
39
        window.opener.document.getElementsByName(document.Form.input_attachment.value)[0].value = document.getElementsByName("email_attachment")[0].value;        self.close();
40
      }
41
 </script>
38
  <button type="button" onclick="email_updated()">Speichern und schlie&szlig;en</button>
42 39

  
40
 </form>
43 41
</body>
44 42
</html>
templates/webpages/dunning/set_email_master.html
1 1
<body <TMPL_IF NAME=onload>onload="<TMPL_VAR NAME=onload>"</TMPL_IF>>
2 2

  
3
 <script type="text/javascript">
4
  <!--
5
      function email_updated() {
6
        window.opener.document.getElementsByName(document.Form.input_subject.value)[0].value = document.getElementsByName("email_subject")[0].value;
7
        window.opener.document.getElementsByName(document.Form.input_body.value)[0].value = document.getElementsByName("email_body")[0].value;
8
        window.opener.document.getElementsByName(document.Form.input_attachment.value)[0].value = document.getElementsByName("email_attachment")[0].value;        self.close();
9
      }
10
    -->
11
 </script>
12

  
3 13
 <form name="Form">
4 14

  
5
  <input type="hidden" name="input_subject" value="<TMPL_VAR NAME=input_subject ESCAPE=HTML>">
6
  <input type="hidden" name="input_body" value="<TMPL_VAR NAME=input_body ESCAPE=HTML>">
7
  <input type="hidden" name="input_attachment" value="<TMPL_VAR NAME=input_attachment ESCAPE=HTML>">
15
  <input type="hidden" name="input_subject" value="<TMPL_VAR input_subject ESCAPE=HTML>">
16
  <input type="hidden" name="input_body" value="<TMPL_VAR input_body ESCAPE=HTML>">
17
  <input type="hidden" name="input_attachment" value="<TMPL_VAR input_attachment ESCAPE=HTML>">
18

  
19
  <div class="listtop" width="100%"><TMPL_VAR title></div>
8 20

  
9 21
  <table width="100%">
10 22
   <tr>
11
    <th colspan=2 class="listtop"><TMPL_VAR NAME=title></th>
23
    <td valign="top"><translate>Subject:</translate></td>
24
    <td valign="top"><input id="email_subject" name="email_subject" size="40" value="<TMPL_VAR email_subject ESCAPE=HTML>"></td>
12 25
   </tr>
26

  
13 27
   <tr>
14
    <td><translate>Subject:</translate></td>
15
    <td><input id="email_subject" name="email_subject" value="<TMPL_VAR NAME=email_subject ESCAPE=HTML>">
16
    </td>
28
    <td valign="top"><translate>Body:</translate></td>
29
    <td valign="top"><textarea id="email_body" name="email_body" rows="20" cols="70" wrap="soft"><TMPL_VAR email_body ESCAPE=HTML></textarea></td>
17 30
   </tr>
18
   <tr>
19
    <td><translate>Body:</translate></td>
20
    <td>
21
<textarea id="email_body" name="email_body" rows=20 cols=70 wrap=soft><TMPL_VAR NAME=email_body ESCAPE=HTML></textarea>
22 31

  
23
    </td>
24
   </tr>
25 32
   <tr>
26
    <td><translate>Attach PDF:</translate></td>
27
    <td><input id="email_attachment" type=checkbox name="email_attachment" value=1 "<TMPL_VAR NAME=email_attachment ESCAPE=HTML>">
28
    </td>
29
    </tr>
33
    <td valign="top"><translate>Attach PDF:</translate></td>
34
    <td valign="top"><input id="email_attachment" type="checkbox" name="email_attachment" value="1" "<TMPL_VAR email_attachment ESCAPE=HTML>"></td>
35
   </tr>
30 36
  </table>
31
 <button type="button" onclick="email_updated()"><translate>Close</translate></button></td>
32
 </form>
33 37

  
34
 <script type="text/javascript">
35
  <!--
36
      function email_updated() {
37
        window.opener.document.getElementsByName(document.Form.input_subject.value)[0].value = document.getElementsByName("email_subject")[0].value;
38
        window.opener.document.getElementsByName(document.Form.input_body.value)[0].value = document.getElementsByName("email_body")[0].value;
39
        window.opener.document.getElementsByName(document.Form.input_attachment.value)[0].value = document.getElementsByName("email_attachment")[0].value;        self.close();
40
      }
41
 </script>
38
  <button type="button" onclick="email_updated()"><translate>Save and close</translate></button>
42 39

  
40
 </form>
43 41
</body>
44 42
</html>

Auch abrufbar als: Unified diff