-bug CC-1823 should be fixed.
This commit is contained in:
parent
7c70385528
commit
0ba5a1f520
|
@ -54,9 +54,9 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
|
|||
$view->headScript()->appendFile('/js/libs/jquery-1.4.4.min.js','text/javascript');
|
||||
$view->headScript()->appendFile('/js/libs/jquery-ui-1.8.8.custom.min.js','text/javascript');
|
||||
$view->headScript()->appendFile('/js/libs/stuHover.js','text/javascript');
|
||||
$view->headScript()->appendFile('/js/playlist/helperfunctions.js','text/javascript');
|
||||
$view->headScript()->appendFile('/js/playlist/playlist.js','text/javascript');
|
||||
}
|
||||
|
||||
//TODO: Find better place to put this in.
|
||||
$view->addHelperPath('views/helpers', 'Airtime_View_Helper');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,9 @@ class LibraryController extends Zend_Controller_Action
|
|||
{
|
||||
$this->view->headScript()->appendFile('/js/airtime/onready/library.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/contextmenu/jjmenu.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/helperfunctions.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/playlist.js','text/javascript');
|
||||
|
||||
$this->view->headLink()->appendStylesheet('/css/contextmenu.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/pro_dropdown_3.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/styles.css');
|
||||
|
|
|
@ -23,7 +23,7 @@ class LoginController extends Zend_Controller_Action
|
|||
$request = $this->getRequest();
|
||||
$form = new Application_Form_Login();
|
||||
|
||||
$errorMessage = "";
|
||||
$message = "Please enter your user name and password";
|
||||
|
||||
if($request->isPost())
|
||||
{
|
||||
|
@ -56,12 +56,12 @@ class LoginController extends Zend_Controller_Action
|
|||
}
|
||||
else
|
||||
{
|
||||
$errorMessage = "Wrong username or password provided. Please try again.";
|
||||
$message = "Wrong username or password provided. Please try again.";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$this->view->errorMessage = $errorMessage;
|
||||
$this->view->message = $message;
|
||||
$this->view->form = $form;
|
||||
|
||||
}
|
||||
|
|
|
@ -13,12 +13,11 @@ class NowplayingController extends Zend_Controller_Action
|
|||
{
|
||||
$this->view->headScript()->appendFile('/js/datatables/js/jquery.dataTables.min.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/nowplayingdatagrid.js','text/javascript');
|
||||
$this->view->headLink()->appendStylesheet('/css/pro_dropdown_3.css');
|
||||
$this->view->headScript()->appendFile('/js/playlist/helperfunctions.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/playlist.js','text/javascript');
|
||||
|
||||
$this->view->headLink()->appendStylesheet('/css/pro_dropdown_3.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/styles.css');
|
||||
//$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');
|
||||
}
|
||||
|
||||
public function getDataGridDataAction()
|
||||
|
|
|
@ -160,16 +160,16 @@ class PluploadController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
public function pluploadAction()
|
||||
{
|
||||
$view = $this->view;
|
||||
|
||||
$view->headScript()->appendFile('/js/plupload/plupload.full.min.js','text/javascript');
|
||||
$view->headScript()->appendFile('/js/plupload/jquery.plupload.queue.min.js','text/javascript');
|
||||
$view->headScript()->appendFile('/js/airtime/library/plupload.js','text/javascript');
|
||||
{
|
||||
$this->view->headScript()->appendFile('/js/plupload/plupload.full.min.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/plupload/jquery.plupload.queue.min.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/airtime/library/plupload.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/helperfunctions.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/playlist.js','text/javascript');
|
||||
|
||||
$view->headLink()->appendStylesheet('/css/plupload.queue.css');
|
||||
$view->headLink()->appendStylesheet('/css/pro_dropdown_3.css');
|
||||
$view->headLink()->appendStylesheet('/css/styles.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/plupload.queue.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/pro_dropdown_3.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/styles.css');
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -35,9 +35,10 @@ class ScheduleController extends Zend_Controller_Action
|
|||
$this->view->headScript()->appendFile('/js/fullcalendar/fullcalendar.min.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/contextmenu/jquery.contextMenu.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/datatables/js/jquery.dataTables.js','text/javascript');
|
||||
//$this->view->headScript()->appendFile('/js/qtip/jquery.qtip-1.0.0.min.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/airtime/schedule/full-calendar-functions.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/airtime/schedule/schedule.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/helperfunctions.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/playlist.js','text/javascript');
|
||||
|
||||
$this->view->headLink()->appendStylesheet('/css/jquery.contextMenu.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/fullcalendar.css');
|
||||
|
@ -81,6 +82,8 @@ class ScheduleController extends Zend_Controller_Action
|
|||
$this->view->headScript()->appendFile('/js/colorpicker/js/colorpicker.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/airtime/schedule/full-calendar-functions.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/airtime/schedule/add-show.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/helperfunctions.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/playlist.js','text/javascript');
|
||||
|
||||
$this->view->headLink()->appendStylesheet('/css/jquery-ui-timepicker.css.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/fullcalendar.css');
|
||||
|
@ -294,6 +297,7 @@ class ScheduleController extends Zend_Controller_Action
|
|||
unset($this->view->showContent);
|
||||
}
|
||||
|
||||
/* Commented out for the 1.6 RC1 release.
|
||||
public function showListAction()
|
||||
{
|
||||
$this->view->headScript()->appendFile('/js/datatables/js/jquery.dataTables.min.js','text/javascript');
|
||||
|
@ -317,6 +321,7 @@ class ScheduleController extends Zend_Controller_Action
|
|||
|
||||
unset($this->view->showContent);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -17,6 +17,10 @@ class UserController extends Zend_Controller_Action
|
|||
|
||||
public function addUserAction()
|
||||
{
|
||||
|
||||
$this->view->headScript()->appendFile('/js/playlist/helperfunctions.js','text/javascript');
|
||||
$this->view->headScript()->appendFile('/js/playlist/playlist.js','text/javascript');
|
||||
|
||||
$this->view->headLink()->appendStylesheet('/css/pro_dropdown_3.css');
|
||||
$this->view->headLink()->appendStylesheet('/css/styles.css');
|
||||
|
||||
|
|
|
@ -3,13 +3,14 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Airtime!!</title>
|
||||
<title>Airtime</title>
|
||||
<?php echo $this->headScript() ?>
|
||||
<?php echo $this->headLink() ?>
|
||||
</head>
|
||||
<body>
|
||||
<?php //echo $this->loggedInAs() ?>
|
||||
|
||||
<div id="nowplayingbar"><?= $this->partial('partialviews/header.phtml') ?></div>
|
||||
<div id="nowplayingbar"><?php echo $this->partial('partialviews/header.phtml', array("user" => "martin")); ?></div>
|
||||
<div class="logo"></div>
|
||||
|
||||
<?php $partial = array('menu.phtml', 'default');
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</head>
|
||||
<body>
|
||||
|
||||
<?php echo $this->layout()->content ?>
|
||||
<div id="login-page"><?php echo $this->layout()->content ?></div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
class Airtime_View_Helper_LoggedInAs extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function loggedInAs ()
|
||||
{
|
||||
//$username = "test";
|
||||
/*
|
||||
$auth = Zend_Auth::getInstance();
|
||||
|
||||
if ($auth->hasIdentity()) {
|
||||
$username = $auth->getIdentity()->username;
|
||||
}
|
||||
*/
|
||||
return "test";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -1,16 +1,11 @@
|
|||
<?php
|
||||
echo $this->errorMessage;
|
||||
?>
|
||||
<div id="login-page">
|
||||
<div class="login_box">
|
||||
<div class="logobox"> </div>
|
||||
<h2>Login</h2>
|
||||
|
||||
<div id="login" class="login-content clearfix">
|
||||
<p class="light">Please enter your user name and password</p>
|
||||
<p class="light"><?php echo $this->message; ?></p>
|
||||
<?php echo $this->form; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer"> Airtime 1.6.0 Copyright © Sourcefabric o.p.s 2011. All rights reserved.<br/>
|
||||
Maintained and distributed under GNU GPL v.2 by <a href="http://www.sourcefabric.org"> Sourcefabric o.p.s </a> </div>
|
||||
</div>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<div class="personal-block">
|
||||
<ul>
|
||||
<li>Signed in:</li>
|
||||
<li class="name">Vladimir Stefanovic</li>
|
||||
<li class="name"><?php echo $this->user ?></li>
|
||||
<li><a href="/Login/logout">Logout</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -24,7 +24,7 @@ function convertToHHMMSS(timeInMS){
|
|||
if (hours == "00")
|
||||
return minutes + ":" + seconds;
|
||||
else
|
||||
return "" + hours + ":" + minutes + ":" + seconds;
|
||||
return hours + ":" + minutes + ":" + seconds;
|
||||
}
|
||||
|
||||
function convertToHHMMSSmm(timeInMS){
|
||||
|
@ -63,7 +63,7 @@ function convertToHHMMSSmm(timeInMS){
|
|||
if (hours == "00")
|
||||
return minutes + ":" + seconds + "." + ms;
|
||||
else
|
||||
return "" + hours + ":" + minutes + ":" + seconds+ "." + ms;
|
||||
return hours + ":" + minutes + ":" + seconds+ "." + ms;
|
||||
}
|
||||
|
||||
function convertDateToHHMMSS(epochTime){
|
||||
|
@ -72,6 +72,9 @@ function convertDateToHHMMSS(epochTime){
|
|||
var hours = d.getUTCHours().toString();
|
||||
var minutes = d.getUTCMinutes().toString();
|
||||
var seconds = d.getUTCSeconds().toString();
|
||||
|
||||
//if (hours == "NaN")
|
||||
//alert("epochTime: " + epochTime);
|
||||
|
||||
if (hours.length == 1)
|
||||
hours = "0" + hours;
|
||||
|
@ -79,7 +82,7 @@ function convertDateToHHMMSS(epochTime){
|
|||
minutes = "0" + minutes;
|
||||
if (seconds.length == 1)
|
||||
seconds = "0" + seconds;
|
||||
return "" + hours + ":" + minutes + ":" + seconds;
|
||||
return hours + ":" + minutes + ":" + seconds;
|
||||
}
|
||||
|
||||
function convertDateToPosixTime(s){
|
||||
|
@ -117,8 +120,8 @@ function audioPreview(e, uri){
|
|||
var myAudio = spl.children('audio')[0];
|
||||
var canPlayMp3 = !!myAudio.canPlayType && "" != myAudio.canPlayType('audio/mpeg');
|
||||
var canPlayOgg = !!myAudio.canPlayType && "" != myAudio.canPlayType('audio/ogg; codecs="vorbis"');
|
||||
alert(canPlayMp3);
|
||||
alert(canPlayOgg);
|
||||
//alert(canPlayMp3);
|
||||
//alert(canPlayOgg);
|
||||
} else {
|
||||
if (spl.children('audio').attr('data-playlist-id') == $(s).attr("id")){
|
||||
spl.children("audio").remove();
|
||||
|
|
|
@ -209,7 +209,7 @@ function getScheduleFromServer(){
|
|||
setTimeout(getScheduleFromServer, serverUpdateInterval);
|
||||
}
|
||||
|
||||
function init(elemID) {
|
||||
function init() {
|
||||
//begin producer "thread"
|
||||
getScheduleFromServer();
|
||||
|
||||
|
@ -231,5 +231,5 @@ function popup(mylink){
|
|||
|
||||
$(document).ready(function() {
|
||||
//initialize the playlist bar in the included playlist.js
|
||||
init("nowplayingbar");
|
||||
init();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue