Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7f820f8f

Von Udo Spallek vor fast 18 Jahren hinzugefügt

  • ID 7f820f8f8e6634a1a20325e21afd6971bfc85276
  • Vorgänger 031b7054
  • Nachfolger 6744758d

Repaired calculation display of formula in goods and services.
locale/de need to be fixed...

Unterschiede anzeigen:

bin/mozilla/ic.pl
2494 2494

  
2495 2495
  $formel =
2496 2496
    qq|<ilayer><layer  onmouseover="this.T_STICKY=true;this.T_STATIC=true;return escape('| . $locale->text('The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br><br>For alu article:<br>Length:<br>Weight/m:<br>Length ist total length of article and weight/m ist the weight pro meter') . qq|')"><textarea name=formel rows=4 cols=60 wrap=soft>$form->{formel}</textarea></layer><ilayer>|;
2497
  $formel = "";
2498 2497
    $imagelinks = qq|
2499 2498
  <tr>
2500 2499
    <td>
......
2634 2633
              </td>
2635 2634
              <tr>
2636 2635
                <th align="left">| . $locale->text('Notes') . qq|</th>
2636
                <th align="left">| . $locale->text('Formula') . qq|</th>
2637 2637
              </tr>
2638 2638
              <tr>
2639 2639
                <td>
2640 2640
                  $notes
2641 2641
                </td>
2642
                <td>
2643
                  $formel
2644
                </td>
2642 2645
              </tr>
2643 2646
              <tr>
2644 2647
                <td colspan=2>
bin/mozilla/io.pl
300 300
    $column_data{qty} =
301 301
        qq|<td align=right><input name="qty_$i" size=5 value=|
302 302
      . $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec) .qq|>|;
303
    if ($form->{formel}) {
303
    if ($form->{"formel_$i"}) {
304 304
    $column_data{qty} .= qq|<button type="button" onclick="calculate_qty_selection_window('qty_$i','alu_$i', 'formel_$i', $i)">| . $locale->text('*/') . qq|</button>
305 305
          <input type=hidden name="formel_$i" value="$form->{"formel_$i"}"><input type=hidden name="alu_$i" value="$form->{"alu_$i"}"></td>|;
306 306
    }
templates/webpages/generic/calculate_qty_de.html
38 38
 </form>
39 39

  
40 40
 <script type="text/javascript">
41
  //<!--
41
  <!--//
42 42
      function calculate_qty() {
43 43
        <TMPL_LOOP NAME=VARIABLES>
44 44
        var <TMPL_VAR NAME=name> = document.getElementsByName("<TMPL_VAR NAME=name>")[0].value.replace(/,/g, ".");
templates/webpages/generic/calculate_qty_master.html
38 38
 </form>
39 39

  
40 40
 <script type="text/javascript">
41
  //<!--
41
  <!--//
42 42
      function calculate_qty() {
43 43
        <TMPL_LOOP NAME=VARIABLES>
44 44
        var <TMPL_VAR NAME=name> = document.getElementsByName("<TMPL_VAR NAME=name>")[0].value.replace(/,/g, ".");

Auch abrufbar als: Unified diff