Added steps to GUI, added Popn
This commit is contained in:
40
index.php
40
index.php
@@ -3,6 +3,8 @@ $IIDX_Location = "192.168.1.80";
|
||||
$IIDX_Port = 4500;
|
||||
$SDVX_Location = "192.168.1.81";
|
||||
$SDVX_Port = 4500;
|
||||
$POPN_Location = "192.168.1.82";
|
||||
$POPN_Port = 4500;
|
||||
|
||||
if (!file_exists('cards.json')) { fopen('cards.json','w'); }
|
||||
// if cards.json does not exist, we create it
|
||||
@@ -153,6 +155,20 @@ file_put_contents('settings.json',json_encode($settings));
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
}
|
||||
#step_one p {
|
||||
text-align: center;
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
font-weight: bold;
|
||||
font-size: 150%;
|
||||
}
|
||||
#step_two p {
|
||||
text-align: center;
|
||||
width: 90%;
|
||||
margin: auto;
|
||||
font-weight: bold;
|
||||
font-size: 165%;
|
||||
}
|
||||
.trigger {
|
||||
display: block;
|
||||
margin: auto;
|
||||
@@ -474,11 +490,30 @@ if (isset($_POST['trigger']) && ($_POST['trigger'] == 'edit' || $_POST['trigger'
|
||||
}
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
}
|
||||
if($slot == 'POPN') // edit p1
|
||||
{
|
||||
$fp = fsockopen($POPN_Location, $POPN_Port, $errno, $errstr, 5);
|
||||
if (!$fp)
|
||||
{
|
||||
echo "$errstr ($errno)<br />\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
fwrite($fp, "1:" . $_POST['id']);
|
||||
while (!feof($fp))
|
||||
{
|
||||
echo fgets($fp, 128);
|
||||
}
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<hr />
|
||||
<div id="step_one">
|
||||
<p>Step One: Select Machine</p>
|
||||
</div>
|
||||
<form id="cards" method="post" action="">
|
||||
<select class="trigger" name="trigger">
|
||||
<?php
|
||||
@@ -492,6 +527,9 @@ if (isset($_POST['trigger']) && ($_POST['trigger'] == 'edit' || $_POST['trigger'
|
||||
<option value="delete">DELETE</option>
|
||||
</select>
|
||||
<hr />
|
||||
<div id="step_two">
|
||||
<p>Step Two: Select Card</p>
|
||||
</div>
|
||||
<?php
|
||||
$i=0;
|
||||
foreach ($cards as $card) {
|
||||
|
@@ -1 +1 @@
|
||||
{"rcard":["IIDX_P1","IIDX_P2","SDVX"],"card":{"background":"backgrounds\/programmedsun.png","subtitle":"","icon":"","width":"400","height":"260"},"sort-key":"name","sort-order":"asc","animations":"on","regex":"cards\/monopole-$0.txt"}
|
||||
{"rcard":["IIDX_P1","IIDX_P2","SDVX","POPN"],"card":{"background":"backgrounds\/programmedsun.png","subtitle":"","icon":"","width":"400","height":"260"},"sort-key":"name","sort-order":"asc","animations":"on","regex":"cards\/monopole-$0.txt"}
|
Reference in New Issue
Block a user