mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
admin: fill servers dropdown with the db #222
with proper html quotes...
This commit is contained in:
parent
30413db548
commit
1e57015a65
1 changed files with 10 additions and 8 deletions
|
@ -12,14 +12,16 @@ $server = getparam('server');
|
||||||
echo <<<end
|
echo <<<end
|
||||||
<div align="right" style="margin-top: -14px; margin-bottom: 6px;">
|
<div align="right" style="margin-top: -14px; margin-bottom: 6px;">
|
||||||
Select Server:
|
Select Server:
|
||||||
<select id='server_select'>
|
<select id="server_select">
|
||||||
<option value=''>all</option>
|
<option value="">all</option>
|
||||||
<option value='yaamp1'>yaamp1</option>
|
end;
|
||||||
<option value='yaamp2'>yaamp2</option>
|
|
||||||
<option value='yaamp3'>yaamp3</option>
|
$serverlist = dbolist("SELECT DISTINCT rpchost FROM coins WHERE installed=1 ORDER BY rpchost");
|
||||||
<option value='yaamp4'>yaamp4</option>
|
foreach ($serverlist as $srv) {
|
||||||
<option value='yaamp5'>yaamp5</option>
|
echo '<option value="'.$srv['rpchost'].'">'.$srv['rpchost'].'</option>';
|
||||||
<option value='yaamp6'>yaamp6</option>
|
}
|
||||||
|
|
||||||
|
echo <<<end
|
||||||
</select>
|
</select>
|
||||||
<input class="search" type="search" data-column="all" style="width: 140px;" placeholder="Search..." />
|
<input class="search" type="search" data-column="all" style="width: 140px;" placeholder="Search..." />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue