-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfunc_vollev.php
More file actions
69 lines (69 loc) · 2.31 KB
/
func_vollev.php
File metadata and controls
69 lines (69 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
$header = 'Volume Levels';
if ( ! isset($pioneer) )
require_once(dirname(__FILE__).'/Z8Config.php');
require_once(dirname(__FILE__).'/PioneerRebel/pioneer.lib.php');
ob_start();
$ourFile = 'PioneerRebel/ssCommon.php';
require_once($ourFile);
?>
<script type="text/javascript">
function pvRebel_setMuting(setMuted) {
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","<?php echo( $ourFile . '?pioneer='.$pioneer.'&muted=' ); ?>"+setMuted,false);
xmlhttp.send();
}
function pvRebel_setVolLev() {
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","<?php echo( $ourFile . '?volLv&pioneer='.$pioneer ); ?>&Lv="+document.getElementById('VolumeTo').value,true);
xmlhttp.send();
}
function pvRebel_setVolDec() {
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","<?php echo( $ourFile . '?volDn&pioneer='.$pioneer ); ?>",true);
xmlhttp.send();
}
function pvRebel_setVolInc() {
if (window.XMLHttpRequest) {
xmlhttp=new XMLHttpRequest();
} else {
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","<?php echo( $ourFile . '?volUp&pioneer='.$pioneer ); ?>",true);
xmlhttp.send();
}
</script>
<table border="1" cellspacing="1" cellpadding="4" style="padding: 0px; margin: 0px; margin-left: 24px; margin-bottom: 16px;">
<tr><td><h3>Pioneer VSX-1022-K</h3></td></tr>
<tr><td><p>
<input type="button" onClick="pvRebel_setVolDec()" name="Volume Down" value="Volume Down" />
<input type="button" onClick="pvRebel_setVolInc()" name="Volume Up" value="Volume Up" /><br />
<input type="button" onClick="pvRebel_setMuting('0')" name="Muting Off" value="Muting Off" />
<input type="button" onClick="pvRebel_setMuting('1')" name="Muting On" value="Muting On" />
<br />
<select name="VolumeTo" id="VolumeTo">
<?php
for ($counter = 0; $counter <= 80; $counter++) {
echo("<option value=\"".strval($counter)."\">".strval($counter)."</option>");
}
?>
</select>
<input type="button" onClick="pvRebel_setVolLev()" name="Set Volume" value="Set Volume" />
</p></td></tr>
</table>
<?php
$body = ob_get_contents();
ob_end_clean();
?>