2011-01-22 00:14:59 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class NowplayingController extends Zend_Controller_Action
|
|
|
|
{
|
|
|
|
|
|
|
|
public function init()
|
|
|
|
{
|
2011-01-26 23:08:30 +01:00
|
|
|
$ajaxContext = $this->_helper->getHelper('AjaxContext');
|
|
|
|
$ajaxContext->addActionContext('get-data-grid-data', 'json')->initContext();
|
2011-01-22 00:14:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function indexAction()
|
|
|
|
{
|
2011-01-27 03:43:56 +01:00
|
|
|
$this->view->headScript()->appendFile('/js/datatables/js/jquery.dataTables.min.js','text/javascript');
|
2011-01-27 05:32:43 +01:00
|
|
|
$this->view->headScript()->appendFile('/js/playlist/nowplayingdatagrid.js','text/javascript');
|
2011-01-27 03:43:56 +01:00
|
|
|
$this->view->headLink()->appendStylesheet('/css/pro_dropdown_3.css');
|
|
|
|
$this->view->headLink()->appendStylesheet('/css/styles.css');
|
2011-01-27 05:32:43 +01:00
|
|
|
//$this->view->headLink()->appendStylesheet('/css/datatables/demo_page.css');
|
|
|
|
//$this->view->headLink()->appendStylesheet('/css/datatables/demo_table.css');
|
|
|
|
//$this->view->headLink()->appendStylesheet('/css/datatables/demo_table_jui.css');
|
|
|
|
//$this->view->headLink()->appendStylesheet('/css/styles.css');
|
2011-01-22 00:14:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getDataGridDataAction()
|
|
|
|
{
|
2011-01-26 23:08:30 +01:00
|
|
|
$this->view->entries = Application_Model_Nowplaying::GetDataGridData();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function livestreamAction()
|
|
|
|
{
|
|
|
|
//use bare bones layout (no header bar or menu)
|
2011-01-28 06:23:39 +01:00
|
|
|
$this->_helper->layout->setLayout('bare');
|
2011-01-22 00:14:59 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-01-26 23:08:30 +01:00
|
|
|
|
|
|
|
|