forked from kivitendo/kivitendo-crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
suchName.php
42 lines (41 loc) · 1.25 KB
/
suchName.php
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
36
37
38
39
40
41
42
<?php
require_once("inc/stdLib.php");
include("inc/FirmenLib.php");
include("inc/persLib.php");
?>
<html>
<script language="JavaScript">
<!--
function auswahl() {
nr=document.firmen.Alle.selectedIndex;
val=document.firmen.Alle.options[nr].value;
txt=document.firmen.Alle.options[nr].text;
NeuerEintrag = new Option(txt,val,false,true);
opener.document.getElementById("istusr").options[opener.document.getElementById("istusr").length] = NeuerEintrag;
}
//-->
</script>
<body onLoad="self.focus()">
<center>Gefundene - Einträge:<br><br>
<form name="firmen">
<select name="Alle" >
<?php
$name=strtoupper($_GET["name"]);
$pers=getAllPerson(array(1,$name));
$cust=getAllFirmen(array(1,$name),true,"C");
$vend=getAllFirmen(array(1,$name),true,"V");
$daten = array();
if ($pers) $daten=$pers;
if ($cust) $daten=array_merge($daten,$cust);
if ($vend) $daten=array_merge($daten,$vend);
if ($daten) foreach ($daten as $zeile) {
echo "\t<option value='".$zeile["tab"].$zeile["id"]."'>".$zeile["name"]."</option>\n";
}
?>
</select><br>
<br>
<input type="button" name="ok" value="übernehmen" onClick="auswahl()"><br>
<input type="button" name="ok" value="Fenster schließen" onClick="self.close();">
</form>
</body>
</html>