diff --git a/backend/Schedule.php b/backend/Schedule.php index 73fc6b258..54162a0b8 100644 --- a/backend/Schedule.php +++ b/backend/Schedule.php @@ -127,7 +127,7 @@ class ScheduleGroup { ." clip_length, cue_in, cue_out, fade_in, fade_out)" ." VALUES ($id, $p_playlistId, TIMESTAMP '$itemStartTime', " ." (TIMESTAMP '$itemStartTime' + INTERVAL '$trackLength')," - ." {$this->groupId}, {$row['file_id']}, '$trackLength', '{$row['cuein']}'," + ." '{$this->groupId}', '{$row['file_id']}', '$trackLength', '{$row['cuein']}'," ." '{$row['cueout']}', '{$row['fadein']}','{$row['fadeout']}')"; $result = $CC_DBC->query($sql); if (PEAR::isError($result)) { @@ -168,6 +168,7 @@ class ScheduleGroup { } $sql = "DELETE FROM ".$CC_CONFIG["scheduleTable"] ." WHERE group_id = ".$this->groupId; + return $CC_DBC->query($sql); } diff --git a/htmlUI/templates/popup/SCHEDULER.addItem.tpl b/htmlUI/templates/popup/SCHEDULER.addItem.tpl index f1e2579eb..641765eea 100644 --- a/htmlUI/templates/popup/SCHEDULER.addItem.tpl +++ b/htmlUI/templates/popup/SCHEDULER.addItem.tpl @@ -88,9 +88,9 @@ function SCHEDULE_snap2Next() var duration = SCHEDULE_timeToMilliseconds(SCHEDULE_selectedDuration()); // Get the date of the "next item" (time is set to midnight). - var beginDate = new Date({$SCHEDULER->scheduleNext.year}, - {$SCHEDULER->scheduleNext.month}, - {$SCHEDULER->scheduleNext.day}); + var beginDate = new Date("{$SCHEDULER->scheduleNext.year}", + "{$SCHEDULER->scheduleNext.month}", + "{$SCHEDULER->scheduleNext.day}"); //debugBeginDate = ""+beginDate; // Calculate the final time by starting with the "next item" date at midnight, diff --git a/htmlUI/templates/popup/SCHEDULER.removeItem.tpl b/htmlUI/templates/popup/SCHEDULER.removeItem.tpl index 3193ef6cb..06e205198 100644 --- a/htmlUI/templates/popup/SCHEDULER.removeItem.tpl +++ b/htmlUI/templates/popup/SCHEDULER.removeItem.tpl @@ -1,7 +1,7 @@ {include file="popup/header.tpl"}
+
{$i.title}
##yesterday## {$i.start} - {$i.end}
@@ -50,7 +50,7 @@
{if $_entrys[$_hour].start}
{foreach from=$_entrys[$_hour].start item="i"}
+
{$i.title}
diff --git a/htmlUI/templates/scheduler/day_additem.tpl b/htmlUI/templates/scheduler/day_additem.tpl
index e05459f59..3c31f29f9 100644
--- a/htmlUI/templates/scheduler/day_additem.tpl
+++ b/htmlUI/templates/scheduler/day_additem.tpl
@@ -1,8 +1,8 @@
style="cursor: pointer"
{if $_endH == $_hour}
- onClick="return contextmenu('year={$SCHEDULER->curr.year}&month={$SCHEDULER->curr.month}&day={$SCHEDULER->curr.day}&hour={getHour time=$i.end}&minute={getMinute time=$i.end}&second={getSecond time=$i.end plus=1}', 'SCHEDULER.addItem')"
+ onClick="return contextmenu('&year={$SCHEDULER->curr.year}&month={$SCHEDULER->curr.month}&day={$SCHEDULER->curr.day}&hour={getHour time=$i.end}&minute={getMinute time=$i.end}&second={getSecond time=$i.end plus=1}', null, 'SCHEDULER.addItem')"
{else}
- onClick="return contextmenu('year={$SCHEDULER->curr.year}&month={$SCHEDULER->curr.month}&day={$SCHEDULER->curr.day}&hour={$_hour}&minute=0&second=0', 'SCHEDULER.addItem')"
+ onClick="return contextmenu('&year={$SCHEDULER->curr.year}&month={$SCHEDULER->curr.month}&day={$SCHEDULER->curr.day}&hour={$_hour}&minute=0&second=0', null, 'SCHEDULER.addItem')"
{/if}
diff --git a/htmlUI/templates/scheduler/removeitem.tpl b/htmlUI/templates/scheduler/removeitem.tpl
index 1e5cac9ac..e9d699428 100644
--- a/htmlUI/templates/scheduler/removeitem.tpl
+++ b/htmlUI/templates/scheduler/removeitem.tpl
@@ -1,2 +1,2 @@
style="cursor: pointer"
-onClick="return contextmenu('scheduleId={$i.scheduleid}&playlistId={$i.id}', 'SCHEDULER.removeItem')"
+onClick="return contextmenu('&scheduleId={$i.scheduleid}&playlistId={$i.id}', null, 'SCHEDULER.removeItem')"
diff --git a/htmlUI/templates/script/contextmenu.js.tpl b/htmlUI/templates/script/contextmenu.js.tpl
index 7b8be1fd0..489ca9b63 100644
--- a/htmlUI/templates/script/contextmenu.js.tpl
+++ b/htmlUI/templates/script/contextmenu.js.tpl
@@ -95,11 +95,11 @@ function contextmenu(param, type) {
case "SCHEDULER.addItem":
//contextmenuHtml = contextmenuHtml + "