mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-18 23:42:17 +00:00
jQuery autocomplete-Felder auf neue Version gebracht
This commit is contained in:
@@ -56,13 +56,15 @@ if (!strstr($browser,'msie'))
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="expires" content="0">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../include/js/jquery.css" rel="stylesheet" type="text/css">
|
||||
<!-- <link rel="stylesheet" href="../../include/js/jquery.css" rel="stylesheet" type="text/css"> -->
|
||||
|
||||
<script src="../../include/js/jquery.js" type="text/javascript"></script>
|
||||
<script type="text/javascript" src="../../include/js/jquery1.9.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css"/>
|
||||
<!-- <script src="../../include/js/jquery.js" type="text/javascript"></script>
|
||||
<script src="../../include/js/jquery-ui.js" type="text/javascript"></script>
|
||||
<script src="../../include/js/jquery.autocomplete.js" type="text/javascript"></script>
|
||||
<script src="../../include/js/jquery.autocomplete.min.js" type="text/javascript"></script>
|
||||
<script src="../../include/js/jquery-barcode-1.3.3.js" type="text/javascript"></script>
|
||||
<script src="../../include/js/jquery-barcode-1.3.3.js" type="text/javascript"></script> -->
|
||||
|
||||
<title>Etiketten</title>
|
||||
|
||||
@@ -128,7 +130,25 @@ if (!strstr($browser,'msie'))
|
||||
|
||||
// http://www.pengoworks.com/workshop/jquery/autocomplete_docs.txt
|
||||
$(document).ready(function() {
|
||||
$('#inventarnummer').autocomplete('inventar_autocomplete.php',{
|
||||
$('#inventarnummer').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=inventarnummer",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].inventarnummer;
|
||||
ui.content[i].label=ui.content[i].inventarnummer+" "+ui.content[i].beschreibung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.inventarnummer;
|
||||
setTimeout('document.sendform.submit()',1500);
|
||||
}
|
||||
});
|
||||
/* $('#inventarnummer').autocomplete('inventar_autocomplete.php',{
|
||||
minChars:2,
|
||||
scroll: true,
|
||||
scrollHeight: 200,
|
||||
@@ -137,7 +157,7 @@ if (!strstr($browser,'msie'))
|
||||
formatItem:formatItem,
|
||||
onFindValue: findValue,
|
||||
extraParams:{'work':'inventarnummer'}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<input type="Submit">
|
||||
|
||||
+145
-17
@@ -327,12 +327,15 @@ if (!$uid = get_uid())
|
||||
<title>Inventar - Betriebsmittel - Suche</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
|
||||
<link rel="stylesheet" href="../../skin/fhcomplete.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
|
||||
<link rel="stylesheet" href="../../include/js/tablesort/table.css" type="text/css">
|
||||
<script src="../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
<script src="../../include/js/jquery.js" type="text/javascript"></script>
|
||||
<!-- <script src="../../include/js/jquery.js" type="text/javascript"></script> -->
|
||||
<script type="text/javascript" src="../../include/js/jquery1.9.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css"/>
|
||||
<style type="text/css">
|
||||
table.navbar td
|
||||
{
|
||||
@@ -400,18 +403,37 @@ if (!$uid = get_uid())
|
||||
<table class="navbar">
|
||||
<tr>
|
||||
<td><label for="inventarnummer">Inv.nr.</label>
|
||||
<input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1500);}" id="inventarnummer" name="inventarnummer" type="text" size="10" maxlength="30" value="<?php echo $inventarnummer;?>">
|
||||
<!-- <input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1500);}" id="inventarnummer" name="inventarnummer" type="text" size="10" maxlength="30" value="<?php //echo $inventarnummer;?>"> -->
|
||||
<input id="inventarnummer" name="inventarnummer" type="text" size="10" maxlength="30" value="<?php echo $inventarnummer;?>">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#inventarnummer').autocomplete('inventar_autocomplete.php',
|
||||
$('#inventarnummer').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=inventarnummer",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].inventarnummer;
|
||||
ui.content[i].label=ui.content[i].inventarnummer+" "+ui.content[i].beschreibung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.inventarnummer;
|
||||
setTimeout('document.sendform.submit()',1500);
|
||||
}
|
||||
});
|
||||
/* $('#inventarnummer').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:500,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'inventarnummer'}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -425,7 +447,25 @@ if (!$uid = get_uid())
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#ort_kurzbz').autocomplete('inventar_autocomplete.php',
|
||||
$('#ort_kurzbz').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=inventar_ort",
|
||||
minLength:3,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].ort_kurzbz;
|
||||
ui.content[i].label=ui.content[i].ort_kurzbz+" "+ui.content[i].bezeichnung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.ort_kurzbz;
|
||||
setTimeout('document.sendform.submit()',1500);
|
||||
}
|
||||
});
|
||||
/* $('#ort_kurzbz').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:3,
|
||||
matchSubset:1,matchContains:1,
|
||||
@@ -436,7 +476,7 @@ if (!$uid = get_uid())
|
||||
,'seriennummer':$("#seriennummer").val()
|
||||
,'jahr_monat':$("#jahr_monat").val()
|
||||
}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -517,20 +557,38 @@ if (!$uid = get_uid())
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#person_id').autocomplete('inventar_autocomplete.php',
|
||||
$('#person_id').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=person",
|
||||
minLength:4,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].person_id;
|
||||
ui.content[i].label=ui.content[i].person_id+' '+ui.content[i].anrede+' '+ui.content[i].titelpre+' '+ui.content[i].vorname+' '+ui.content[i].nachname+' '+ui.content[i].funktion;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.person_id;
|
||||
setTimeout('document.sendform.submit()',1500);
|
||||
}
|
||||
});
|
||||
/* $('#person_id').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:4,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'person' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
echo $personen_namen;
|
||||
?>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -540,14 +598,32 @@ if (!$uid = get_uid())
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#bestellnr').autocomplete('inventar_autocomplete.php',
|
||||
$('#bestellnr').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_bestellnr",
|
||||
minLength:5,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].bestell_nr;
|
||||
ui.content[i].label=ui.content[i].bestell_nr+' '+ui.content[i].insertamum+' '+ui.content[i].titel+' '+ui.content[i].bemerkung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.bestell_nr;
|
||||
setTimeout('document.sendform.submit()',1500);
|
||||
}
|
||||
});
|
||||
/* $('#bestellnr').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:5,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:500,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'wawi_bestellnr'}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -556,14 +632,32 @@ if (!$uid = get_uid())
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#bestellung_id').autocomplete('inventar_autocomplete.php',
|
||||
$('#bestellung_id').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_bestellung_id",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].bestellung_id;
|
||||
ui.content[i].label=ui.content[i].bestellung_id+', '+ui.content[i].insertamum+', '+ui.content[i].bestell_nr+', '+ui.content[i].titel+', '+ui.content[i].bemerkung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.bestellung_id;
|
||||
setTimeout('document.sendform.submit()',1500);
|
||||
}
|
||||
});
|
||||
/* $('#bestellung_id').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:500,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'wawi_bestellung_id'}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -573,14 +667,31 @@ if (!$uid = get_uid())
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#firma_id').autocomplete('inventar_autocomplete.php',
|
||||
$('#firma_id').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_firma_search",
|
||||
minLength:4,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].firma_id;
|
||||
ui.content[i].label=ui.content[i].firma_id+' '+ui.content[i].name;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.firma_id;
|
||||
}
|
||||
});
|
||||
/* $('#firma_id').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:4,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:500,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'wawi_firma_search' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -591,14 +702,31 @@ if (!$uid = get_uid())
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#hersteller').autocomplete('inventar_autocomplete.php',
|
||||
$('#hersteller').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=hersteller",
|
||||
minLength:3,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].hersteller;
|
||||
ui.content[i].label=ui.content[i].hersteller;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.hersteller;
|
||||
}
|
||||
});
|
||||
/* $('#hersteller').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:3,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'hersteller'}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
|
||||
@@ -217,9 +217,11 @@
|
||||
<title>Inventar - AfA</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../include/js/jquery.css" rel="stylesheet" type="text/css">
|
||||
<!-- <link rel="stylesheet" href="../../include/js/jquery.css" rel="stylesheet" type="text/css"> -->
|
||||
<script type="text/javascript" src="../../include/js/jquery1.9.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css"/>
|
||||
|
||||
<script src="../../include/js/jquery.js" type="text/javascript"></script>
|
||||
<!-- <script src="../../include/js/jquery.js" type="text/javascript"></script> -->
|
||||
|
||||
<script type="text/javascript">
|
||||
var ajxFile = "<?php echo $_SERVER["PHP_SELF"]; ?>";
|
||||
@@ -285,7 +287,8 @@
|
||||
<table class="navbar">
|
||||
<tr>
|
||||
<td><label for="inventarnummer">Inv.nr.</label>
|
||||
<input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1500);}" id="inventarnummer" name="inventarnummer" type="text" size="10" maxlength="30" value="<?php echo $inventarnummer;?>" />
|
||||
<!-- <input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1500);}" id="inventarnummer" name="inventarnummer" type="text" size="10" maxlength="30" value="<?php echo $inventarnummer;?>" /> -->
|
||||
<input id="inventarnummer" name="inventarnummer" type="text" size="10" maxlength="30" value="<?php echo $inventarnummer;?>" />
|
||||
<script type="text/javascript">
|
||||
function selectItem(li)
|
||||
{
|
||||
@@ -293,7 +296,24 @@
|
||||
}
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#inventarnummer').autocomplete('inventar_autocomplete.php',
|
||||
$('#inventarnummer').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=inventarnummer",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].inventarnummer;
|
||||
ui.content[i].label=ui.content[i].inventarnummer+" "+ui.content[i].beschreibung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.inventarnummer;
|
||||
}
|
||||
});
|
||||
/* $('#inventarnummer').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
scroll: true,
|
||||
@@ -305,7 +325,7 @@
|
||||
,'afa':$("#afa").val()
|
||||
,'betriebsmitteltyp':$("#betriebsmitteltyp").val()
|
||||
}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -316,7 +336,24 @@
|
||||
return false;
|
||||
}
|
||||
$(document).ready(function() {
|
||||
$('#seriennummer').autocomplete('inventar_autocomplete.php', {
|
||||
$('#seriennummer').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=seriennummer",
|
||||
minLength:4,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].seriennummer;
|
||||
ui.content[i].label=ui.content[i].seriennummer+' '+ui.content[i].beschreibung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.seriennummer;
|
||||
}
|
||||
});
|
||||
/* $('#seriennummer').autocomplete('inventar_autocomplete.php', {
|
||||
minChars:4,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:900,
|
||||
@@ -327,7 +364,7 @@
|
||||
,'afa':$("#afa").val()
|
||||
,'betriebsmitteltyp':$("#betriebsmitteltyp").val()
|
||||
}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -341,7 +378,24 @@
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#ort_kurzbz').autocomplete('inventar_autocomplete.php', {
|
||||
$('#ort_kurzbz').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=inventar_ort",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].ort_kurzbz;
|
||||
ui.content[i].label=ui.content[i].ort_kurzbz+" "+ui.content[i].bezeichnung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.ort_kurzbz;
|
||||
}
|
||||
});
|
||||
/* $('#ort_kurzbz').autocomplete('inventar_autocomplete.php', {
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:300,
|
||||
@@ -352,7 +406,7 @@
|
||||
,'afa':$("#afa").val()
|
||||
,'betriebsmitteltyp':$("#betriebsmitteltyp").val()
|
||||
,'betriebsmittelstatus_kurzbz':$("#betriebsmittelstatus_kurzbz").val() }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -410,7 +464,24 @@
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#bestellnr').autocomplete('inventar_autocomplete.php', {
|
||||
$('#bestellnr').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_bestellnr",
|
||||
minLength:5,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].bestell_nr;
|
||||
ui.content[i].label=ui.content[i].bestell_nr+' '+ui.content[i].insertamum+' '+ui.content[i].titel+' '+ui.content[i].bemerkung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.bestell_nr;
|
||||
}
|
||||
});
|
||||
/* $('#bestellnr').autocomplete('inventar_autocomplete.php', {
|
||||
minChars:5,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:500,
|
||||
@@ -418,7 +489,7 @@
|
||||
onItemSelect:selectItem,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'wawi_bestellnr'}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -432,7 +503,24 @@
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#bestellung_id').autocomplete('inventar_autocomplete.php', {
|
||||
$('#bestellung_id').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_bestellung_id",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].bestellung_id;
|
||||
ui.content[i].label=ui.content[i].bestellung_id+', '+ui.content[i].insertamum+', '+ui.content[i].bestell_nr+', '+ui.content[i].titel+', '+ui.content[i].bemerkung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.bestellung_id;
|
||||
}
|
||||
});
|
||||
/* $('#bestellung_id').autocomplete('inventar_autocomplete.php', {
|
||||
minChars:3,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:500,
|
||||
@@ -440,7 +528,7 @@
|
||||
onItemSelect:selectItem,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'wawi_bestellung_id'}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -452,7 +540,24 @@
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#firma_id').autocomplete('inventar_autocomplete.php', {
|
||||
$('#firma_id').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_firma_search",
|
||||
minLength:4,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].firma_id;
|
||||
ui.content[i].label=ui.content[i].firma_id+' '+ui.content[i].name;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.firma_id;
|
||||
}
|
||||
});
|
||||
/* $('#firma_id').autocomplete('inventar_autocomplete.php', {
|
||||
minChars:4,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:500,
|
||||
@@ -460,7 +565,7 @@
|
||||
onItemSelect:selectItem,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'wawi_firma_search'}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -471,7 +576,24 @@
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#hersteller').autocomplete('inventar_autocomplete.php', {
|
||||
$('#hersteller').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=hersteller",
|
||||
minLength:4,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].hersteller;
|
||||
ui.content[i].label=ui.content[i].hersteller;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.hersteller;
|
||||
}
|
||||
});
|
||||
/* $('#hersteller').autocomplete('inventar_autocomplete.php', {
|
||||
minChars:4,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
@@ -479,7 +601,7 @@
|
||||
onItemSelect:selectItem,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'hersteller' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
{
|
||||
// SerienNummer - Inventarnummern suche
|
||||
case 'seriennummer':
|
||||
$seriennummer=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$seriennummer=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($seriennummer) || $seriennummer=='')
|
||||
exit();
|
||||
$pArt='select';
|
||||
@@ -120,13 +120,21 @@
|
||||
$pSql='';
|
||||
if (!$oRresult=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
exit(' |'.$db->errormsg."\n");
|
||||
|
||||
$result=array();
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
echo html_entity_decode($oRresult[$i]->seriennummer).'|'. (is_null($oRresult[$i]->beschreibung) || empty($oRresult[$i]->beschreibung) || $oRresult[$i]->beschreibung=='NULL' || $oRresult[$i]->beschreibung=='null'?'':html_entity_decode($oRresult[$i]->beschreibung))."\n";
|
||||
{
|
||||
$item['seriennummer']=html_entity_decode($oRresult[$i]->seriennummer);
|
||||
$item['beschreibung']=is_null($oRresult[$i]->beschreibung) || empty($oRresult[$i]->beschreibung) || $oRresult[$i]->beschreibung=='NULL' || $oRresult[$i]->beschreibung=='null'?'':html_entity_decode($oRresult[$i]->beschreibung);
|
||||
$result[]=$item;
|
||||
// echo html_entity_decode($oRresult[$i]->seriennummer).'|'. (is_null($oRresult[$i]->beschreibung) || empty($oRresult[$i]->beschreibung) || $oRresult[$i]->beschreibung=='NULL' || $oRresult[$i]->beschreibung=='null'?'':html_entity_decode($oRresult[$i]->beschreibung))."\n";
|
||||
}
|
||||
echo json_encode($result);
|
||||
break;
|
||||
|
||||
// Hersteller
|
||||
case 'hersteller':
|
||||
$hersteller=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$hersteller=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($hersteller) || $hersteller=='')
|
||||
exit();
|
||||
$pArt='select';
|
||||
@@ -140,8 +148,15 @@
|
||||
$pSql='';
|
||||
if (!$oRresult=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
exit(' |'.$db->errormsg."\n");
|
||||
|
||||
$result=array();
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
echo html_entity_decode($oRresult[$i]->hersteller).'|'. ''."\n";
|
||||
{
|
||||
$item['hersteller']=html_entity_decode($oRresult[$i]->hersteller);
|
||||
$result[]=$item;
|
||||
// echo html_entity_decode($oRresult[$i]->hersteller).'|'. ''."\n";
|
||||
}
|
||||
echo json_encode($result);
|
||||
break;
|
||||
|
||||
// Bestellung
|
||||
@@ -166,7 +181,7 @@
|
||||
|
||||
// Betriebsmittel Inventarnummer
|
||||
case 'inventarnummer':
|
||||
$inventarnummer=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$inventarnummer=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($inventarnummer) || $inventarnummer=='')
|
||||
exit();
|
||||
$pArt='select';
|
||||
@@ -180,13 +195,21 @@
|
||||
$pSql='';
|
||||
if (!$oRresult=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
exit(' |'.$db->errormsg."\n");
|
||||
|
||||
$result=array();
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
echo html_entity_decode($oRresult[$i]->inventarnummer).'|'. (is_null($oRresult[$i]->beschreibung) || empty($oRresult[$i]->beschreibung) || $oRresult[$i]->beschreibung=='NULL' || $oRresult[$i]->beschreibung=='null'?'':html_entity_decode(mb_str_replace("\n","",$oRresult[$i]->beschreibung)))."\n";
|
||||
{
|
||||
$item['inventarnummer']=html_entity_decode($oRresult[$i]->inventarnummer);
|
||||
$item['beschreibung']=is_null($oRresult[$i]->beschreibung) || empty($oRresult[$i]->beschreibung) || $oRresult[$i]->beschreibung=='NULL' || $oRresult[$i]->beschreibung=='null'?'':html_entity_decode(mb_str_replace("\n","",$oRresult[$i]->beschreibung));
|
||||
$result[]=$item;
|
||||
// echo html_entity_decode($oRresult[$i]->inventarnummer).'|'. (is_null($oRresult[$i]->beschreibung) || empty($oRresult[$i]->beschreibung) || $oRresult[$i]->beschreibung=='NULL' || $oRresult[$i]->beschreibung=='null'?'':html_entity_decode(mb_str_replace("\n","",$oRresult[$i]->beschreibung)))."\n";
|
||||
}
|
||||
echo json_encode($result);
|
||||
break;
|
||||
|
||||
// Ort - Inventarorte suche
|
||||
case 'inventar_ort':
|
||||
$ort_kurzbz=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$ort_kurzbz=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($ort_kurzbz) || $ort_kurzbz=='')
|
||||
exit();
|
||||
$pArt='select';
|
||||
@@ -200,18 +223,25 @@
|
||||
$pSql='';
|
||||
if (!$oRresult=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
exit(' |'.$db->errormsg."\n");
|
||||
|
||||
$result=array();
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
{
|
||||
echo html_entity_decode($oRresult[$i]->ort_kurzbz).'|'
|
||||
$item['ort_kurzbz']=html_entity_decode($oRresult[$i]->ort_kurzbz);
|
||||
$item['bezeichnung']=is_null($oRresult[$i]->bezeichnung) || empty($oRresult[$i]->bezeichnung) || $oRresult[$i]->bezeichnung=='NULL' || $oRresult[$i]->bezeichnung=='null'?'':html_entity_decode($oRresult[$i]->bezeichnung);
|
||||
$item['aktiv']=$oRresult[$i]->aktiv==true || $oRresult[$i]->aktiv=='t'?true:false;
|
||||
$result[]=$item;
|
||||
/* echo html_entity_decode($oRresult[$i]->ort_kurzbz).'|'
|
||||
.(is_null($oRresult[$i]->bezeichnung) || empty($oRresult[$i]->bezeichnung) || $oRresult[$i]->bezeichnung=='NULL' || $oRresult[$i]->bezeichnung=='null'?'':html_entity_decode($oRresult[$i]->bezeichnung))
|
||||
.($oRresult[$i]->aktiv==true || $oRresult[$i]->aktiv=='t'?' <img src="../../skin/images/tick.png" alt="aktiv" />':' <img src="../../skin/images/cross.png" alt="nicht aktiv" />')
|
||||
."\n";
|
||||
}
|
||||
."\n"; */
|
||||
}
|
||||
echo json_encode($result);
|
||||
break;
|
||||
|
||||
// Ort - FH Technikum suche
|
||||
case 'ort':
|
||||
$ort_kurzbz=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$ort_kurzbz=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($ort_kurzbz) || $ort_kurzbz=='')
|
||||
exit();
|
||||
$pArt='select';
|
||||
@@ -225,18 +255,26 @@
|
||||
$pSql='';
|
||||
if (!$oRresult=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
exit(' |'.$db->errormsg."\n");
|
||||
|
||||
$result=array();
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
{
|
||||
echo html_entity_decode($oRresult[$i]->ort_kurzbz).'|'
|
||||
$item['ort_kurzbz']=html_entity_decode($oRresult[$i]->ort_kurzbz);
|
||||
$item['bezeichnung']=is_null($oRresult[$i]->bezeichnung) || empty($oRresult[$i]->bezeichnung) || $oRresult[$i]->bezeichnung=='NULL' || $oRresult[$i]->bezeichnung=='null'?'':html_entity_decode($oRresult[$i]->bezeichnung);
|
||||
$item['aktiv']=$oRresult[$i]->aktiv==true || $oRresult[$i]->aktiv=='t'?true:false;
|
||||
$result[]=$item;
|
||||
|
||||
/* echo html_entity_decode($oRresult[$i]->ort_kurzbz).'|'
|
||||
.(is_null($oRresult[$i]->bezeichnung) || empty($oRresult[$i]->bezeichnung) || $oRresult[$i]->bezeichnung=='NULL' || $oRresult[$i]->bezeichnung=='null'?'':html_entity_decode($oRresult[$i]->bezeichnung) )
|
||||
.($oRresult[$i]->aktiv==true || $oRresult[$i]->aktiv=='t'?' <img src="../../skin/images/tick.png" alt="aktiv" />':' <img src="../../skin/images/cross.png" alt="nicht aktiv" />')
|
||||
."\n";
|
||||
."\n"; */
|
||||
}
|
||||
echo json_encode($result);
|
||||
break;
|
||||
|
||||
// Person - FH Technikum suche
|
||||
case 'person':
|
||||
$person_id=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$person_id=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($person_id) || $person_id=='')
|
||||
exit();
|
||||
|
||||
@@ -295,26 +333,37 @@
|
||||
if (!$oRresult=$db->SQL($pArt,$pDistinct,$pFields,$pTable,$pWhere,$pOrder,$pLimit,$pSql))
|
||||
exit(' |'.$db->errormsg."\n");
|
||||
|
||||
|
||||
$result=array();
|
||||
for ($i=0;$i<count($oRresult);$i++)
|
||||
{
|
||||
echo html_entity_decode($oRresult[$i]->person_id).'|'
|
||||
$item['person_id']=html_entity_decode($oRresult[$i]->person_id);
|
||||
$item['anrede']=trim($oRresult[$i]->anrede);
|
||||
$item['titelpre']=html_entity_decode($oRresult[$i]->titelpre);
|
||||
$item['vorname']=html_entity_decode($oRresult[$i]->vorname);
|
||||
$item['nachname']=html_entity_decode($oRresult[$i]->nachname);
|
||||
$item['funktion']=html_entity_decode($oRresult[$i]->funktion_kurzbz);
|
||||
$item['aktiv']=$oRresult[$i]->aktiv;
|
||||
$result[]=$item;
|
||||
/* echo html_entity_decode($oRresult[$i]->person_id).'|'
|
||||
.trim($oRresult[$i]->anrede).' '.($oRresult[$i]->titelpre?html_entity_decode($oRresult[$i]->titelpre).' ':'')
|
||||
.html_entity_decode($oRresult[$i]->vorname).' '.html_entity_decode($oRresult[$i]->nachname).($oRresult[$i]->funktion_kurzbz?html_entity_decode($oRresult[$i]->funktion_kurzbz).' ':'')
|
||||
.($oRresult[$i]->aktiv=='t'?' <img src="../../skin/images/tick.png" alt="aktiv" />':' <img src="../../skin/images/cross.png" alt="nicht aktiv" />')
|
||||
."\n";
|
||||
."\n"; */
|
||||
}
|
||||
echo json_encode($result);
|
||||
break;
|
||||
|
||||
// Organisation - suche
|
||||
case 'organisationseinheit':
|
||||
$oe_kurzbz=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$oe_kurzbz=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($oe_kurzbz) || $oe_kurzbz=='')
|
||||
exit();
|
||||
|
||||
$oOrganisationseinheit->result=array();
|
||||
if (!$oOrganisationseinheit->getAll())
|
||||
exit($oOrganisationseinheit->errormsg."\n");
|
||||
|
||||
$result=array();
|
||||
for ($i=0;$i<count($oOrganisationseinheit->result);$i++)
|
||||
{
|
||||
if ($aktiv && ($oOrganisationseinheit->result[$i]->aktiv==false || $oOrganisationseinheit->result[$i]->aktiv=='f'))
|
||||
@@ -325,46 +374,71 @@
|
||||
|| stristr($oOrganisationseinheit->result[$i]->bezeichnung,$oe_kurzbz)
|
||||
|| stristr($oOrganisationseinheit->result[$i]->oe_parent_kurzbz,$oe_kurzbz)
|
||||
|| stristr($oOrganisationseinheit->result[$i]->organisationseinheittyp_kurzbz,$oe_kurzbz) )
|
||||
echo html_entity_decode($oOrganisationseinheit->result[$i]->oe_kurzbz).'|'
|
||||
{
|
||||
$item['oe_kurzbz']=html_entity_decode($oOrganisationseinheit->result[$i]->oe_kurzbz);
|
||||
$item['bezeichnung']=html_entity_decode($oOrganisationseinheit->result[$i]->bezeichnung);
|
||||
$item['organisationseinheittyp']=html_entity_decode($oOrganisationseinheit->result[$i]->organisationseinheittyp_kurzbz);
|
||||
$result[]=$item;
|
||||
/* echo html_entity_decode($oOrganisationseinheit->result[$i]->oe_kurzbz).'|'
|
||||
.' '
|
||||
.(is_null($oOrganisationseinheit->result[$i]->bezeichnung) || empty($oOrganisationseinheit->result[$i]->bezeichnung) || $oOrganisationseinheit->result[$i]->bezeichnung=='NULL' || $oOrganisationseinheit->result[$i]->bezeichnung=='null'?'':html_entity_decode($oOrganisationseinheit->result[$i]->bezeichnung) )
|
||||
.' '
|
||||
.(is_null($oOrganisationseinheit->result[$i]->organisationseinheittyp_kurzbz) || empty($oOrganisationseinheit->result[$i]->organisationseinheittyp_kurzbz) || $oOrganisationseinheit->result[$i]->organisationseinheittyp_kurzbz=='NULL' || $oOrganisationseinheit->result[$i]->organisationseinheittyp_kurzbz=='null'?'':html_entity_decode($oOrganisationseinheit->result[$i]->organisationseinheittyp_kurzbz) )
|
||||
|
||||
.($oOrganisationseinheit->result[$i]->aktiv==true || $oOrganisationseinheit->result[$i]->aktiv=='t'?' <img src="../../skin/images/tick.png" alt="aktiv" />':' <img src="../../skin/images/cross.png" alt="nicht aktiv" />')
|
||||
."\n";
|
||||
."\n"; */
|
||||
}
|
||||
}
|
||||
echo json_encode($result);
|
||||
break;
|
||||
|
||||
// Bestellung
|
||||
case 'wawi_bestellnr':
|
||||
$filter=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$filter=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($filter) || $filter=='')
|
||||
exit();
|
||||
$bestellung = new wawi_bestellung();
|
||||
|
||||
if ($bestellung->getAllSearch($filter, '', '', '', '', '', '', '', '', '', '', ''))
|
||||
{
|
||||
$result=array();
|
||||
foreach($bestellung->result as $row)
|
||||
echo html_entity_decode($row->bestell_nr).'|'.html_entity_decode($bestellung->insertamum).', '.html_entity_decode($row->bestell_nr).', '.html_entity_decode($row->titel).' '.html_entity_decode($row->bemerkung)."\n";
|
||||
{
|
||||
$item['bestell_nr']=html_entity_decode($row->bestell_nr);
|
||||
$item['insertamum']=html_entity_decode($bestellung->insertamum);
|
||||
$item['titel']=html_entity_decode($row->titel);
|
||||
$item['bemerkung']=html_entity_decode($row->bemerkung);
|
||||
$result[]=$item;
|
||||
// echo html_entity_decode($row->bestell_nr).'|'.html_entity_decode($bestellung->insertamum).', '.html_entity_decode($row->bestell_nr).', '.html_entity_decode($row->titel).' '.html_entity_decode($row->bemerkung)."\n";
|
||||
}
|
||||
echo json_encode($result);
|
||||
}
|
||||
else
|
||||
exit($bestellung->errormsg."\n");
|
||||
|
||||
break;
|
||||
break;
|
||||
|
||||
// Bestellung ID
|
||||
case 'wawi_bestellung_id':
|
||||
$filter=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$filter=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($filter) || $filter=='')
|
||||
exit();
|
||||
$bestellung = new wawi_bestellung();
|
||||
|
||||
if ($bestellung->getBestellung($filter))
|
||||
{
|
||||
$result=array();
|
||||
foreach($bestellung->result as $row)
|
||||
echo html_entity_decode($row->bestellung_id).'|'.html_entity_decode($bestellung->insertamum).', '.html_entity_decode($row->bestell_nr).', '.html_entity_decode($row->titel).' '.html_entity_decode($row->bemerkung)."\n";
|
||||
{
|
||||
$item['bestellung_id']=html_entity_decode($row->bestellung_id);
|
||||
$item['insertamum']=html_entity_decode($bestellung->insertamum);
|
||||
$item['bestell_nr']=html_entity_decode($row->bestell_nr);
|
||||
$item['titel']=html_entity_decode($row->titel);
|
||||
$item['bemerkung']=html_entity_decode($row->bemerkung);
|
||||
$result[]=$item;
|
||||
// echo html_entity_decode($row->bestellung_id).'|'.html_entity_decode($bestellung->insertamum).', '.html_entity_decode($row->bestell_nr).', '.html_entity_decode($row->titel).' '.html_entity_decode($row->bemerkung)."\n";
|
||||
}
|
||||
echo json_encode($result);
|
||||
}
|
||||
else
|
||||
exit($bestellung->errormsg."\n");
|
||||
@@ -374,28 +448,45 @@
|
||||
|
||||
// Bestelldetail ID
|
||||
case 'wawi_bestelldetail_id':
|
||||
$filter=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$filter=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($bestellung_id) || $bestellung_id=='' || is_null($filter) || $filter=='')
|
||||
exit();
|
||||
|
||||
$bestelldetail = new wawi_bestelldetail();
|
||||
$bestelldetail->getAllDetailsFromBestellung($bestellung_id, $filter);
|
||||
|
||||
$result=array();
|
||||
foreach($bestelldetail->result as $row)
|
||||
echo html_entity_decode($row->bestelldetail_id).'|'.', '.html_entity_decode($row->beschreibung).', '.html_entity_decode($row->artikelnummer).' Preis VE '.html_entity_decode(number_format($row->preisprove,2)).', Menge '.html_entity_decode($row->menge)."\n";
|
||||
{
|
||||
$item['bestelldetail_id']=html_entity_decode($row->bestelldetail_id);
|
||||
$item['beschreibung']=html_entity_decode($row->beschreibung);
|
||||
$item['artikelnummer']=html_entity_decode($row->artikelnummer);
|
||||
$item['preisprove']=html_entity_decode(number_format($row->preisprove,2));
|
||||
$item['menge']=html_entity_decode($row->menge);
|
||||
$result[]=$item;
|
||||
// echo html_entity_decode($row->bestelldetail_id).'|'.', '.html_entity_decode($row->beschreibung).', '.html_entity_decode($row->artikelnummer).' Preis VE '.html_entity_decode(number_format($row->preisprove,2)).', Menge '.html_entity_decode($row->menge)."\n";
|
||||
}
|
||||
echo json_encode($result);
|
||||
break;
|
||||
|
||||
|
||||
// Firmen Search
|
||||
case 'wawi_firma_search':
|
||||
$firma_search=trim((isset($_REQUEST['q']) ? $_REQUEST['q']:''));
|
||||
$firma_search=trim((isset($_REQUEST['term']) ? $_REQUEST['term']:''));
|
||||
if (is_null($firma_search) ||$firma_search=='')
|
||||
exit();
|
||||
$firma = new firma();
|
||||
$firma->searchFirma($firma_search);
|
||||
foreach($firma->result as $row)
|
||||
echo html_entity_decode($row->firma_id).'|'.', '.html_entity_decode($row->name)."\n";
|
||||
|
||||
$result=array();
|
||||
foreach($firma->result as $row)
|
||||
{
|
||||
$item['firma_id']=html_entity_decode($row->firma_id);
|
||||
$item['name']=html_entity_decode($row->name);
|
||||
$result[]=$item;
|
||||
// echo html_entity_decode($row->firma_id).'|'.', '.html_entity_decode($row->name)."\n";
|
||||
}
|
||||
echo json_encode($result);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
@@ -214,8 +214,10 @@ if(isset($_POST['updateliste']))
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css">
|
||||
<script src="../../include/js/jquery.js" type="text/javascript"></script>
|
||||
<script src="../../include/js/jquery.autocomplete.min.js" type="text/javascript"></script>
|
||||
<!-- <script src="../../include/js/jquery.js" type="text/javascript"></script> -->
|
||||
<!-- <script src="../../include/js/jquery.autocomplete.min.js" type="text/javascript"></script> -->
|
||||
<script type="text/javascript" src="../../include/js/jquery1.9.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css"/>
|
||||
<script type="text/javascript">
|
||||
var ajxFile = "<?php echo $_SERVER["PHP_SELF"]; ?>";
|
||||
var erfasst = new Array();
|
||||
@@ -309,7 +311,24 @@ if(isset($_POST['updateliste']))
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
$('#ort_kurzbz').autocomplete('inventar_autocomplete.php', {
|
||||
$('#ort_kurzbz').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=inventar_ort",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].ort_kurzbz;
|
||||
ui.content[i].label=ui.content[i].ort_kurzbz+" "+ui.content[i].bezeichnung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.ort_kurzbz;
|
||||
}
|
||||
});
|
||||
/* $('#ort_kurzbz').autocomplete('inventar_autocomplete.php', {
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:300,
|
||||
@@ -319,7 +338,7 @@ if(isset($_POST['updateliste']))
|
||||
extraParams:{'work':'inventar_ort'
|
||||
,'betriebsmitteltyp':$("#betriebsmitteltyp").val()
|
||||
,'betriebsmittelstatus_kurzbz':$("#betriebsmittelstatus_kurzbz").val() }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -330,14 +349,31 @@ if(isset($_POST['updateliste']))
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#person_id').autocomplete('inventar_autocomplete.php',
|
||||
$('#person_id').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=person",
|
||||
minLength:4,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].person_id;
|
||||
ui.content[i].label=ui.content[i].person_id+' '+ui.content[i].anrede+' '+ui.content[i].titelpre+' '+ui.content[i].vorname+' '+ui.content[i].nachname+' '+ui.content[i].funktion;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.person_id;
|
||||
}
|
||||
});
|
||||
/* $('#person_id').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:4,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'person' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
||||
@@ -262,7 +262,7 @@
|
||||
else
|
||||
$errormsg[]=$oBetriebsmittel->errormsg;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Vorlagedaten lesen
|
||||
if ($bestellung_id!='' && empty($work)
|
||||
@@ -359,11 +359,14 @@
|
||||
<title>Inventar</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
|
||||
<link rel="stylesheet" href="../../skin/fhcomplete.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/jquery.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../skin/vilesci.css" type="text/css">
|
||||
|
||||
<script src="../../include/js/jquery.js" type="text/javascript"></script>
|
||||
<script src="../../include/js/jquery-ui.js" type="text/javascript"></script>
|
||||
<!-- <script src="../../include/js/jquery.js" type="text/javascript"></script> -->
|
||||
<!-- <script src="../../include/js/jquery-ui.js" type="text/javascript"></script> -->
|
||||
<script type="text/javascript" src="../../include/js/jquery1.9.min.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../../skin/jquery-ui-1.9.2.custom.min.css"/>
|
||||
|
||||
<style type="text/css">
|
||||
table.navbar td
|
||||
@@ -420,6 +423,7 @@ if($betriebsmittel_id!='' || $anzahl_lock)
|
||||
</legend>
|
||||
|
||||
<div id="container" style="display:<?php echo ($vorlage && $vorlage!='false'?'block':'none'); ?>;">
|
||||
|
||||
<table class="navbar">
|
||||
<tr>
|
||||
<td>
|
||||
@@ -427,11 +431,29 @@ if($betriebsmittel_id!='' || $anzahl_lock)
|
||||
<tr>
|
||||
|
||||
<td> <label for="bestellung_id">Bestellung ID</label>
|
||||
<input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="bestellung_id" name="bestellung_id" size="10" value="<?php echo $bestellung_id;?>">
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
<!-- <input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="bestellung_id" name="bestellung_id" size="10" value="<?php //echo $bestellung_id;?>"> -->
|
||||
<input id="bestellung_id" name="bestellung_id" size="10" value="<?php echo $bestellung_id;?>">
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#bestellung_id').autocomplete('inventar_autocomplete.php',
|
||||
$('#bestellung_id').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_bestellung_id",
|
||||
minLength:5,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].bestellung_id;
|
||||
ui.content[i].label=ui.content[i].bestellung_id+', '+ui.content[i].insertamum+', '+ui.content[i].bestell_nr+', '+ui.content[i].titel+', '+ui.content[i].bemerkung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.bestellung_id;
|
||||
}
|
||||
});
|
||||
/* $('#bestellung_id').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:5,
|
||||
matchSubset:1,matchContains:1,
|
||||
@@ -440,17 +462,35 @@ if($betriebsmittel_id!='' || $anzahl_lock)
|
||||
extraParams:{'work':'wawi_bestellung_id'
|
||||
,'oe_kurzbz':$("#oe_kurzbz").val()
|
||||
,'hersteller':$("#hersteller").val()}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<input style="display:none" id="bestellung_id_old" name="bestellung_id_old" value="<?php echo $bestellung_id;?>">
|
||||
</td>
|
||||
<td> <label for="bestelldetail_id">Bestelldetail ID</label>
|
||||
<input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="bestelldetail_id" name="bestelldetail_id" size="6" value="<?php echo $bestelldetail_id;?>">
|
||||
<!-- <input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="bestelldetail_id" name="bestelldetail_id" size="6" value="<?php //echo $bestelldetail_id;?>"> -->
|
||||
<input id="bestelldetail_id" name="bestelldetail_id" size="6" value="<?php echo $bestelldetail_id;?>">
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#bestelldetail_id').autocomplete('inventar_autocomplete.php',
|
||||
$('#bestelldetail_id').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_bestelldetail_id",
|
||||
minLength:1,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].bestelldetail_id;
|
||||
ui.content[i].label=ui.content[i].bestelldetail_id+', '+ui.content[i].beschreibung+' '+ui.content[i].artikelnummer+' Preis VE '+ui.content[i].preisprove+', Menge '+ui.content[i].menge;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.bestelldetail_id;
|
||||
}
|
||||
});
|
||||
/* $('#bestelldetail_id').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:1,
|
||||
matchSubset:1,matchContains:1,
|
||||
@@ -459,7 +499,7 @@ if($betriebsmittel_id!='' || $anzahl_lock)
|
||||
extraParams:{'work':'wawi_bestelldetail_id'
|
||||
,'bestellung_id':$("#bestellung_id").val()
|
||||
}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<input style="display:none" id="bestelldetail_id_old" name="bestelldetail_id_old" value="<?php echo $bestelldetail_id;?>">
|
||||
@@ -470,14 +510,31 @@ if($betriebsmittel_id!='' || $anzahl_lock)
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#hersteller').autocomplete('inventar_autocomplete.php',
|
||||
$('#hersteller').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=hersteller",
|
||||
minLength:3,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].hersteller;
|
||||
ui.content[i].label=ui.content[i].hersteller;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.hersteller;
|
||||
}
|
||||
});
|
||||
/* $('#hersteller').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'hersteller' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -509,18 +566,37 @@ if($betriebsmittel_id!='' || $anzahl_lock)
|
||||
</td>
|
||||
|
||||
<td> <label for="ort_kurzbz">Ort</label>
|
||||
<input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="ort_kurzbz" name="ort_kurzbz" size="16" value="<?php echo $ort_kurzbz;?>">
|
||||
<!-- <input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="ort_kurzbz" name="ort_kurzbz" size="16" value="<?php //echo $ort_kurzbz;?>"> -->
|
||||
<input id="ort_kurzbz" name="ort_kurzbz" size="16" value="<?php echo $ort_kurzbz;?>">
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#ort_kurzbz').autocomplete('inventar_autocomplete.php',
|
||||
$('#ort_kurzbz').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=ort",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].ort_kurzbz;
|
||||
ui.content[i].label=ui.content[i].ort_kurzbz+' '+ui.content[i].bezeichnung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.ort_kurzbz;
|
||||
}
|
||||
});
|
||||
|
||||
/* $('#ort_kurzbz').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:300,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'ort' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
@@ -541,18 +617,37 @@ if($betriebsmittel_id!='' || $anzahl_lock)
|
||||
<table class="navbar">
|
||||
<tr>
|
||||
<td> <label for="oe_kurzbz">Organisation</label>
|
||||
<input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="oe_kurzbz" name="oe_kurzbz" size="13" value="<?php echo $oe_kurzbz;?>">
|
||||
<!-- <input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="oe_kurzbz" name="oe_kurzbz" size="13" value="<?php // echo $oe_kurzbz;?>"> -->
|
||||
<input id="oe_kurzbz" name="oe_kurzbz" size="13" value="<?php echo $oe_kurzbz;?>">
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#oe_kurzbz').autocomplete('inventar_autocomplete.php',
|
||||
$('#oe_kurzbz').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=organisationseinheit",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].oe_kurzbz;
|
||||
ui.content[i].label=ui.content[i].oe_kurzbz+' '+ui.content[i].bezeichnung+' '+ui.content[i].organisationseinheittyp;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.oe_kurzbz;
|
||||
}
|
||||
});
|
||||
|
||||
/* $('#oe_kurzbz').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'organisationseinheit' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -597,18 +692,36 @@ if($betriebsmittel_id!='' || $anzahl_lock)
|
||||
?>
|
||||
|
||||
<td> <label for="person_id">Mitarbeiter</label>
|
||||
<input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="person_id" name="person_id" size="13" value="<?php echo $person_id; ?>">
|
||||
<!-- <input onchange="if (this.value.length>0) {setTimeout('document.sendform.submit()',1300);}" id="person_id" name="person_id" size="13" value="<?php echo $person_id; ?>"> -->
|
||||
<input id="person_id" name="person_id" size="13" value="<?php echo $person_id; ?>">
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#person_id').autocomplete('inventar_autocomplete.php',
|
||||
$('#person_id').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=person",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].person_id;
|
||||
ui.content[i].label=ui.content[i].person_id+' '+ui.content[i].anrede+' '+ui.content[i].titelpre+' '+ui.content[i].vorname+' '+ui.content[i].nachname+' '+ui.content[i].funktion;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.person_id;
|
||||
}
|
||||
});
|
||||
/* $('#person_id').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'person'}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
@@ -1073,11 +1186,29 @@ for ($pos=0;$pos<$anzahl;$pos++)
|
||||
<table class="navbar">
|
||||
<tr>
|
||||
<td> <label for="bestellung_id_array<?php echo $pos; ?>">Bestellung ID</label>
|
||||
<input id="bestellung_id_array<?php echo $pos; ?>" <?php echo ($vorlage=='false'?"onchange=\"if (this.value.length>0) {setTimeout('SubmitOhneVorlage()',1300);}\"":""); ?> name="bestellung_id_array[]" size="10" value="<?php echo $bestellung_id_array[$pos]; ?>">
|
||||
<!-- <input id="bestellung_id_array<?php echo $pos; ?>" <?php echo ($vorlage=='false'?"onchange=\"if (this.value.length>0) {setTimeout('SubmitOhneVorlage()',1300);}\"":""); ?> name="bestellung_id_array[]" size="10" value="<?php echo $bestellung_id_array[$pos]; ?>"> -->
|
||||
<input id="bestellung_id_array<?php echo $pos; ?>" name="bestellung_id_array[]" size="10" value="<?php echo $bestellung_id_array[$pos]; ?>">
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#bestellung_id_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
$('#bestellung_id_array<?php echo $pos; ?>').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_bestellung_id",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].bestellung_id;
|
||||
ui.content[i].label=ui.content[i].bestellung_id+', '+ui.content[i].insertamum+', '+ui.content[i].bestell_nr+', '+ui.content[i].titel+', '+ui.content[i].bemerkung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.bestellung_id;
|
||||
}
|
||||
});
|
||||
/* $('#bestellung_id_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
@@ -1086,7 +1217,7 @@ for ($pos=0;$pos<$anzahl;$pos++)
|
||||
extraParams:{'work':'wawi_bestellung_id'
|
||||
,'oe_kurzbz':$("#oe_kurzbz_array<?php echo $pos; ?>").val()
|
||||
,'hersteller':$("#hersteller_array<?php echo $pos; ?>").val()}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -1095,7 +1226,24 @@ for ($pos=0;$pos<$anzahl;$pos++)
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#bestelldetail_id_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
$('#bestelldetail_id_array<?php echo $pos; ?>').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=wawi_bestelldetail_id",
|
||||
minLength:1,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].bestelldetail_id;
|
||||
ui.content[i].label=ui.content[i].bestelldetail_id+', '+ui.content[i].beschreibung+' '+ui.content[i].artikelnummer+' Preis VE '+ui.content[i].preisprove+', Menge '+ui.content[i].menge;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.bestelldetail_id;
|
||||
}
|
||||
});
|
||||
/* $('#bestelldetail_id_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:1,
|
||||
matchSubset:1,matchContains:1,
|
||||
@@ -1105,7 +1253,7 @@ for ($pos=0;$pos<$anzahl;$pos++)
|
||||
,'bestellung_id':$("#bestellung_id_array<?php echo $pos; ?>").val()
|
||||
,'oe_kurzbz':$("#oe_kurzbz_array<?php echo $pos; ?>").val()
|
||||
,'hersteller':$("#hersteller_array<?php echo $pos; ?>").val()}
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -1116,14 +1264,31 @@ for ($pos=0;$pos<$anzahl;$pos++)
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#hersteller_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
$('#hersteller_array<?php echo $pos; ?>').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=hersteller",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].hersteller;
|
||||
ui.content[i].label=ui.content[i].hersteller;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.hersteller;
|
||||
}
|
||||
});
|
||||
/* $('#hersteller_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'hersteller' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
</td>
|
||||
@@ -1162,14 +1327,31 @@ for ($pos=0;$pos<$anzahl;$pos++)
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#ort_kurzbz_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
$('#ort_kurzbz_array<?php echo $pos; ?>').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=ort",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].ort_kurzbz;
|
||||
ui.content[i].label=ui.content[i].ort_kurzbz+' '+ui.content[i].bezeichnung;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.ort_kurzbz;
|
||||
}
|
||||
});
|
||||
/* $('#ort_kurzbz_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:300,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'ort' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
@@ -1194,14 +1376,31 @@ for ($pos=0;$pos<$anzahl;$pos++)
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#oe_kurzbz_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
$('#oe_kurzbz_array<?php echo $pos; ?>').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=organisationseinheit",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].oe_kurzbz;
|
||||
ui.content[i].label=ui.content[i].oe_kurzbz+' '+ui.content[i].bezeichnung+' '+ui.content[i].organisationseinheittyp;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.oe_kurzbz;
|
||||
}
|
||||
});
|
||||
/* $('#oe_kurzbz_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'organisationseinheit' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
@@ -1223,14 +1422,31 @@ for ($pos=0;$pos<$anzahl;$pos++)
|
||||
<script type="text/javascript" language="JavaScript1.2">
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('#person_id_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
$('#person_id_array<?php echo $pos; ?>').autocomplete({
|
||||
source: "inventar_autocomplete.php?work=person",
|
||||
minLength:2,
|
||||
response: function(event, ui)
|
||||
{
|
||||
//Value und Label fuer die Anzeige setzen
|
||||
for(i in ui.content)
|
||||
{
|
||||
ui.content[i].value=ui.content[i].person_id;
|
||||
ui.content[i].label=ui.content[i].person_id+' '+ui.content[i].anrede+' '+ui.content[i].titelpre+' '+ui.content[i].vorname+' '+ui.content[i].nachname+' '+ui.content[i].funktion;
|
||||
}
|
||||
},
|
||||
select: function(event, ui)
|
||||
{
|
||||
ui.item.value=ui.item.person_id;
|
||||
}
|
||||
});
|
||||
/* $('#person_id_array<?php echo $pos; ?>').autocomplete('inventar_autocomplete.php',
|
||||
{
|
||||
minChars:2,
|
||||
matchSubset:1,matchContains:1,
|
||||
width:400,
|
||||
formatItem:formatItem,
|
||||
extraParams:{'work':'person' }
|
||||
});
|
||||
}); */
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user