2016-09-30 22:31:30 +00:00
|
|
|
<?php $this->layout('main', ['title' => _('Streamer/DJ Accounts'), 'manual' => true]) ?>
|
2016-09-02 00:34:08 +00:00
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header ch-alt">
|
2016-09-30 22:31:30 +00:00
|
|
|
<h2><?=_('Streamer/DJ Accounts') ?></h2>
|
2016-09-02 00:34:08 +00:00
|
|
|
|
2016-09-17 19:25:29 +00:00
|
|
|
<a class="btn bgm-blue btn-float" href="<?=$url->routeFromHere(array('action' => 'edit')) ?>"><i class="zmdi zmdi-plus"></i></a>
|
2016-09-02 00:34:08 +00:00
|
|
|
</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>
|
2016-09-30 22:31:30 +00:00
|
|
|
<th><?=_('Actions') ?></th>
|
|
|
|
<th><?=_('Username') ?></th>
|
|
|
|
<th><?=_('Password') ?></th>
|
|
|
|
<th><?=_('Notes') ?></th>
|
2016-09-02 00:34:08 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-09-17 22:48:40 +00:00
|
|
|
<?php foreach($streamers as $row): ?>
|
|
|
|
<tr class="vertical-align-middle <?php if (!$row->is_active): ?>text-muted<?php endif; ?>">
|
2016-09-02 00:34:08 +00:00
|
|
|
<td>
|
2016-09-17 19:25:29 +00:00
|
|
|
<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>
|
2016-09-02 00:34:08 +00:00
|
|
|
</td>
|
2016-09-30 22:31:30 +00:00
|
|
|
<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>
|
2016-09-02 00:34:08 +00:00
|
|
|
</tr>
|
2016-09-17 22:48:40 +00:00
|
|
|
<?php endforeach; ?>
|
2016-09-02 00:34:08 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header ch-alt">
|
2016-09-30 22:31:30 +00:00
|
|
|
<h2><?=_('Connection Information') ?></h2>
|
2016-09-02 00:34:08 +00:00
|
|
|
</div>
|
|
|
|
<div class="card-body card-padding">
|
2016-10-21 05:38:23 +00:00
|
|
|
<?php
|
2016-09-02 00:34:08 +00:00
|
|
|
$frontend_type = $station->frontend_type;
|
|
|
|
$frontend_info = (array)$station->frontend_config;
|
|
|
|
|
|
|
|
if ($frontend_type == 'icecast'):
|
|
|
|
?>
|
2016-09-30 22:31:30 +00:00
|
|
|
<h4><?=_('IceCast Clients') ?></h4>
|
2016-09-02 00:34:08 +00:00
|
|
|
<dl>
|
2016-09-30 22:31:30 +00:00
|
|
|
<dt><?=_('Server') ?>:</dt>
|
2016-09-02 00:34:08 +00:00
|
|
|
<dd><?=$server_url ?></dd>
|
|
|
|
|
2016-09-30 22:31:30 +00:00
|
|
|
<dt><?=_('Port') ?>:</dt>
|
2016-09-02 00:34:08 +00:00
|
|
|
<dd><?=(int)$frontend_info['port'] ?></dd>
|
|
|
|
|
2016-09-30 22:31:30 +00:00
|
|
|
<dt><?=_('Mount Name') ?>:</dt>
|
2016-09-02 00:34:08 +00:00
|
|
|
<dd>/radio.mp3</dd>
|
|
|
|
</dl>
|
|
|
|
|
2016-09-30 22:31:30 +00:00
|
|
|
<h4><?=_('ShoutCast 1.x Legacy Clients') ?></h4>
|
2016-09-02 00:34:08 +00:00
|
|
|
<dl>
|
2016-09-30 22:31:30 +00:00
|
|
|
<dt><?=_('Server') ?>:</dt>
|
2016-09-02 00:34:08 +00:00
|
|
|
<dd><?=$server_url ?></dd>
|
|
|
|
|
2016-09-30 22:31:30 +00:00
|
|
|
<dt><?=_('Port') ?>:</dt>
|
2016-09-02 00:34:08 +00:00
|
|
|
<dd><?=(int)$frontend_info['port']+1 ?></dd>
|
|
|
|
|
2016-09-30 22:31:30 +00:00
|
|
|
<dt><?=('Username') ?>:</dt>
|
2016-09-02 04:53:50 +00:00
|
|
|
<dd>(Leave blank)</dd>
|
|
|
|
|
2016-09-30 22:31:30 +00:00
|
|
|
<dt><?=_('Password') ?>:</dt>
|
2016-09-02 04:53:50 +00:00
|
|
|
<dd><?=$frontend_info['streamer_pw'] ?></dd>
|
2016-09-02 00:34:08 +00:00
|
|
|
</dl>
|
2016-10-21 05:38:23 +00:00
|
|
|
<?php
|
2016-09-02 00:34:08 +00:00
|
|
|
endif;
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|