
HTML |
<form name=form0 action=<?php echo $action; ?> method=post > <p class=zag4>Перезвонить через <br><input style="font-weight: bold" size=5 class=input type=text name=perezv value='<?php echo $_POST['perezv']; ?>'> минут <input type=hidden name=zv value=yes><input type=hidden name=id_predpr value=<? echo $id_predpr;?>><br> <input class=button type=submit value=Запомнить > </form> |
PHP |
if(isset($_POST['zv'])){ |
HTML |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script> var timer; function ge(id) { return document.getElementById(id); } function startTimer(fn) { timer = setTimeout(fn, ge('time').value * 600); ge('stopBtn').style.display = ''; } function stopTimer() { clearTimeout(timer); ge('stopBtn').style.display = 'none'; } function runFn() { ge('stopBtn').style.display = 'none'; window.open('napom.php?id_predpr=', 'addproekt', 'width=300,height=100,left=100, top=50') } </script> </head> <body> <p>Перезвонить через <br /> <input size="2" id="time" /> минут <input type="button" onclick="startTimer(runFn)" value="Старт!" /> <input type="button" id="stopBtn" style="display: none" onclick="stopTimer()" value="Стоп" /> </body> </html> |
Цитата (Yulk @ 7.04.2009 - 00:15) |
Все хорошо, спасибо, только мне еще нужно передать в открывающееся окно параметр id_predpr... |