Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0bb4cd20

Von Sven Schöling vor fast 13 Jahren hinzugefügt

  • ID 0bb4cd20cd1b1de4c2b73f95119d116b9427807a
  • Vorgänger b3c4ebb0
  • Nachfolger b498a393

html strict: table layout.

2 einfache regeln:
1. table > tr > td in dieser Reihenfolge muss auch korrekt wieder zu gemacht werden.
2. tr darf als Kindelemente nur und ausschließlich td und th haben. Keine hiddens, kein anderer Schnickschnack.

Unterschiede anzeigen:

templates/webpages/is/_payments.html
33 33
  [% SET paid          = 'paid_'          _ i %]
34 34
  [% SET AR_paid       = 'AR_paid_'       _ i %]
35 35
  [% SET selectAR_paid_ref = 'selectAR_paid_' _ i %]
36

  
37
     <input type=hidden name="acc_trans_id_[% i %]" value=[% $acc_trans_id %]>
38
     <input type=hidden name="gldate_[% i %]" value=[% $gldate %]>
36
     <tr style='display:none'>
37
       <td>
38
         <input type=hidden name="acc_trans_id_[% i %]" value="[% $acc_trans_id %]">
39
         <input type=hidden name="gldate_[% i %]" value="[% $gldate %]">
40
       </td>
41
     </tr>
39 42

  
40 43
     <tr>
41 44
     <td align="center">
......
99 102

  
100 103
    </tr>
101 104
  [% IF $changeable %]
105
    <tr style='display:none'>
106
     <td>
102 107
    <script type='text/javascript'>
103 108
     Calendar.setup({ inputField : "datepaid_[% i %]", ifFormat :"[% myconfig_jsc_dateformat %]", align : "TR", button : "trigger_datepaid_[% i %]" });
104 109
     $('input[name="paid_[% i %]"]').blur(function(){ check_right_number_format(this) });
105 110
     $('#datepaid_[% i %]').blur(function(){ check_right_date_format(this) });
106 111
    </script>
112
     </td>
113
    </tr>
107 114
  [% END %]
108 115

  
109 116
[% END # foreach %]
......
120 127
      <td align="center">[%- 'Missing amount' | $T8 %]</td>
121 128
      <td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td>
122 129
    </tr>
123

  
130
    <tr style='display:none'>
131
     <td>
124 132
     <input type="hidden" name="paidaccounts" value="[% paidaccounts %]">
125 133
     <input type="hidden" name="selectAR_paid" value="[% selectAR_paid %]">
126 134
     <input type="hidden" name="oldinvtotal" value="[% oldinvtotal %]">
127 135

  
128 136
     <input type="hidden" name="oldtotalpaid" value="[% totalpaid %]">
137
    </td>
138
   </tr>
129 139
    </table>
130 140

  
131 141
    </td>
templates/webpages/is/form_footer.html
46 46
       <table>
47 47
        <tr>
48 48
         <th  align=left>[% 'Ertrag' | $T8 %]</th>
49
         <td>[% LxERP.format_amount(marge_total, 2, 0) %]</td>
49
         <td>
50
          [% LxERP.format_amount(marge_total, 2, 0) %]
51
          <input type=hidden name="marge_total" value="[% marge_total %]">
52
         </td>
50 53
        </tr>
51 54
        <tr>
52 55
         <th  align=left>[% 'Ertrag prozentual' | $T8 %]</th>
53
         <td>[% LxERP.format_amount(marge_percent, 2, 0) %] %</td>
56
         <td>
57
          [% LxERP.format_amount(marge_percent, 2, 0) %] %
58
          <input type=hidden name="marge_percent" value="[% marge_percent %]">
59
         </td>
54 60
        </tr>
55
        <input type=hidden name="marge_total" value="[% marge_total %]">
56
        <input type=hidden name="marge_percent" value="[% marge_percent %]">
57 61
       </table>
58 62
      </td>
59 63
      <td align="right">
......
163 167
  [% END %]
164 168

  
165 169
<input type="hidden" name="rowcount" value="[% rowcount %]">
166
<input type="hidden" name="callback" value="[% callback %]">
170
<input type="hidden" name="callback" value="[% callback | html %]">
167 171
<input type="hidden" name="draft_id" value="[% draft_id %]">
168 172
<input type="hidden" name="draft_description" value="[% draft_description %]">
169 173
<input type="hidden" name="customer_discount" value="[% customer_discount %]">
templates/webpages/is/form_header.html
45 45
                 allow_textbox = 1,
46 46
                 onChange      = "document.getElementById('update_button').click();" -%]
47 47
            <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('[% HTML.escape(vc) %]')">
48
          </td>
49 48
          <input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
50 49
          <input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
51 50
          <input type="hidden" name="oldcustomer" value="[% HTML.escape(oldcustomer) %]">
52 51
          <input type="hidden" name="selectcustomer" value="[% HTML.escape(selectcustomer) %]">
52
          </td>
53 53
        </tr>
54 54
[%- IF ALL_CONTACTS.size %]
55 55
        <tr>
......
90 90
[%- END %]
91 91
        <tr>
92 92
          <th align="right" nowrap>[% 'Record in' | $T8 %]</th>
93
          <td colspan="3"><select name="AR" style="width:250px;">[% selectAR %]</select></td>
94
          <input type="hidden" name="selectAR" value="[% selectAR %]">
93
          <td colspan="3">
94
            <select name="AR" style="width:250px;">[% selectAR %]</select>
95
            <input type="hidden" name="selectAR" value="[% selectAR | html %]">
96
          </td>
95 97
        </tr>
96 98
        <tr>
97 99
          <th align="right">[% 'Steuersatz' | $T8 %]</th>
......
100 102
  [%- IF id %]
101 103
          <input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
102 104
  [%- END %]
105
          </td>
103 106
        </tr>
104 107
[%- IF all_departments %]
105 108
        <tr>
......
115 118
          <td>[% currencies %]</td>
116 119
        </tr>
117 120
[%- END %]
118
        <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
119
        <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
121
        <tr style='display:none'>
122
          <td>
123
            <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
124
            <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
125
          </td>
126
        </tr>
120 127
[%- IF show_exchangerate %]
121 128
        <tr>
122 129
          <th align="right">[% 'Exchangerate' | $T8 %]</th>
......
225 232
      </table>
226 233
    </td>
227 234
  </tr>
228
</table>
229
    </td>
230
  </tr>
231
  <tr>
235
  <tr style='display:none'>
232 236
    <td>
237
      <input type="hidden" name="webdav" value="[% webdav %]">
233 238
    </td>
234 239
  </tr>
240
</table>
241

  
235 242
  <script type="text/javascript" src="js/show_form_details.js"></script>
236 243
  <script type="text/javascript" src="js/show_vc_details.js"></script>
237 244
  <script type="text/javascript" src="js/show_history.js"></script>
......
265 272
     }
266 273
   //-->
267 274
  </script>
268

  
269
  <input type="hidden" name="webdav" value="[% webdav %]">
275
<table width="100%">
templates/webpages/webdav/_list.html
6 6
  <tr>
7 7
   <th class="listtop" align="left">Dokumente im Webdav-Repository</th>
8 8
  </tr>
9
  <tr>
10
   <td>
9 11
   <table width="100%">
10 12
    <tr>
11 13
     <td align="left" width="30%"><b>Dateiname</b></td>
......
18 20
    </tr>
19 21
 [%- END %]
20 22
   </table>
23
   </td>
21 24
  </tr>
22 25
[% END %]

Auch abrufbar als: Unified diff