AzuraCast/app/modules/stations/views/streamers/index.phtml

81 lines
3.2 KiB
PHTML
Raw Normal View History

<?php $this->layout('main', ['title' => _('Streamer/DJ Accounts'), 'manual' => true]) ?>
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header ch-alt">
<h2><?=_('Streamer/DJ Accounts') ?></h2>
<a class="btn bgm-blue btn-float" href="<?=$url->routeFromHere(array('action' => 'edit')) ?>"><i class="zmdi zmdi-plus"></i></a>
</div>
<div class="table-responsive">
<table class="table table-striped">
<colgroup>
<col width="25%">
<col width="15%">
<col width="15%">
<col width="45%">
</colgroup>
<thead>
<tr>
<th><?=_('Actions') ?></th>
<th><?=_('Username') ?></th>
<th><?=_('Password') ?></th>
<th><?=_('Notes') ?></th>
</tr>
</thead>
<tbody>
<?php foreach($streamers as $row): ?>
<tr class="vertical-align-middle <?php if (!$row->is_active): ?>text-muted<?php endif; ?>">
<td>
<a class="btn btn-sm btn-primary" href="<?=$url->routeFromHere(array('action' => 'edit', 'id' => $row->id)) ?>">Edit</a>
<a class="btn btn-sm btn-danger" href="<?=$url->routeFromHere(array('action' => 'delete', 'id' => $row->id)) ?>">Delete</a>
</td>
<td><code><?=$this->e($row->streamer_username) ?></code></td>
<td><code><?=$this->e($row->streamer_password) ?></code></td>
<td><?=nl2br($this->e($row->comments)) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header ch-alt">
<h2><?=_('Connection Information') ?></h2>
</div>
<div class="card-body card-padding">
<h4><?=_('IceCast Clients') ?></h4>
<dl>
<dt><?=_('Server') ?>:</dt>
<dd><?=$server_url ?></dd>
<dt><?=_('Port') ?>:</dt>
<dd><?=$stream_port ?></dd>
<dt><?=_('Mount Name') ?>:</dt>
<dd>/</dd>
</dl>
<h4><?=_('ShoutCast v1 Clients') ?></h4>
<dl>
<dt><?=_('Server') ?>:</dt>
<dd><?=$server_url ?></dd>
<dt><?=_('Port') ?>:</dt>
<dd><?=($stream_port + 1) ?></dd>
<dt><?=_('Password') ?>:</dt>
<dd>
dj_username:dj_password<br>
<small><?=_('(DJ username and password separated by a colon)') ?></small>
</dd>
</dl>
</div>
</div>
</div>
</div>