From 4dd0246a16a0d645b034a0d186bacc55e9dfb12e Mon Sep 17 00:00:00 2001 From: paul Date: Fri, 1 Sep 2006 09:01:36 +0000 Subject: [PATCH] Hide the Preferences: schedulerStartupScript configuration value, add in a hint about logo size --- .../htmlUI/var/formmask/generic.inc.php | 28 +++++++++++-------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/livesupport/src/modules/htmlUI/var/formmask/generic.inc.php b/livesupport/src/modules/htmlUI/var/formmask/generic.inc.php index 6ca935ee2..8508d7515 100644 --- a/livesupport/src/modules/htmlUI/var/formmask/generic.inc.php +++ b/livesupport/src/modules/htmlUI/var/formmask/generic.inc.php @@ -1,4 +1,10 @@ array( @@ -53,15 +59,15 @@ $ui_fmask = array( array( 'element' => 'stationlogo', 'type' => 'file', - 'label' => 'Station logo', + 'label' => 'Station logo (maximum 128x128)', 'requiredmsg'=> 'please select logo file' ), array( 'element' => 'schedulerStartupScript', 'isPref' => TRUE, - 'type' => 'text', + 'type' => 'hidden', 'label' => 'Scheduler startup script', - 'required' => true, + 'required' => false, ), array( 'element' => UI_SCRATCHPAD_MAXLENGTH_KEY, @@ -82,7 +88,7 @@ $ui_fmask = array( 'type' =>'button', 'label' =>'Cancel', 'attributes'=>array('onclick' => 'location.href="'.UI_BROWSER.'"'), - 'groupit' => TRUE + 'groupit' => TRUE ), array( 'element' =>'Submit', @@ -313,7 +319,7 @@ $ui_fmask = array( array( 'element' => 'act', 'type' => 'hidden', - 'constant' => $_REQUEST['act'].'.newSearch' + 'constant' => "$tmpAct.newSearch" ), array( 'element' => 'id', @@ -432,7 +438,7 @@ $ui_fmask = array( 'type' => 'select', 'label' => 'Category', 'attributes'=> array( - 'onChange' => 'this.form.act.value="'.$_REQUEST['act'].'.setCategory"; this.form.submit()', + 'onChange' => 'this.form.act.value="'.$tmpAct.'.setCategory"; this.form.submit()', 'style' => 'width: 180px;', 'id' => 'category_1' ) @@ -444,7 +450,7 @@ $ui_fmask = array( 'attributes'=> array( 'size' => 10, 'class' => 'area_browse', - 'onChange' => 'this.form.act.value="'.$_REQUEST['act'].'.setValue"; this.form.submit()' + 'onChange' => 'this.form.act.value="'.$tmpAct.'.setValue"; this.form.submit()' ) ) ), @@ -464,7 +470,7 @@ $ui_fmask = array( #UI_FILETYPE_WEBSTREAM => '##Webstream##', UI_FILETYPE_PLAYLIST => '##Playlist##' ), - 'attributes'=> array('onChange' => 'hpopup("'.UI_HANDLER.'?act='.$_REQUEST['act'].'.setFiletype&filetype=" + this.form.filetype.value)') + 'attributes'=> array('onChange' => 'hpopup("'.UI_HANDLER.'?act='.$tmpAct.'.setFiletype&filetype=" + this.form.filetype.value)') ), array( 'element' => 'limit', @@ -476,7 +482,7 @@ $ui_fmask = array( 50 => 50, 100 => 100 ), - 'attributes'=> array('onChange' => 'hpopup("'.UI_HANDLER.'?act='.$_REQUEST['act'].'.setLimit&limit=" + this.form.limit.value)') + 'attributes'=> array('onChange' => 'hpopup("'.UI_HANDLER.'?act='.$tmpAct.'.setLimit&limit=" + this.form.limit.value)') ), /* do we need reset? array( @@ -790,8 +796,8 @@ $ui_fmask = array( 'type' => 'select', 'label' => 'File Format', 'options' => array( - 'smil' => 'SMIL', - // 'xspf' => 'XSPF', + 'smil' => 'SMIL', + // 'xspf' => 'XSPF', 'm3u' => 'M3U' ) ),