Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 367a5674

Von Moritz Bunkus vor etwa 17 Jahren hinzugefügt

  • ID 367a5674dc94bc2b5a8bfdcf4fcccc7668f219b3
  • Vorgänger e45f8b12
  • Nachfolger 174fe30e

Umstellung der HTML-Vorlagen aus templates/webpages/ic von HTML::Template auf Template.

Unterschiede anzeigen:

bin/mozilla/ic.pl
3092 3092

  
3093 3093
  $form->{"title"} = $locale->text("Language Values");
3094 3094
  $form->header();
3095
  print($form->parse_html_template("ic/parts_language_selection", { "HEADER" => \@header,
3096
                                                                   "LANGUAGES" => $languages,
3097
                                                                   "onload" => $onload }));
3095
  print $form->parse_html_template2("ic/parts_language_selection", { "HEADER"    => \@header,
3096
                                                                     "LANGUAGES" => $languages,
3097
                                                                     "onload"    => $onload });
3098 3098

  
3099 3099
  $lxdebug->leave_sub();
3100 3100
}
templates/webpages/ic/parts_language_selection_de.html
1
<body <TMPL_IF NAME=onload>onload="<TMPL_VAR NAME=onload>"</TMPL_IF>>
1
[% USE HTML %]<body onload="[% onload %]">
2 2

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

  
5
  <input type="hidden" name="input_name" value="<TMPL_VAR NAME=input_name ESCAPE=HTML>">
5
  <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
6

  
7
  <div class="listtop">[% title %]</div>
6 8

  
7 9
  <table width="100%">
8
   <tr>
9
    <th class="listtop"><TMPL_VAR NAME=title></th>
10
   </tr>
11 10
   <tr height="5"></tr>
12 11

  
13 12
   <tr><td>Bitte die ?bersetzungen unten eintragen</td></tr>
......
18 17
     <table>
19 18
      <tr class="listheading">
20 19
       <th class="listheading">&nbsp;</th>
21
       <TMPL_LOOP NAME=HEADER>
22
        <th nowrap class="listheading"><a href="<TMPL_VAR NAME=callback ESCAPE=HTML>"><TMPL_VAR NAME=column_title></a></th>
23
       </TMPL_LOOP>
20
       [%- FOREACH col = HEADER %]
21
       <th nowrap class="listheading">[% col.column_title %]</th>
22
       [%- END %]
24 23
      </tr>
25 24

  
26
      <TMPL_LOOP NAME=LANGUAGES>
27
       <tr class="listrow<TMPL_IF NAME=__odd__>1<TMPL_ELSE>0</TMPL_IF>">
28
        <td><input type="hidden" id="id_<TMPL_VAR NAME=__counter__>" name="id_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=id ESCAPE=HTML>">
29
        <TMPL_VAR NAME=description ESCAPE=HTML></td>
30

  
31
         <td><input  id="translation_<TMPL_VAR NAME=__counter__>" name="translation_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=translation ESCAPE=HTML>"></td>
32
         <td><input  id="longdescription_<TMPL_VAR NAME=__counter__>" name="longdescription_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=longdescription ESCAPE=HTML>"></td>
25
      [%- FOREACH row = LANGUAGES %]
26
      <tr class="listrow[% loop.count % 2 %]">
27
       <td><input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</td>
28
       <td><input  id="translation_[% loop.count %]" name="translation_[% loop.count %]" value="[% HTML.escape(row.translation) %]"></td>
29
       <td><input  id="longdescription_[% loop.count %]" name="longdescription_[% loop.count %]" value="[% HTML.escape(row.longdescription) %]"></td>
30
      </tr>
33 31

  
34
        </tr>
35
        <TMPL_IF NAME=__last__><input type="hidden" id="rowcount" name="rowcount" value="<TMPL_VAR NAME=__counter__>"></TMPL_IF>
36
      </TMPL_LOOP>
32
      [%- IF loop.last %]
33
      <input type="hidden" id="rowcount" name="rowcount" value="[% loop.count %]">
34
      [%- END %]
35
      [%- END %]
37 36
     </table>
38 37

  
39 38
    </td>
templates/webpages/ic/parts_language_selection_master.html
1
<body <TMPL_IF NAME=onload>onload="<TMPL_VAR NAME=onload>"</TMPL_IF>>
1
[% USE HTML %]<body onload="[% onload %]">
2 2

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

  
5
  <input type="hidden" name="input_name" value="<TMPL_VAR NAME=input_name ESCAPE=HTML>">
5
  <input type="hidden" name="input_name" value="[% HTML.escape(input_name) %]">
6

  
7
  <div class="listtop">[% title %]</div>
6 8

  
7 9
  <table width="100%">
8
   <tr>
9
    <th class="listtop"><TMPL_VAR NAME=title></th>
10
   </tr>
11 10
   <tr height="5"></tr>
12 11

  
13 12
   <tr><td><translate>Please insert your language values below</translate></td></tr>
......
18 17
     <table>
19 18
      <tr class="listheading">
20 19
       <th class="listheading">&nbsp;</th>
21
       <TMPL_LOOP NAME=HEADER>
22
        <th nowrap class="listheading"><a href="<TMPL_VAR NAME=callback ESCAPE=HTML>"><TMPL_VAR NAME=column_title></a></th>
23
       </TMPL_LOOP>
20
       [%- FOREACH col = HEADER %]
21
       <th nowrap class="listheading">[% col.column_title %]</th>
22
       [%- END %]
24 23
      </tr>
25 24

  
26
      <TMPL_LOOP NAME=LANGUAGES>
27
       <tr class="listrow<TMPL_IF NAME=__odd__>1<TMPL_ELSE>0</TMPL_IF>">
28
        <td><input type="hidden" id="id_<TMPL_VAR NAME=__counter__>" name="id_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=id ESCAPE=HTML>">
29
        <TMPL_VAR NAME=description ESCAPE=HTML></td>
30

  
31
         <td><input  id="translation_<TMPL_VAR NAME=__counter__>" name="translation_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=translation ESCAPE=HTML>"></td>
32
         <td><input  id="longdescription_<TMPL_VAR NAME=__counter__>" name="longdescription_<TMPL_VAR NAME=__counter__>" value="<TMPL_VAR NAME=longdescription ESCAPE=HTML>"></td>
25
      [%- FOREACH row = LANGUAGES %]
26
      <tr class="listrow[% loop.count % 2 %]">
27
       <td><input type="hidden" id="id_[% loop.count %]" name="id_[% loop.count %]" value="[% HTML.escape(row.id) %]">[% HTML.escape(row.description) %]</td>
28
       <td><input  id="translation_[% loop.count %]" name="translation_[% loop.count %]" value="[% HTML.escape(row.translation) %]"></td>
29
       <td><input  id="longdescription_[% loop.count %]" name="longdescription_[% loop.count %]" value="[% HTML.escape(row.longdescription) %]"></td>
30
      </tr>
33 31

  
34
        </tr>
35
        <TMPL_IF NAME=__last__><input type="hidden" id="rowcount" name="rowcount" value="<TMPL_VAR NAME=__counter__>"></TMPL_IF>
36
      </TMPL_LOOP>
32
      [%- IF loop.last %]
33
      <input type="hidden" id="rowcount" name="rowcount" value="[% loop.count %]">
34
      [%- END %]
35
      [%- END %]
37 36
     </table>
38 37

  
39 38
    </td>
40 39
   </tr>
41 40
  </table>
42
 <button type="button" onclick="languages_updated()"><translate>Close</translate></button></td>
41
  <button type="button" onclick="languages_updated()"><translate>Close</translate></button></td>
43 42
 </form>
44 43

  
45 44
 <script type="text/javascript">
......
56 55

  
57 56
        self.close();
58 57
      }
59
      //TESSSSST-->
58
      -->
60 59
 </script>
61 60

  
62 61
</body>

Auch abrufbar als: Unified diff