Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4be9b9dc

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

  • ID 4be9b9dc16a69c791e47e53790307458bcf7ad7b
  • Vorgänger 5db7d4c6
  • Nachfolger 468e86a6

Customer/Vendor add/edit Dialog auf templates umgestellt.

Unterschiede anzeigen:

bin/mozilla/ct.pl
236 236
  $lxdebug->enter_sub();
237 237

  
238 238
  $form->get_lists("employees" => "ALL_SALESMEN",
239
                   "taxzones" => "ALL_TAXZONES");
240

  
241
  $form->{taxincluded} = ($form->{taxincluded}) ? "checked" : "";
242
  $form->{creditlimit} =
243
    $form->format_amount(\%myconfig, $form->{creditlimit}, 0);
244
  $form->{discount} = $form->format_amount(\%myconfig, $form->{discount});
245

  
246
  if ($myconfig{role} eq 'admin') {
247
    $bcc = qq|
248
        <tr>
249
	  <th align=right nowrap>| . $locale->text('Bcc') . qq|</th>
250
	  <td><input name=bcc size=35 value="$form->{bcc}"></td>
251
	</tr>
252
|;
253
  }
254
  $form->{obsolete} = "checked" if $form->{obsolete};
255

  
256
  $lang = qq|<option value=""></option>|;
257
  foreach $item (@{ $form->{languages} }) {
258
    if ($form->{language_id} eq $item->{id}) {
259
      $lang .= qq|<option value="$item->{id}" selected>$item->{description}</option>|;
260
    } else {
261
      $lang .= qq|<option value="$item->{id}">$item->{description}</option>|;
262
    }
263
  }
264

  
265
  $payment = qq|<option value=""></option>|;
266
  foreach $item (@{ $form->{payment_terms} }) {
267
    if ($form->{payment_id} eq $item->{id}) {
268
      $payment .= qq|<option value="$item->{id}" selected>$item->{description}</option>|;
269
    } else {
270
      $payment .= qq|<option value="$item->{id}">$item->{description}</option>|;
271
    }
272
  }
273

  
274
  if (!$form->{id}) {
275
    if ($form->{db} eq "customer") {
276
      $form->{taxzone_id} = 0;
277
    } else {
278
      $form->{taxzone_id} = 0;
279
    }
280
  }
281

  
282
  %labels = ();
283
  @values = ();
284
  foreach my $item (@{ $form->{"ALL_TAXZONES"} }) {
285
    push(@values, $item->{"id"});
286
    $labels{$item->{"id"}} = $item->{"description"};
287
  }
288

  
289
  $taxzone = qq|
290
		<th align=right>| . $locale->text('Steuersatz') . qq|</th>
291
      <td>| .
292
        NTI($cgi->popup_menu('-name' => 'taxzone_id', '-default' => $form->{"taxzone_id"},
293
                             '-values' => \@values, '-labels' => \%labels)) . qq|
294
      </td>
295
|;
296

  
297
  $get_contact_url =
298
    "$form->{script}?login=$form->{login}&password=$form->{password}&action=get_contact";
299

  
300
  my $pjx = new CGI::Ajax( 'get_contact' => $get_contact_url );
301
  $form->{selectcontact} = "<option value=0>" . $locale->text('New contact') . "</option>";
302
  if (@{ $form->{CONTACTS} }) {
303
    foreach $item (@{ $form->{CONTACTS} }) {
304
      if ($item->{cp_id} == $form->{cp_id}) {
305
        $form->{selectcontact} .=
306
          qq|<option value=$item->{cp_id} selected>$item->{cp_name}</option>\n|;
307
      } else {
308
        $form->{selectcontact} .=
309
          qq|<option value=$item->{cp_id}>$item->{cp_name}</option>\n|;
310
      }
311

  
312
    }
313
  }
314
  push(@ { $form->{AJAX} }, $pjx);
315
  $ansprechpartner = qq|
316
	      <tr>
317
		<th align=right>| . $locale->text('Ansprechpartner') . qq|</th>
318
		<td><select id=cp_id name=cp_id onChange="get_contact(['cp_id__' + this.value], ['cp_name', 'cp_greeting', 'cp_title', 'cp_givenname', 'cp_phone1', 'cp_phone2', 'cp_email', 'cp_abteilung', 'cp_fax', 'cp_mobile1', 'cp_mobile2', 'cp_satphone', 'cp_satfax', 'cp_project', 'cp_privatphone', 'cp_privatemail', 'cp_birthday'])">$form->{selectcontact}</select></td>
319
		<input type=hidden name=selectcontact value="$form->{selectcontact}">
320
	      </tr>|;
321
  $get_shipto_url =
322
    "$form->{script}?login=$form->{login}&password=$form->{password}&action=get_shipto";
323

  
324
  my $pjy = new CGI::Ajax( 'get_shipto' => $get_shipto_url );
325
  $form->{selectshipto} = "<option value=0></option>";
326
  $form->{selectshipto} .= "<option value=0>Alle</option>";
327
  if (@{ $form->{SHIPTO} }) {
328
    foreach $item (@{ $form->{SHIPTO} }) {
329
      if ($item->{shipto_id} == $form->{shipto_id}) {
330
        $form->{selectshipto} .=
331
          "<option value=$item->{shipto_id} selected>$item->{shiptoname} $item->{shiptodepartment_1}\n";
332
      } else {
333
        $form->{selectshipto} .=
334
          "<option value=$item->{shipto_id}>$item->{shiptoname} $item->{shiptodepartment_1}\n";
335
      }
336

  
337
    }
338
  }
339
  push(@ { $form->{AJAX} }, $pjy);
340

  
341
  $shipto = qq|
342
	      <tr>
343
		<th align=right>| . $locale->text('Shipping Address') . qq|</th>
344
		<td><select id=shipto_id name=shipto_id onChange="get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail'])">$form->{selectshipto}</select></td>
345
		<input type=hidden name=selectshipto value="$form->{selectshipto}">
346
	      </tr>|;
347

  
348

  
349
  $get_delivery_url =
350
    "$form->{script}?login=$form->{login}&password=$form->{password}&action=get_delivery";
351

  
352
  my $pjz = new CGI::Ajax( 'get_delivery' => $get_delivery_url );
239
                   "taxzones"  => "ALL_TAXZONES");
240
  $form->get_pricegroup(\%myconfig, { all => 1 });
353 241

  
354
  push(@ { $form->{AJAX} }, $pjz);
242
  $form->{taxincluded}    = ($form->{taxincluded}) ? "checked" : "";
243
  $form->{is_admin}       = $myconfig{role} eq 'admin';
244
  $form->{is_customer}    = $form->{db}     eq 'customer';
245
  $form->{salesman_label} = sub { $_[0]->{name} ne "" ? $_[0]->{name} : $_[0]->{login} };
246
  $form->{shipto_label}   = sub { "$_[0]->{shiptoname} $_[0]->{shiptodepartment_1}" };
247
  $form->{taxzone_id}     = 0                                                               if !$form->{id};
248
  $form->{jsscript}       = 1;
249
  $form->{fokus}          = "ct.greeting";
355 250

  
356
  $delivery = qq|
357
	      <tr>
358
		<th align=right>| . $locale->text('Shipping Address') . qq|</th>
359
		<td><select id=delivery_id name=delivery_id onChange="get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])">$form->{selectshipto}</select></td>
360
	      </tr>|;
251
  unshift @{ $form->{SHIPTO} },   +{ shipto_id => '0', shiptoname => '' }, +{ shipto_id => '0', shiptoname => 'Alle' };
252
  unshift @{ $form->{CONTACTS} }, +{ cp_id     => '0', cp_name => $locale->text('New contact') };
361 253

  
362
  $form->{selectbusiness} = qq|<option>\n|;
363
  map {
364
    $form->{selectbusiness} .=
365
      qq|<option value=$_->{id}>$_->{description}\n|
366
  } @{ $form->{all_business} };
367
  if ($form->{business_save}) {
368
    $form->{selectbusiness} = $form->{business_save};
369
  }
370
  $form->{selectbusiness} =~
371
    s/<option value=$form->{business}>/<option value=$form->{business} selected>/;
372

  
373
  $label = ucfirst $form->{db};
374
  if ($form->{title} eq "Edit") {
375
    $form->{title} = $locale->text("$form->{title} $label") . " $form->{name}";
376
  } else  {
377
    $form->{title} = $locale->text("$form->{title} $label");
378
  }
379
  if ($form->{title_save}) {
380
    $form->{title} = $form->{title_save};
381
  }
382
  if ($form->{db} eq 'vendor') {
383
    $customer = qq|
384
           <th align=right>| . $locale->text('Kundennummer') . qq|</th>
385
           <td><input name=v_customer_id size=10 value="$form->{v_customer_id}"></td>
386
|;
387
  }
254
  push @{ $form->{AJAX} }, map { 
255
    new CGI::Ajax( "get_$_" => "$form->{script}?login=$form->{login}&password=$form->{password}&action=get_$_" ) 
256
  } qw(shipto contact delivery);
388 257

  
389
  if ($form->{db} eq 'customer') {
390

  
391
    $customer = qq|
392
           <th align=right>| . $locale->text('KNr. beim Kunden') . qq|</th>
393
           <td><input name=c_vendor_id size=10 value="$form->{c_vendor_id}"></td>
394
|;
395
  }
396

  
397
  $business = qq|
398
 	  <th align=right>| . $locale->text('Type of Business') . qq|</th>
399
	  <td><select name=business>$form->{selectbusiness}</select></td>
400
      |;
401

  
402
  $salesman = "";
403

  
404
  if ($form->{db} eq "customer") {
405
    my (@salesman_values, %salesman_labels);
406
    push(@salesman_values, undef);
407
    foreach my $item (@{ $form->{ALL_SALESMEN} }) {
408
      push(@salesman_values, $item->{id});
409
      $salesman_labels{$item->{id}} = $item->{name} ne "" ? $item->{name} : $item->{login};
410
    }
411

  
412
    $salesman =
413
      qq| <th align="right">| . $locale->text('Salesman') . qq|</th>
414
          <td>| .
415
      NTI($cgi->popup_menu('-name' => 'salesman_id', '-default' => $form->{salesman_id},
416
                           '-values' => \@salesman_values, '-labels' => \%salesman_labels))
417
      . qq|</td>|;
418
  }
258
  $form->{title} = $form->{title_save} 
259
                || $locale->text("$form->{title} " . ucfirst $form->{db}) . ($form->{title} eq "Edit" ? " $form->{name}" : '');
419 260

  
420 261
## LINET: Create a drop-down box with all prior titles and greetings.
421 262
  CT->query_titles_and_greetings(\%myconfig, \%$form);
422

  
423
  $select_title = qq|&nbsp;<select name=selected_cp_title><option></option>|;
424
  map({ $select_title .= qq|<option>$_</option>|; } @{ $form->{TITLES} });
425
  $select_title .= qq|</select>|;
426

  
427
  $select_greeting =
428
    qq|&nbsp;<select name=selected_cp_greeting><option></option>|;
429
  map(
430
     { $select_greeting .= qq|<option>$_</option>|; } @{ $form->{GREETINGS} });
431
  $select_greeting .= qq|</select>|;
432

  
433
  $select_company_greeting =
434
    qq|&nbsp;<select name=selected_company_greeting><option></option>|;
435
  map(
436
     { $select_company_greeting .= qq|<option>$_</option>|; } @{ $form->{COMPANY_GREETINGS} });
437
  $select_company_greeting .= qq|</select>|;
438

  
439
  $select_department =
440
    qq|&nbsp;<select name=selected_cp_abteilung><option></option>|;
441
  map(
442
     { $select_department .= qq|<option>$_</option>|; } @{ $form->{DEPARTMENT} });
443
  $select_department .= qq|</select>|;
263
  map { $form->{"MB_$_"} = [ map +{ id => $_, description => $_ }, @{ $form->{$_} } ] } qw(TITLES GREETINGS COMPANY_GREETINGS DEPARTMENT);
444 264
## /LINET
445 265

  
446
  if ($form->{db} eq 'customer') {
447

  
448
    #get pricegroup and form it
449
    $form->get_pricegroup(\%myconfig, { all => 1 });
450

  
451
    $form->{pricegroup}    = "$form->{klass}";
452
    $form->{pricegroup_id} = "$form->{klass}";
453

  
454
    if (@{ $form->{all_pricegroup} }) {
455

  
456
      $form->{selectpricegroup} = qq|<option>\n|;
457
      map {
458
        $form->{selectpricegroup} .=
459
          qq|<option value="$_->{id}">$_->{pricegroup}\n|
460
      } @{ $form->{all_pricegroup} };
461
    }
462

  
463
    if ($form->{selectpricegroup}) {
464
      $form->{selectpricegroup} = $form->unescape($form->{selectpricegroup});
465

  
466
      $pricegroup =
467
        qq|<input type=hidden name=selectpricegroup value="|
468
        . $form->escape($form->{selectpricegroup}, 1) . qq|">|;
469

  
470
      $form->{selectpricegroup} =~
471
        s/(<option value="\Q$form->{klass}\E")/$1 selected/;
472

  
473
      $pricegroup .=
474
        qq|<select name=klass>$form->{selectpricegroup}</select>|;
475

  
476
    }
477
  }
478

  
479
  # $locale->text('Customer Number')
480
  # $locale->text('Vendor Number')
481
  $form->{fokus} = "ct.greeting";
482
  $form->{jsscript} = 1;
483 266
  $form->header;
484

  
485
  print qq|
486
<body onLoad="fokus()">
487
<table width=100%>
488
  <tr>
489
    <th class=listtop>$form->{title}</th>
490
  </tr>
491
</table>
492

  
493

  
494
<form method=post name="ct" action=$form->{script} onKeyUp="highlight(event)" onClick="highlight(event)">
495

  
496

  
497

  
498
<ul id="maintab" class="shadetabs">
499
<li class="selected"><a href="#" rel="billing">|
500
    . $locale->text('Billing Address') . qq|</a></li>
501
<li><a href="#" rel="shipto">|
502
    . $locale->text('Shipping Address') . qq|</a></li>
503
<li><a href="#" rel="contacts">Ansprechpartner</a></li>
504
<li><a href="#" rel="deliveries">|
505
    . $locale->text('Lieferungen') . qq|</a></li>
506

  
507
</ul>
508

  
509
<div class="tabcontentstyle">
510

  
511
<div id="billing" class="tabcontent">
512

  
513
      <table width=100%>
514
	<tr height="5"></tr>
515
	<tr>
516
	  <th align=right nowrap>| . $locale->text($label . ' Number') . qq|</th>
517
	  <td><input name="$form->{db}number" size=35 value="$form->{"$form->{db}number"}"></td>
518
	</tr>
519
        <tr>
520
          <th align=right nowrap>| . $locale->text('Greeting') . qq|</th>
521
          <td><input id=greeting name=greeting size=30 value="$form->{greeting}">&nbsp;
522
          $select_company_greeting</td>
523
        </tr>
524
	<tr>
525
	  <th align=right nowrap>| . $locale->text('Company Name') . qq|</th>
526
	  <td><input name=name size=35 maxlength=75 value="$form->{name}"></td>
527
	</tr>
528
	<tr>
529
	  <th align=right nowrap>| . $locale->text('Abteilung') . qq|</th>
530
	  <td><input name=department_1 size=16 maxlength=75 value="$form->{department_1}">
531
	  <input name=department_2 size=16 maxlength=75 value="$form->{department_2}"></td>
532
	</tr>
533
	<tr>
534
	  <th align=right nowrap>| . $locale->text('Street') . qq|</th>
535
	  <td><input name=street size=35 maxlength=75 value="$form->{street}"></td>
536
	</tr>
537
	<tr>
538
	  <th align=right nowrap>|
539
    . $locale->text('Zipcode') . "/" . $locale->text('City') . qq|</th>
540
	  <td><input name=zipcode size=5 maxlength=10 value="$form->{zipcode}">
541
          <input name=city size=30 maxlength=75 value="$form->{city}"></td>
542
	</tr>
543
	<tr>
544
	  <th align=right nowrap>| . $locale->text('Country') . qq|</th>
545
	  <td><input name=country size=35 maxlength=75 value="$form->{country}"></td>
546
	</tr>
547
	<tr>
548
          <th align=right nowrap>| . $locale->text('Contact') . qq|</th>
549
          <td><input name=contact size=28 maxlength=75 value="$form->{contact}"></td>
550
	</tr>
551
	<tr>
552
	  <th align=right nowrap>| . $locale->text('Phone') . qq|</th>
553
	  <td><input name=phone size=30 maxlength=30 value="$form->{phone}"></td>
554
	</tr>
555
	<tr>
556
	  <th align=right nowrap>| . $locale->text('Fax') . qq|</th>
557
	  <td><input name=fax size=30 maxlength=30 value="$form->{fax}"></td>
558
	</tr>
559
	<tr>
560
	  <th align=right nowrap>| . $locale->text('E-mail') . qq|</th>
561
	  <td><input name=email size=45 value="$form->{email}"></td>
562
	</tr>
563
	<tr>
564
	  <th align=right nowrap>| . $locale->text('Homepage') . qq|</th>
565
	  <td><input name=homepage size=45 value="$form->{homepage}"></td>
566
	</tr>
567
</table>
568
<table>
569
	<tr>
570
	  <th align=right>| . $locale->text('Credit Limit') . qq|</th>
571
	  <td><input name=creditlimit size=9 value="$form->{creditlimit}"></td>
572
	  <input type="hidden" name="terms" value="$form->{terms}">
573
	  <th align=right>| . $locale->text('Payment Terms') . qq|</th>
574
	  <td><select name=payment_id>$payment</select></td>
575
	  <th align=right>| . $locale->text('Discount') . qq|</th>
576
	  <td><input name=discount size=4 value="$form->{discount}">
577
	  %</td>
578
	</tr>
579
	<tr>
580
	  <th align=right>| . $locale->text('Tax Number / SSN') . qq|</th>
581
	  <td><input name=taxnumber size=20 value="$form->{taxnumber}"></td>
582
          <th align=right>| . $locale->text('USt-IdNr.') . qq|</th>
583
	  <td><input name="ustid" maxlength="14" size="20" value="$form->{ustid}"></td>
584
          $customer
585
	</tr>
586
        <tr>
587
          <th align=right>| . $locale->text('Account Number') . qq|</th>
588
          <td><input name="account_number" size="10" maxlength="15" value="$form->{account_number}"></td>
589
          <th align=right>| . $locale->text('Bank Code Number') . qq|</th>
590
          <td><input name="bank_code" size="10" maxlength="10" value="$form->{bank_code}"></td>
591
          <th align=right>| . $locale->text('Bank') . qq|</th>
592
          <td><input name=bank size=30 value="$form->{bank}"></td>
593
        </tr>
594
	<tr>
595
          $business
596
	  <th align=right>| . $locale->text('Language') . qq|</th>
597
	  <td><select name=language_id>$lang
598
                          </select></td>|;
599

  
600
  if ($form->{db} eq 'customer') {
601

  
602
    print qq|
603
          <th align=right>| . $locale->text('Preisklasse') . qq|</th>
604
          <td>$pricegroup</td>|;
605
  }
606
  print qq|        </tr>
607
        <tr>
608
          <td align=right>| . $locale->text('Obsolete') . qq|</td>
609
          <td><input name=obsolete class=checkbox type=checkbox value=1 $form->{obsolete}></td>
610
	</tr>
611
        <tr>
612
          $taxzone
613
          $salesman
614
        </tr>
615
      </table>
616
  <table>
617
  <tr>
618
    <th align=left nowrap>| . $locale->text('Notes') . qq|</th>
619
  </tr>
620
  <tr>
621
    <td><textarea name=notes rows=3 cols=60 wrap=soft>$form->{notes}</textarea></td>
622
  </tr>
623

  
624
            </table>
625
          </td>
626
        </tr>
627
</table>
628
<br style="clear: left" /></div>|;
629

  
630
print qq|
631
      <div id="shipto" class="tabcontent">
632

  
633
      <table width=100%>
634
$shipto
635
	<tr>
636
	  <th align=right nowrap>| . $locale->text('Company Name') . qq|</th>
637
	  <td><input id=shiptoname name=shiptoname size=35 maxlength=75 value="$form->{shiptoname}"></td>
638
	</tr>
639
	<tr>
640
	  <th align=right nowrap>| . $locale->text('Abteilung') . qq|</th>
641
          <td><input id=shiptodepartment_1 name=shiptodepartment_1 size=16 maxlength=75 value="$form->{shiptodepartment_1}">
642
	  <input id=shiptodepartment_2 name=shiptodepartment_2 size=16 maxlength=75 value="$form->{shiptodepartment_2}"></td>
643
	</tr>
644
	<tr>
645
	  <th align=right nowrap>| . $locale->text('Street') . qq|</th>
646
	  <td><input id=shiptostreet name=shiptostreet size=35 maxlength=75 value="$form->{shiptostreet}"></td>
647
	</tr>
648
	<tr>
649
	  <th align=right nowrap>|
650
    . $locale->text('Zipcode') . "/" . $locale->text('City') . qq|</th>
651
	  <td><input id=shiptozipcode name=shiptozipcode size=5 maxlength=75 value="$form->{shiptozipcode}">
652
          <input id=shiptocity name=shiptocity size=30 maxlength=75 value="$form->{shiptocity}"></td>
653
	</tr>
654
	<tr>
655
	  <th align=right nowrap>| . $locale->text('Country') . qq|</th>
656
	  <td><input id=shiptocountry name=shiptocountry size=35 maxlength=75 value="$form->{shiptocountry}"></td>
657
	</tr>
658
	<tr>
659
          <th align=right nowrap>| . $locale->text('Contact') . qq|</th>
660
	  <td><input id=shiptocontact name=shiptocontact size=30 maxlength=75 value="$form->{shiptocontact}"></td>
661
	</tr>
662
	<tr>
663
	  <th align=right nowrap>| . $locale->text('Phone') . qq|</th>
664
	  <td><input id=shiptophone name=shiptophone size=30 maxlength=30 value="$form->{shiptophone}"></td>
665
	</tr>
666
	<tr>
667
	  <th align=right nowrap>| . $locale->text('Fax') . qq|</th>
668
	  <td><input id=shiptofax name=shiptofax size=30 maxlength=30 value="$form->{shiptofax}"></td>
669
	</tr>
670
	<tr>
671
	  <th align=right nowrap>| . $locale->text('E-mail') . qq|</th>
672
	  <td><input id=shiptoemail name=shiptoemail size=45 value="$form->{shiptoemail}"></td>
673
	</tr>
674
        <tr>
675
          <td>&nbsp;</td>
676
        </tr>
677
        <tr>
678
           <td>&nbsp;</td>
679
       </tr>
680

  
681
    </table>
682
<br style="clear: left" /></div>|;
683

  
684

  
685
##LINET - added fields for contact person
686
  print qq|   
687
<div id="contacts" class="tabcontent">
688
<table>
689
    <tr>
690
         <td colspan=3>
691
	 	<input type=hidden name=cp_id value=$form->{cp_id}>
692
                <table>
693
                $ansprechpartner
694
                <tr>
695
	          <th align=left nowrap>| . $locale->text('Greeting') . qq|</th>
696
                  <td><input id=cp_greeting name=cp_greeting size=40 maxlength=75 value="$form->{cp_greeting}">&nbsp;
697
                  $select_greeting</td>
698
                </tr>
699
                <tr>
700
                  <th align=left nowrap>| . $locale->text('Title') . qq|</th>
701
                  <td><input id=cp_title name=cp_title size=40 maxlength=75 value="$form->{cp_title}">&nbsp;
702
                  $select_title</td>
703
                </tr>
704
                <tr>
705
                  <th align=left nowrap>| . $locale->text('Department') . qq|</th>
706
                  <td><input id=cp_abteilung name=cp_abteilung size=40 value="$form->{cp_abteilung}">&nbsp;
707
                  $select_department</td>
708
                </tr>
709
                <tr>
710
                  <th align=left nowrap>|
711
    . $locale->text('Given Name') . qq|</th>
712
                  <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="$form->{cp_givenname}"></td>
713
                </tr>
714
                <tr>
715
	          <th align=left nowrap>| . $locale->text('Name') . qq|</th>
716
                  <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="$form->{cp_name}"></td>
717
                </tr>
718
                <tr>
719
	          <th align=left nowrap>| . $locale->text('Phone1') . qq|</th>
720
                  <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="$form->{cp_phone1}"></td>
721
                </tr>
722
                <tr>
723
                  <th align=left nowrap>| . $locale->text('Phone2') . qq|</th>
724
                  <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="$form->{cp_phone2}"></td>
725
                </tr>
726
                <tr>
727
                  <th align=left nowrap>| . $locale->text('Fax') . qq|</th>
728
                  <td><input id=cp_fax name=cp_fax size=40 value="$form->{cp_fax}"></td>
729
                </tr>
730
                <tr>
731
                  <th align=left nowrap>| . $locale->text('Mobile1') . qq|</th>
732
                  <td><input id=cp_mobile1 name=cp_mobile1 size=40 value="$form->{cp_mobile1}"></td>
733
                </tr>
734
                <tr>
735
                  <th align=left nowrap>| . $locale->text('Mobile2') . qq|</th>
736
                  <td><input id=cp_mobile2 name=cp_mobile2 size=40 value="$form->{cp_mobile2}"></td>
737
                </tr>
738
                <tr>
739
                  <th align=left nowrap>| . $locale->text('Sat. Phone') . qq|</th>
740
                  <td><input id=cp_satphone name=cp_satphone size=40 value="$form->{cp_satphone}"></td>
741
                </tr>
742
                <tr>
743
                  <th align=left nowrap>| . $locale->text('Sat. Fax') . qq|</th>
744
                  <td><input id=cp_satfax name=cp_satfax size=40 value="$form->{cp_satfax}"></td>
745
                </tr>
746
                <tr>
747
	          <th align=left nowrap>| . $locale->text('Project') . qq|</th>
748
                  <td><input id=cp_project name=cp_project size=40 value="$form->{cp_project}"></td>
749
                </tr>
750
                <tr>
751
	          <th align=left nowrap>| . $locale->text('E-mail') . qq|</th>
752
                  <td><input id=cp_email name=cp_email size=40 value="$form->{cp_email}"></td>
753
                </tr>
754
                <tr>
755
	          <th align=left nowrap>| . $locale->text('Private Phone') . qq|</th>
756
                  <td><input id=cp_privatphone name=cp_privatphone size=40 value="$form->{cp_privatphone}"></td>
757
                </tr>
758
                <tr>
759
	          <th align=left nowrap>| . $locale->text('Private E-mail') . qq|</th>
760
                  <td><input id=cp_privatemail name=cp_privatemail size=40 value="$form->{cp_privatemail}"></td>
761
                </tr>
762
                <tr>
763
	          <th align=left nowrap>| . $locale->text('Birthday') . qq|</th>
764
                  <td><input id=cp_birthday name=cp_birthday size=40 value="$form->{cp_birthday}"></td>
765
                </tr>
766
                
767
          </table>
768
        </td>
769
        </tr>
770
        <tr height="5"></tr>|;
771
##/LINET
772
  print qq|        $bcc
773
	$tax
774
      </table>
775
    </td>
776
  </tr>
777
  <tr>
778
    <td>
779
      
780
<br style="clear: left" /></div>
781
<div id="deliveries" class="tabcontent">
782
  <table>
783
    $delivery
784
    <tr>
785
      <th align=left nowrap>| . $locale->text('From') . qq|</th>
786
      <td><input id=from name=from size=10 maxlength=10 value="$form->{from}">
787
        <input type="button" name="fromB" id="trigger_from" value="?"></td>
788
      <th align=left nowrap>| . $locale->text('To (time)') . qq|</th>
789
      <td><input id=to name=to size=10 maxlength=10 value="$form->{to}">
790
        <input type="button" name="toB" id="trigger_to" value="?"></td>
791
    </tr>       
792
    <tr>
793
     <td colspan=4>
794
      <div id=delivery>
795
      </div>
796
      </td>
797
    </tr>
798
  </table>
799
<br style="clear: left" /></div>
800

  
801
</div>
802

  
803
| . $form->write_trigger(\%myconfig, 2, "fromB", "BL", "trigger_from",
804
                         "toB", "BL", "trigger_to");
267
  print $form->parse_html_template('ct/form_header');
805 268

  
806 269
  $lxdebug->leave_sub();
807 270
}
locale/de/all
5 5

  
6 6
$self->{texts} = {
7 7
  ' Date missing!'              => ' Datum fehlt!',
8
  ' Number'                     => ' Nummer',
9 8
  ' Part Number missing!'       => ' Artikelnummer fehlt!',
10 9
  ' missing!'                   => ' fehlt!',
11 10
  '&lt;%account_number%&gt; -- Your account number' => '&lt;%account_number%&gt; -- Ihre Kontonummer',
locale/de/ct
1 1
$self->{texts} = {
2
  ' Number'                     => ' Nummer',
3 2
  'ADDED'                       => 'Hinzugef?gt',
4
  'Abteilung'                   => 'Abteilung',
5
  'Account Number'              => 'Kontonummer',
6 3
  'Add Customer'                => 'Kunde erfassen',
7 4
  'Add Vendor'                  => 'Lieferant erfassen',
8 5
  'Address'                     => 'Adresse',
9 6
  'All'                         => 'Alle',
10
  'Ansprechpartner'             => 'Ansprechpartner',
11 7
  'Attempt to call an undefined sub named \'%s\'' => 'Es wurde versucht, eine nicht definierte Unterfunktion namens \'%s\' aufzurufen.',
12
  'Bank'                        => 'Bank',
13
  'Bank Code Number'            => 'Bankleitzahl',
14 8
  'Bcc'                         => 'Bcc',
15
  'Billing Address'             => 'Rechnungsadresse',
16 9
  'Bin List'                    => 'Lagerliste',
17
  'Birthday'                    => 'Geburtstag',
18 10
  'CANCELED'                    => 'Storniert',
19 11
  'CSV export -- options'       => 'CSV-Export -- Optionen',
20 12
  'Cannot delete customer!'     => 'Kunde kann nicht gel?scht werden!',
21 13
  'Cannot delete vendor!'       => 'Lieferant kann nicht gel?scht werden!',
22 14
  'Cc'                          => 'Cc',
23
  'City'                        => 'Stadt',
24
  'Company Name'                => 'Firmenname',
25 15
  'Confirmation'                => 'Auftragsbest?tigung',
26 16
  'Contact'                     => 'Kontakt',
27 17
  'Could not spawn html2ps or GhostScript.' => 'html2ps oder GhostScript konnte nicht gestartet werden.',
28 18
  'Could not spawn the printer command.' => 'Die Druckanwendung konnte nicht gestartet werden.',
29 19
  'Could not write the html2ps config file.' => 'Die tempor&auml;re html2ps-Konfigurationsdatei konnte nicht geschrieben werden.',
30 20
  'Could not write the temporary HTML file.' => 'Eine tempor&auml;re HTML-Datei konnte nicht geschrieben werden.',
31
  'Country'                     => 'Land',
32
  'Credit Limit'                => 'Kreditlimit',
33 21
  'Credit Note'                 => 'Gutschrift',
34 22
  'Customer Number'             => 'Kundennummer',
35 23
  'Customer deleted!'           => 'Kunde gel?scht!',
......
41 29
  'Dataset upgrade'             => 'Datenbankaktualisierung',
42 30
  'Date'                        => 'Datum',
43 31
  'Delete'                      => 'L?schen',
44
  'Department'                  => 'Abteilung',
45 32
  'Dependency loop detected:'   => 'Schleife in den Abh&auml;ngigkeiten entdeckt:',
46 33
  'Description'                 => 'Beschreibung',
47 34
  'Directory'                   => 'Verzeichnis',
48
  'Discount'                    => 'Rabatt',
49 35
  'E-mail'                      => 'eMail',
50 36
  'ELSE'                        => 'Zusatz',
51 37
  'Edit Customer'               => 'Kunde editieren',
......
54 40
  'Error in database control file \'%s\': %s' => 'Fehler in Datenbankupgradekontrolldatei \'%s\': %s',
55 41
  'Fax'                         => 'Fax',
56 42
  'File'                        => 'Datei',
57
  'From'                        => 'Von',
58
  'Given Name'                  => 'Vorname',
59
  'Greeting'                    => 'Anrede',
60 43
  'History'                     => 'Historie',
61
  'Homepage'                    => 'Homepage',
62 44
  'ID'                          => 'Buchungsnummer',
63 45
  'Invdate'                     => 'Rechnungsdatum',
64 46
  'Invoice'                     => 'Rechnung',
65
  'KNr. beim Kunden'            => 'KNr. beim Kunden',
66
  'Kundennummer'                => 'Kundennummer',
67
  'Language'                    => 'Sprache',
68
  'Lieferungen'                 => 'Lieferungen',
69 47
  'MAILED'                      => 'Gesendet',
70 48
  'Mark as paid?'               => 'Als bezahlt markieren?',
71 49
  'Marked as paid'              => 'Als bezahlt markiert',
......
73 51
  'Missing \'description\' field.' => 'Fehlendes Feld \'description\'.',
74 52
  'Missing \'tag\' field.'      => 'Fehlendes Feld \'tag\'.',
75 53
  'Missing parameter #1 in call to sub #2.' => 'Fehlernder Parameter \'#1\' in Funktionsaufruf \'#2\'.',
76
  'Mobile1'                     => 'Mobile 1',
77
  'Mobile2'                     => 'Mobile 2',
78 54
  'More than one control file with the tag \'%s\' exist.' => 'Es gibt mehr als eine Kontrolldatei mit dem Tag \'%s\'.',
79 55
  'Name'                        => 'Name',
80 56
  'Name missing!'               => 'Name fehlt!',
......
89 65
  'No part was found matching the search parameters.' => 'Es wurde kein Artikel gefunden, auf den die Suchparameter zutreffen.',
90 66
  'No project was found matching the search parameters.' => 'Es wurde kein Projekt gefunden, auf das die Suchparameter zutreffen.',
91 67
  'No vendor has been selected yet.' => 'Es wurde noch kein Lieferant ausgew?hlt.',
92
  'Notes'                       => 'Bemerkungen',
93 68
  'Number'                      => 'Nummer',
94
  'Obsolete'                    => 'Ung?ltig',
95 69
  'Order'                       => 'Auftrag',
96 70
  'Orphaned'                    => 'Nie benutzt',
97 71
  'PAYMENT POSTED'              => 'Rechung gebucht',
......
102 76
  'Packing List'                => 'Lieferschein',
103 77
  'Part Number'                 => 'Artikelnummer',
104 78
  'Part description'            => 'Artikelbeschreibung',
105
  'Payment Terms'               => 'Zahlungskonditionen',
106 79
  'Phone'                       => 'Telefon',
107
  'Phone1'                      => 'Telefon 1 ',
108
  'Phone2'                      => 'Telefon 2',
109 80
  'Pick List'                   => 'Sammelliste',
110 81
  'Please enter values'         => 'Bitte Werte eingeben',
111
  'Preisklasse'                 => 'Preisgruppe',
112
  'Private E-mail'              => 'Private eMail',
113
  'Private Phone'               => 'Privates Tel.',
114 82
  'Proforma Invoice'            => 'Proformarechnung',
115
  'Project'                     => 'Projekt',
116 83
  'Project Number'              => 'Projektnummer',
117 84
  'Project description'         => 'Projektbeschreibung',
118 85
  'Purchase Order'              => 'Lieferantenauftrag',
......
125 92
  'SCREENED'                    => 'Angezeigt',
126 93
  'SIC'                         => 'SIC',
127 94
  'Sales Order'                 => 'Kundenauftrag',
128
  'Salesman'                    => 'Verk?ufer/in',
129
  'Sat. Fax'                    => 'Sat. Fax',
130
  'Sat. Phone'                  => 'Sat. Tel.',
131 95
  'Save'                        => 'Speichern',
132 96
  'Save and AP Transaction'     => 'Speichern und Kreditorenbuchung erfassen',
133 97
  'Save and AR Transaction'     => 'Speichern und Debitorenbuchung erfassen',
......
146 110
  'Select an entry'             => 'Eintrag ausw&auml;hlen',
147 111
  'Sell Price'                  => 'Verkaufspreis',
148 112
  'Shipping Address'            => 'Lieferadresse',
149
  'Steuersatz'                  => 'Steuersatz',
150 113
  'Storno Invoice'              => 'Stornorechnung',
151 114
  'Storno Packing List'         => 'Stornolieferschein',
152
  'Street'                      => 'Stra?e',
153 115
  'Subject'                     => 'Betreff',
154 116
  'Tax Number'                  => 'Steuernummer',
155
  'Tax Number / SSN'            => 'Steuernummer',
156 117
  'The \'tag\' field must only consist of alphanumeric characters or the carachters - _ ( )' => 'Das Feld \'tag\' darf nur aus alphanumerischen Zeichen und den Zeichen - _ ( ) bestehen.',
157 118
  'The list has been printed.'  => 'Die Liste wurde ausgedruckt.',
158 119
  'There is no %s whose name matches \'%s\'.' => 'Es gibt keinen %s, dessen Name \'%s\' enth&auml;lt.',
159 120
  'This customer number is already in use.' => 'Diese Kundennummer wird bereits verwendet.',
160 121
  'This vendor number is already in use.' => 'Diese Lieferantennummer wird bereits verwendet.',
161
  'Title'                       => 'Titel',
162 122
  'To (email)'                  => 'An',
163
  'To (time)'                   => 'Bis',
164 123
  'Trying to call a sub without a name' => 'Es wurde versucht, eine Unterfunktion ohne Namen aufzurufen.',
165 124
  'Type of Business'            => 'Kunden-/Lieferantentyp',
166
  'USt-IdNr.'                   => 'USt-IdNr.',
167 125
  'Unit'                        => 'Einheit',
168 126
  'Unknown dependency \'%s\'.'  => 'Unbekannte Abh&auml;ngigkeit \'%s\'.',
169 127
  'Value'                       => 'Wert',
......
173 131
  'Vendor details'              => 'Lieferantendetails',
174 132
  'Vendor saved!'               => 'Lieferant gespeichert!',
175 133
  'Vendors'                     => 'Lieferanten',
176
  'Zipcode'                     => 'PLZ',
177 134
  '[email]'                     => '[email]',
178 135
  'bin_list'                    => 'Lagerliste',
179 136
  'customer'                    => 'Kunde',
templates/webpages/ct/form_header_de.html
1
<body onLoad="fokus()">
2
<table width=100%>
3
  <tr>
4
    <th class=listtop>[% title %]</th>
5
  </tr>
6
</table>
7

  
8

  
9
<form method=post name="ct" action=[% script %] onKeyUp="highlight(event)" onClick="highlight(event)">
10

  
11

  
12

  
13
<ul id="maintab" class="shadetabs">
14
<li class="selected"><a href="#" rel="billing">Rechnungsadresse</a></li>
15
<li><a href="#" rel="shipto">Lieferadresse</a></li>
16
<li><a href="#" rel="contacts">Ansprechpartner</a></li>
17
<li><a href="#" rel="deliveries">Lieferungen</a></li>
18

  
19
</ul>
20

  
21
<div class="tabcontentstyle">
22

  
23
<div id="billing" class="tabcontent">
24

  
25
      <table width=100%>
26
	<tr height="5"></tr>
27
	<tr>
28
[%- IF is_customer %]
29
	  <th align=right nowrap>Kundennummer</th>
30
	  <td><input name="customernumber" size=35 value="[% customernumber %]"></td>
31
[% ELSE %]
32
	  <th align=right nowrap>Lieferantennummer</th>
33
	  <td><input name="vendornumber" size=35 value="[% vendornumber %]"></td>
34
[% END %]
35
	</tr>
36
        <tr>
37
          <th align=right nowrap>Anrede</th>
38
          <td>
39
            <input id=greeting name=greeting size=30 value="[% greeting %]">&nbsp;
40
              [%- INCLUDE generic/multibox.html 
41
                    name       = 'selected_company_greeting',
42
                    DATA       = MB_COMPANY_GREETINGS,
43
                    show_empty = 1,
44
                    id_key     = 'id',
45
                    label_key  = 'description',
46
              -%]
47
          </td>
48
        </tr>
49
	<tr>
50
	  <th align=right nowrap>Firmenname</th>
51
	  <td><input name=name size=35 maxlength=75 value="[% name %]"></td>
52
	</tr>
53
	<tr>
54
	  <th align=right nowrap>Abteilung</th>
55
	  <td><input name=department_1 size=16 maxlength=75 value="[% department_1 %]">
56
	  <input name=department_2 size=16 maxlength=75 value="[% department_2 %]"></td>
57
	</tr>
58
	<tr>
59
	  <th align=right nowrap>Stra?e</th>
60
	  <td><input name=street size=35 maxlength=75 value="[% street %]"></td>
61
	</tr>
62
	<tr>
63
	  <th align=right nowrap>PLZ/Stadt</th>
64
	  <td><input name=zipcode size=5 maxlength=10 value="[% zipcode %]">
65
          <input name=city size=30 maxlength=75 value="[% city %]"></td>
66
	</tr>
67
	<tr>
68
	  <th align=right nowrap>Land</th>
69
	  <td><input name=country size=35 maxlength=75 value="[% country %]"></td>
70
	</tr>
71
	<tr>
72
          <th align=right nowrap>Kontakt</th>
73
          <td><input name=contact size=28 maxlength=75 value="[% contact %]"></td>
74
	</tr>
75
	<tr>
76
	  <th align=right nowrap>Telefon</th>
77
	  <td><input name=phone size=30 maxlength=30 value="[% phone %]"></td>
78
	</tr>
79
	<tr>
80
	  <th align=right nowrap>Fax</th>
81
	  <td><input name=fax size=30 maxlength=30 value="[% fax %]"></td>
82
	</tr>
83
	<tr>
84
	  <th align=right nowrap>eMail</th>
85
	  <td><input name=email size=45 value="[% email %]"></td>
86
	</tr>
87
	<tr>
88
	  <th align=right nowrap>Homepage</th>
89
	  <td><input name=homepage size=45 value="[% homepage %]"></td>
90
	</tr>
91
</table>
92
<table>
93
	<tr>
94
	  <th align=right>Kreditlimit</th>
95
	  <td><input name=creditlimit size=9 value="[% LxERP.format_amount(creditlimit, 0) %]"></td>
96
	  <input type="hidden" name="terms" value="[% terms %]">
97
	  <th align=right>Zahlungskonditionen</th>
98
          <td>
99
            [%- INCLUDE generic/multibox.html 
100
                  name       = 'payment_id',
101
                  DATA       = payment_terms,
102
                  show_empty = 1,
103
                  id_key     = 'id',
104
                  label_key  = 'description',
105
            -%]
106
          </td>
107
	  <th align=right>Rabatt</th>
108
	  <td><input name=discount size=4 value="[% LxERP.format_amount(discount) %]">
109
	  %</td>
110
	</tr>
111
	<tr>
112
	  <th align=right>Steuernummer</th>
113
	  <td><input name=taxnumber size=20 value="[% taxnumber %]"></td>
114
          <th align=right>USt-IdNr.</th>
115
	  <td><input name="ustid" maxlength="14" size="20" value="[% ustid %]"></td>
116
[%- IF is_sustomer %]
117
          <th align=right>KNr. beim Kunden</th>
118
          <td><input name=c_vendor_id size=10 value="[% c_vendor_id %]"></td>
119
[%- ELSE %]
120
          <th align=right>Kundennummer</th>
121
          <td><input name=v_customer_id size=10 value="[% v_customer_id %]"></td>
122
[%- END %]
123
	</tr>
124
        <tr>
125
          <th align=right>Kontonummer</th>
126
          <td><input name="account_number" size="10" maxlength="15" value="[% account_number %]"></td>
127
          <th align=right>Bankleitzahl</th>
128
          <td><input name="bank_code" size="10" maxlength="10" value="[% bank_code %]"></td>
129
          <th align=right>Bank</th>
130
          <td><input name=bank size=30 value="[% bank %]"></td>
131
        </tr>
132
	<tr>
133
 	  <th align=right>Kunden-/Lieferantentyp</th>
134
	  <td>
135
            [%- INCLUDE generic/multibox.html 
136
                  name       = 'business',
137
                  DATA       = all_business,
138
                  show_empty = 1,
139
                  id_key     = 'id',
140
                  label_key  = 'description',
141
            -%]
142
          </td>
143
	  <th align=right>Sprache</th>
144
          <td>
145
            [%- INCLUDE generic/multibox.html 
146
                  name       = 'language_id',
147
                  DATA       = languages,
148
                  show_empty = 1,
149
                  id_key     = 'id',
150
                  label_key  = 'description',
151
            -%]
152
          </td>
153

  
154
[%- IF is_customer %]
155
          <th align=right>Preisgruppe</th>
156
          <td>
157
[%- IF is_customer %]
158
            [%- INCLUDE generic/multibox.html 
159
                  name       = 'klass',
160
                  DATA       = all_pricegroup,
161
                  show_empty = 1,
162
                  id_key     = 'id',
163
                  label_key  = 'pricegroup',
164
           -%]
165
[% END %]
166
          </td>
167
[%- END  %]
168
        </tr>
169
        <tr>
170
          <td align=right>Ung?ltig</td>
171
          <td><input name=obsolete class=checkbox type=checkbox value=1 [% IF obsolete %]checked[% END %]></td>
172
	</tr>
173
        <tr>
174
          <th align=right>Steuersatz</th>
175
          <td>
176
            [%- INCLUDE generic/multibox.html 
177
                  name       = 'taxzone_id',
178
                  DATA       = ALL_TAXZONES,
179
                  show_empty = 1,
180
                  id_key     = 'id',
181
                  label_key  = 'description',
182
            -%]
183
          </td>
184
[%- IF is_customer %]
185
          <th align="right">Verk?ufer/in</th>
186
          <td>
187
            [%- INCLUDE generic/multibox.html 
188
                  name       = 'salesman_id',
189
                  DATA       = ALL_SALESMEN,
190
                  show_empty = 1,
191
                  id_key     = 'id',
192
                  label_sub  = 'salesman_label',
193
            -%]
194
          </td>
195
[%- END %]
196
        </tr>
197
      </table>
198
  <table>
199
  <tr>
200
    <th align=left nowrap>Bemerkungen</th>
201
  </tr>
202
  <tr>
203
    <td><textarea name=notes rows=3 cols=60 wrap=soft>[% notes %]</textarea></td>
204
  </tr>
205

  
206
            </table>
207
          </td>
208
        </tr>
209
</table>
210
<br style="clear: left" /></div>
211

  
212
      <div id="shipto" class="tabcontent">
213

  
214
      <table width=100%>
215
        <tr>
216
          <th align=right>Lieferadresse</th>
217
          <td>
218
            [%- INCLUDE generic/multibox.html 
219
                  name       = 'shipto_id',
220
                  id         = 'shipto_id',
221
                  DATA       = SHIPTO,
222
                  onChange   = "get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail'])",
223
                  id_key     = 'shipto_id',
224
                  label_sub  = 'shipto_label',
225
                  label_key  = 'shipto_label',
226
            -%]
227
          </td>
228
        </tr>
229
	<tr>
230
	  <th align=right nowrap>Firmenname</th>
231
	  <td><input id=shiptoname name=shiptoname size=35 maxlength=75 value="[% shiptoname %]"></td>
232
	</tr>
233
	<tr>
234
	  <th align=right nowrap>Abteilung</th>
235
          <td><input id=shiptodepartment_1 name=shiptodepartment_1 size=16 maxlength=75 value="[% shiptodepartment_1 %]">
236
	  <input id=shiptodepartment_2 name=shiptodepartment_2 size=16 maxlength=75 value="[% shiptodepartment_2 %]"></td>
237
	</tr>
238
	<tr>
239
	  <th align=right nowrap>Stra?e</th>
240
	  <td><input id=shiptostreet name=shiptostreet size=35 maxlength=75 value="[% shiptostreet %]"></td>
241
	</tr>
242
	<tr>
243
	  <th align=right nowrap>PLZ/Stadt</th>
244
	  <td><input id=shiptozipcode name=shiptozipcode size=5 maxlength=75 value="[% shiptozipcode %]">
245
          <input id=shiptocity name=shiptocity size=30 maxlength=75 value="[% shiptocity %]"></td>
246
	</tr>
247
	<tr>
248
	  <th align=right nowrap>Land</th>
249
	  <td><input id=shiptocountry name=shiptocountry size=35 maxlength=75 value="[% shiptocountry %]"></td>
250
	</tr>
251
	<tr>
252
          <th align=right nowrap>Kontakt</th>
253
	  <td><input id=shiptocontact name=shiptocontact size=30 maxlength=75 value="[% shiptocontact %]"></td>
254
	</tr>
255
	<tr>
256
	  <th align=right nowrap>Telefon</th>
257
	  <td><input id=shiptophone name=shiptophone size=30 maxlength=30 value="[% shiptophone %]"></td>
258
	</tr>
259
	<tr>
260
	  <th align=right nowrap>Fax</th>
261
	  <td><input id=shiptofax name=shiptofax size=30 maxlength=30 value="[% shiptofax %]"></td>
262
	</tr>
263
	<tr>
264
	  <th align=right nowrap>eMail</th>
265
	  <td><input id=shiptoemail name=shiptoemail size=45 value="[% shiptoemail %]"></td>
266
	</tr>
267
        <tr>
268
          <td>&nbsp;</td>
269
        </tr>
270
        <tr>
271
           <td>&nbsp;</td>
272
       </tr>
273

  
274
    </table>
275
<br style="clear: left" /></div>
276

  
277
<div id="contacts" class="tabcontent">
278
<table>
279
    <tr>
280
         <td colspan=3>
281
	 	<input type=hidden name=cp_id value=[% cp_id %]>
282
                <table>
283
                  <tr>
284
                    <th align=right>Ansprechpartner</th>
285
                    <td>
286
                      [%- INCLUDE generic/multibox.html 
287
                            name       = 'cp_id',
288
                            id         = 'cp_id',
289
                            DATA       = CONTACTS,
290
                            onChange   = "get_contact(['cp_id__' + this.value], ['cp_name', 'cp_greeting', 'cp_title', 'cp_givenname', 'cp_phone1', 'cp_phone2', 'cp_email', 'cp_abteilung', 'cp_fax', 'cp_mobile1', 'cp_mobile2', 'cp_satphone', 'cp_satfax', 'cp_project', 'cp_privatphone', 'cp_privatemail', 'cp_birthday'])",
291
                            id_key     = 'cp_id',
292
                            label_key  = 'cp_name',
293
                      -%]
294
                    </td>
295
                  </tr>
296
                <tr>
297
	          <th align=left nowrap>Anrede</th>
298
                  <td>
299
                    <input id=cp_greeting name=cp_greeting size=40 maxlength=75 value="[% cp_greeting %]">&nbsp;
300
                      [%- INCLUDE generic/multibox.html 
301
                            name       = 'selected_cp_greeting',
302
                            DATA       = MB_GREETINGS,
303
                            show_empty = 1,
304
                            id_key     = 'id',
305
                            label_key  = 'description',
306
                      -%]
307
                  </td>
308
                </tr>
309
                <tr>
310
                  <th align=left nowrap>Titel</th>
311
                  <td>
312
                    <input id=cp_title name=cp_title size=40 maxlength=75 value="[% cp_title %]">&nbsp;
313
                      [%- INCLUDE generic/multibox.html 
314
                            name       = 'selected_cp_title',
315
                            DATA       = MB_TITLES,
316
                            show_empty = 1,
317
                            id_key     = 'id',
318
                            label_key  = 'description',
319
                      -%]
320
                  </td>
321
                </tr>
322
                <tr>
323
                  <th align=left nowrap>Abteilung</th>
324
                  <td><input id=cp_abteilung name=cp_abteilung size=40 value="[% cp_abteilung %]">&nbsp;
325
                      [%- INCLUDE generic/multibox.html 
326
                            name       = 'selected_cp_abteilung',
327
                            DATA       = MB_DEPARTMENT,
328
                            show_empty = 1,
329
                            id_key     = 'id',
330
                            label_key  = 'description',
331
                      -%]
332
                  </td>
333
                </tr>
334
                <tr>
335
                  <th align=left nowrap>Vorname</th>
336
                  <td><input id="cp_givenname" name="cp_givenname" size="40" maxlength="75" value="[% cp_givenname %]"></td>
337
                </tr>
338
                <tr>
339
	          <th align=left nowrap>Name</th>
340
                  <td><input id="cp_name" name="cp_name" size="40" maxlength="75" value="[% cp_name %]"></td>
341
                </tr>
342
                <tr>
343
	          <th align=left nowrap>Telefon 1 </th>
344
                  <td><input id="cp_phone1" name="cp_phone1" size="40" maxlength="75" value="[% cp_phone1 %]"></td>
345
                </tr>
346
                <tr>
347
                  <th align=left nowrap>Telefon 2</th>
348
                  <td><input id="cp_phone2" name="cp_phone2" size="40" maxlength="75" value="[% cp_phone2 %]"></td>
349
                </tr>
350
                <tr>
351
                  <th align=left nowrap>Fax</th>
352
                  <td><input id=cp_fax name=cp_fax size=40 value="[% cp_fax %]"></td>
353
                </tr>
354
                <tr>
355
                  <th align=left nowrap>Mobile 1</th>
356
                  <td><input id=cp_mobile1 name=cp_mobile1 size=40 value="[% cp_mobile1 %]"></td>
357
                </tr>
358
                <tr>
359
                  <th align=left nowrap>Mobile 2</th>
360
                  <td><input id=cp_mobile2 name=cp_mobile2 size=40 value="[% cp_mobile2 %]"></td>
361
                </tr>
362
                <tr>
363
                  <th align=left nowrap>Sat. Tel.</th>
364
                  <td><input id=cp_satphone name=cp_satphone size=40 value="[% cp_satphone %]"></td>
365
                </tr>
366
                <tr>
367
                  <th align=left nowrap>Sat. Fax</th>
368
                  <td><input id=cp_satfax name=cp_satfax size=40 value="[% cp_satfax %]"></td>
369
                </tr>
370
                <tr>
371
	          <th align=left nowrap>Projekt</th>
372
                  <td><input id=cp_project name=cp_project size=40 value="[% cp_project %]"></td>
373
                </tr>
374
                <tr>
375
	          <th align=left nowrap>eMail</th>
376
                  <td><input id=cp_email name=cp_email size=40 value="[% cp_email %]"></td>
377
                </tr>
378
                <tr>
379
	          <th align=left nowrap>Privates Tel.</th>
380
                  <td><input id=cp_privatphone name=cp_privatphone size=40 value="[% cp_privatphone %]"></td>
381
                </tr>
382
                <tr>
383
	          <th align=left nowrap>Private eMail</th>
384
                  <td><input id=cp_privatemail name=cp_privatemail size=40 value="[% cp_privatemail %]"></td>
385
                </tr>
386
                <tr>
387
	          <th align=left nowrap>Geburtstag</th>
388
                  <td><input id=cp_birthday name=cp_birthday size=40 value="[% cp_birthday %]"></td>
389
                </tr>
390
                
391
          </table>
392
        </td>
393
        </tr>
394
        <tr height="5"></tr>
395
          <tr>
396
            <th align=right nowrap>Bcc</th>
397
            <td><input name=bcc size=35 value="[% bcc %]"></td>
398
          </tr>
399
      </table>
400
    </td>
401
  </tr>
402
  <tr>
403
    <td>
404
      
405
<br style="clear: left" /></div>
406
<div id="deliveries" class="tabcontent">
407
  <table>
408
    <tr>
409
      <th align=right>Lieferadresse</th>
410
      <td>
411
        [%- INCLUDE generic/multibox.html 
412
              name       = 'delivery_id',
413
              id         = 'delivery_id',
414
              DATA       = SHIPTO,
415
              onChange   = "get_delivery(['shipto_id__' + this.value, 'from__' + from.value, 'to__' + to.value, 'id__' + cvid.value, 'db__' + db.value], ['delivery'])",
416
              id_key     = 'shipto_id',
417
              label_sub  = 'shipto_label',
418
       -%]
419
      </td>
420
    </tr>
421
    <tr>
422
      <th align=left nowrap>Von</th>
423
      <td><input id=from name=from size=10 maxlength=10 value="[% from %]">
424
        <input type="button" name="fromB" id="trigger_from" value="?"></td>
425
      <th align=left nowrap>Bis</th>
426
      <td><input id=to name=to size=10 maxlength=10 value="[% to %]">
427
        <input type="button" name="toB" id="trigger_to" value="?"></td>
428
    </tr>       
429
    <tr>
430
     <td colspan=4>
431
      <div id=delivery>
432
      </div>
433
      </td>
434
    </tr>
435
  </table>
436
<br style="clear: left" /></div>
437

  
438
</div>
439

  
440
<script type="text/javascript"><!--
441
  Calendar.setup({ inputField : "fromB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_from" });
442
  Calendar.setup({ inputField : "toB", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger_to" });
443
//--></script>
templates/webpages/ct/form_header_master.html
1
<body onLoad="fokus()">
2
<table width=100%>
3
  <tr>
4
    <th class=listtop>[% title %]</th>
5
  </tr>
6
</table>
7

  
8

  
9
<form method=post name="ct" action=[% script %] onKeyUp="highlight(event)" onClick="highlight(event)">
10

  
11

  
12

  
13
<ul id="maintab" class="shadetabs">
14
<li class="selected"><a href="#" rel="billing"><translate>Billing Address</translate></a></li>
15
<li><a href="#" rel="shipto"><translate>Shipping Address</translate></a></li>
16
<li><a href="#" rel="contacts">Ansprechpartner</a></li>
17
<li><a href="#" rel="deliveries"><translate>Lieferungen</translate></a></li>
18

  
19
</ul>
20

  
21
<div class="tabcontentstyle">
22

  
23
<div id="billing" class="tabcontent">
24

  
25
      <table width=100%>
26
	<tr height="5"></tr>
27
	<tr>
28
[%- IF is_customer %]
29
	  <th align=right nowrap><translate>Customer Number</translate></th>
30
	  <td><input name="customernumber" size=35 value="[% customernumber %]"></td>
31
[% ELSE %]
32
	  <th align=right nowrap><translate>Vendor Number</translate></th>
33
	  <td><input name="vendornumber" size=35 value="[% vendornumber %]"></td>
34
[% END %]
35
	</tr>
36
        <tr>
37
          <th align=right nowrap><translate>Greeting</translate></th>
38
          <td>
39
            <input id=greeting name=greeting size=30 value="[% greeting %]">&nbsp;
40
              [%- INCLUDE generic/multibox.html 
41
                    name       = 'selected_company_greeting',
42
                    DATA       = MB_COMPANY_GREETINGS,
43
                    show_empty = 1,
44
                    id_key     = 'id',
45
                    label_key  = 'description',
46
              -%]
47
          </td>
48
        </tr>
49
	<tr>
50
	  <th align=right nowrap><translate>Company Name</translate></th>
51
	  <td><input name=name size=35 maxlength=75 value="[% name %]"></td>
52
	</tr>
53
	<tr>
54
	  <th align=right nowrap><translate>Abteilung</translate></th>
55
	  <td><input name=department_1 size=16 maxlength=75 value="[% department_1 %]">
56
	  <input name=department_2 size=16 maxlength=75 value="[% department_2 %]"></td>
57
	</tr>
58
	<tr>
59
	  <th align=right nowrap><translate>Street</translate></th>
60
	  <td><input name=street size=35 maxlength=75 value="[% street %]"></td>
61
	</tr>
62
	<tr>
63
	  <th align=right nowrap><translate>Zipcode</translate>/<translate>City</translate></th>
64
	  <td><input name=zipcode size=5 maxlength=10 value="[% zipcode %]">
65
          <input name=city size=30 maxlength=75 value="[% city %]"></td>
66
	</tr>
67
	<tr>
68
	  <th align=right nowrap><translate>Country</translate></th>
69
	  <td><input name=country size=35 maxlength=75 value="[% country %]"></td>
70
	</tr>
71
	<tr>
72
          <th align=right nowrap><translate>Contact</translate></th>
73
          <td><input name=contact size=28 maxlength=75 value="[% contact %]"></td>
74
	</tr>
75
	<tr>
76
	  <th align=right nowrap><translate>Phone</translate></th>
77
	  <td><input name=phone size=30 maxlength=30 value="[% phone %]"></td>
78
	</tr>
79
	<tr>
80
	  <th align=right nowrap><translate>Fax</translate></th>
81
	  <td><input name=fax size=30 maxlength=30 value="[% fax %]"></td>
82
	</tr>
83
	<tr>
84
	  <th align=right nowrap><translate>E-mail</translate></th>
85
	  <td><input name=email size=45 value="[% email %]"></td>
86
	</tr>
87
	<tr>
88
	  <th align=right nowrap><translate>Homepage</translate></th>
89
	  <td><input name=homepage size=45 value="[% homepage %]"></td>
90
	</tr>
91
</table>
92
<table>
93
	<tr>
94
	  <th align=right><translate>Credit Limit</translate></th>
95
	  <td><input name=creditlimit size=9 value="[% LxERP.format_amount(creditlimit, 0) %]"></td>
96
	  <input type="hidden" name="terms" value="[% terms %]">
97
	  <th align=right><translate>Payment Terms</translate></th>
98
          <td>
99
            [%- INCLUDE generic/multibox.html 
100
                  name       = 'payment_id',
101
                  DATA       = payment_terms,
102
                  show_empty = 1,
103
                  id_key     = 'id',
104
                  label_key  = 'description',
105
            -%]
106
          </td>
107
	  <th align=right><translate>Discount</translate></th>
108
	  <td><input name=discount size=4 value="[% LxERP.format_amount(discount) %]">
109
	  %</td>
110
	</tr>
111
	<tr>
112
	  <th align=right><translate>Tax Number / SSN</translate></th>
113
	  <td><input name=taxnumber size=20 value="[% taxnumber %]"></td>
114
          <th align=right><translate>USt-IdNr.</translate></th>
115
	  <td><input name="ustid" maxlength="14" size="20" value="[% ustid %]"></td>
116
[%- IF is_sustomer %]
117
          <th align=right><translate>KNr. beim Kunden</translate></th>
118
          <td><input name=c_vendor_id size=10 value="[% c_vendor_id %]"></td>
119
[%- ELSE %]
120
          <th align=right><translate>Kundennummer</translate></th>
121
          <td><input name=v_customer_id size=10 value="[% v_customer_id %]"></td>
122
[%- END %]
123
	</tr>
124
        <tr>
125
          <th align=right><translate>Account Number</translate></th>
126
          <td><input name="account_number" size="10" maxlength="15" value="[% account_number %]"></td>
127
          <th align=right><translate>Bank Code Number</translate></th>
128
          <td><input name="bank_code" size="10" maxlength="10" value="[% bank_code %]"></td>
129
          <th align=right><translate>Bank</translate></th>
130
          <td><input name=bank size=30 value="[% bank %]"></td>
131
        </tr>
132
	<tr>
133
 	  <th align=right><translate>Type of Business</translate></th>
134
	  <td>
135
            [%- INCLUDE generic/multibox.html 
136
                  name       = 'business',
137
                  DATA       = all_business,
138
                  show_empty = 1,
139
                  id_key     = 'id',
140
                  label_key  = 'description',
141
            -%]
142
          </td>
143
	  <th align=right><translate>Language</translate></th>
144
          <td>
145
            [%- INCLUDE generic/multibox.html 
146
                  name       = 'language_id',
147
                  DATA       = languages,
148
                  show_empty = 1,
149
                  id_key     = 'id',
150
                  label_key  = 'description',
151
            -%]
152
          </td>
153

  
154
[%- IF is_customer %]
155
          <th align=right><translate>Preisklasse</translate></th>
156
          <td>
157
[%- IF is_customer %]
158
            [%- INCLUDE generic/multibox.html 
159
                  name       = 'klass',
160
                  DATA       = all_pricegroup,
161
                  show_empty = 1,
162
                  id_key     = 'id',
163
                  label_key  = 'pricegroup',
164
           -%]
165
[% END %]
166
          </td>
167
[%- END  %]
168
        </tr>
169
        <tr>
170
          <td align=right><translate>Obsolete</translate></td>
171
          <td><input name=obsolete class=checkbox type=checkbox value=1 [% IF obsolete %]checked[% END %]></td>
172
	</tr>
173
        <tr>
174
          <th align=right><translate>Steuersatz</translate></th>
175
          <td>
176
            [%- INCLUDE generic/multibox.html 
177
                  name       = 'taxzone_id',
178
                  DATA       = ALL_TAXZONES,
179
                  show_empty = 1,
180
                  id_key     = 'id',
181
                  label_key  = 'description',
182
            -%]
183
          </td>
184
[%- IF is_customer %]
185
          <th align="right"><translate>Salesman</translate></th>
186
          <td>
187
            [%- INCLUDE generic/multibox.html 
188
                  name       = 'salesman_id',
189
                  DATA       = ALL_SALESMEN,
190
                  show_empty = 1,
191
                  id_key     = 'id',
192
                  label_sub  = 'salesman_label',
193
            -%]
194
          </td>
195
[%- END %]
196
        </tr>
197
      </table>
198
  <table>
199
  <tr>
200
    <th align=left nowrap><translate>Notes</translate></th>
201
  </tr>
202
  <tr>
203
    <td><textarea name=notes rows=3 cols=60 wrap=soft>[% notes %]</textarea></td>
204
  </tr>
205

  
206
            </table>
207
          </td>
208
        </tr>
209
</table>
210
<br style="clear: left" /></div>
211

  
212
      <div id="shipto" class="tabcontent">
213

  
214
      <table width=100%>
215
        <tr>
216
          <th align=right><translate>Shipping Address</translate></th>
217
          <td>
218
            [%- INCLUDE generic/multibox.html 
219
                  name       = 'shipto_id',
220
                  id         = 'shipto_id',
221
                  DATA       = SHIPTO,
222
                  onChange   = "get_shipto(['shipto_id__' + this.value], ['shiptoname','shiptodepartment_1', 'shiptodepartment_2','shiptostreet','shiptozipcode','shiptocity','shiptocountry','shiptocontact','shiptophone','shiptofax','shiptoemail'])",
223
                  id_key     = 'shipto_id',
224
                  label_sub  = 'shipto_label',
225
                  label_key  = 'shipto_label',
226
            -%]
227
          </td>
228
        </tr>
229
	<tr>
230
	  <th align=right nowrap><translate>Company Name</translate></th>
231
	  <td><input id=shiptoname name=shiptoname size=35 maxlength=75 value="[% shiptoname %]"></td>
232
	</tr>
233
	<tr>
234
	  <th align=right nowrap><translate>Abteilung</translate></th>
235
          <td><input id=shiptodepartment_1 name=shiptodepartment_1 size=16 maxlength=75 value="[% shiptodepartment_1 %]">
236
	  <input id=shiptodepartment_2 name=shiptodepartment_2 size=16 maxlength=75 value="[% shiptodepartment_2 %]"></td>
237
	</tr>
238
	<tr>
239
	  <th align=right nowrap><translate>Street</translate></th>
240
	  <td><input id=shiptostreet name=shiptostreet size=35 maxlength=75 value="[% shiptostreet %]"></td>
241
	</tr>
242
	<tr>
243
	  <th align=right nowrap><translate>Zipcode</translate>/<translate>City</translate></th>
244
	  <td><input id=shiptozipcode name=shiptozipcode size=5 maxlength=75 value="[% shiptozipcode %]">
245
          <input id=shiptocity name=shiptocity size=30 maxlength=75 value="[% shiptocity %]"></td>
246
	</tr>
247
	<tr>
248
	  <th align=right nowrap><translate>Country</translate></th>
249
	  <td><input id=shiptocountry name=shiptocountry size=35 maxlength=75 value="[% shiptocountry %]"></td>
250
	</tr>
251
	<tr>
252
          <th align=right nowrap><translate>Contact</translate></th>
253
	  <td><input id=shiptocontact name=shiptocontact size=30 maxlength=75 value="[% shiptocontact %]"></td>
254
	</tr>
255
	<tr>
256
	  <th align=right nowrap><translate>Phone</translate></th>
257
	  <td><input id=shiptophone name=shiptophone size=30 maxlength=30 value="[% shiptophone %]"></td>
258
	</tr>
259
	<tr>
260
	  <th align=right nowrap><translate>Fax</translate></th>
261
	  <td><input id=shiptofax name=shiptofax size=30 maxlength=30 value="[% shiptofax %]"></td>
262
	</tr>
263
	<tr>
264
	  <th align=right nowrap><translate>E-mail</translate></th>
265
	  <td><input id=shiptoemail name=shiptoemail size=45 value="[% shiptoemail %]"></td>
266
	</tr>
267
        <tr>
268
          <td>&nbsp;</td>
269
        </tr>
270
        <tr>
271
           <td>&nbsp;</td>
272
       </tr>
273

  
274
    </table>
275
<br style="clear: left" /></div>
276

  
277
<div id="contacts" class="tabcontent">
278
<table>
279
    <tr>
280
         <td colspan=3>
281
	 	<input type=hidden name=cp_id value=[% cp_id %]>
... Dieser Diff wurde abgeschnitten, weil er die maximale Anzahl anzuzeigender Zeilen überschreitet.

Auch abrufbar als: Unified diff