*** empty log message ***

This commit is contained in:
sebastian 2005-03-21 15:15:19 +00:00
parent 4b6eeadb27
commit 1b44662fc3
49 changed files with 1906 additions and 855 deletions

View file

@ -281,14 +281,19 @@ $ui_fmask = array(
'element' => 'cancel',
'type' => 'button',
'label' => 'Cancel',
'attributes'=> array('onClick' => "location.href='".UI_BROWSER."'"),
'attributes'=> array(
'class'=> "button",
'onClick' => "location.href='".UI_BROWSER."'"),
'groupit' => TRUE
),
array(
'element' => 'Submit',
'type' => 'submit',
'label' => 'Submit',
'groupit' => TRUE
'groupit' => TRUE,
'attributes' => array(
'class'=> "button",
),
),
array(
'group' => array('cancel', 'Submit')

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

View file

@ -3,7 +3,7 @@ body { font-size: 12px;
font-size: 12px;
color: #2C2C2C;
margin: 0px;
background: #FFF url("css_img/bg_head.gif") no-repeat;
background: #FFF url("css_img/bg_head.gif") no-repeat;
}
img { font-size: 12px;
@ -281,21 +281,50 @@ input, select { font-size: 12px;
left: auto;
}
#tabnav {
/* #################################### contenttabnav ############################### */
.contenttabnav {
height: 26px;
clear: both;
/*background: url("css_img/bg_navigation.gif") repeat-x top left;*/
margin-bottom: 12px;
margin-top: 12px;
}
.contenttabnav[class] {
padding-left: 10px;
margin-top: 12px;
margin-bottom: 12px;
}
.contenttabnav A { font-size: 12px;
/*display: block;*/
color: #5286ba;
text-decoration: none;
}
.contenttabnav a:hover { font-size: 12px;
color: #000;
text-decoration: underline;
}
/*############## Navigation tabs on top of content box ############*/
#tabnav {
position: absolute;
top: 175px;
left: 20px;
z-index: 1;
}
#tabnav ul {
#tabnav ul {
width: auto;
list-style: none;
padding: 0;
display: block;
}
#tabnav a {
#tabnav a {
background: url("css_img/bt_tab_off.gif");
display: block;
color: #666;
@ -307,17 +336,17 @@ input, select { font-size: 12px;
text-align: center;
}
#tabnav a:hover {
#tabnav a:hover {
background: url("css_img/bt_tab_on.gif");
color: #FFF;
}
#tabnav a.active {
#tabnav a.active {
background: url("css_img/bt_tab_on.gif");
color: #FFF;
}
#tabnav li {
#tabnav li {
padding: 0;
float: left;
}
@ -363,7 +392,7 @@ input, select { font-size: 12px;
}
.container_table { font-size: 12px;
height: 275px;
/*height: 275px;*/
overflow: auto;
}
@ -452,22 +481,22 @@ table tr.red td { font-size: 12px;
margin-left: 15px;
}
.container_browse {
.container_browse {
width: 170px;
float: left;
margin: 0px 0px 10px 0px;
}
.area_browse {
.area_browse {
width: 174px;
height: 100px;
}
.area_browse[class] {
.area_browse[class] {
width: 180px;
}
.comment_browse {
.comment_browse {
font-size: 10px;
}
@ -488,56 +517,48 @@ label { font-size: 12px;
/* ############################################# scheduler ################################# */
.container_calender_overview { font-size: 12px;
.container_calender_overview {
width: 235px;
}
.container_calender_overview p { font-size: 12px;
.container_calender_overview p {
font-size: 10px;
margin-top: 0;
float: right;
}
.month_year { font-size: 12px;
.month_year {
border: 1px solid #cdcdcd;
border-bottom: none;
padding: 5px 20px;
float: right;
}
.calender_overview { font-size: 12px;
.calender_overview {
border: 1px solid #cdcdcd;
}
table.calender_overview_table { font-size: 12px;
table.calender_overview_table {
width: 100%;
margin-bottom: 5px;
}
table.calender_overview_table th { font-size: 12px;
background-color: #5286ba;
color: #FFF;
}
table.calender_overview_table td { font-size: 12px;
table.calender_overview_table td {
border: 0;
text-align: center;
padding: 5px 5px 0 5px;
padding: 2px;
font-size: 10px;
}
table.calender_overview_table td.full { font-size: 12px;
table.calender_overview_table td.full {
font-weight: bold
}
table.calender_overview_table th.week { font-size: 12px;
border-right: 1px solid #FFF;
}
table.calender_overview_table td.week { font-size: 12px;
table.calender_overview_table td.week {
border-right: 1px solid #cdcdcd;
}
table.calender_overview_table a.active { font-size: 12px;
table.calender_overview_table a.full {
color: #FFF;
font-weight: bold;
background-color: #5286ba;
@ -546,21 +567,36 @@ table.calender_overview_table a.active { font-size: 12px;
display: block;
}
table.calender_overview_table a { font-size: 12px;
table.calender_overview_table td.today {
border: 1px black solid;
}
table.calender_overview_table td.current {
background: #d5e2ee;
/*#d5e2ee;*/
}
table.calender_overview_table td.nothing {
background: #eee;
/*#d5e2ee;*/
}
table.calender_overview_table a {
text-decoration: none;
color: #000;
}
table.calender_overview_table a.not_this_month { font-size: 12px;
table.calender_overview_table td.not_this_month {
color: #999;
background-color: #fff;
}
.head_scheduler { font-size: 12px;
.head_scheduler {
float: left;
width: 50%;
}
.container_button_scheduler { font-size: 12px;
.container_button_scheduler {
float: left;
width: 50%;
text-align: right;

View file

@ -0,0 +1,751 @@
body { font-size: 12px;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
color: #2C2C2C;
margin: 0px;
}
form { font-size: 12px;
margin: 15px 0 15px 0;
}
.clearer { font-size: 12px;
clear: both;
height: 0;
line-height: 0;
font-size: 0;
}
.container { font-size: 12px;
width: 100%;
}
.button { font-size: 12px;
font-weight: bold;
color: #666;
background-color: #F7F9FB;
padding: 0 25px 0 25px;
cursor: pointer;
width: 100px;
}
.button_large { font-size: 12px;
font-weight: bold;
color: #666;
background-color: #F7F9FB;
padding: 0 25px 0 25px;
cursor: pointer;
width: 150px;
}
.button_small { font-size: 12px;
font-weight: bold;
color: #666;
background-color: #F7F9FB;
cursor: pointer;
width: 34px;
}
input, select { font-size: 12px;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 12px;
border-top: 1px solid #C7CCCC;
border-left: 1px solid #C7CCCC;
border-bottom: 1px solid #A4A9A9;
border-right: 1px solid #A4A9A9;
}
.checkbox { font-size: 12px;
border: none;
}
.input { font-size: 12px;
height: 16px;
}
.input[class] { font-size: 12px;
height: 15px;
}
/*######################### HEADER ########################### */
.headLeft { font-size: 12px;
margin: 26px 16px 0 10px;
float: left;
width: 169px;
}
.headLeft[class] { font-size: 12px;
margin-left: 22px;
}
.headLeft .container { font-size: 12px;
margin-left: 10px;
}
.loginname { font-size: 12px;
margin: 15px 0 8px 0;
font-weight: bold;
}
.headRight { font-size: 12px;
float: left;
margin-top: 10px;
height: 115px;
}
.station { font-size: 12px;
margin: 30px 30px 0 30px;
float: left;
}
.frequence { font-size: 12px;
margin: 15px 0 8px 0;
}
.onair { font-size: 12px;
float: left;
margin: 24px 30px 0 0;
}
.onair img { font-size: 12px;
display: block;
margin-top: 10px;
}
/* ************* station time **************** */
.stationtime { font-size: 12px;
margin: 34px 30px 0 0;
float: left;
font-weight: bold;
color: #666;
}
.stationtime { font-size: 12px;
text-transform: uppercase;
}
.stationtime h1 { font-size: 12px;
font-size: 12px;
margin: 0;
text-transform: none;
}
.stationtime .clock { font-size: 12px;
font-size: 22px;
float: left;
margin: 0;
}
.stationtime .timezone { font-size: 12px;
float: left;
margin: 9px 0 0 15px;
}
/* *************** what playing ****************** */
.whatplaying { font-size: 12px;
float: left;
border: 1px solid #CCC;
background-color: #F9FAFB;
margin-top: 13px;
padding: 10px 8px;
width: 250px;
}
.whatplaying .nowplaying { font-size: 12px;
font-weight: bold;
font-size: 15px;
}
.whatplaying .scala { font-size: 12px;
width: 250px;
height: 8px;
margin-top: 5px;
background-color: #DADADA;
border-top: 1px solid #B5B5B5;
border-left: 1px solid #B5B5B5;
border-bottom: 1px solid #6F6F6F;
border-right: 1px solid #6F6F6F;
}
.whatplaying .scala .scala_in { font-size: 12px;
background: #DADADA url("css_img/bg_scala_in.gif") repeat-x top left;
font-size:1px;
height: 8px;
}
.whatplaying .time { font-size: 12px;
width: 250px;
font-size: 11px;
}
.whatplaying .time .left { font-size: 12px;
float: left;
width: 125px;
}
.whatplaying .time .right { font-size: 12px;
width: 125px;
float: left;
text-align: right;
}
.whatplaying p { font-size: 12px;
font-size: 11px;
font-weight: bold;
margin: 10px 0 0 0;
}
/* #################################### NAVIGATION ############################### */
.container_nav { font-size: 12px;
height: 26px;
clear: both;
background: url("css_img/bg_navigation.gif") repeat-x top left;
margin-bottom: 38px;
}
.container_nav[class] { font-size: 12px;
padding-left: 10px;
margin-bottom: 50px;
}
#nav, #nav ul { font-size: 12px;
float: left;
width: auto;
list-style: none;
line-height: 24px;
padding: 0;
margin: 2px 0 0 15px;
display: block;
}
#nav a { font-size: 12px;
display: block;
color: #666;
text-decoration: none;
padding-right: 40px;
}
#nav li { font-size: 12px;
float: left;
padding: 0;
}
#nav li ul { font-size: 12px;
display: block;
position: absolute;
left: -999px;
width: 120px;
font-weight: normal;
margin: 0;
z-index: 1;
}
#nav li ul li { font-size: 12px;
clear: both;
margin: 0;
}
#nav li ul a { font-size: 12px;
width: 100px;
line-height: 25px;
background: #eee;
padding-left : 5px;
border-top: 0px solid #ACB3BA;
border-left: 1px solid #ACB3BA;
border-bottom: 1px solid #ACB3BA;
border-right: 1px solid #ACB3BA;
}
#nav a:hover { font-size: 12px;
color: #000;
}
#nav li li a:hover { font-size: 12px;
background: #D6E3EF;
}
#nav li:hover ul , #nav li:hover ul, #nav li.sfhover ul , #nav li.sfhover ul { font-size: 12px;
left: -999em;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { font-size: 12px;
left: auto;
}
/* #################################### contenttabnav ############################### */
.contenttabnav {
height: 26px;
clear: both;
/*background: url("css_img/bg_navigation.gif") repeat-x top left;*/
margin-bottom: 12px;
margin-top: 12px;
}
.contenttabnav[class] {
padding-left: 10px;
margin-top: 12px;
margin-bottom: 12px;
}
.contenttabnav A { font-size: 12px;
/*display: block;*/
color: #5286ba;
text-decoration: none;
}
.contenttabnav a:hover { font-size: 12px;
color: #000;
text-decoration: underline;
}
/*############## Navigation tabs on top of content box ############*/
#tabnav {
position: absolute;
top: 175px;
left: 20px;
z-index: 1;
}
#tabnav ul {
width: auto;
list-style: none;
padding: 0;
display: block;
}
#tabnav a {
background: url("css_img/bt_tab_off.gif");
display: block;
color: #666;
font-size: 11px;
font-weight: bold;
text-decoration: none;
width: 99px;
margin-right: 10px;
text-align: center;
}
#tabnav a:hover {
background: url("css_img/bt_tab_on.gif");
color: #FFF;
}
#tabnav a.active {
background: url("css_img/bt_tab_on.gif");
color: #FFF;
}
#tabnav li {
padding: 0;
float: left;
}
/* #################################### CONTENTAREA ############################### */
.content { font-size: 12px;
margin: 19px;
margin-top: 0;
float: left;
}
.container_elements { font-size: 12px;
border: 1px solid #cfcfcf;
padding: 6px;
margin-bottom: 21px;
}
.container_elements h1 { font-size: 12px;
font-size: 18px;
margin: 0 0 4px 0;
color: #666;
}
.head { font-size: 12px;
background-color: #5286ba;
font-weight: bold;
color: #FFF;
}
.head .left { font-size: 12px;
padding: 5px 0 3px 10px;
float: left;
width: 330px;
}
.head .right { font-size: 12px;
padding: 5px 10px 3px 0;
float: left;
text-align: right;
width: 224px;
}
.container_table { font-size: 12px;
/*height: 275px;*/
overflow: auto;
}
table { font-size: 12px;
border-collapse: collapse;
}
table td { font-size: 12px;
padding: 0 6px 0 12px;
border-right: 1px solid #333;
height: 19px;
vertical-align: top;
}
table tr.blue_head td { font-size: 12px;
background-color: #8baed1;
color: #FFF;
font-weight: bold;
}
A#blue_head { font-size: 12px;
color:#fff;
}
table tr.blue1 td { font-size: 12px;
color: #000;
background-color: #d5e2ee;
}
table tr.blue2 td { font-size: 12px;
color: #000;
background-color: #f5f5f5;
}
table tr.red td { font-size: 12px;
background-color: #FBAAAA;
}
.footer { font-size: 12px;
padding: 4px 5px 5px 0;
background-color: #8baed1;
text-align: right;
margin-bottom: 8px;
}
.container_button { font-size: 12px;
margin-top: 4px;
}
.container_search {
margin-bottom: 4px;
}
.comment { font-size: 12px;
float: left;
font-size: 10px;
margin: 5px 0 0 10px;
}
.select_width_comment { font-size: 12px;
float:left;
margin-left: 3px;
}
.select_width_comment[class] { font-size: 12px;
margin-left: 0;
}
.tablebottom { font-size: 12px;
float: left;
margin-left: 0px;
background-color: #8baed1;
}
.counter { font-size: 12px;
float: left;
margin-left: 7px;
font-weight: bold;
background-color: #8baed1;
}
.counter[class] { font-size: 12px;
margin-left: 15px;
}
.container_browse {
width: 170px;
float: left;
margin: 0px 0px 10px 0px;
}
.area_browse {
width: 174px;
height: 100px;
}
.area_browse[class] {
width: 180px;
}
.comment_browse {
font-size: 10px;
}
.container_button_upload { font-size: 12px;
margin: 20px 0 0 204px;
}
.container_button_upload[class] { font-size: 12px;
margin-left: 200px;
}
label { font-size: 12px;
display: block;
float: left;
width: 200px;
}
/* ############################################# scheduler ################################# */
.container_calender_overview {
width: 235px;
}
.container_calender_overview p {
font-size: 10px;
margin-top: 0;
float: right;
}
.month_year {
border: 1px solid #cdcdcd;
border-bottom: none;
padding: 5px 20px;
float: right;
}
.calender_overview {
border: 1px solid #cdcdcd;
}
table.calender_overview_table {
width: 100%;
margin-bottom: 5px;
}
table.calender_overview_table th {
background-color: #5286ba;
color: #FFF;
}
table.calender_overview_table td {
border: 0;
text-align: center;
padding: 5px 5px 0 5px;
}
table.calender_overview_table td.full {
font-weight: bold
}
table.calender_overview_table th.week {
border-right: 1px solid #FFF;
}
table.calender_overview_table td.week {
border-right: 1px solid #cdcdcd;
}
table.calender_overview_table a.active {
color: #FFF;
font-weight: bold;
background-color: #5286ba;
padding: 1px 0;
width: 100%;
display: block;
}
table.calender_overview_table a { font-size: 12px;
text-decoration: none;
color: #000;
}
table.calender_overview_table a.not_this_month { font-size: 12px;
color: #999;
}
.head_scheduler { font-size: 12px;
float: left;
width: 50%;
}
.container_button_scheduler { font-size: 12px;
float: left;
width: 50%;
text-align: right;
margin-top: 5px;
}
table.scheduler_day td { font-size: 12px;
border-bottom: 1px solid #ccc;
padding-top: 2px;
}
table.scheduler_week { font-size: 12px;
width: 790px;
border: 1px solid #7392A6;
}
table.scheduler_week th { font-size: 12px;
background-color: #8baed1;
color: #FFF;
font-weight: bold;
text-align: left;
}
table.scheduler_week th.firstrow { font-size: 12px;
width: 34px;
}
table.scheduler_week th.date { font-size: 12px;
width: 22px;
border-left: 1px solid #7392A6;
}
table.scheduler_week th.day { font-size: 12px;
width: 86px;
}
table.scheduler_week td.firstrow_secondcol { font-size: 12px;
background-color: #CFDEE7;
border: none;
border-bottom: 1px solid #757575;
padding: 0;
}
table.scheduler_week td.date_secondcol { font-size: 12px;
background-color: #CFDEE7;
border: none;
border-left: 1px solid #7392A6;
border-bottom: 1px solid #757575;
padding: 2px;
font-weight: bold;
}
table.scheduler_week td.day_secondcol { font-size: 12px;
background-color: #CFDEE7;
border: none;
border-bottom: 1px solid #757575;
padding: 0;
padding-left: 2px;
}
table.scheduler_week td.firstrow { font-size: 12px;
border: none;
border-bottom: 1px solid #7392A6;
padding: 2px;
font-weight: bold;
}
table.scheduler_week td.date { font-size: 12px;
border: none;
border-left: 1px solid #7392A6;
border-bottom: 1px solid #7392A6;
padding: 0;
background-color: #D0D0D0;
}
table.scheduler_week td.date_full { font-size: 12px;
border: none;
border-left: 1px solid #7392A6;
border-bottom: 1px solid #7392A6;
padding: 0;
background-color: #97BACF;
}
table.scheduler_week td.date_locked { font-size: 12px;
border: none;
border-left: 1px solid #7392A6;
border-bottom: 1px solid #7392A6;
background-color: #FFCACB;
text-align: center;
padding: 0;
padding-top: 3px;
}
table.scheduler_week td.day { font-size: 12px;
border: none;
border-bottom: 1px solid #7392A6;
padding: 0;
background-color: #EAEAEA;
}
table.scheduler_week td.day_full { font-size: 12px;
border: none;
border-bottom: 1px solid #7392A6;
padding: 2px;
background-color: #E7ECEF;
}
table.scheduler_week td.day_locked { font-size: 12px;
border: none;
border-bottom: 1px solid #7392A6;
padding: 2px;
background-color: #EAEAEA;
}
table.scheduler_week td h2 { font-size: 12px;
font-size: 11px;
margin: 0;
}
table.scheduler_week td p { font-size: 12px;
font-size: 11px;
margin: 0;
}
table.scheduler_month{ font-size: 12px;
width: 790px;
border: 1px solid #7392A6;
}
table.scheduler_month th { font-size: 12px;
background-color: #8baed1;
color: #FFF;
font-weight: bold;
text-align: center;
border: 1px solid #7392A6;
}
table.scheduler_month td { font-size: 12px;
width: 113px;
border: 1px solid #7392A6;
padding: 2px;
text-align: left;
}
table.scheduler_month p { font-size: 12px;
margin: 0 0 10px 0;
font-weight: bold;
font-size: 11px;
}
table.scheduler_month .scala { font-size: 12px;
margin: 0 0 2px 4px;
width: 96px;
height: 12px;
background-color: #DADADA;
border: 1px solid #7F95A7;
}
table.scheduler_month .scala .scala_in { font-size: 12px;
background: #DADADA url("css_img/bg_scala_in_scheduler.gif") repeat-x top left;
font-size:1px;
height: 12px;
}

View file

@ -36,6 +36,11 @@ if (is_array($_REQUEST['popup'])){
$Smarty->display('popup/login.tpl');
break;
case "deleteItem":
$Smarty->assign('id', $_REQUEST['id']);
$Smarty->display('popup/deleteItem.tpl');
break;
case "_2PL.simpleManagement":
$Smarty->assign('target', 'PL.simpleManagement');
$Smarty->display('popup/_redirector.tpl');
@ -43,20 +48,20 @@ if (is_array($_REQUEST['popup'])){
case "PL.changeTransition";
$Smarty->assign('dynform', $uiBrowser->PLAYLIST->changeTransitionForm($_REQUEST['id'], $_REQUEST['type'], $ui_fmask['PL.changeTransition']));
$Smarty->display('playlist/changeTransition.tpl');
$Smarty->display('popup/PLAYLIST.changeTransition.tpl');
break;
case "PL.deleteActive":
$Smarty->display('popup/PLAYLIST.deleteActive.tpl');
break;
case "SCHEDULER.addItem":
$Smarty->display('scheduler/addItem.tpl');
$Smarty->display('popup/SCHEDULER.addItem.tpl');
break;
case "SCHEDULER.removeItem":
$Smarty->assign('gunid', $_REQUEST['gunid']);
$Smarty->display('scheduler/removeItem.tpl');
break;
case "PL.deleteActive":
$Smarty->display('playlist/deleteActive.tpl');
$Smarty->display('popup/SCHEDULER.removeItem.tpl');
break;
}
}

View file

@ -179,7 +179,7 @@ switch($_REQUEST['act']){
case "PL.activate":
if ($uiHandler->PLAYLIST->activate($_REQUEST['id']) === TRUE)
$uiHandler->SCRATCHPAD->addItem($_REQUEST['id']);
$uiHandler->PLAYLIST->setReload();
$uiHandler->PLAYLIST->setRedirect();
break;
case "PL.create":
@ -267,7 +267,7 @@ if ($uiHandler->alertMsg) $_SESSION['alertMsg'] = $uiHandler->alertMsg;
if (ob_get_contents()) {
$ui_wait = 5;
}
ob_end_clean
ob_end_clean;
?>
<meta http-equiv="refresh" content="<?php echo $ui_wait ? $ui_wait : 0; ?>; URL=<?php echo $uiHandler->redirUrl; ?>">
</body>

View file

@ -1,46 +1,35 @@
<div class="standardFrame">
{include file="sub/x.tpl"}
<div class="content">
<!-- start editor -->
<div class="container_elements" style="width: 607px;">
<h1>
{if $editItem.id}
##Edit##
{else}
##New##
{/if}
{$editItem.type|capitalize}
</h1>
<h4>
{if $editItem.id}
Edit
{else}
New
{/if}
{$editItem.type|capitalize}
</h4>
{if $editItem.type == 'audioclip' || $editItem.type == 'file'}
<div id="div_Data"> {include file="file/fileform.tpl"} </div>
<div id="div_MData"> {include file="file/metadataform.tpl"} </div>
<input type="button" class="button" onClick="showData()" value="##Data##">
<input type="button" class="button" onClick="showMData()" value="##Metadata##">
{/if}
{if $editItem.type == 'audioclip' || $editItem.type == 'file'}
<input type="button" onClick="showData()" value="Data">
<input type="button" onClick="showMData()" value="MData">
<div id="div_Data">
{include file="file/fileform.tpl"}
{if $editItem.type == 'webstream'}
<div id="div_Data"> {include file="file/webstreamform.tpl"} </div>
<div id="div_MData"> {include file="file/metadataform.tpl"} </div>
<input type="button" class="button" onClick="showData()" value="##Data##">
<input type="button" class="button" onClick="showMData()" value="##Metadata##">
{/if}
{if $editItem.type == 'playlist'}
{include file="file/metadataform.tpl"}
{/if}
</div>
<div id="div_MData">
{include file="file/metadataform.tpl"}
<!-- end editor -->
</div>
{/if}
{if $editItem.type == 'webstream'}
<input type="button" onClick="showData()" value="Data">
<input type="button" onClick="showMData()" value="MData">
<div id="div_Data">
{include file="file/webstreamform.tpl"}
</div>
<div id="div_MData">
{include file="file/metadataform.tpl"}
</div>
{/if}
{if $editItem.type == 'playlist'}
<div id="div_MData">
{include file="file/metadataform.tpl"}
</div>
{/if}
</div>
<script>

View file

@ -1,9 +1,3 @@
{UIBROWSER->fileForm id=$editItem.id folderId=$editItem.folderId assign="_uploadform"}
<div id="uploadform">
<center>
{$_uploadform}
</center>
</div>
{assign var="_uploadform" value=FALSE}
{UIBROWSER->fileForm id=$editItem.id folderId=$editItem.folderId assign="dynform"}
{include file="sub/dynForm_plain.tpl}
{assign var="_uploadform" value=NULL}

View file

@ -1,10 +1,16 @@
<div class="content">
<!-- start file -->
<div class="container_elements" style="width: 607px;">
<h1>##File Management##</h1>
{if $showTree}
{include file="file/tree.tpl"}
{/if}
{if $showObjects}
{include file="file/objects.tpl"}
{/if}
{if $permissions}
{include file="file/permissions.tpl"}
{/if}
</div>
<!-- end file -->
</div>

View file

@ -1,23 +1,20 @@
{UIBROWSER->metaDataForm id=$editItem.id assign="_metadataform"}
{literal}
<style type="text/css">
.dynformelement {
width : 270px;
text-align : right;
}
</style>
{/literal}
<div id="tabnav">
<ul>
<!--li><a href="#" class="active">Search</a></li-->
<li><a href="#" onClick="javascript:showMain();" id="switch_Main">##Main##</a></li>
<li><a href="#" onClick="javascript:showMusic();" id="switch_Music">##Music##</a></li>
<li><a href="#" onClick="javascript:showTalk();" id="switch_Talk">##Talk##</a></li>
</ul>
</div>
{*$_metadataform.tabs*}
{*$_metadataform.langswitch*}
<div id="metadataform">
<center>
{$_metadataform.tabs}
{$_metadataform.langswitch}
{foreach from=$_metadataform.pages key="key" item="dynform"}
{include file="sub/dynForm_plain.tpl"}
{/foreach}
</center>
</div>
<script language="javascript">
{literal}
@ -41,21 +38,30 @@ function spread(element, name)
function showMain()
{
document.getElementById('div_Main').style.display='inline';
document.getElementById('div_Music').style.display='none';
document.getElementById('div_Talk').style.display='none';
document.getElementById('div_Main').style.display = 'inline';
document.getElementById('div_Music').style.display = 'none';
document.getElementById('div_Talk').style.display = 'none';
document.getElementById('switch_Main').className = 'active';
document.getElementById('switch_Music').className = '';
document.getElementById('switch_Talk').className = '';
}
function showMusic()
{
document.getElementById('div_Main').style.display='none';
document.getElementById('div_Music').style.display='inline';
document.getElementById('div_Talk').style.display='none';
document.getElementById('div_Main').style.display = 'none';
document.getElementById('div_Music').style.display = 'inline';
document.getElementById('div_Talk').style.display = 'none';
document.getElementById('switch_Main').className = '';
document.getElementById('switch_Music').className = 'active';
document.getElementById('switch_Talk').className = '';
}
function showTalk()
{
document.getElementById('div_Main').style.display='none';
document.getElementById('div_Music').style.display='none';
document.getElementById('div_Talk').style.display='inline';
document.getElementById('div_Main').style.display = 'none';
document.getElementById('div_Music').style.display = 'none';
document.getElementById('div_Talk').style.display = 'inline';
document.getElementById('switch_Main').className = '';
document.getElementById('switch_Music').className = '';
document.getElementById('switch_Talk').className = 'active';
}
showMain();
{/literal}

View file

@ -1,68 +1,69 @@
{assign var="_PL_activeId" value=$PL->getActiveId()}
<div id="objects">
{include file="sub/x.tpl"}
<table border="0" width="90%" align="center">
<tr bgcolor="{cycle values='#eeeeee, #dadada"'}">
<th>Title</th>
<th>Type</th>
<td align="right" width='70%'> &nbsp;
{if $START.pid}<a href="{$UI_BROWSER}?act=fileList&id={$START.pid}">[go up]</a>{/if}
</td>
</tr>
{if count($structure.listdata)}
{foreach from=$structure.listdata item=i}
{assign var="_listen_gunid" value=$i.gunid}
<tr bgcolor="{cycle values='#eeeeee, #dadada"'}" {assign var="moreContextBefore" value=", 'SP.addItem'"}{include file="sub/contextmenu.tpl"}>
<td align="center">
<span id="ID{$i.id}">
{if $i.type eq 'Folder'}
<a href="{$UI_BROWSER}?act=fileList&id={$i.id}" >[{$i.title|truncate:30}]</b>
{else}
{if $_PL_activeId == $i.id}
<b>{$i.title|truncate:30}</b>
{else}
{$i.title|truncate:30}
{/if}
{/if}
</span>
</td>
<td align="center">{$i.type}</td>
<td>
<!-- &nbsp;<a href="javascript:frename('{$i.name}', '{$i.id}')">[rename]</a> -->
&nbsp;<a href="javascript:fmove('{$i.id}', '.')">[move]</a>
&nbsp;<a href="javascript:fcopy('{$i.id}', '.')">[copy]</a>
&nbsp;<a href="{$UI_BROWSER}?act=permissions&id={$i.id}">[permissions]</a>
<!--
{if ($delOverride eq $i.id)}
<a href="{$UI_HANDLER}?act=delete&id={$i.id}&delOverride={$i.id}"
onClick="return confirm('Really delete non empty Folder &quot;{$i.name}&quot; now?')">[DEL]</a>
{else}
<a href="{$UI_HANDLER}?act=delete&id={$i.id}"
onClick="return confirm('Delete &quot;{$i.name}&quot;?')">[DEL]</a>
{/if} -->
{if $i.type != 'Folder'}
<br>
&nbsp;<a href="{$UI_BROWSER}?act=getMData&id={$i.id}">[MDataXML]</a>
<!-- &nbsp;<a href="{$UI_BROWSER}?act=editMetaData&id={$i.id}">[MDataForm]</a> -->
{if $i.type eq 'webstream'}
&nbsp;<a href="{$UI_BROWSER}?act=editWebstream&id={$i.id}">[Edit]</a>
{elseif $i.type eq 'audioclip'}
&nbsp;<a href="{$UI_BROWSER}?act=editFile&id={$i.id}">[Edit]</a>
&nbsp;<a href="{$CONFIG.accessRawAudioUrl}?id={$i.gunid}&sessid={$START.sessid}">[Access]</a>
&nbsp;<a href="{$UI_BROWSER}?act=_analyzeFile&id={$i.id}">[RawAnalyze]</a>
{/if}
<!-- &nbsp;<a href="#" onclick="hpopup('{$UI_HANDLER}?act=SP.addItem&id={$i.id}', '2SP')">[SP]</a> -->
{/if}
&nbsp;
</td>
</tr>
{/foreach}
{else}
<tr><td align="center" width="400">No objects</td></tr>
{/if}
</table>
{assign var="_PL_activeId" value=$PL->getActiveId()}
<div class="contenttabnav">
{if $START.pid}
<a href="{$UI_BROWSER}?act=fileList&id={$START.pid}">##go up##</a>
{/if}
{include file="file/path.tpl"}
</div>
<div class="head" style="width:555px; height: 21px;">&nbsp;
</div>
<div class="container_table" style="width: 555px; height: auto;">
<table>
<tr class="blue_head">
<td style="width: 130px">Title</td>
<td style="width: 50px">Type</td>
<td style="width: 447px; border: 0"> &nbsp;
</td>
</tr>
{if count($structure.listdata)}
{foreach from=$structure.listdata item=i}
{assign var="_listen_gunid" value=$i.gunid}
<tr class="{cycle values='blue1, blue2'}" {assign var="moreContextBefore" value=", 'SP.addItem'"}{include file="sub/contextmenu.tpl"}>
<td>
<span id="ID{$i.id}">
{if $i.type eq 'Folder'}
<a href="{$UI_BROWSER}?act=fileList&id={$i.id}" >[{$i.title|truncate:30}]</b>
{else}
{if $_PL_activeId == $i.id}
<b>{$i.title|truncate:30}</b>
{else}
{$i.title|truncate:30}
{/if}
{/if}
</span>
</td>
<td>{$i.type}</td>
<td style="border: 0">
<!-- &nbsp;<a href="javascript:frename('{$i.name}', '{$i.id}')">[rename]</a> -->
&nbsp;<a href="javascript:fmove('{$i.id}', '.')">##move##</a>
&nbsp;<a href="javascript:fcopy('{$i.id}', '.')">##copy##</a>
&nbsp;<a href="{$UI_BROWSER}?act=permissions&id={$i.id}">##permissions##</a>
<!--
{if ($delOverride eq $i.id)}
<a href="{$UI_HANDLER}?act=delete&id={$i.id}&delOverride={$i.id}"
onClick="return confirm('Really delete non empty Folder &quot;{$i.name}&quot; now?')">[DEL]</a>
{else}
<a href="{$UI_HANDLER}?act=delete&id={$i.id}"
onClick="return confirm('Delete &quot;{$i.name}&quot;?')">[DEL]</a>
{/if} -->
{if $i.type != 'Folder'}
&nbsp;<a href="{$UI_BROWSER}?act=getMData&id={$i.id}">##MDataXML##</a>
<!-- &nbsp;<a href="{$UI_BROWSER}?act=editMetaData&id={$i.id}">[MDataForm]</a> -->
{if $i.type eq 'webstream'}
&nbsp;<a href="{$UI_BROWSER}?act=editWebstream&id={$i.id}">##Edit##</a>
{elseif $i.type eq 'audioclip'}
&nbsp;<a href="{$UI_BROWSER}?act=editFile&id={$i.id}">##Edit##</a>
&nbsp;<a href="{$CONFIG.accessRawAudioUrl}?id={$i.gunid}&sessid={$START.sessid}">##Access##</a>
&nbsp;<a href="{$UI_BROWSER}?act=_analyzeFile&id={$i.id}">##RawAnalyze##</a>
{/if}
<!-- &nbsp;<a href="#" onclick="hpopup('{$UI_HANDLER}?act=SP.addItem&id={$i.id}', '2SP')">[SP]</a> -->
{/if}
&nbsp;
</td>
</tr>
{/foreach}
{else}
<tr><td align="center" width="400">##No objects##</td></tr>
{/if}
</table>
</div>

View file

@ -1,13 +1,13 @@
{*Smarty template*}
<div id="path">
<a href="{$UI_BROWSER}?act=fileList&id={$structure.id}&tree=Y" class="button">[Tree view]</a>&nbsp;&nbsp;|&nbsp;
{foreach from=$structure.pathdata item=o}
{if $o.type == 'Folder'}
<a href="{$UI_BROWSER}?act=fileList&id={$o.id}">[{$o.name}]</a> /
{else}
{$o.name}
{/if}
{/foreach}
<a href="javascript:newFolder()">[::new&nbsp;folder::]</a>
</div>
{*Smarty template*}
&nbsp;&nbsp;|&nbsp;&nbsp;
<a href="{$UI_BROWSER}?act=fileList&id={$structure.id}&tree=Y">##Tree view##</a>
&nbsp;&nbsp;|&nbsp;&nbsp;
##Folder Structure##:
{foreach from=$structure.pathdata item=o}
{if $o.type == 'Folder'}
<a href="{$UI_BROWSER}?act=fileList&id={$o.id}">##{$o.name}##</a> /
{else}
##{$o.name}##
{/if}
{/foreach}
<a href="javascript:newFolder()">##new&nbsp;folder##</a>

View file

@ -1,24 +1,31 @@
{*Smarty template*}
<div id="tree">
{if is_array($structure.treedata)}
{foreach from=$structure.treedata item=o}
<div style="background-color: {cycle values="#eeeeee,#dadada"}">
{$structure.treedata.type}
{if $structure.treedata.tree}
{str_repeat str='&nbsp;' count=3}
{else}
{str_repeat str='&nbsp;&nbsp;' count=$o.level}
{/if}
{if $o.type == 'Folder'}
<a href="{$UI_BROWSER}?act=fileList&id={$o.id}">[{$o.name}]</a>
{else}
{$o.name}
{/if}
<br>
</div>
{/foreach}
{/if}
{*Smarty template*}
{if is_array($structure.treedata)}
<div class="head" style="width:555px; height: 21px;">&nbsp;
</div>
<div class="container_table" style="width: 555px; height: auto;">
<table>
<tr class="blue_head">
<td style="width: 555px;border: 0">##Item##</td>
</tr>
{foreach from=$structure.treedata item=o}
<tr class="{cycle values='blue1, blue2'}">
<td style="border: 0">
{$structure.treedata.type}
{if $structure.treedata.tree}
{str_repeat str='&nbsp;' count=3}
{else}
{str_repeat str='&nbsp;&nbsp;' count=$o.level}
{/if}
{if $o.type == 'Folder'}
<a href="{$UI_BROWSER}?act=fileList&id={$o.id}">[{$o.name}]</a>
{else}
{$o.name}
{/if}
</td>
</tr>
{/foreach}
</table>
{/if}
</div>

View file

@ -1,10 +1,4 @@
{UIBROWSER->webstreamForm id=$editItem.id folderId=$editItem.folderId assign="_uploadform"}
<div id="uploadform">
<center>
{$_uploadform}
</center>
</div>
{assign var="_uploadform" value=FALSE}
{UIBROWSER->webstreamForm id=$editItem.id folderId=$editItem.folderId assign="dynform"}
{include file="sub/dynForm_plain.tpl}
{assign var="_uploadform" value=NULL}

View file

@ -25,7 +25,7 @@
<link href="styles_livesupport.css" rel="stylesheet" type="text/css" />
{include file="script/basics.js.tpl"}
{include file="script/contextMenue.js.tpl"}
{include file="script/contextmenu.js.tpl"}
{include file="script/collector.js.tpl"}
</head>

View file

@ -1,45 +1,58 @@
{if $_results.cnt > 0}
<form name="SEARCHRESULTS">
<div class="head" style="width:535px; height: 21px;">&nbsp;</div>
<div class="container_table" style="width: 555px; height: auto;">
<table style="width: 535px;">
<tr class="blue_head">
<td style="width: 95px"><a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.reOrder&by=title', 'order');" id="blue_head">##Title##</a></td>
<td style="width: 69px"><a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.reOrder&by=creator', 'order');" id="blue_head">##Creator##</a></td>
<td style="width: 30px"><input type="checkbox" name="all" onClick="collector_switchAll('SEARCHRESULTS')"></td>
<td style="width: 160px"><a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.reOrder&by=title', 'order');" id="blue_head">##Title##</a></td>
<td style="width: 134px"><a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.reOrder&by=creator', 'order');" id="blue_head">##Creator##</a></td>
<td style="width: 89px"><a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.reOrder&by=extent', 'order');" id="blue_head">##Duration##</a></td>
<td style="width: 197px; border: 0"><a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.reOrder&by=type', 'order');" id="blue_head">##Type##</a></td>
<td style="width: 37px; border: 0"><a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.reOrder&by=type', 'order');" id="blue_head">##Type##</a></td>
</tr>
{foreach from=$_results.items item=i}
<!-- start item -->
<tr class="background-color: {cycle values='blue1, blue2'}" {assign var="moreContextBefore" value=", 'SP.addItem'"}{include file="sub/contextmenu.tpl"}>
<td><input type="checkbox" class="checkbox" name="{$i.id}"/></td>
<td>
{if $PLAYLIST.id == $i.id}
<b>{$i.title|truncate:30}</b>
{else}
{$i.title|truncate:30}
{/if}
</td>
{if $PLAYLIST.id == $i.id}
<b>{$i.title|truncate:30}</b>
{else}
{$i.title|truncate:30}
{/if}
</td>
<td>{$i.creator}</td>
<td>{$i.duration}</td>
<td style="border: 0">{$i.type}</td>
</tr>
<!-- end item -->
{/foreach}
</table>
</table>
</div>
<div class="footer" style="width: 530px;">
<div class="counter">
{if $_results.prev}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=prev', 'pager')" id="blue_head">##previous##</a>{/if}
{foreach from=$_results.pagination item=p key=k}
<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page={$k}', 'pager')" id="blue_head">{$p}</a>
{/foreach}
{if $_results.next}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=next', 'pager')" id="blue_head">##next##</a>{/if}
&nbsp;&nbsp;
##Count##:&nbsp;{$_results.cnt}&nbsp;&nbsp;
##Page##:&nbsp;&nbsp;{$_results.page+1}&nbsp;&nbsp;
##Range##:&nbsp;{$_criteria.offset+1}-{if ($_criteria.offset+$_criteria.limit)>$_results.cnt}{$_results.cnt}{else}{$_criteria.offset+$_criteria.limit}{/if}
</div>
<input type="button" class="button_small" value="##Go##" />
<div class="counter">
{if $_results.prev}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=prev', 'pager')" id="blue_head">##previous##</a>{/if}
{foreach from=$_results.pagination item=p key=k}
<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page={$k}', 'pager')" id="blue_head">{$p}</a>
{/foreach}
{if $_results.next}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=next', 'pager')" id="blue_head">##next##</a>{/if}
&nbsp;&nbsp;
##Count##:&nbsp;{$_results.cnt}&nbsp;&nbsp;
##Page##:&nbsp;&nbsp;{$_results.page+1}&nbsp;&nbsp;
##Range##:&nbsp;{$_criteria.offset+1}-{if ($_criteria.offset+$_criteria.limit)>$_results.cnt}{$_results.cnt}{else}{$_criteria.offset+$_criteria.limit}{/if}
</div>
{if $_PL_activeId}
<input type="button" class="button" value="##To Playlist##" onClick="collector_submit('SEARCHRESULTS', 'PL.addItem')">
{else}
<input type="button" class="button" value="##New Playlist##" onClick="collector_submit('SEARCHRESULTS', 'PL.create')">
{/if}
</div>
</form>
{else}
##No match found.##

View file

@ -4,4 +4,4 @@
<h1>##Search##</h1>
{include file="sub/dynForm_plain.tpl"}
</div>
{/foreach}
{/foreach}

View file

@ -0,0 +1,15 @@
<html>
<head>
</head>
<body>
<center>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="<?php echo $_REQUEST['is_popup']==TRUE ? 60 : 300; ?>" height="<?php echo $_REQUEST['is_popup']==TRUE ? 60 : 300; ?>" id="preloader" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="preloader.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="../templates/loader/preloader.swf" quality="high" bgcolor="#ffffff" width="<?php echo $_REQUEST['is_popup']==TRUE ? 60 : 300; ?>" height="<?php echo $_REQUEST['is_popup']==TRUE ? 60 : 300; ?>" name="preloader" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</center>

View file

@ -10,9 +10,11 @@
{include file="menu.tpl"}
{/if}
{*
{if $structure}
{include file="file/path.tpl"}
{/if}
*}
{if $fileList}
{include file="file/list.tpl"}

View file

@ -1,8 +0,0 @@
{include file="header.tpl"}
{include file="playlist/changeTransition.js.tpl"}
{include file="sub/dynForm_plain.tpl"}
</body>
</html>

View file

@ -1,3 +1,83 @@
<!-- start playlist editor -->
<div class="container_elements" style="width: 607px;">
<form name="PL">
<h1>##Playlist Editor##</h1>
<div class="head" style="width: 574px;">
<div class="left">&nbsp;</div>
<div class="right">&nbsp;</div>
<div class="clearer"></div>
</div>
<div class="container_table" style="width: 594px;">
<table style="width: 574px;">
<!-- start repeat after 14 columns -->
<tr class="blue_head">
<td style="width: 30px"><input type="checkbox" name="all" onClick="collector_switchAll('PL')"></td>
<script type="text/javascript">
document.forms['PL'].elements['all'].checked = false;
</script>
<td style="width: 155px">##Name##</td>
<td style="width: 69px">##Duration##</td>
<td style="width: 178px">##Artist##</td>
<td style="width: 107px;">##Type##</td>
<td style="width: 30px; border: 0">##Move##</td>
</tr>
<!-- end repeat after 14 columns -->
<!-- start item -->
{foreach from=$PL->getFlat() key='pos' item='i'}
<!-- {$n++} -->
<!-- fade information -->
<tr onContextmenu="return contextmenu('{$i.attrs.id}', {if $n == 1}'PL.changeFadeIn'{else}'PL.changeTransition'{/if})}" style="background-color: #999">
<td></td>
<td colspan="5" style="border: 0">##Fade## {$i.fadein_ms|string_format:"%d"} ms</td>
</tr>
<tr class="{cycle values='blue1, blue2'} " onContextmenu="return contextmenu('{$i.attrs.id}',
{if $i.type|lower == "audioclip"}'listen', '{$i.gunid}', {/if}
'PL.removeItem')">
<td><input type="checkbox" class="checkbox" name="{$i.attrs.id}"/></td>
<td>{$i.title}</td>
<td>{$i.duration}</td>
<td>{$i.creator}</td>
<td>{$i.type}</td>
<td style="border: 0">
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=PL.moveItem&id={$i.attrs.id}&pos={$pos-1}')"><img src="img/bt_top_xsm.gif" alt="##move up##" vspace=1 hspace=1/></a>
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=PL.moveItem&id={$i.attrs.id}&pos={$pos+1}')"><img src="img/bt_bottom_xsm.gif" alt="##move down##" vspace=1 hspace=1/></a>
</td>
</tr>
{/foreach}
{if $n}
<!-- fade information -->
<tr onContextmenu="return contextmenu('{$i.attrs.id}', {if $n == 1}'PL.changeFadeIn'{else}'PL.changeTransition'{/if})}" style="background-color: #999">
<td></td>
<td colspan="5" style="border: 0">##Fade## {$i.fadein_ms|string_format:"%d"} ms</td>
</tr>
{else}
<tr class="{cycle values='blue1, blue2'}">
<td style="border: 0" colspan="6" align="center">##No Entry##</td>
</tr>
{/if}
<!-- end item -->
</table>
</div>
<div class="footer" style="width: 569px;">
<input type="button" class="button_large" onClick="collector_submit('PL', 'PL.removeItem')" value="##Remove Selected##" />
<input type="button" class="button_large" onClick="collector_clearAll('PL', 'PL.removeItem')" value="##Clear Playlist##" />
</div>
<div class="container_button">
<input type="button" class="button_large" value="##Save Playlist##" onClick="hpopup('{$UI_HANDLER}?act=PL.save')">
<input type="button" class="button_large" value="##Revert to Saved##" onClick="hpopup('{$UI_HANDLER}?act=PL.revert')">
<input type="button" class="button_large" value="##Delete Playlist##" onClick="popup('{$UI_BROWSER}?popup[]=PL.deleteActive', 'PL.deleteActive', 400, 200)">
</div>
<div class="container_button">
<input type="button" class="button_large" value="##Save and Close##" onClick="hpopup('{$UI_HANDLER}?act=PL.release')">
<input type="button" class="button_large" value="##Metadata##" onClick="location.href='{$UI_BROWSER}?act=PL.editMetaData'">
</div>
</div>
</form>
<!-- end playlist editor -->
{*
<form name="PL">
<table border="0">
<tr><th colspan="4">active Playlist: {$PL.children.0.children.0.content}</th></tr>
@ -5,12 +85,14 @@
{foreach from=$PL->getFlat() key='pos' item='i'}
<!-- {$n++} -->
<tr onContextmenu="return contextmenu('{$i.attrs.id}', {if $n == 1}'PL.changeFadeIn'{else}'PL.changeTransition'{/if})}" style="background-color: lightblue">
<tr onMouseOver="highlight()"
onMouseOut="darklight()"
onContextmenu="return menu('{$i.attrs.id}', {if $n == 1}'PL.changeFadeIn'{else}'PL.changeTransition'{/if})}" style="background-color: lightblue">
<td colspan="4" align="center">{$i.fadein_ms|string_format:"%d"} ms</td>
</tr>
<tr onContextmenu="return contextmenu('{$i.attrs.id}',
{if $i.type|lower == "audioclip"}'listen', '{$i.gunid}', {/if}
'PL.removeItem')" style="background-color: {cycle values='#eeeeee, #dadada'}">
<tr onMouseOver="highlight()"
onMouseOut="darklight()"
onContextmenu="return menu('{$i.attrs.id}', 'PL.removeItem')" style="background-color: {cycle values='#eeeeee, #dadada'}">
<td>
<input type="checkbox" name="{$i.attrs.id}">
<font size="+1">
@ -24,7 +106,9 @@
</tr>
{/foreach}
{if $n}
<tr onContextmenu="return contextmenu('{$i.attrs.id}', 'PL.changeFadeOut')" style="background-color: lightblue">
<tr onMouseOver="highlight()"
onMouseOut="darklight()"
onContextmenu="return menu('{$i.attrs.id}', 'PL.changeFadeOut')" style="background-color: lightblue">
<td colspan="4" align="center">{$i.fadeout_ms|string_format:"%d"} ms</td>
</tr>
{/if}
@ -44,3 +128,4 @@
</tr>
</table>
</form>
*}

View file

@ -1,7 +1,7 @@
{assign var="_form" value=$PL->metaDataForm($PL_id)}
{assign var="dynform" value=$_form.main}
{$_form.langswitch}
{* $_form.langswitch *}
{include file="sub/dynForm_plain.tpl"}
<script type="text/javascript">

View file

@ -1,20 +1,19 @@
<div class="standardFrame">
{include file="sub/x.tpl"}
<center>
<h4>Simple Playlist Management</h4>
<div class="content">
{if $PL_editMetaData}
{include file="playlist/metadata.tpl"}
{elseif is_array($PL->get())} {* already activated Playlist *}
{include file="playlist/editor.tpl"}
{else} {* no active Playlist *}
{if $PL->reportLookedPL()}
<input type="button" value="Unlook crashed Playlist" onClick="hpopup('{$UI_HANDLER}?act=PL.unlook')">
{else}
<input type="button" value="New empty Playlist" onClick="hpopup('{$UI_HANDLER}?act=PL.create')">
{/if}
{/if}
</center>
<div class="container_elements" style="width: 607px;">
<h1>##Playlist Editor##</h1>
<p>&nbsp;</p>
{if $PL->reportLookedPL()}
<input type="button" value="##Open last Playlist##" onClick="hpopup('{$UI_HANDLER}?act=PL.unlook')">
{else}
<input type="button" value="##New empty Playlist##" onClick="hpopup('{$UI_HANDLER}?act=PL.create')">
{/if}
</div>
{/if}
</div>

View file

@ -1,3 +1,7 @@
{include file="popup/header.tpl"}
{include file="sub/dynForm_plain.tpl"}
<script type="text/javascript">
{literal}
function pl_switchUp()
@ -34,3 +38,7 @@ function pl_stop()
{/literal}
</script>
</body>
</html>

View file

@ -1,4 +1,4 @@
{include file="header.tpl"}
{include file="popup/header.tpl"}
<center>
<b>Are you sure to delete active Playlist?</b>

View file

@ -1,4 +1,4 @@
{include file="header.tpl"}
{include file="popup/header.tpl"}
<center>
{if $SCHEDULER->_copyPlFromSP()}

View file

@ -1,4 +1,4 @@
{include file="header.tpl"}
{include file="popup/header.tpl"}
<center>
<b>Are you sure to remove this entry?</b>

View file

@ -0,0 +1,11 @@
{include file="popup/header.tpl"}
<center>
<b>Are you sure to delete this Item?</b>
<br>
<input type="button" onClick="window.close()" value="Cancel">
<input type="button" onClick="location.href='{$UI_HANDLER}?act=delete&id={$id}'" value="OK">
</center>
</body>
</html>

View file

@ -0,0 +1,12 @@
{* <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> *}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<html>
<head>
<title>LIVESUPPORT</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles_popup.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">

View file

@ -1,6 +1,4 @@
{*Smarty template*}
{include file="header.tpl"}
{include file="popup/header.tpl"}
{$login.javascript}
<center>

View file

@ -1,6 +1,4 @@
{*Smarty template*}
{include file="header.tpl"}
{include file="popup/header.tpl"}
<center>
<div id="logout">

View file

@ -1,6 +1,4 @@
{*Smarty template*}
{include file="header.tpl"}
{include file="popup/header.tpl"}
<center>
<div id="logout">

View file

@ -3,6 +3,76 @@
{$SCHEDULER->buildMonth()}
{$SCHEDULER->buildWeek()}
<!-- start calendar navigation -->
<script type="text/javascript">
document.forms['calendar_month'].month.value = '{$SCHEDULER->curr.month}';
document.forms['calendar_year'].year.value = '{$SCHEDULER->curr.year}';
</script>
<div class="container_calender_overview">
<p>Click any date below to view in scheduler</p>
<div class="calender_overview">
<table class="calender_overview_table">
<tr>
<td><a href="#" onCLick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&month=--')"><<</a></td>
<td colspan=4>
<form name="calendar_month" style="margin: 2;">
<select id="month" style="margin-top: 0;font-size:9px;" name="month" onChange="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&month=' + document.forms['calendar_month'].month.value)">
{foreach from=$SCHEDULER->Year item="_Month"}
<option value="{$_Month.month}">{$_Month.label.full}</option>
{/foreach}
</select>
</form>
</td>
<td colspan=2>
<form name="calendar_year" style="margin: 2;">
<select id="year" style="margin-top: 0;font-size:9px;" name="year" onChange="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&year=' + document.forms['calendar_year'].year.value)">
{foreach from=$SCHEDULER->Decade item="_Year"}
<option value="{$_Year.year}" {if $_Year.isSelected}selected{/if}>{$_Year.year}</option>
{/foreach}
</select>
</form>
</td>
<td><a href="#" onCLick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&month=%2B%2B')">>></a></td>
</tr>
<tr class="blue_head">
<td class="week">##CW##</td>
{foreach from=$SCHEDULER->Week item="_Weekday"}
<td>{$_Weekday.label.short|truncate:2:""}</td>
{/foreach}
</tr>
<tr>
{foreach from=$SCHEDULER->Month item="_Day"}
<!-- calendar week first -->
{if $_Day.isFirst}
<tr>
<td class="week"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&view=week&day={$_Day.day}&month={$_Day.month}')">{$_Day.week}</a></td>
{/if}
<!-- check for different kind of day displays -->
{if $_Day.isEmpty}
<td class="not_this_month">
{elseif $_Day.isToday}
<td class="today">
{elseif $_Day.isCurrent}
<td class="current">
{else}
<td class="nothing">
{/if}
{if $_Day.isSelected}
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&day={$_Day.day}&month={$_Day.month}&year={$_Day.year}')" class="full">{$_Day.day}</a>
{else}
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&day={$_Day.day}&month={$_Day.month}&year={$_Day.year}')">{$_Day.day}</a>
{/if}
</td>
{if $_Day.isLast}
</tr>
{/if}
{/foreach}
</table>
</div>
</div>
<!-- end calendar navigation -->
<table border=1>
<tr><th colspan="8">{$SCHEDULER->curr.year}-{$SCHEDULER->curr.month}-{$SCHEDULER->curr.day}</th></tr>
@ -33,11 +103,6 @@
<th><a href="#" onCLick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&month=%2B%2B')">>></a></th>
</tr>
<tr> <td>&nbsp;</td>
{foreach from=$SCHEDULER->Week item="_Weekday"}
<td>{$_Weekday.label.short}</td>
{/foreach}
</tr>
{foreach from=$SCHEDULER->Month item="_Day"}
{if $_Day.isFirst}
<tr>

View file

@ -9,7 +9,10 @@
<table style="width:255px;">
<!-- start table header -->
<tr class="blue_head">
<td style="width: 30px"></td>
<td style="width: 30px"><input type="checkbox" name="all" onClick="collector_switchAll('SP')"></td>
<script type="text/javascript">
document.forms['SP'].elements['all'].checked = false;
</script>
<td style="width: 95px"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SP.reOrder&by=title', 'order');" id="blue_head">##Title##</a></td>
<td style="width: 69px"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SP.reOrder&by=title', 'order');" id="blue_head">##Duration##</td>
<td style="width: 41px; border: 0"><a href="#" onClick="hpopup('{$UI_HANDLER}?act=SP.reOrder&by=title', 'order');" id="blue_head">##Type##</td>
@ -22,9 +25,9 @@
<td><input type="checkbox" class="checkbox" name="{$i.id}"/></td>
<td>
{if $_PL_activeId == $i.id}
<b>{$i.title|truncate:30}</b>
<b>{$i.title|truncate:12}</b>
{else}
{$i.title|truncate:30}
{$i.title|truncate:12}
{/if}
</td>
<td>{$i.duration}</td>
@ -36,8 +39,7 @@
</div>
<div class="footer" style="width:250px;">
<input type="checkbox" name="all" onClick="collector_switchAll('SP')">
<select name="SP_multiaction">
<select name="SP_multiaction">
<option>##Multiple Action:##</option>
<option onClick="collector_submit('SP', 'SP.removeItem')">##Remove##</option>
{if $_PL_activeId}
@ -54,7 +56,12 @@
</div>
</form>
{/if}
{assign var="_PL_activeId" value=NULL}
<!-- end scratch pad -->
{*
<!-- old template -->
{assign var="_PL_activeId" value=$PL->getActiveId()}

View file

@ -59,9 +59,33 @@
}
function hpopup(url, name)
{ //, 'width=1, height=1'
{
var width = 10;
var height = 10;
var screenX;
var screenY;
var Xpos;
var Ypos;
var Pwidth;
var Pheight;
if (ie5) {
Xpos = window.screenLeft;
Ypos = window.screenTop;
Pwidth = document.body.clientWidth;
Pheight = document.body.clientHeight;
} else {
Xpos = window.screenX;
Ypos = window.screenY;
Pwidth = window.innerWidth;
Pheight = window.innerHeight;
}
url = url + '&is_popup=1';
popupwin = window.open(url, name);
screenX = (Xpos + Pwidth/2 - width/2);
screenY = (Ypos + Pheight/2 - height/2);
arg = 'width='+width+', height='+height+', scrollbars=no, menubar=no, depend=yes, left='+screenX+', top='+screenY;
popupwin = window.open(url, name, arg);
//window.parent.focus();
}
{/literal}

View file

@ -63,7 +63,7 @@ function contextmenu(param) {
break;
case "PL.editMetaData":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='{$UI_BROWSER}?act=PL.editMetaData&id="+param+"'"+oF+">&nbsp;Edit MData&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='{$UI_BROWSER}?act=PL.editMetaData&id="+param+"'"+oF+">&nbsp;Edit Metadata&nbsp;</a></li>";
break;
case "SP.addItem":
@ -84,7 +84,8 @@ function contextmenu(param) {
break;
case "delete":
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"hpopup('{$UI_HANDLER}?act=delete&id="+param+"')\" "+oF+">&nbsp;!Delete Item!&nbsp;</a></li>";
//contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"hpopup('{$UI_HANDLER}?act=delete&id="+param+"')\" "+oF+">&nbsp;Delete Item&nbsp;</a></li>";
contextmenuHtml = contextmenuHtml + "<li><a class='contextmenu' href='#' onClick=\"popup('{$UI_BROWSER}?popup[]=deleteItem&id="+param+"', 'deleteItem', 300, 150)\"')"+oF+">&nbsp;Delete Item&nbsp;</a></li>";
break;
case "fileList":

View file

@ -1,3 +1,6 @@
{assign var='_nowplaying' value=$SCHEDULER->getNowNextClip()}
{assign var='_nextplaying' value=$SCHEDULER->getNowNextClip(1)}
{include file="script/clock.js.tpl"}
<!-- start header -->
<!-- start header left -->
@ -18,8 +21,11 @@
<!-- end station information -->
<!-- start onair information -->
<div class="onair">
<img src="img/el_onair.gif" alt="on air" />
<!--img src="img/el_offair.gif" alt="off air" /-->
{if $_nowplaying}
<img src="img/el_onair.gif" alt="on air" />
{else}
<img src="img/el_offair.gif" alt="off air">
{/if}
</div>
<!-- end onair information -->
<!-- start station time -->
@ -39,11 +45,9 @@
<!-- end station time -->
<!-- start what playing -->
<div class="whatplaying">
{assign var='_nowplaying' value=$SCHEDULER->getNowNextClip()}
{assign var='_nextplaying' value=$SCHEDULER->getNowNextClip(1)}
{if $_nowplaying}
<div class="nowplaying">Now Playing: {$_nowplaying.title}</div>
<div class="scala">
<div class="scala">
<div class="scala_in" style="width: {$_nowplaying.percentage}%;">&nbsp;</div>
</div>
<div class="time">
@ -60,6 +64,11 @@
</div>
<!-- end header right -->
<!-- end header -->
{assign var='_nowplaying' value=NULL}
{assign var='_nextplaying' value=NULL}
{*
<!-- old template -->
<div id="statusbar">

View file

@ -29,7 +29,7 @@ onContextmenu="return contextmenu('{$i.id}'
, 'PL.addItem', 'delete'
{/if}
{else}
, 'PL.activate', 'PL.create', 'PL.editMetaData', 'delete'
, 'PL.activate', 'PL.create', 'delete'
{/if}
{/if}

View file

@ -380,7 +380,7 @@ class uiBase
function _formElementEncode($str)
{
$str = str_replace(':', '__', $str);
$str = str_replace('.', '_', $str);
#$str = str_replace('.', '_', $str);
return $str;
}
@ -388,7 +388,7 @@ class uiBase
function _formElementDecode($str)
{
$str = str_replace('__', ':', $str);
$str = str_replace('_', '.', $str);
#$str = str_replace('_', '.', $str);
return $str;
}
}

View file

@ -182,7 +182,9 @@ class uiBrowser extends uiBase {
'id' => $id,
'act' => $id ? 'editFile' : 'uploadFile'));
$this->_parseArr2Form($form, $mask);
return $form->toHTML();
$renderer =& new HTML_QuickForm_Renderer_Array(true, true);
$form->accept($renderer);
return $renderer->toArray();
}
@ -210,7 +212,9 @@ class uiBrowser extends uiBase {
);
$form->setConstants($const);
$this->_parseArr2Form($form, $mask);
return $form->toHTML();
$renderer =& new HTML_QuickForm_Renderer_Array(true, true);
$form->accept($renderer);
return $renderer->toArray();
}

View file

@ -169,10 +169,11 @@ class uiHandler extends uiBase {
return FALSE;
}
$this->_setMDataValue($r, UI_MDATA_KEY_TITLE, $formdata['mediafile']['name']);
$this->transMData($r);
$this->redirUrl = UI_BROWSER."?act=editFile&id=$r";
$this->_retMsg('Audioclip Data saved');
if (UI_VERBOSE) $this->_retMsg('Audioclip Data saved');
return $r;
}
@ -185,9 +186,10 @@ class uiHandler extends uiBase {
$ia = $this->gb->analyzeFile($id, $this->sessid);
$s = $ia['playtime_seconds'];
$extent = date('H:i:s', floor($s)-date('Z')).substr(number_format($s, 6), strpos(number_format($s, 6), '.'));
$this->_setMdataValue($id, UI_MDATA_KEY_DURATION, $extent);
$this->gb->setMDataValue($r, UI_MDATA_KEY_FORMAT, $this->sessid, UI_MDATA_VALUE_FORMAT_FILE);
$this->_setMDataValue($id, UI_MDATA_KEY_FORMAT, UI_MDATA_VALUE_FORMAT_FILE);
foreach ($mask['pages'] as $key=>$val) {
foreach ($mask['pages'][$key] as $k=>$v) {
if ($v['id3'] != FALSE) {
@ -230,12 +232,15 @@ class uiHandler extends uiBase {
$this->redirUrl = UI_BROWSER."?act=editWebstream&id=".$id;
return FALSE;
}
$length = sprintf('%02d', $formdata['length']['H']).':'.sprintf('%02d', $formdata['length']['i']).':'.sprintf('%02d', $formdata['length']['s']).'.000000';
$this->gb->setMDataValue($r, UI_MDATA_KEY_TITLE, $this->sessid, $formdata['title']);
$this->gb->setMDataValue($r, UI_MDATA_KEY_DURATION, $this->sessid, $length);
$this->gb->setMDataValue($r, UI_MDATA_KEY_FORMAT, $this->sessid, UI_MDATA_VALUE_FORMAT_STREAM);
$extent = sprintf('%02d', $formdata['length']['H']).':'.sprintf('%02d', $formdata['length']['i']).':'.sprintf('%02d', $formdata['length']['s']).'.000000';
$this->_setMDataValue($r, UI_MDATA_KEY_TITLE, $formdata['title']);
$this->_setMDataValue($r, UI_MDATA_KEY_DURATION, $extent);
$this->_setMDataValue($r, UI_MDATA_KEY_FORMAT, UI_MDATA_VALUE_FORMAT_STREAM);
$this->redirUrl = UI_BROWSER."?act=editWebstream&id=$r";
$this->_retMsg('Stream Data saved');
if (UI_VERBOSE) $this->_retMsg('Stream Data saved');
return $r;
}
@ -251,7 +256,7 @@ class uiHandler extends uiBase {
$this->gb->setMDataValue($id, UI_MDATA_KEY_TITLE, $this->sessid, $formdata['title']);
$this->gb->setMDataValue($id, UI_MDATA_KEY_URL, $this->sessid, $formdata['url']);
$this->gb->setMDataValue($id, UI_MDATA_KEY_DURATION, $this->sessid, $length);
$this->_retMsg('Stream Data changed');
if (UI_VERBOSE) $this->_retMsg('Stream Data changed');
$this->redirUrl = UI_BROWSER.'?act=editWebstream&id='.$formdata['id'];
}
@ -275,7 +280,7 @@ class uiHandler extends uiBase {
$this->_retMsg('Unable to set $1: $2', $key, $val);
}
}
$this->_retMsg('Metadata saved');
if (UI_VERBOSE) $this->_retMsg('Metadata saved');
$this->redirUrl = UI_BROWSER."?act=editItem&id=$id";
}

View file

@ -8,10 +8,7 @@ require_once dirname(__FILE__).'/ui_handler.class.php';
## initialize objects ###############################################
$uiHandler =& new uiHandler($config);
$uiBase =& $uiHandler;
?>
<html>
<body>
<img src="img/progress.gif">
<?php
include("../templates/loader/index.tpl");
ob_start();
?>

View file

@ -7,6 +7,7 @@ class uiPlaylist
$this->activeId =& $_SESSION[UI_PLAYLIST_SESSNAME]['activeId'];
$this->token =& $_SESSION[UI_PLAYLIST_SESSNAME]['token'];
$this->reloadUrl = UI_BROWSER.'?popup[]=_reload_parent&popup[]=_close';
$this->redirectUrl = UI_BROWSER.'?popup[]=_2PL.simpleManagement&popup[]=_close';
}
function setReload()
@ -14,6 +15,11 @@ class uiPlaylist
$this->Base->redirUrl = $this->reloadUrl;
}
function setRedirect()
{
$this->Base->redirUrl = $this->redirectUrl;
}
function get()
{
if (!$this->activeId) {
@ -48,7 +54,8 @@ class uiPlaylist
$this->token = $this->Base->gb->lockPlaylistForEdit($plid, $this->Base->sessid);
$this->Base->gb->savePref($this->Base->sessid, UI_PL_ACCESSTOKEN_KEY, $plid.':'.$this->token);
$this->activeId = $plid;
if ($msg) $this->Base->_retMsg('Playlist "$1" activated', $this->Base->_getMDataValue($plid, UI_MDATA_KEY_TITLE));
if ($msg && UI_VERBOSE) $this->Base->_retMsg('Playlist "$1" activated', $this->Base->_getMDataValue($plid, UI_MDATA_KEY_TITLE));
return TRUE;
}
@ -64,11 +71,11 @@ class uiPlaylist
}
$plgunid = $this->Base->gb->releaseLockedPlaylist($this->token, $this->Base->sessid);
if (PEAR::isError($plgunid)) {
if (UI_VERBOSE) print_r($plgunid);
if (UI_WARNING) $this->Base->_retMsg('Unable to release Playlist');
#print_r($plgunid);
if (UI_WARNING) $this->Base->_retMsg('Unable to release Playlist');
return FALSE;
}
if($msg) $this->Base->_retMsg('Playlist "$1" released', $this->Base->_getMDataValue($this->Base->gb->_idFromGunid($plgunid), UI_MDATA_KEY_TITLE));
if ($msg && UI_VERBOSE) $this->Base->_retMsg('Playlist "$1" released', $this->Base->_getMDataValue($this->Base->gb->_idFromGunid($plgunid), UI_MDATA_KEY_TITLE));
$this->activeId = NULL;
$this->token = NULL;
$this->Base->gb->delPref($this->Base->sessid, UI_PL_ACCESSTOKEN_KEY);
@ -81,7 +88,7 @@ class uiPlaylist
$tmpid = $this->activeId;
$this->release(FALSE);
$this->activate($tmpid, FALSE);
$this->Base->_retMsg('Playlist "$1" saved', $this->Base->_getMDataValue($tmpid, UI_MDATA_KEY_TITLE));
if (UI_VERBOSE) $this->Base->_retMsg('Playlist "$1" saved', $this->Base->_getMDataValue($tmpid, UI_MDATA_KEY_TITLE));
return $this->activeId;
}
@ -90,16 +97,16 @@ class uiPlaylist
function revert()
{
if(!$this->token) {
if (UI_WARNING) $this->Base->_retMsg('No Playlist is looked by You');
if (UI_WARNING) $this->Base->_retMsg('No Playlist is looked by You');
return FALSE;
}
$plgunid = $this->Base->gb->revertEditedPlaylist($this->token, $this->Base->sessid);
if (PEAR::isError($plgunid)) {
if (UI_VERBOSE) print_r($plgunid);
# print_r($plgunid);
if (UI_WARNING) $this->Base->_retMsg('Unable to revert to looked state');
return FALSE;
}
$this->Base->_retMsg('Playlist "$1" reverted', $this->Base->_getMDataValue($this->Base->gb->_idFromGunid($plgunid), UI_MDATA_KEY_TITLE));
if (UI_VERBOSE) $this->Base->_retMsg('Playlist "$1" reverted', $this->Base->_getMDataValue($this->Base->gb->_idFromGunid($plgunid), UI_MDATA_KEY_TITLE));
$this->activeId = NULL;
$this->token = NULL;
$this->Base->gb->delPref($this->Base->sessid, UI_PL_ACCESSTOKEN_KEY);
@ -413,9 +420,9 @@ class uiPlaylist
$this->Base->_retMsg('Unable to set $1: $2', $key, $val);
}
}
$this->Base->_retMsg('Metadata saved');
#$this->Base->redirUrl = UI_BROWSER."?act=PL.simpleManagement&id=$id";
$this->Base->redirUrl = UI_BROWSER."?act=PL.editMetaData&id=$id";
if (UI_VERBOSE) $this->Base->_retMsg('Metadata saved');
$this->Base->redirUrl = UI_BROWSER."?act=PL.simpleManagement&id=$id";
#$this->Base->redirUrl = UI_BROWSER."?act=PL.editMetaData&id=$id";
}

View file

@ -221,7 +221,7 @@ class uiScheduler extends uiCalendar
'duration' => $this->Base->_getMDataValue($this->Base->gb->_idFromGunid($clip['gunid']), UI_MDATA_KEY_DURATION),
'elapsed' => $clip['elapsed'],
'remaining' => $clip['remaining'],
'percentage'=> 50
'percentage'=> 100 * $this->Base->gb->_plTimeToSecs($clip['elapsed']) / ( $this->Base->gb->_plTimeToSecs($clip['elapsed']) + $this->Base->gb->_plTimeToSecs($clip['remaining']))
);
}