*** 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', 'element' => 'cancel',
'type' => 'button', 'type' => 'button',
'label' => 'Cancel', 'label' => 'Cancel',
'attributes'=> array('onClick' => "location.href='".UI_BROWSER."'"), 'attributes'=> array(
'class'=> "button",
'onClick' => "location.href='".UI_BROWSER."'"),
'groupit' => TRUE 'groupit' => TRUE
), ),
array( array(
'element' => 'Submit', 'element' => 'Submit',
'type' => 'submit', 'type' => 'submit',
'label' => 'Submit', 'label' => 'Submit',
'groupit' => TRUE 'groupit' => TRUE,
'attributes' => array(
'class'=> "button",
),
), ),
array( array(
'group' => array('cancel', 'Submit') 'group' => array('cancel', 'Submit')

View file

@ -20,13 +20,19 @@ $mask = array(
'type' =>'reset', 'type' =>'reset',
'label' =>'Reset', 'label' =>'Reset',
'groupit' => TRUE, 'groupit' => TRUE,
'attributes' => array(
'class'=> "button",
),
), ),
array( array(
'element' => 'cancel', 'element' => 'cancel',
'type' => 'button', 'type' => 'button',
'label' => 'Cancel', 'label' => 'Cancel',
'attributes'=> array('onClick' => "location.href='".UI_BROWSER."'"), 'attributes'=> array(
'groupit' => TRUE 'class'=> "button",
'onClick' => "location.href='".UI_BROWSER."'"
),
'groupit' => TRUE,
), ),
array( array(
'element' =>'button', 'element' =>'button',
@ -34,6 +40,7 @@ $mask = array(
'label' =>'Submit', 'label' =>'Submit',
'groupit' => TRUE, 'groupit' => TRUE,
'attributes'=> array( 'attributes'=> array(
'class'=> "button",
'onClick' => 'return switchMDataLang();' 'onClick' => 'return switchMDataLang();'
), ),
), ),
@ -41,7 +48,7 @@ $mask = array(
'group' => array('reset', 'cancel', 'button'), 'group' => array('reset', 'cancel', 'button'),
) )
), ),
'tabs' => array( 'tabs' => array(/*
array( array(
'element' => 'Main', 'element' => 'Main',
'type' => 'button', 'type' => 'button',
@ -66,7 +73,7 @@ $mask = array(
array( array(
'group' => array('Main', 'Music', 'Talk'), 'group' => array('Main', 'Music', 'Talk'),
) )
*/
), ),
'langswitch' => array( 'langswitch' => array(
array( array(
@ -499,7 +506,7 @@ $mask = array(
'element' => 'dcterms:extent', 'element' => 'dcterms:extent',
'type' => 'text', 'type' => 'text',
'label' => 'Length', 'label' => 'Length',
'attributes'=> array('readonly' => 'on'), 'attributes'=> array('disabled' => 'on'),
'id3' => FALSE 'id3' => FALSE
), ),
array( array(

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

@ -281,6 +281,35 @@ input, select { font-size: 12px;
left: auto; 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 { #tabnav {
position: absolute; position: absolute;
top: 175px; top: 175px;
@ -363,7 +392,7 @@ input, select { font-size: 12px;
} }
.container_table { font-size: 12px; .container_table { font-size: 12px;
height: 275px; /*height: 275px;*/
overflow: auto; overflow: auto;
} }
@ -488,56 +517,48 @@ label { font-size: 12px;
/* ############################################# scheduler ################################# */ /* ############################################# scheduler ################################# */
.container_calender_overview { font-size: 12px; .container_calender_overview {
width: 235px; width: 235px;
} }
.container_calender_overview p { font-size: 12px; .container_calender_overview p {
font-size: 10px; font-size: 10px;
margin-top: 0; margin-top: 0;
float: right; float: right;
} }
.month_year { font-size: 12px; .month_year {
border: 1px solid #cdcdcd; border: 1px solid #cdcdcd;
border-bottom: none; border-bottom: none;
padding: 5px 20px; padding: 5px 20px;
float: right; float: right;
} }
.calender_overview { font-size: 12px; .calender_overview {
border: 1px solid #cdcdcd; border: 1px solid #cdcdcd;
} }
table.calender_overview_table { font-size: 12px; table.calender_overview_table {
width: 100%; width: 100%;
margin-bottom: 5px; margin-bottom: 5px;
} }
table.calender_overview_table th { font-size: 12px; table.calender_overview_table td {
background-color: #5286ba;
color: #FFF;
}
table.calender_overview_table td { font-size: 12px;
border: 0; border: 0;
text-align: center; 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 font-weight: bold
} }
table.calender_overview_table th.week { font-size: 12px; table.calender_overview_table td.week {
border-right: 1px solid #FFF;
}
table.calender_overview_table td.week { font-size: 12px;
border-right: 1px solid #cdcdcd; border-right: 1px solid #cdcdcd;
} }
table.calender_overview_table a.active { font-size: 12px; table.calender_overview_table a.full {
color: #FFF; color: #FFF;
font-weight: bold; font-weight: bold;
background-color: #5286ba; background-color: #5286ba;
@ -546,21 +567,36 @@ table.calender_overview_table a.active { font-size: 12px;
display: block; 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; text-decoration: none;
color: #000; color: #000;
} }
table.calender_overview_table a.not_this_month { font-size: 12px; table.calender_overview_table td.not_this_month {
color: #999; color: #999;
background-color: #fff;
} }
.head_scheduler { font-size: 12px; .head_scheduler {
float: left; float: left;
width: 50%; width: 50%;
} }
.container_button_scheduler { font-size: 12px; .container_button_scheduler {
float: left; float: left;
width: 50%; width: 50%;
text-align: right; 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'); $Smarty->display('popup/login.tpl');
break; break;
case "deleteItem":
$Smarty->assign('id', $_REQUEST['id']);
$Smarty->display('popup/deleteItem.tpl');
break;
case "_2PL.simpleManagement": case "_2PL.simpleManagement":
$Smarty->assign('target', 'PL.simpleManagement'); $Smarty->assign('target', 'PL.simpleManagement');
$Smarty->display('popup/_redirector.tpl'); $Smarty->display('popup/_redirector.tpl');
@ -43,20 +48,20 @@ if (is_array($_REQUEST['popup'])){
case "PL.changeTransition"; case "PL.changeTransition";
$Smarty->assign('dynform', $uiBrowser->PLAYLIST->changeTransitionForm($_REQUEST['id'], $_REQUEST['type'], $ui_fmask['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; break;
case "SCHEDULER.addItem": case "SCHEDULER.addItem":
$Smarty->display('scheduler/addItem.tpl'); $Smarty->display('popup/SCHEDULER.addItem.tpl');
break; break;
case "SCHEDULER.removeItem": case "SCHEDULER.removeItem":
$Smarty->assign('gunid', $_REQUEST['gunid']); $Smarty->assign('gunid', $_REQUEST['gunid']);
$Smarty->display('scheduler/removeItem.tpl'); $Smarty->display('popup/SCHEDULER.removeItem.tpl');
break;
case "PL.deleteActive":
$Smarty->display('playlist/deleteActive.tpl');
break; break;
} }
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,10 +1,17 @@
{*Smarty template*} {*Smarty template*}
<div id="tree">
{if is_array($structure.treedata)} {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} {foreach from=$structure.treedata item=o}
<div style="background-color: {cycle values="#eeeeee,#dadada"}">
<tr class="{cycle values='blue1, blue2'}">
<td style="border: 0">
{$structure.treedata.type} {$structure.treedata.type}
{if $structure.treedata.tree} {if $structure.treedata.tree}
{str_repeat str='&nbsp;' count=3} {str_repeat str='&nbsp;' count=3}
@ -16,9 +23,9 @@
{else} {else}
{$o.name} {$o.name}
{/if} {/if}
<br> </td>
</div> </tr>
{/foreach} {/foreach}
</table>
{/if} {/if}
</div> </div>

View file

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

View file

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

View file

@ -1,16 +1,20 @@
{if $_results.cnt > 0} {if $_results.cnt > 0}
<form name="SEARCHRESULTS">
<div class="head" style="width:535px; height: 21px;">&nbsp;</div> <div class="head" style="width:535px; height: 21px;">&nbsp;</div>
<div class="container_table" style="width: 555px; height: auto;"> <div class="container_table" style="width: 555px; height: auto;">
<table style="width: 535px;"> <table style="width: 535px;">
<tr class="blue_head"> <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: 30px"><input type="checkbox" name="all" onClick="collector_switchAll('SEARCHRESULTS')"></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: 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: 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> </tr>
{foreach from=$_results.items item=i} {foreach from=$_results.items item=i}
<!-- start item --> <!-- start item -->
<tr class="background-color: {cycle values='blue1, blue2'}" {assign var="moreContextBefore" value=", 'SP.addItem'"}{include file="sub/contextmenu.tpl"}> <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> <td>
{if $PLAYLIST.id == $i.id} {if $PLAYLIST.id == $i.id}
<b>{$i.title|truncate:30}</b> <b>{$i.title|truncate:30}</b>
@ -25,21 +29,30 @@
<!-- end item --> <!-- end item -->
{/foreach} {/foreach}
</table> </table>
</div> </div>
<div class="footer" style="width: 530px;"> <div class="footer" style="width: 530px;">
<div class="counter"> <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} {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} {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> <a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page={$k}', 'pager')" id="blue_head">{$p}</a>
{/foreach} {/foreach}
{if $_results.next}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=next', 'pager')" id="blue_head">##next##</a>{/if} {if $_results.next}<a href="#" onClick="hpopup('{$UI_HANDLER}?act={$_act_prefix}.setOffset&page=next', 'pager')" id="blue_head">##next##</a>{/if}
&nbsp;&nbsp; &nbsp;&nbsp;
##Count##:&nbsp;{$_results.cnt}&nbsp;&nbsp; ##Count##:&nbsp;{$_results.cnt}&nbsp;&nbsp;
##Page##:&nbsp;&nbsp;{$_results.page+1}&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} ##Range##:&nbsp;{$_criteria.offset+1}-{if ($_criteria.offset+$_criteria.limit)>$_results.cnt}{$_results.cnt}{else}{$_criteria.offset+$_criteria.limit}{/if}
</div> </div>
<input type="button" class="button_small" value="##Go##" /> {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> </div>
</form>
{else} {else}
##No match found.## ##No match found.##

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"} {include file="menu.tpl"}
{/if} {/if}
{*
{if $structure} {if $structure}
{include file="file/path.tpl"} {include file="file/path.tpl"}
{/if} {/if}
*}
{if $fileList} {if $fileList}
{include file="file/list.tpl"} {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"> <form name="PL">
<table border="0"> <table border="0">
<tr><th colspan="4">active Playlist: {$PL.children.0.children.0.content}</th></tr> <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'} {foreach from=$PL->getFlat() key='pos' item='i'}
<!-- {$n++} --> <!-- {$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> <td colspan="4" align="center">{$i.fadein_ms|string_format:"%d"} ms</td>
</tr> </tr>
<tr onContextmenu="return contextmenu('{$i.attrs.id}', <tr onMouseOver="highlight()"
{if $i.type|lower == "audioclip"}'listen', '{$i.gunid}', {/if} onMouseOut="darklight()"
'PL.removeItem')" style="background-color: {cycle values='#eeeeee, #dadada'}"> onContextmenu="return menu('{$i.attrs.id}', 'PL.removeItem')" style="background-color: {cycle values='#eeeeee, #dadada'}">
<td> <td>
<input type="checkbox" name="{$i.attrs.id}"> <input type="checkbox" name="{$i.attrs.id}">
<font size="+1"> <font size="+1">
@ -24,7 +106,9 @@
</tr> </tr>
{/foreach} {/foreach}
{if $n} {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> <td colspan="4" align="center">{$i.fadeout_ms|string_format:"%d"} ms</td>
</tr> </tr>
{/if} {/if}
@ -44,3 +128,4 @@
</tr> </tr>
</table> </table>
</form> </form>
*}

View file

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

View file

@ -1,20 +1,19 @@
<div class="standardFrame"> <div class="content">
{include file="sub/x.tpl"}
<center>
<h4>Simple Playlist Management</h4>
{if $PL_editMetaData} {if $PL_editMetaData}
{include file="playlist/metadata.tpl"} {include file="playlist/metadata.tpl"}
{elseif is_array($PL->get())} {* already activated Playlist *} {elseif is_array($PL->get())} {* already activated Playlist *}
{include file="playlist/editor.tpl"} {include file="playlist/editor.tpl"}
{else} {* no active Playlist *} {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> </div>

View file

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

View file

@ -1,4 +1,4 @@
{include file="header.tpl"} {include file="popup/header.tpl"}
<center> <center>
<b>Are you sure to delete active Playlist?</b> <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> <center>
{if $SCHEDULER->_copyPlFromSP()} {if $SCHEDULER->_copyPlFromSP()}

View file

@ -1,4 +1,4 @@
{include file="header.tpl"} {include file="popup/header.tpl"}
<center> <center>
<b>Are you sure to remove this entry?</b> <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="popup/header.tpl"}
{include file="header.tpl"}
{$login.javascript} {$login.javascript}
<center> <center>

View file

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

View file

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

View file

@ -3,6 +3,76 @@
{$SCHEDULER->buildMonth()} {$SCHEDULER->buildMonth()}
{$SCHEDULER->buildWeek()} {$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> <table border=1>
<tr><th colspan="8">{$SCHEDULER->curr.year}-{$SCHEDULER->curr.month}-{$SCHEDULER->curr.day}</th></tr> <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> <th><a href="#" onCLick="hpopup('{$UI_HANDLER}?act=SCHEDULER.set&month=%2B%2B')">>></a></th>
</tr> </tr>
<tr> <td>&nbsp;</td>
{foreach from=$SCHEDULER->Week item="_Weekday"}
<td>{$_Weekday.label.short}</td>
{/foreach}
</tr>
{foreach from=$SCHEDULER->Month item="_Day"} {foreach from=$SCHEDULER->Month item="_Day"}
{if $_Day.isFirst} {if $_Day.isFirst}
<tr> <tr>

View file

@ -9,7 +9,10 @@
<table style="width:255px;"> <table style="width:255px;">
<!-- start table header --> <!-- start table header -->
<tr class="blue_head"> <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: 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: 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> <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><input type="checkbox" class="checkbox" name="{$i.id}"/></td>
<td> <td>
{if $_PL_activeId == $i.id} {if $_PL_activeId == $i.id}
<b>{$i.title|truncate:30}</b> <b>{$i.title|truncate:12}</b>
{else} {else}
{$i.title|truncate:30} {$i.title|truncate:12}
{/if} {/if}
</td> </td>
<td>{$i.duration}</td> <td>{$i.duration}</td>
@ -36,7 +39,6 @@
</div> </div>
<div class="footer" style="width:250px;"> <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>##Multiple Action:##</option>
<option onClick="collector_submit('SP', 'SP.removeItem')">##Remove##</option> <option onClick="collector_submit('SP', 'SP.removeItem')">##Remove##</option>
@ -54,7 +56,12 @@
</div> </div>
</form> </form>
{/if} {/if}
{assign var="_PL_activeId" value=NULL}
<!-- end scratch pad --> <!-- end scratch pad -->
{* {*
<!-- old template --> <!-- old template -->
{assign var="_PL_activeId" value=$PL->getActiveId()} {assign var="_PL_activeId" value=$PL->getActiveId()}

View file

@ -59,9 +59,33 @@
} }
function hpopup(url, name) 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'; 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(); //window.parent.focus();
} }
{/literal} {/literal}

View file

@ -63,7 +63,7 @@ function contextmenu(param) {
break; break;
case "PL.editMetaData": 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; break;
case "SP.addItem": case "SP.addItem":
@ -84,7 +84,8 @@ function contextmenu(param) {
break; break;
case "delete": 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; break;
case "fileList": 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"} {include file="script/clock.js.tpl"}
<!-- start header --> <!-- start header -->
<!-- start header left --> <!-- start header left -->
@ -18,8 +21,11 @@
<!-- end station information --> <!-- end station information -->
<!-- start onair information --> <!-- start onair information -->
<div class="onair"> <div class="onair">
{if $_nowplaying}
<img src="img/el_onair.gif" alt="on air" /> <img src="img/el_onair.gif" alt="on air" />
<!--img src="img/el_offair.gif" alt="off air" /--> {else}
<img src="img/el_offair.gif" alt="off air">
{/if}
</div> </div>
<!-- end onair information --> <!-- end onair information -->
<!-- start station time --> <!-- start station time -->
@ -39,8 +45,6 @@
<!-- end station time --> <!-- end station time -->
<!-- start what playing --> <!-- start what playing -->
<div class="whatplaying"> <div class="whatplaying">
{assign var='_nowplaying' value=$SCHEDULER->getNowNextClip()}
{assign var='_nextplaying' value=$SCHEDULER->getNowNextClip(1)}
{if $_nowplaying} {if $_nowplaying}
<div class="nowplaying">Now Playing: {$_nowplaying.title}</div> <div class="nowplaying">Now Playing: {$_nowplaying.title}</div>
<div class="scala"> <div class="scala">
@ -60,6 +64,11 @@
</div> </div>
<!-- end header right --> <!-- end header right -->
<!-- end header --> <!-- end header -->
{assign var='_nowplaying' value=NULL}
{assign var='_nextplaying' value=NULL}
{* {*
<!-- old template --> <!-- old template -->
<div id="statusbar"> <div id="statusbar">

View file

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

View file

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

View file

@ -182,7 +182,9 @@ class uiBrowser extends uiBase {
'id' => $id, 'id' => $id,
'act' => $id ? 'editFile' : 'uploadFile')); 'act' => $id ? 'editFile' : 'uploadFile'));
$this->_parseArr2Form($form, $mask); $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); $form->setConstants($const);
$this->_parseArr2Form($form, $mask); $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; return FALSE;
} }
$this->_setMDataValue($r, UI_MDATA_KEY_TITLE, $formdata['mediafile']['name']);
$this->transMData($r); $this->transMData($r);
$this->redirUrl = UI_BROWSER."?act=editFile&id=$r"; $this->redirUrl = UI_BROWSER."?act=editFile&id=$r";
$this->_retMsg('Audioclip Data saved'); if (UI_VERBOSE) $this->_retMsg('Audioclip Data saved');
return $r; return $r;
} }
@ -185,8 +186,9 @@ class uiHandler extends uiBase {
$ia = $this->gb->analyzeFile($id, $this->sessid); $ia = $this->gb->analyzeFile($id, $this->sessid);
$s = $ia['playtime_seconds']; $s = $ia['playtime_seconds'];
$extent = date('H:i:s', floor($s)-date('Z')).substr(number_format($s, 6), strpos(number_format($s, 6), '.')); $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->_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'] as $key=>$val) {
foreach ($mask['pages'][$key] as $k=>$v) { foreach ($mask['pages'][$key] as $k=>$v) {
@ -230,12 +232,15 @@ class uiHandler extends uiBase {
$this->redirUrl = UI_BROWSER."?act=editWebstream&id=".$id; $this->redirUrl = UI_BROWSER."?act=editWebstream&id=".$id;
return FALSE; 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']); $extent = sprintf('%02d', $formdata['length']['H']).':'.sprintf('%02d', $formdata['length']['i']).':'.sprintf('%02d', $formdata['length']['s']).'.000000';
$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); $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->redirUrl = UI_BROWSER."?act=editWebstream&id=$r";
$this->_retMsg('Stream Data saved'); if (UI_VERBOSE) $this->_retMsg('Stream Data saved');
return $r; 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_TITLE, $this->sessid, $formdata['title']);
$this->gb->setMDataValue($id, UI_MDATA_KEY_URL, $this->sessid, $formdata['url']); $this->gb->setMDataValue($id, UI_MDATA_KEY_URL, $this->sessid, $formdata['url']);
$this->gb->setMDataValue($id, UI_MDATA_KEY_DURATION, $this->sessid, $length); $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']; $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('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"; $this->redirUrl = UI_BROWSER."?act=editItem&id=$id";
} }

View file

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

View file

@ -7,6 +7,7 @@ class uiPlaylist
$this->activeId =& $_SESSION[UI_PLAYLIST_SESSNAME]['activeId']; $this->activeId =& $_SESSION[UI_PLAYLIST_SESSNAME]['activeId'];
$this->token =& $_SESSION[UI_PLAYLIST_SESSNAME]['token']; $this->token =& $_SESSION[UI_PLAYLIST_SESSNAME]['token'];
$this->reloadUrl = UI_BROWSER.'?popup[]=_reload_parent&popup[]=_close'; $this->reloadUrl = UI_BROWSER.'?popup[]=_reload_parent&popup[]=_close';
$this->redirectUrl = UI_BROWSER.'?popup[]=_2PL.simpleManagement&popup[]=_close';
} }
function setReload() function setReload()
@ -14,6 +15,11 @@ class uiPlaylist
$this->Base->redirUrl = $this->reloadUrl; $this->Base->redirUrl = $this->reloadUrl;
} }
function setRedirect()
{
$this->Base->redirUrl = $this->redirectUrl;
}
function get() function get()
{ {
if (!$this->activeId) { if (!$this->activeId) {
@ -48,7 +54,8 @@ class uiPlaylist
$this->token = $this->Base->gb->lockPlaylistForEdit($plid, $this->Base->sessid); $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->Base->gb->savePref($this->Base->sessid, UI_PL_ACCESSTOKEN_KEY, $plid.':'.$this->token);
$this->activeId = $plid; $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; return TRUE;
} }
@ -64,11 +71,11 @@ class uiPlaylist
} }
$plgunid = $this->Base->gb->releaseLockedPlaylist($this->token, $this->Base->sessid); $plgunid = $this->Base->gb->releaseLockedPlaylist($this->token, $this->Base->sessid);
if (PEAR::isError($plgunid)) { if (PEAR::isError($plgunid)) {
if (UI_VERBOSE) print_r($plgunid); #print_r($plgunid);
if (UI_WARNING) $this->Base->_retMsg('Unable to release Playlist'); if (UI_WARNING) $this->Base->_retMsg('Unable to release Playlist');
return FALSE; 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->activeId = NULL;
$this->token = NULL; $this->token = NULL;
$this->Base->gb->delPref($this->Base->sessid, UI_PL_ACCESSTOKEN_KEY); $this->Base->gb->delPref($this->Base->sessid, UI_PL_ACCESSTOKEN_KEY);
@ -81,7 +88,7 @@ class uiPlaylist
$tmpid = $this->activeId; $tmpid = $this->activeId;
$this->release(FALSE); $this->release(FALSE);
$this->activate($tmpid, 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; return $this->activeId;
} }
@ -95,11 +102,11 @@ class uiPlaylist
} }
$plgunid = $this->Base->gb->revertEditedPlaylist($this->token, $this->Base->sessid); $plgunid = $this->Base->gb->revertEditedPlaylist($this->token, $this->Base->sessid);
if (PEAR::isError($plgunid)) { 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'); if (UI_WARNING) $this->Base->_retMsg('Unable to revert to looked state');
return FALSE; 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->activeId = NULL;
$this->token = NULL; $this->token = NULL;
$this->Base->gb->delPref($this->Base->sessid, UI_PL_ACCESSTOKEN_KEY); $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('Unable to set $1: $2', $key, $val);
} }
} }
$this->Base->_retMsg('Metadata saved'); 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.simpleManagement&id=$id";
$this->Base->redirUrl = UI_BROWSER."?act=PL.editMetaData&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), 'duration' => $this->Base->_getMDataValue($this->Base->gb->_idFromGunid($clip['gunid']), UI_MDATA_KEY_DURATION),
'elapsed' => $clip['elapsed'], 'elapsed' => $clip['elapsed'],
'remaining' => $clip['remaining'], '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']))
); );
} }