mirror of
https://github.com/Vateron-Media/XC_VM.git
synced 2026-10-22 04:03:06 +02:00
27 lines
1.1 KiB
PHP
27 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* RadioMassController — массовое редактирование радиостанций.
|
|
*/
|
|
class RadioMassController extends BaseAdminController
|
|
{
|
|
public function index()
|
|
{
|
|
$this->requirePermission();
|
|
|
|
global $rServers;
|
|
|
|
$rCategories = CategoryService::getAllByType('radio');
|
|
$rServerTree = array(
|
|
array('id' => 'source', 'parent' => '#', 'text' => "<strong class='btn btn-success waves-effect waves-light btn-xs'>Active</strong>", 'icon' => 'mdi mdi-play', 'state' => array('opened' => true)),
|
|
array('id' => 'offline', 'parent' => '#', 'text' => "<strong class='btn btn-secondary waves-effect waves-light btn-xs'>Offline</strong>", 'icon' => 'mdi mdi-stop', 'state' => array('opened' => true))
|
|
);
|
|
|
|
foreach ($rServers as $rServer) {
|
|
$rServerTree[] = array('id' => $rServer['id'], 'parent' => 'offline', 'text' => $rServer['server_name'], 'icon' => 'mdi mdi-server-network', 'state' => array('opened' => true));
|
|
}
|
|
|
|
$this->setTitle('Mass Edit Stations');
|
|
$this->render('radio_mass', compact('rCategories', 'rServerTree'));
|
|
}
|
|
}
|