Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision da10bf75

Von Thomas Kasulke vor mehr als 17 Jahren hinzugefügt

  • ID da10bf753ae49b8322e79fc1bb9276a092403b9a
  • Vorgänger 6968d257
  • Nachfolger 20a08305

syntax in hidden tags w3c conform gestalltet (bug 272)

Unterschiede anzeigen:

bin/mozilla/io.pl
141 141
  # neue Optik im Rechnungsformular      #
142 142
########################################
143 143
  $column_data{runningnumber} =
144
      qq|<th align=left nowrap width=5 class=listheading>|
144
      qq|<th align="left" nowrap width="5" class="listheading">|
145 145
    . $locale->text('No.')
146 146
    . qq|</th>|;
147 147
  $column_data{partnumber} =
148
      qq|<th align=left nowrap width=12 class=listheading>|
148
      qq|<th align="left" nowrap width="12" class="listheading">|
149 149
    . $locale->text('Number')
150 150
    . qq|</th>|;
151 151
  $column_data{description} =
152
      qq|<th align=left nowrap width=30 class=listheading>|
152
      qq|<th align="left" nowrap width="30" class="listheading">|
153 153
    . $locale->text('Part Description')
154 154
    . qq|</th>|;
155 155
  if ($form->{"type"} eq "purchase_order") {
156 156
    $column_data{ship} =
157
      qq|<th align=left nowrap width=5 class=listheading>|
157
      qq|<th align="left" nowrap width="5" class="listheading">|
158 158
      . $locale->text('Ship rcvd')
159 159
      . qq|</th>|;
160 160
  } else {
161 161
    $column_data{ship} =
162
      qq|<th align=left nowrap width=5 class=listheading>|
162
      qq|<th align="left" nowrap width="5" class="listheading">|
163 163
      . $locale->text('Ship')
164 164
      . qq|</th>|;
165 165
  }
166 166
  $column_data{qty} =
167
      qq|<th align=left nowrap width=5 class=listheading>|
167
      qq|<th align="left" nowrap width="5" class="listheading">|
168 168
    . $locale->text('Qty')
169 169
    . qq|</th>|;
170 170
  $column_data{unit} =
171
      qq|<th align=left nowrap width=5 class=listheading>|
171
      qq|<th align="left" nowrap width="5" class="listheading">|
172 172
    . $locale->text('Unit')
173 173
    . qq|</th>|;
174 174
  $column_data{license} =
175
      qq|<th align=left nowrap width=10 class=listheading>|
175
      qq|<th align="left" nowrap width="10" class="listheading">|
176 176
    . $locale->text('License')
177 177
    . qq|</th>|;
178 178
  $column_data{serialnr} =
179
      qq|<th align=left nowrap width=10 class=listheading>|
179
      qq|<th align="left" nowrap width="10" class="listheading">|
180 180
    . $locale->text('Serial No.')
181 181
    . qq|</th>|;
182 182
  $column_data{projectnr} =
183
      qq|<th align=left nowrap width=10 class=listheading>|
183
      qq|<th align="left" nowrap width="10" class="listheading">|
184 184
    . $locale->text('Project')
185 185
    . qq|</th>|;
186 186
  $column_data{sellprice} =
187
      qq|<th align=left nowrap width=15 class=listheading>|
187
      qq|<th align="left" nowrap width="15" class="listheading">|
188 188
    . $locale->text('Price')
189 189
    . qq|</th>|;
190 190
  $column_data{sellprice_pg} =
191
      qq|<th align=left nowrap width=15 class=listheading>|
191
      qq|<th align="left" nowrap width="15" class="listheading">|
192 192
    . $locale->text('Pricegroup')
193 193
    . qq|</th>|;
194 194
  $column_data{discount} =
195
      qq|<th align=left class=listheading>|
195
      qq|<th align="left" class="listheading">|
196 196
    . $locale->text('Discount')
197 197
    . qq|</th>|;
198 198
  $column_data{linetotal} =
199
      qq|<th align=left nowrap width=10 class=listheading>|
199
      qq|<th align="left" nowrap width="10" class="listheading">|
200 200
    . $locale->text('Extended')
201 201
    . qq|</th>|;
202 202
  $column_data{bin} =
203
      qq|<th align=left nowrap width=10 class=listheading>|
203
      qq|<th align="left" nowrap width="10" class="listheading">|
204 204
    . $locale->text('Bin')
205 205
    . qq|</th>|;
206 206
############## ENDE Neueintrag ##################
......
215 215

  
216 216
  print qq|
217 217
  <tr>
218
    <td>
219
      <input type="hidden" name="show_details" value="$form->{show_details}">
218
    <td>| . $cgi->hidden("-name" => "show_details", "-value" => $form->{show_details}) . qq|
220 219
      <input type="checkbox" id="cb_show_details" onclick="show_form_details($show_details_new);" $show_details_checked>
221 220
      <label for="cb_show_details">| . $locale->text("Show details") . qq|</label><br>
222
      <table width=100%>
223
	<tr class=listheading>|;
221
      <table width="100%">
222
	<tr class="listheading">|;
224 223

  
225 224
  map { print "\n$column_data{$_}" } @column_index;
226 225

  
......
311 310
    # neue Optik im Rechnungsformular      #
312 311
########################################
313 312
    $column_data{runningnumber} =
314
      qq|<td><input name="runningnumber_$i" size=5 value=$i></td>|;    # HuT
313
      qq|<td><input name="runningnumber_$i" size="5" value="$i"></td>|;    # HuT
315 314
############## ENDE Neueintrag ##################
316 315

  
317 316
    $column_data{partnumber} =
......
319 318

  
320 319
    if (($rows = $form->numtextrows($form->{"description_$i"}, 30, 6)) > 1) {
321 320
      $column_data{description} =
322
        qq|<td><textarea name="description_$i" rows=$rows cols=30 wrap=soft>| . H($form->{"description_$i"}) . qq|</textarea><button type="button" onclick="set_longdescription_window('longdescription_$i')">| . $locale->text('L') . qq|</button></td>|;
321
        qq|<td><textarea name="description_$i" rows="$rows" cols="30" wrap="soft">| . H($form->{"description_$i"}) . qq|</textarea><button type="button" onclick="set_longdescription_window('longdescription_$i')">| . $locale->text('L') . qq|</button></td>|;
323 322
    } else {
324 323
      $column_data{description} =
325
        qq|<td><input name="description_$i" size=30 value="| . $form->quote($form->{"description_$i"}) . qq|"><button type="button" onclick="set_longdescription_window('longdescription_$i')">| . $locale->text('L') . qq|</button></td>|;
324
        qq|<td><input name="description_$i" size="30" value="| . $form->quote($form->{"description_$i"}) . qq|"><button type="button" onclick="set_longdescription_window('longdescription_$i')">| . $locale->text('L') . qq|</button></td>|;
326 325
    }
327 326

  
328 327
    (my $qty_dec) = ($form->{"qty_$i"} =~ /\.(\d+)/);
329 328
    $qty_dec = length $qty_dec;
330 329

  
331 330
    $column_data{qty} =
332
        qq|<td align=right><input name="qty_$i" size=5 value=|
333
      . $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec) .qq|>|;
331
        qq|<td align="right"><input name="qty_$i" size="5" value="|
332
      . $form->format_amount(\%myconfig, $form->{"qty_$i"}, $qty_dec) .qq|">|;
334 333
    if ($form->{"formel_$i"}) {
335
    $column_data{qty} .= qq|<button type="button" onclick="calculate_qty_selection_window('qty_$i','alu_$i', 'formel_$i', $i)">| . $locale->text('*/') . qq|</button>
336
          <input type=hidden name="formel_$i" value="$form->{"formel_$i"}"><input type=hidden name="alu_$i" value="$form->{"alu_$i"}"></td>|;
334
    $column_data{qty} .= qq|<button type="button" onclick="calculate_qty_selection_window('qty_$i','alu_$i', 'formel_$i', $i)">| . $locale->text('*/') . qq|</button>| .
335
          $cgi->hidden("-name" => "formel_$i", "-value" => $form->{"formel_$i"}) . $cgi->hidden("-name" => "alu_$i", "-value" => $form->{"alu_$i"}). qq|</td>|;
337 336
    }
338 337
    $column_data{ship} =
339
        qq|<td align=right><input name="ship_$i" size=5 value=|
338
        qq|<td align="right"><input name="ship_$i" size=5 value="|
340 339
      . $form->format_amount(\%myconfig, $form->{"ship_$i"})
341
      . qq|></td>|;
340
      . qq|"></td>|;
342 341

  
343 342
    my $is_part     = $form->{"inventory_accno_$i"};
344 343
    my $is_assembly = $form->{"assembly_$i"};
......
369 368
      }
370 369

  
371 370
      $column_data{sellprice_pg} =
372
        qq|<td align=right><select name="sellprice_pg_$i">$form->{"prices_$i"}</select></td>|;
371
        qq|<td align="right"><select name="sellprice_pg_$i">$form->{"prices_$i"}</select></td>|;
373 372
      $column_data{sellprice} =
374
        qq|<td><input name="sellprice_$i" size=10 value=$price_tmp></td>|;
373
        qq|<td><input name="sellprice_$i" size="10" value="$price_tmp"></td>|;
375 374
    } else {
376 375

  
377 376
      # for last row and report
......
383 382
        $form->{"pricegroup_old_$i"} = $form->{"pricegroup_id_$i"};
384 383

  
385 384
        $column_data{sellprice_pg} =
386
          qq|<td align=right><select name="sellprice_pg_$i">$prices</select></td>|;
385
          qq|<td align="right"><select name="sellprice_pg_$i">$prices</select></td>|;
387 386

  
388 387
      } else {
389 388

  
390 389
        # for last row
391
        $column_data{sellprice_pg} = qq|<td align=right>&nbsp;</td>|;
390
        $column_data{sellprice_pg} = qq|<td align="right">&nbsp;</td>|;
392 391
      }
393 392

  
394 393
      $column_data{sellprice} =
395
        qq|<td><input name="sellprice_$i" size=10 value=|
394
        qq|<td><input name="sellprice_$i" size="10" value="|
396 395
        . $form->format_amount(\%myconfig, $form->{"sellprice_$i"},
397 396
                               $decimalplaces)
398
        . qq|></td>|;
397
        . qq|"></td>|;
399 398
    }
400 399
    $column_data{discount} =
401
        qq|<td align=right><input name="discount_$i" size=3 value=|
400
        qq|<td align="right"><input name="discount_$i" size=3 value="|
402 401
      . $form->format_amount(\%myconfig, $form->{"discount_$i"})
403
      . qq|></td>|;
402
      . qq|"></td>|;
404 403
    $column_data{linetotal} =
405
        qq|<td align=right>|
404
        qq|<td align="right">|
406 405
      . $form->format_amount(\%myconfig, $linetotal, 2)
407 406
      . qq|</td>|;
408 407
    $column_data{bin} = qq|<td>$form->{"bin_$i"}</td>|;
......
424 423
    my $j = $i % 2;
425 424
    print qq|
426 425

  
427
        <tr valign=top class=listrow$j>|;
426
        <tr valign="top" class="listrow$j">|;
428 427

  
429 428
    map { print "\n$column_data{$_}" } @column_index;
430 429

  
431 430
    print qq|
432 431
        </tr>
433

  
434
<input type=hidden name="orderitems_id_$i" value=$form->{"orderitems_id_$i"}>
435
<input type=hidden name="bo_$i" value=$form->{"bo_$i"}>
436

  
437
<input type=hidden name="pricegroup_old_$i" value=$form->{"pricegroup_old_$i"}>
438
<input type=hidden name="price_old_$i" value=$form->{"price_old_$i"}>
439
<input type=hidden name="unit_old_$i" value="| . $form->quote($form->{"selected_unit_$i"}) . qq|">
440
<input type=hidden name="price_new_$i" value=|
441
      . $form->format_amount(\%myconfig, $form->{"price_new_$i"}) . qq|>
442

  
443
<input type=hidden name="id_$i" value=$form->{"id_$i"}>
444
<input type=hidden name="inventory_accno_$i" value=$form->{"inventory_accno_$i"}>
445
<input type=hidden name="bin_$i" value="$form->{"bin_$i"}">
446
<input type=hidden name="partsgroup_$i" value="$form->{"partsgroup_$i"}">
447
<input type=hidden name="partnotes_$i" value="| . $form->quote($form->{"partnotes_$i"}) . qq|">
448
<input type=hidden name="income_accno_$i" value=$form->{"income_accno_$i"}>
449
<input type=hidden name="expense_accno_$i" value=$form->{"expense_accno_$i"}>
450
<input type=hidden name="listprice_$i" value="$form->{"listprice_$i"}">
451
<input type=hidden name="assembly_$i" value="$form->{"assembly_$i"}">
452
<input type=hidden name="taxaccounts_$i" value="$form->{"taxaccounts_$i"}">
453
<input type=hidden name="ordnumber_$i" value="$form->{"ordnumber_$i"}">
454
<input type=hidden name="transdate_$i" value="$form->{"transdate_$i"}">
455
<input type=hidden name="cusordnumber_$i" value="$form->{"cusordnumber_$i"}">
456
<input type=hidden name="longdescription_$i" value="| . $form->quote($form->{"longdescription_$i"}) . qq|">
457
<input type=hidden name="basefactor_$i" value="$form->{"basefactor_$i"}">
458

  
432
|;
433
map({ print($cgi->hidden("-name" => $_, "-value" => $form->{$_})); } 
434
       ("orderitems_id_$i", "bo_$i", "pricegroup_old_$i", "price_old_$i", "selected_unit_$i", "id_$i", "inventory_accno_$i", "bin_$i",
435
          "partsgroup_$i", "partnotes_$i", "income_accno_$i", "expense_accno_$i", "listprice_$i", "assembly_$i", "taxaccounts_$i",
436
          "ordnumber_$i", "transdate_$i", "cusordnumber_$i", "longdescription_$i", "basefactor_$i"));
437
print qq|
438
<input type="hidden" name="price_new_$i" value="|
439
      . $form->format_amount(\%myconfig, $form->{"price_new_$i"}) . qq|">
459 440
|;
460 441

  
461 442
########################################
......
468 449

  
469 450
    # print second row
470 451
    print qq|
471
        <tr  class=listrow$j $row_style_attr>
472
	  <td colspan=$colspan>
452
        <tr  class="listrow$j" $row_style_attr>
453
	  <td colspan="$colspan">
473 454
|;
474 455
    if ($lizenzen && $form->{type} eq "invoice" && $form->{vc} eq "customer") {
475 456
      my $selected = $form->{"licensenumber_$i"};
......
480 461
      $lizenzen_quoted = $form->{"lizenzen_$i"};
481 462
      $lizenzen_quoted =~ s/\"/&quot;/g;
482 463
      print qq|
483
	<b>Lizenz\#</b>&nbsp;<select name="licensenumber_$i" size=1>
464
	<b>Lizenz\#</b>&nbsp;<select name="licensenumber_$i" size="1">
484 465
	$form->{"lizenzen_$i"}
485 466
        </select>
486
	<input type=hidden name="lizenzen_$i" value="${lizenzen_quoted}">
467
	<input type="hidden" name="lizenzen_$i" value="${lizenzen_quoted}">
487 468
|;
488 469
    }
489 470
    if ($form->{type} !~ /_quotation/) {
490 471
      print qq|
491
          <b>$serialnumber</b>&nbsp;<input name="serialnumber_$i" size=15 value="$form->{"serialnumber_$i"}">|;
472
          <b>$serialnumber</b>&nbsp;<input name="serialnumber_$i" size="15" value="$form->{"serialnumber_$i"}">|;
492 473
    }
493 474

  
494 475
    print qq|<b>$projectnumber</b>&nbsp;| .
......
503 484
        ? 'deliverydate'
504 485
        : 'reqdate';    # invoice uses a different term for the same thing.
505 486
      print qq|
506
        <b>${$reqdate_term}</b>&nbsp;<input name="${reqdate_term}_$i" size=11 value="$form->{"${reqdate_term}_$i"}">
487
        <b>${$reqdate_term}</b>&nbsp;<input name="${reqdate_term}_$i" size="11" value="$form->{"${reqdate_term}_$i"}">
507 488
|;
508 489
    }
509 490
    my $subtotalchecked = ($form->{"subtotal_$i"}) ? "checked" : "";
......
584 565

  
585 566
  $column_data{ndx}        = qq|<th>&nbsp;</th>|;
586 567
  $column_data{partnumber} =
587
    qq|<th class=listheading>| . $locale->text('Number') . qq|</th>|;
568
    qq|<th class="listheading">| . $locale->text('Number') . qq|</th>|;
588 569
  $column_data{description} =
589
    qq|<th class=listheading>| . $locale->text('Part Description') . qq|</th>|;
570
    qq|<th class="listheading">| . $locale->text('Part Description') . qq|</th>|;
590 571
  $column_data{sellprice} =
591
    qq|<th class=listheading>| . $locale->text('Price') . qq|</th>|;
572
    qq|<th class="listheading">| . $locale->text('Price') . qq|</th>|;
592 573
  $column_data{onhand} =
593
    qq|<th class=listheading>| . $locale->text('Qty') . qq|</th>|;
574
    qq|<th class="listheading">| . $locale->text('Qty') . qq|</th>|;
594 575
  $column_data{unit} =
595
    qq|<th class=listheading>| . $locale->text('Unit') . qq|</th>|;
576
    qq|<th class="listheading">| . $locale->text('Unit') . qq|</th>|;
596 577
  # list items with radio button on a form
597 578
  $form->header;
598 579

  
......
602 583
  print qq|
603 584
<body>
604 585

  
605
<form method=post action=$form->{script}>
586
<form method="post" action="$form->{script}">
606 587

  
607
<table width=100%>
588
<table width="100%">
608 589
  <tr>
609
    <th class=listtop colspan=$colspan>$title</th>
590
    <th class="listtop" colspan="$colspan">$title</th>
610 591
  </tr>
611 592
  <tr height="5"></tr>
612
  <tr class=listheading>|;
593
  <tr class="listheading">|;
613 594

  
614 595
  map { print "\n$column_data{$_}" } @column_index;
615 596

  
......
626 607
          $ref->{"lizenzen"} .=
627 608
            qq|<option value=\"$item->{"id"}\">$item->{"licensenumber"}</option>|;
628 609
        }
629
        $ref->{"lizenzen"} .= qq|<option value=-1>Neue Lizenz</option>|;
610
        $ref->{"lizenzen"} .= qq|<option value="-1">Neue Lizenz</option>|;
630 611
        $ref->{"lizenzen"} =~ s/\"/&quot;/g;
631 612
      }
632 613
    }
......
637 618
    $ref->{sellprice} =
638 619
      $form->round_amount($ref->{sellprice} * (1 - $form->{tradediscount}), 2);
639 620
    $column_data{ndx} =
640
      qq|<td><input name=ndx class=radio type=radio value=$i $checked></td>|;
621
      qq|<td><input name="ndx" class="radio" type="radio" value="$i" $checked></td>|;
641 622
    $column_data{partnumber} =
642
      qq|<td><input name="new_partnumber_$i" type=hidden value="$ref->{partnumber}">$ref->{partnumber}</td>|;
623
      qq|<td><input name="new_partnumber_$i" type="hidden" value="$ref->{partnumber}">$ref->{partnumber}</td>|;
643 624
    $column_data{description} =
644
      qq|<td><input name="new_description_$i" type=hidden value="$ref->{description}">$ref->{description}</td>|;
625
      qq|<td><input name="new_description_$i" type="hidden" value=$ref->{description}>$ref->{description}</td>|;
645 626
    $column_data{sellprice} =
646
      qq|<td align=right><input name="new_sellprice_$i" type=hidden value=$ref->{sellprice}>|
627
      qq|<td align="right"><input name="new_sellprice_$i" type="hidden" value="$ref->{sellprice}">|
647 628
      . $form->format_amount(\%myconfig, $ref->{sellprice}, 2, "&nbsp;")
648 629
      . qq|</td>|;
649 630
    $column_data{onhand} =
650
      qq|<td align=right><input name="new_onhand_$i" type=hidden value=$ref->{onhand}>|
631
      qq|<td align="right"><input name="new_onhand_$i" type="hidden" value="$ref->{onhand}">|
651 632
      . $form->format_amount(\%myconfig, $ref->{onhand}, '', "&nbsp;")
652 633
      . qq|</td>|;
653 634
    $column_data{unit} =
......
661 642

  
662 643
    print qq|
663 644
</tr>
664

  
665
<input name="new_bin_$i" type=hidden value="$ref->{bin}">
666
<input name="new_listprice_$i" type=hidden value=$ref->{listprice}>
667
<input name="new_inventory_accno_$i" type=hidden value=$ref->{inventory_accno}>
668
<input name="new_income_accno_$i" type=hidden value=$ref->{income_accno}>
669
<input name="new_expense_accno_$i" type=hidden value=$ref->{expense_accno}>
670
<input name="new_unit_$i" type=hidden value="$ref->{unit}">
671
<input name="new_weight_$i" type=hidden value="$ref->{weight}">
672
<input name="new_assembly_$i" type=hidden value="$ref->{assembly}">
673
<input name="new_taxaccounts_$i" type=hidden value="$ref->{taxaccounts}">
674
<input name="new_partsgroup_$i" type=hidden value="$ref->{partsgroup}">
675
<input name="new_formel_$i" type=hidden value="$ref->{formel}">
676
<input name="new_longdescription_$i" type=hidden value="| . Q($ref->{longdescription}) . qq|">
677
<input name="new_not_discountable_$i" type=hidden value="$ref->{not_discountable}">
678
<input name="new_part_payment_id_$i" type=hidden value="$ref->{part_payment_id}">
679
<input name="new_partnotes_$i" type="hidden" value="| . Q($ref->{"partnotes"}) . qq|">
680

  
681
<input name="new_id_$i" type=hidden value=$ref->{id}>
682

  
683 645
|;
684
    if ($lizenzen) {
646
map({ print($cgi->hidden("-name" => "new_$__$i", "-value" => $ref->{$_})); } 
647
        qw(bin listprice inventory_accno income_accno expense_accno unit weight assembly taxaccounts partsgroup 
648
           formel logdescription not_discountable part_payment_id partnodes id));
649
if ($lizenzen) {
685 650
      print qq|
686
<input name="new_lizenzen_$i" type=hidden value="$ref->{lizenzen}">
651
<input name="new_lizenzen_$i" type="hidden" value="$ref->{lizenzen}">
687 652
|;
688 653
    }
689 654

  
690 655
  }
691 656

  
692 657
  print qq|
693
<tr><td colspan=8><hr size=3 noshade></td></tr>
658
<tr><td colspan="8"><hr size="3" noshade></td></tr>
694 659
</table>
695 660

  
696
<input name=lastndx type=hidden value=$i>
661
<input name="lastndx" type="hidden" value="$i">
697 662

  
698 663
|;
699 664

  
......
703 668
  # save all other form variables
704 669
  foreach $key (keys %${form}) {
705 670
    $form->{$key} =~ s/\"/&quot;/g;
706
    print qq|<input name=$key type=hidden value="$form->{$key}">\n|;
671
    print qq|<input name="$key" type="hidden" value="$form->{$key}">\n|;
707 672
  }
708 673

  
709 674
  print qq|
710
<input type=hidden name=nextsub value=item_selected>
675
<input type="hidden" name="nextsub" value="item_selected">
711 676

  
712 677
<br>
713
<input class=submit type=submit name=action value="|
678
<input class="submit" type="submit" name="action" value="|
714 679
    . $locale->text('Continue') . qq|">
715 680
</form>
716 681

  
......
842 807
  print qq|
843 808
<body>
844 809

  
845
<h4 class=error>| . $locale->text('Item not on file!') . qq|
810
<h4 class="error">| . $locale->text('Item not on file!') . qq|
846 811

  
847 812
<p>
848 813
| . $locale->text('What type of item is this?') . qq|</h4>
849 814

  
850
<form method=post action=ic.pl>
815
<form method="post" action="ic.pl">
851 816

  
852 817
<p>
853 818

  
854
  <input class=radio type=radio name=item value=part checked>&nbsp;|
819
  <input class="radio" type="radio" name="item" value="part" checked>&nbsp;|
855 820
    . $locale->text('Part') . qq|<br>
856
  <input class=radio type=radio name=item value=service>&nbsp;|
857
    . $locale->text('Service')
858

  
859
    . qq|
860
<input type=hidden name=previousform value="$previousform">
861
<input type=hidden name=partnumber value="$form->{"partnumber_$i"}">
862
<input type=hidden name=description value="$form->{"description_$i"}">
863
<input type=hidden name=rowcount value=$form->{rowcount}>
864
<input type=hidden name=taxaccount2 value=$form->{taxaccounts}>
865
<input type=hidden name=vc value=$form->{vc}>
866

  
867
<input type=hidden name=path value=$form->{path}>
868
<input type=hidden name=login value=$form->{login}>
869
<input type=hidden name=password value=$form->{password}>
821
  <input class="radio" type="radio" name="item" value="service">&nbsp;|
822
    . $locale->text('Service');
823
print $cgi->hidden("-name" => "previousform", "-value" => $previousform);
824
map({ print($cgi->hidden("-name" => $_, "-value" => $form->{$_})); } 
825
     ("partnumber_$i", "description_$i", "rowcount", "taxaccounts", "vc", "path", "login", "password"));
826

  
827
#<input type="hidden" name="partnumber" value="$form->{"partnumber_$i"}">
828
#<input type="hidden" name="description" value="$form->{"description_$i"}">
829
#<input type="hidden" name="rowcount" value="$form->{rowcount}">
830
#<input type="hidden" name="taxaccount2" value="$form->{taxaccounts}">
831
#<input type="hidden" name="vc" value="$form->{vc}">
832
#
833
#<input type="hidden" name="path" value="$form->{path}">
834
#<input type="hidden" name="login" value="$form->{login}">
835
#<input type="hidden" name="password" value="$form->{password}">
870 836

  
871
<input type=hidden name=nextsub value=add>
837
print qq|
838
<input type="hidden" name="nextsub" value="add">
872 839

  
873 840
<p>
874
<input class=submit type=submit name=action value="|
841
<input class="submit" type="submit" name="action" value="|
875 842
    . $locale->text('Continue') . qq|">
876 843
</form>
877 844

  
......
2079 2046
  print qq|
2080 2047
<body>
2081 2048

  
2082
<form method=post action=$form->{script}>
2049
<form method="post" action="$form->{script}">
2083 2050

  
2084
<table width=100%>
2051
<table width="100%">
2085 2052
  <tr>
2086 2053
    <td>
2087 2054
      <table>
2088
	<tr class=listheading>
2089
	  <th class=listheading colspan=2 width=50%>|
2055
	<tr class="listheading">
2056
	  <th class="listheading" colspan="2" width="50%">|
2090 2057
    . $locale->text('Billing Address') . qq|</th>
2091
	  <th class=listheading width=50%>|
2058
	  <th class="listheading" width="50%">|
2092 2059
    . $locale->text('Shipping Address') . qq|</th>
2093 2060
	</tr>
2094 2061
	<tr height="5"></tr>
2095 2062
	<tr>
2096
	  <th align=right nowrap>$number</th>
2063
	  <th align="right" nowrap>$number</th>
2097 2064
	  <td>$form->{"$form->{vc}number"}</td>
2098 2065
	</tr>
2099 2066
	<tr>
2100
	  <th align=right nowrap>| . $locale->text('Company Name') . qq|</th>
2067
	  <th align="right" nowrap>| . $locale->text('Company Name') . qq|</th>
2101 2068
	  <td>$form->{name}</td>
2102
	  <td><input name=shiptoname size=35 value="$form->{shiptoname}"></td>
2069
	  <td><input name="shiptoname" size="35" value="$form->{shiptoname}"></td>
2103 2070
	</tr>
2104 2071
	<tr>
2105
	  <th align=right nowrap>| . $locale->text('Department') . qq|</th>
2072
	  <th align="right" nowrap>| . $locale->text('Department') . qq|</th>
2106 2073
	  <td>$form->{department_1}</td>
2107
	  <td><input name=shiptodepartment_1 size=35 value="$form->{shiptodepartment_1}"></td>
2074
	  <td><input name="shiptodepartment_1" size="35" value="$form->{shiptodepartment_1}"></td>
2108 2075
	</tr>
2109 2076
	<tr>
2110
	  <th align=right nowrap>&nbsp;</th>
2077
	  <th align="right" nowrap>&nbsp;</th>
2111 2078
	  <td>$form->{department_2}</td>
2112
	  <td><input name=shiptodepartment_2 size=35 value="$form->{shiptodepartment_2}"></td>
2079
	  <td><input name="shiptodepartment_2" size="35" value="$form->{shiptodepartment_2}"></td>
2113 2080
	</tr>
2114 2081
	<tr>
2115
	  <th align=right nowrap>| . $locale->text('Street') . qq|</th>
2082
	  <th align="right" nowrap>| . $locale->text('Street') . qq|</th>
2116 2083
	  <td>$form->{street}</td>
2117
	  <td><input name=shiptostreet size=35 value="$form->{shiptostreet}"></td>
2084
	  <td><input name="shiptostreet" size="35" value="$form->{shiptostreet}"></td>
2118 2085
	</tr>
2119 2086
	<tr>
2120
	  <th align=right nowrap>| . $locale->text('Zipcode') . qq|</th>
2087
	  <th align="right" nowrap>| . $locale->text('Zipcode') . qq|</th>
2121 2088
	  <td>$form->{zipcode}</td>
2122
	  <td><input name=shiptozipcode size=35 value="$form->{shiptozipcode}"></td>
2089
	  <td><input name="shiptozipcode" size="35" value="$form->{shiptozipcode}"></td>
2123 2090
	</tr>
2124 2091
	<tr>
2125
	  <th align=right nowrap>| . $locale->text('City') . qq|</th>
2092
	  <th align="right" nowrap>| . $locale->text('City') . qq|</th>
2126 2093
	  <td>$form->{city}</td>
2127
	  <td><input name=shiptocity size=35 value="$form->{shiptocity}"></td>
2094
	  <td><input name="shiptocity" size="35" value="$form->{shiptocity}"></td>
2128 2095
	</tr>
2129 2096
	<tr>
2130
	  <th align=right nowrap>| . $locale->text('Country') . qq|</th>
2097
	  <th align="right" nowrap>| . $locale->text('Country') . qq|</th>
2131 2098
	  <td>$form->{country}</td>
2132
	  <td><input name=shiptocountry size=35 value="$form->{shiptocountry}"></td>
2099
	  <td><input name="shiptocountry" size="35" value="$form->{shiptocountry}"></td>
2133 2100
	</tr>
2134 2101
	<tr>
2135
	  <th align=right nowrap>| . $locale->text('Contact') . qq|</th>
2102
	  <th align="right" nowrap>| . $locale->text('Contact') . qq|</th>
2136 2103
	  <td>$form->{contact}</td>
2137
	  <td><input name=shiptocontact size=35 value="$form->{shiptocontact}"></td>
2104
	  <td><input name="shiptocontac"t size="35" value="$form->{shiptocontact}"></td>
2138 2105
	</tr>
2139 2106
	<tr>
2140
	  <th align=right nowrap>| . $locale->text('Phone') . qq|</th>
2107
	  <th align="right" nowrap>| . $locale->text('Phone') . qq|</th>
2141 2108
	  <td>$form->{phone}</td>
2142
	  <td><input name=shiptophone size=20 value="$form->{shiptophone}"></td>
2109
	  <td><input name="shiptophone" size="20" value="$form->{shiptophone}"></td>
2143 2110
	</tr>
2144 2111
	<tr>
2145
	  <th align=right nowrap>| . $locale->text('Fax') . qq|</th>
2112
	  <th align="right" nowrap>| . $locale->text('Fax') . qq|</th>
2146 2113
	  <td>$form->{fax}</td>
2147
	  <td><input name=shiptofax size=20 value="$form->{shiptofax}"></td>
2114
	  <td><input name="shiptofax" size="20" value="$form->{shiptofax}"></td>
2148 2115
	</tr>
2149 2116
	<tr>
2150
	  <th align=right nowrap>| . $locale->text('E-mail') . qq|</th>
2117
	  <th align="right" nowrap>| . $locale->text('E-mail') . qq|</th>
2151 2118
	  <td>$form->{email}</td>
2152
	  <td><input name=shiptoemail size=35 value="$form->{shiptoemail}"></td>
2119
	  <td><input name="shiptoemail" size="35" value="$form->{shiptoemail}"></td>
2153 2120
	</tr>
2154 2121
      </table>
2155 2122
    </td>
2156 2123
  </tr>
2157 2124
</table>
2125
| . $cgi->hidden("-name" => "nexsub", "-value" => $nextsub);
2126
;
2127

  
2158 2128

  
2159
<input type=hidden name=nextsub value=$nextsub>
2160
|;
2161 2129

  
2162 2130
  # delete shipto
2163 2131
  map({ delete $form->{$_} } (@shipto_vars, qw(header)));
......
2165 2133

  
2166 2134
  foreach $key (keys %$form) {
2167 2135
    $form->{$key} =~ s/\"/&quot;/g;
2168
    print qq|<input type=hidden name=$key value="$form->{$key}">\n|;
2136
    print qq|<input type="hidden" name="$key" value="$form->{$key}">\n|;
2169 2137
  }
2170 2138

  
2171 2139
  print qq|
2172 2140

  
2173
<hr size=3 noshade>
2141
<hr size="3" noshade>
2174 2142

  
2175 2143
<br>
2176
<input class=submit type=submit name=action value="|
2144
<input class="submit" type="submit" name="action" value="|
2177 2145
    . $locale->text('Continue') . qq|">
2178 2146
</form>
2179 2147

  

Auch abrufbar als: Unified diff