![]() |
|< 1 ... 9 10 11 12 13 >| | ![]() |
125 Einträge, 13 Seiten |
1
2
3
4
5
6
7
8
9
foreach my $ptr (@{$daten})
{
print '<tr>';
print '<td>'.$ptr->{doctyp}.'</td>
<td>'.$ptr->{docname}.'</td>
<td>'.$ptr->{head}.'</td>
<td><a href="/cgi-bin/frontl.cgi?auswahl=1;identnr="$identnr";docname="$ptr->{docname}" >Auswählen</a></td>
</tr>';
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
foreach my $ptr (@{$daten}) {
print qq~<tr>
<td>$ptr->{doctyp}</td>
<td>$ptr->{docname}</td>
<td>$ptr->{head}</td>
<td><a href="/cgi-bin/frontl.cgi?auswahl=1;
identnr=$identnr;
docname=$ptr->{docname};
ersteller=$ptr->{ersteller};
head_de=$ptr->{head};
deutsch=$ptr->{deutsch};
head_en=$ptr->{head};
englisch=$ptr->{englisch};
head_fr=$ptr->{head};
franz=$ptr->{franz};
check1=$ptr->{check1};
check2=$ptr->{check2};
check3=$ptr->{check3};
check4=$ptr->{check4};
werk=$ptr->{werk};
doctyp=$ptr->{doctyp} ">Auswählen</a></td>
</tr>~;
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
print "<HTML>\n";
print "<HEAD><TITLE>FORMULAR</TITLE>";
print "</HEAD>\n<BODY>\n";
if ($auswahl){
print '<span style="font-size:20pt"><center><b>Dokumententyp:'.$doctyp.'</b></cente
r></span>';
}
print '<form method="POST" action="/cgi-bin/frontl.cgi">';
print "<p>Ident-Nummer:";
print '<INPUT name="identnr" size="20" maxlength="15" value='.$identnr.'> ';
if ($auswahl) {
print '<INPUT name="suchen" TYPE="submit" VALUE="Suchen">';
}
print "<p>DE:<br>";
print '<input name="head_de" type="text" size="50" value='.$head_de.'><br>';
if ($doctyp eq 'EI') {
print '<textarea name="deutsch" cols="50" rows="5">'.$deutsch.'</textarea>';
}
print "<p>EN:<br>";
print '<input name="head_en" type="text" size="50" value='.$head_en.'><br>';
if ($doctyp eq 'EI') {
print '<textarea name="englisch" cols="50" rows="5">'.$englisch.'</textarea>';
}
print "<p>FR:<br>";
print '<input name="head_fr" type="text" size="50" value='.$head_fr.'><br>';
if ($doctyp eq 'EI') {
print '<textarea name="franz" cols="50" rows="5">'.$franz.'</textarea>';
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
foreach my $ptr (@{$daten})
{
print qq~<tr>
<td>$ptr->{doctyp}</td>
<td>$ptr->{docname}</td>
<td>$ptr->{head}</td>
<td><a href="/cgi-bin/frontl.cgi?auswahl=1;
identnr=$identnr;
docname=$ptr->{docname};
ersteller=$ptr->{ersteller};
head_de=$ptr->{head} if ($ptr->{langtyp} eq 'DE');
deutsch=$ptr->{langtxt} if ($ptr->{langtyp} eq 'DE');
head_en=$ptr->{head_en} if ($ptr->{langtyp} eq 'EN');
englisch=$ptr->{langtxt} if ($ptr->{langtyp} eq 'EN');
head_fr=$ptr->{head_fr} if ($ptr->{langtyp} eq 'FR');
franz=$ptr->{langtxt} if ($ptr->{langtyp} eq 'FR');
check1=$ptr->{check1};
check2=$ptr->{check2};
check3=$ptr->{check3};
check4=$ptr->{check4};
werk=$ptr->{werk};
doctyp=$ptr->{doctyp} ">Auswählen</a></td>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
sub doc_suchen {
my $db="DBI:mysql:produkte";
my $user="lidos";
my $pass="lidos";
my $dbh = DBI->connect($db,$user,$pass) or die $DBI::errstr;
my $statement_suchen="SELECT * FROM tbl0011990 where docname = '$docname'";
my $sth_suchen=$dbh->prepare($statement_suchen) or die $DBI::errstr;
$sth_suchen->execute;
my %hash;
while (my @row = $sth_suchen->fetchrow_array()) {
$hash{head_de} = $row[4] if ($row[1] eq 'DE');
$hash{head_en} = $row[4] if ($row[1] eq 'EN');
$hash{head_fr} = $row[4] if ($row[1] eq 'FR');
$hash{deutsch} = $row[5] if ($row[1] eq 'DE');
$hash{englisch} = $row[5] if ($row[1] eq 'EN');
$hash{franz} = $row[5] if ($row[1] eq 'FR');
}
&such_eintr(\%hash);
$sth_suchen->finish();
$dbh->disconnect();
}
1
2
3
4
my (%param) = @_;
my $param = \%param;
print '<input name="head_en" type="text" size="50" value='.$param->{head_en}.'>';
![]() |
|< 1 ... 9 10 11 12 13 >| | ![]() |
125 Einträge, 13 Seiten |