forked from kivitendo/kivitendo-crm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
suchMa.php
36 lines (34 loc) · 973 Bytes
/
suchMa.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
<?php
require_once("inc/stdLib.php");
include("inc/wvLib.php");
$masch=$_GET["masch"];
?>
<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;
opener.document.getElementById("neuname").value = txt;
opener.document.getElementById("neuid").value = val;
}
//-->
</script>
<body onLoad="self.focus()">
<center>Gefundene - Maschinen:<br><br>
<form name="firmen">
<select name="Alle" >
<?php
$daten=getAllMaschinen($masch);
if ($daten) foreach ($daten as $zeile) {
echo "\t<option value='".$zeile["id"]."'>".substr($zeile["description"],0,20)." | ".$zeile["serialnumber"]."</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>