示例#1
0
<script>
    window.onunload = refreshParent;
    function refreshParent() {
        window.opener.location.reload();
    }
</script>
</head>
<body>
<?php 
$room = $_GET["r"];
$ip = $_GET["ip"];
require_once "class.php";
$testRoom = new roomControl();
$testRoom->url = 'http://' . $ip;
$testRoom->name = $room;
$testRoom->ip = $ip;
$testRoom->turnOffTable3();
sleep(1);
$testRoom->turnOffProjector3();
sleep(1);
$testRoom->turnOff33();
sleep(1);
$testRoom->turnOffAir_con3();
sleep(1);
closeWindows();
?>

</body>

</html>