Hallo,
ich hab keinen blassen dunst warum das nicht funktionert:
Code:
<SCRIPT language='JavaScript'>
<!--hide
function reloadclose()
{
setTimeout('opener.location.reload();window.close()', 1000);
}
//-->
</SCRIPT>
Ich ruf die funktion so auf:
Code:
<input type=CHECKBOX onClick=\"location.href='cal_eintrag.php?action=day_block&von=$user_ID&an=$set_ADM&datum=$tdate';reloadclose();\">
...er refresht weder das "Mutterfenster" noch schließt er das fenster
wobei es nur hier funktioniert:
Code:
<input type=button border=0 value='Springe zu Kontakt' onClick=\"opener.location.href='kd_detail.php?action=select&ab=0&bis=100&ID=".$term_fetch2['contact']."';reloadclose();\">
hier mal der ganze code:
PHP-Code:
<?php
echo "
<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN>
<html>
<head>
<title>Termineintrag</title>
<SCRIPT language='JavaScript'>
<!--hide
function reloadclose()
{
setTimeout('opener.location.reload();window.close()', 3000);
}
//-->
</SCRIPT>
</head>
<body bgcolor=$bgcolor3 text=#000000 link=#0000FF vlink=#800080 alink=#FF0000>";
if($term_ID=="")
{
echo"
<font color=#00FF00>[b]Neueintrag[/b]</font>
<table border=0 cellpadding=0 cellspacing=0>
<form action=cal_eintrag.php method=post onsubmit=\"opener.location.reload();window.close();\">
<input type=HIDDEN name=action value=set_termin>
<input type=HIDDEN name=von value=$user_ID>
<input type=HIDDEN name=an value='$set_ADM'>
<input type=HIDDEN name=ID value='$ID'>
<input type=HIDDEN name=ADM_mail value='$ADM_mail'>
<input type=HIDDEN name=kdmail_firma value='".$kd_event2['firma']."'>
<input type=HIDDEN name=kdmail_name value='".$kd_event2['nachname']."'>
<input type=HIDDEN name=kdmail_vname value='".$kd_event2['vorname']."'>
<input type=HIDDEN name=kdmail_tel1 value='".$kd_event2['tel1']."'>
<input type=HIDDEN name=kdmail_mobil value='".$kd_event2['mobil']."'>
<input type=HIDDEN name=kdmail_str value='".$kd_event2['strasse']."'>
<input type=HIDDEN name=kdmail_plz value='".$kd_event2['plz']."'>
<input type=HIDDEN name=kdmail_stadt value='".$kd_event2['stadt']."'>
<input type=HIDDEN name=kdmail_email value='".$kd_event2['email']."'>
<input type=HIDDEN name=kdmail_url value='".$kd_event2['url']."'>
<input type=HIDDEN name=kdmail_branche1 value='".$kd_event2['branche1']."'>
<input type=HIDDEN name=kdmail_branche2 value='".$kd_event2['branche2']."'>
<input type=HIDDEN name=kdmail_branche3 value='".$kd_event2['branche3']."'>
<input type=HIDDEN name=kdmail_branche4 value='".$kd_event2['branche4']."'>
<input type=HIDDEN name=term_ID value='$term_ID'>
<tr><td colspan=2>[b]Datum[/b]</td></tr>
<tr><td colspan=2><input type='text' size=10 name='datum' value='$tdate'>
[b]von:[/b]<input type='text' name='anfang' alt='4 Stellige Anfangszeit zB 0830' value='$anfang' size='4' maxlength='4' >
[b]bis:[/b]<input type='text' name='ende' size='4' value='".$out10['ende']."$ende' maxlength='4' >
[b]Tag Blocken[/b]<input type=CHECKBOX onClick=\"location.href='cal_eintrag.php?action=day_block&von=$user_ID&an=$set_ADM&datum=$tdate';reloadclose();\"></td></tr>
<tr><td colspan=2>[b]Event[/b]</td></tr>
<tr><td colspan=2><input type=text size=70 name=event value='".$kd_event2['stadt'].",".$kd_event2['strasse'].",".$kd_event2['firma'].",".$kd_event2['nachname'].",".$kd_event2['tel1']."'></td></tr>
<tr><td colspan=2>[b]Bemerkung Termin[/b]</td></tr>
<tr><td colspan=2><textarea name=note2 rows=5 cols=53></textarea></td></tr>
<tr><td><input type=submit border=0 value=Speichern></form></td>
<td align=right>
</td>
</tr>
</table>";
}
else
{
echo"
<font color=#FF0000>[b]Ändern/Löschen[/b]</font>
<table border=0 cellpadding=0 cellspacing=0>
<form action=cal_eintrag.php method=get onsubmit=\"reloadclose()\">
<input type=HIDDEN name=action value=up_termin>
<input type=HIDDEN name=von value=$user_ID>
<input type=HIDDEN name=an value=$set_ADM>
<input type=HIDDEN name=ID value='$ID'>
<input type=HIDDEN name=term_ID value='$term_ID'>
<tr><td colspan=2>[b]Datum[/b]</td></tr>
<tr><td colspan=2><input type='text' size=10 name='datum' value='".$term_fetch2['datum']."'>[b]von:[/b]<input type='text' name='anfang' alt='4 Stellige Anfangszeit zB 0830' value='".$term_fetch2['anfang']."' size='4' maxlength='4' >[b]bis:[/b]<input type='text' name='ende' size='4' value='".$term_fetch2['ende']."' maxlength='4' ></td></tr>
<tr><td colspan=2>[b]Event[/b]</td></tr>
<tr><td colspan=2><input type=text size=70 name=event value='".$term_fetch2['event']."'></td></tr>
<tr><td colspan=2>[b]Bemerkung Termin[/b]</td></tr>
<tr><td colspan=2><textarea name=note2 rows=5 cols=53>".$term_fetch2['note2']."</textarea></td></tr>
<tr><td><input type=submit border=0 value=Speichern>
<input type=button border=0 value='Springe zu Kontakt' onClick=\"opener.location.href='kd_detail.php?action=select&ab=0&bis=100&ID=".$term_fetch2['contact']."';reloadclose();\"></form></td>
<td align=right>
<form action=cal_eintrag.php method=get onsubmit=\"reloadclose()\">
<table border=0 cellpadding=0 cellspacing=0>
<input type=HIDDEN name=action value=del_termin>
<input type=HIDDEN name=von value=$user_ID>
<input type=HIDDEN name=an value=$ADM_name[0] >
<input type=HIDDEN name=ID value='$ID'>
<input type=HIDDEN name=term_ID value='$term_ID'>
<input type=submit border=0 value=Löschen>
</form>
</td>
</tr>
</table>";
}
?>
vielleicht weis ja jemand von euch rat.
Gruss Gero