doc_vorhanden() sieht folgendermaßen aus:
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
29
30
31
32
33
34
35
sub doc_vorhanden {
print "<html>\n";
print "<head><title>FORMULAR</title></head>\n";
print "<body>";
print '<span style="font-size:20pt"><center><b>Bestellhinweis</b></center></span>';
print '<form method="POST" action="/cgi-bin/frontl.cgi">';
print "<p>Ident-Nummer:";
print '<input name="identnr" size="20" maxlength="15" value='.$identnr.'> ';
print '<input name="suchen" TYPE="submit" VALUE="Suchen">';
print '<p>';
print '<table border="1" rules="groups">
<colgroup>
<col width="50">
<col width="80">
<col width="300">
<col width="50">
</colgroup>
<thead>
<tr>
<th>doc_typ</th>
<th>doc_name</th>
<th>headline</th>
</tr></thead>
<tbody>
<tr> ## Für jeden verschiedenen docnamen neue Zeile
<td>'.$doctyp.'</td>
<td>'.$docname.'</td>
<td>'.$head_de.'</td>
<td><input type="button" value="Auswahl" onClick=""></td>
</tr></tbody></table>';
print '<p><p><input type="button" value="Zurück" onClick="history.back()">';
print "</form>
</body>
</html>";
}
in doc_vorhanden() wird doctyp, docname,headline angezeigt. Am Ender der Zeile ist ein button, der dann den jeweiligen ausgesuchten docnamen komplett wieder aus der DB aussucht und in such_eintr() einfügt