From f9ec998d9666fface8bcdbb1816a7ace48ab015d Mon Sep 17 00:00:00 2001 From: sebastian Date: Fri, 22 Apr 2005 10:04:19 +0000 Subject: [PATCH] *** empty log message *** --- .../htmlUI/var/SmartyExtensions.inc.php | 64 ++++++---- .../modules/htmlUI/var/html/ui_browser.php | 3 +- .../modules/htmlUI/var/html/ui_handler.php | 5 + .../modules/htmlUI/var/locals.cz_CZ.xml | 4 + .../modules/htmlUI/var/locals.de_DE.xml | 4 + .../modules/htmlUI/var/locals.en_GB.xml | 5 + .../modules/htmlUI/var/locals.es_CO.xml | 4 + .../modules/htmlUI/var/locals.hu_HU.xml | 4 + .../modules/htmlUI/var/locals.nl_NL.xml | 4 + .../modules/htmlUI/var/locals.sr_CS.xml | 4 + .../htmlUI/var/templates/library/results.tpl | 23 ++-- .../templates/library/simpleSearchForm.tpl | 20 +-- .../htmlUI/var/templates/masterpanel.tpl | 117 +++++++++--------- .../popup/PLAYLIST.confirmDelete.tpl | 2 +- .../popup/PLAYLIST.confirmRelease.tpl | 2 +- .../popup/PLAYLIST.confirmRevert.tpl | 2 +- .../var/templates/popup/SCHEDULER.addItem.tpl | 4 +- .../templates/popup/SCHEDULER.removeItem.tpl | 2 +- .../htmlUI/var/templates/popup/deleteItem.tpl | 2 +- .../htmlUI/var/templates/popup/logout.tpl | 2 +- .../htmlUI/var/templates/scheduler/week.tpl | 7 +- .../templates/scratchpad/actionhandler.tpl | 12 +- .../htmlUI/var/templates/scratchpad/main.tpl | 34 +++-- .../var/templates/script/contextmenu.js.tpl | 6 +- .../modules/htmlUI/var/templates/userinfo.tpl | 2 - .../modules/htmlUI/var/ui_base.inc.php | 4 +- .../modules/htmlUI/var/ui_browse.class.php | 43 ++++--- .../modules/htmlUI/var/ui_browser.class.php | 5 +- livesupport/modules/htmlUI/var/ui_conf.php | 94 ++++++++------ .../modules/htmlUI/var/ui_handler.class.php | 17 +-- .../modules/htmlUI/var/ui_playlist.class.php | 12 +- .../modules/htmlUI/var/ui_scheduler.class.php | 82 ++++++++---- .../htmlUI/var/ui_scratchpad.class.php | 2 +- .../modules/htmlUI/var/ui_search.class.php | 38 +++--- 34 files changed, 396 insertions(+), 239 deletions(-) diff --git a/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php b/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php index 87f2fbd56..8baaa2aa3 100644 --- a/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php +++ b/livesupport/modules/htmlUI/var/SmartyExtensions.inc.php @@ -1,16 +1,19 @@ register_object('UIBROWSER', $uiBrowser); -$Smarty->register_object('BROWSE', $uiBrowser->BROWSE); -$Smarty->register_object('SEARCH', $uiBrowser->SEARCH); -$Smarty->assign_by_ref ('PL', $uiBrowser->PLAYLIST); -$Smarty->assign_by_ref ('SCHEDULER', $uiBrowser->SCHEDULER); - -$Smarty->register_function('str_repeat', 'S_str_repeat'); -$Smarty->register_function('urlencode', 'S_urlencode'); -$Smarty->register_function('htmlspecialchars', 'S_htmlspecialchars'); -$Smarty->register_function('system', 'S_system'); -$Smarty->register_function('tra', 'S_tra'); +$Smarty->register_object('UIBROWSER', $uiBrowser); +$Smarty->register_object('BROWSE', $uiBrowser->BROWSE); +$Smarty->register_object('SEARCH', $uiBrowser->SEARCH); +$Smarty->assign_by_ref ('PL', $uiBrowser->PLAYLIST); +$Smarty->assign_by_ref ('SCHEDULER', $uiBrowser->SCHEDULER); +$Smarty->assign_by_ref ('SCRATCHPAD', $uiBrowser->SCRATCHPAD); +$Smarty->register_function('str_repeat', 'S_str_repeat'); +$Smarty->register_function('urlencode', 'S_urlencode'); +$Smarty->register_function('htmlspecialchars', 'S_htmlspecialchars'); +$Smarty->register_function('system', 'S_system'); +$Smarty->register_function('tra', 'S_tra'); +$Smarty->register_function('getHour', 'S_getHour'); +$Smarty->register_function('getMinute', 'S_getMinute'); +$Smarty->register_function('getSecond', 'S_getSecond'); // --- Smarty Extensions --- /** @@ -60,20 +63,6 @@ function S_htmlspecialchars($param) } -/** - * system - * - * Execute some PHP-code. - * - * @param code string, code to execute - */ -function S_system($param) -{ - extract($param); - eval($code); -} - - /** * tra * @@ -87,4 +76,29 @@ function S_tra($param) echo tra($param[0], $param[1], $param[2], $param[3], $param[4], $param[5], $param[6], $param[7], $param[8], $param[9]); } + + +function S_getHour($param) +{ + ## input format is HH:MM:SS.dddddd + extract ($param); + list ($h, $m, $s) = explode (':', $time); + return $h; +} + +function S_getMinute($param) +{ + ## input format is HH:MM:SS.dddddd + extract ($param); + list ($h, $m, $s) = explode (':', $time); + return $m; +} + +function S_getSecond($param) +{ + ## input format is HH:MM:SS.dddddd + extract ($param); + list ($h, $m, $s) = explode (':', $time); + return $s; +} ?> \ No newline at end of file diff --git a/livesupport/modules/htmlUI/var/html/ui_browser.php b/livesupport/modules/htmlUI/var/html/ui_browser.php index 94fc396df..f4e13db7d 100644 --- a/livesupport/modules/htmlUI/var/html/ui_browser.php +++ b/livesupport/modules/htmlUI/var/html/ui_browser.php @@ -88,7 +88,6 @@ if (is_array($_REQUEST['popup'])){ if ($uiBrowser->userid) { $Smarty->assign('showMenuTop', TRUE); - $Smarty->assign('SCRATCHPAD', $uiBrowser->SCRATCHPAD->get()); switch ($_REQUEST['act']){ case "fileList": @@ -104,7 +103,7 @@ if ($uiBrowser->userid) { break; case "permissions": - $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); + $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); $Smarty->assign('permissions', $uiBrowser->permissions($uiBrowser->id)); $Smarty->assign('fileList', TRUE); break; diff --git a/livesupport/modules/htmlUI/var/html/ui_handler.php b/livesupport/modules/htmlUI/var/html/ui_handler.php index ec7ef8ee4..ecf640fff 100644 --- a/livesupport/modules/htmlUI/var/html/ui_handler.php +++ b/livesupport/modules/htmlUI/var/html/ui_handler.php @@ -256,6 +256,11 @@ switch($_REQUEST['act']){ $uiHandler->SCHEDULER->setReload(); break; + case "SCHEDULER.setScheduleTime": + $uiHandler->SCHEDULER->setScheduleTime($_REQUEST); + $uiHandler->SCHEDULER->setClose(); + break; + case "SCHEDULER.addItem": $uiHandler->SCHEDULER->uploadPlaylistMethod($_REQUEST); $uiHandler->SCHEDULER->setReload(); diff --git a/livesupport/modules/htmlUI/var/locals.cz_CZ.xml b/livesupport/modules/htmlUI/var/locals.cz_CZ.xml index b0baa7b9d..96752ae1b 100755 --- a/livesupport/modules/htmlUI/var/locals.cz_CZ.xml +++ b/livesupport/modules/htmlUI/var/locals.cz_CZ.xml @@ -486,6 +486,10 @@ Item Položka + + Insert Playlist after previous + + Label Název diff --git a/livesupport/modules/htmlUI/var/locals.de_DE.xml b/livesupport/modules/htmlUI/var/locals.de_DE.xml index 03688e3c3..c494ed5d7 100755 --- a/livesupport/modules/htmlUI/var/locals.de_DE.xml +++ b/livesupport/modules/htmlUI/var/locals.de_DE.xml @@ -486,6 +486,10 @@ Item Element + + Insert Playlist after previous + + Label diff --git a/livesupport/modules/htmlUI/var/locals.en_GB.xml b/livesupport/modules/htmlUI/var/locals.en_GB.xml index 206eeef05..17b0417d6 100755 --- a/livesupport/modules/htmlUI/var/locals.en_GB.xml +++ b/livesupport/modules/htmlUI/var/locals.en_GB.xml @@ -1,5 +1,6 @@ + en_GB Are you sure to delete file "$1"? @@ -485,6 +486,10 @@ Insert Playlist here Insert playlist here + + Insert Playlist after previous + + Item Item diff --git a/livesupport/modules/htmlUI/var/locals.es_CO.xml b/livesupport/modules/htmlUI/var/locals.es_CO.xml index 9297f1a71..94264606e 100644 --- a/livesupport/modules/htmlUI/var/locals.es_CO.xml +++ b/livesupport/modules/htmlUI/var/locals.es_CO.xml @@ -486,6 +486,10 @@ Item Elemento + + Insert Playlist after previous + + Label Sello diff --git a/livesupport/modules/htmlUI/var/locals.hu_HU.xml b/livesupport/modules/htmlUI/var/locals.hu_HU.xml index db91327de..be53e60eb 100755 --- a/livesupport/modules/htmlUI/var/locals.hu_HU.xml +++ b/livesupport/modules/htmlUI/var/locals.hu_HU.xml @@ -486,6 +486,10 @@ Item + + Insert Playlist after previous + + Label diff --git a/livesupport/modules/htmlUI/var/locals.nl_NL.xml b/livesupport/modules/htmlUI/var/locals.nl_NL.xml index 2f94b87ef..b244bd90f 100755 --- a/livesupport/modules/htmlUI/var/locals.nl_NL.xml +++ b/livesupport/modules/htmlUI/var/locals.nl_NL.xml @@ -486,6 +486,10 @@ Item Item + + Insert Playlist after previous + + Label Omschrijving diff --git a/livesupport/modules/htmlUI/var/locals.sr_CS.xml b/livesupport/modules/htmlUI/var/locals.sr_CS.xml index 452982c34..ce303b087 100755 --- a/livesupport/modules/htmlUI/var/locals.sr_CS.xml +++ b/livesupport/modules/htmlUI/var/locals.sr_CS.xml @@ -486,6 +486,10 @@ Item Stavka + + Insert Playlist after previous + + Label diff --git a/livesupport/modules/htmlUI/var/templates/library/results.tpl b/livesupport/modules/htmlUI/var/templates/library/results.tpl index 2bfc01251..1fc46afa1 100755 --- a/livesupport/modules/htmlUI/var/templates/library/results.tpl +++ b/livesupport/modules/htmlUI/var/templates/library/results.tpl @@ -33,20 +33,25 @@ -