Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
ich bin raus. Sorry.
<html>
<header>
<title>PRA verwalten</title>
<style type="text/css">
#table_m {border:solid 1px #000000; border-collapse:collapse; font-family:Arial; font-size:11;}
#table_o {border:solid 0px #000000; border-collapse:collapse; font-family:Arial; font-size:11;}
#th { border:1px solid black; }
#td { border:1px solid black;}
input {font-size:9;}
#input_s {width=12; align:center; border-width:0px;}
#sammelabschluss {position:absolute; left:187px;}
</style>
<script type="text/javascript">
function edit_window(pra)
{
fenster = window.open('pra_edit.php?pra='+pra, 'Fenster', 'width=400, height=330, scrollbars=no, top=300, left=400');
fenster.focus();
}
function open_window_newpra()
{
fenster = window.open('pra_new.php', 'Fenster', 'width=400, height=430, scrollbars=no, top=300, left=400');
fenster.document.bgColor = "Gainsboro";
fenster.focus();
}
function report_open(pra)
{
URL='rep_interim_report.php?pra='+pra;
window.location=URL;
}
</script>
</header>
<body>
<form name=titel action=index.php><
<table id=table_m align=center>
<colgroup>
<col width=20>
<col width=70>
<col width=120>
<col width=300>
<col width=150>
<col width=50>
<col width=125>
</colgroup>
<tr>
<th id=th>Abschl.</th>
<th id=th><a href=pra.php?search_text=&search_valid=Offene+PRA&order=pra>Prozess-Nr.</a></th>
<th id=th><a href=pra.php?search_text=&search_valid=Offene+PRA&order=mat_nr>Mat.-Nr.</a>
</th><th id=th><a href=pra.php?search_text=&search_valid=Offene+PRA&order=mat_bez>Material-Bezeichnung</a></th>
<th id=th><a href=pra.php?search_text=&search_valid=Offene+PRA&order=mat_info>Mat.-Info.</a></th>
<th id=th><a href=pra.php?search_text=&search_valid=Offene+PRA&order=vs>Fert.-St.</a></th>
<th id=th>Edit</th>
</tr>
<tr>
<td id=td align=center><input type=checkbox name=abschprod1></td>
<td id=td><font color=>Prod1</font><img src='info.png' width='14' height='14' onclick=report_open('prod1')></td>
<td id=td><font color=>Prod-MatNr1</font></td>
<td id=td><font color=>Prod-Name1</font></td>
<td id=td><font color=></font></td>
<td id=td><font color=>Prod-Info1</font></td>
<td><input type=button name=edit value=Edit onclick=edit_window('prod1') ><input type=submit name=close[prod1] value=Abschliessen></td>
</tr>
<tr>
<td id=td align=center><input type=checkbox name=abschprod2></td>
<td id=td><font color=>Prod2</font><img src='info.png' width='14' height='14' onclick=report_open('prod2')></td>
<td id=td><font color=>Prod-MatNr2</font></td>
<td id=td><font color=>Prod-Name2</font></td>
<td id=td><font color=></font></td>
<td id=td><font color=>Prod-Info2</font></td>
<td><input type=button name=edit value=Edit onclick=edit_window('prod2') ><input type=submit name=close[prod2] value=Abschliessen></td>
</tr>
</table>
</form>
</body>
</html>
Such mal nach "event delegation" oder "event bubbling
document.onclick = function(e)
{
e = e || window.event;
var target = e.target || e.srcElement;
var elementName = target.nodeName;
if (elementName == 'INPUT')
{
var product = target.name && target.name.match(/^edit\[(\w+)\]$/);
if(product)
{
window.open('pra_edit.php?pra=' + product[1], 'Fenster', 'width=400, height=330, scrollbars=no, top=300, left=400').focus();
}
}
else if (elementName == 'IMG')
{
var product2 = target.name.match(/^prod\[(\w+)\]$/);
URL='rep_interim_report.php?pra='+product2[1];
window.location=URL;
}
};