From be6371aa5590c16266d7f42cba5bcf12e0290671 Mon Sep 17 00:00:00 2001 From: sebastian Date: Mon, 4 Apr 2005 17:11:18 +0000 Subject: [PATCH] *** empty log message *** --- .../htmlUI/var/formmask/generic.inc.php | 1465 ++++++++--------- .../htmlUI/var/formmask/metadata.inc.php | 6 +- .../htmlUI/var/html/styles_livesupport.css | 8 + .../htmlUI/var/localizer/display.inc.php | 2 +- .../templates/playlist/simpleManagement.tpl | 4 +- .../var/templates/scheduler/calendar.tpl | 89 +- .../htmlUI/var/templates/scheduler/entry.tpl | 1 - .../htmlUI/var/templates/scheduler/month.tpl | 4 +- .../htmlUI/var/templates/scheduler/week.tpl | 2 +- 9 files changed, 760 insertions(+), 821 deletions(-) delete mode 100755 livesupport/modules/htmlUI/var/templates/scheduler/entry.tpl diff --git a/livesupport/modules/htmlUI/var/formmask/generic.inc.php b/livesupport/modules/htmlUI/var/formmask/generic.inc.php index ee0f0ea72..e986324c6 100755 --- a/livesupport/modules/htmlUI/var/formmask/generic.inc.php +++ b/livesupport/modules/htmlUI/var/formmask/generic.inc.php @@ -1,733 +1,732 @@ - array( - array( - 'element' => 'act', - 'type' => 'hidden', - 'constant' => 'changeStationPrefs' - ), - array( - 'element' => 'basics', - 'type' => 'header', - 'label' => 'Station Settings', - ), - array( - 'rule' => 'nopunctuation', - 'element' => 'stationMaxfilesize', - ), - array( - 'element' => 'stationFrequency', - 'isPref' => TRUE, - 'type' => 'text', - 'label' => 'Frequency', - 'required' => TRUE - ), - array( - 'element' => 'stationName', - 'isPref' => TRUE, - 'type' => 'text', - 'label' => 'Station Name', - 'required' => TRUE - ), - array( - 'element' => 'stationLogoPath', - 'isPref' => TRUE, - 'type' => 'hidden', - 'label' => 'Station Logo path', - 'default' => 'img/stationlogo.image', - 'required' => TRUE, - ), - array( - 'rule' => 'regex', - 'element' => 'stationLogoPath', - 'format' => '/^img\/[a-z0-9.-_]*$/', - 'rulemsg' => 'Path seems invalid' - ), - array( - 'element' => 'stationURL', - 'isPref' => TRUE, - 'type' => 'text', - 'label' => 'Station URL', - 'default' => 'http://', - 'required' => TRUE - ), - array( - 'rule' => 'regex', - 'element' => 'stationURL', - 'format' => UI_REGEX_URL, - 'rulemsg' => 'URL seems not to be valid' - ), - array( - 'element' => 'stationlogo', - 'type' => 'file', - 'label' => 'Station Logo', - 'requiredmsg'=> 'please select Logo file', - 'attributes'=> array('multiple' => 'application/pdf') - ), - array( - 'element' => 'systemsettings', - 'type' => 'header', - 'label' => 'System Settings' - ), - array( - 'element' => UI_SCRATCHPAD_MAXLENGTH_KEY, - 'isPref' => TRUE, - 'type' => 'select', - 'label' => 'Maximun length of ScratchPad', - 'options' => array( - 5 => 5, - 10 => 10, - 25 => 25 - ) - ), - array( - 'element' => 'stationMaxfilesize', - 'isPref' => TRUE, - 'type' => 'text', - 'label' => 'Reduce Upload Filesize
(must be smaller than ' .ini_get('upload_max_filesize').')', - 'rule' => 'numeric', - 'attributes' => array( - 'onClick' => 'alert ("Note: System Maximum is set to '. - ini_get('upload_max_filesize') - .' in php.ini\n You can just reduce this amount here.")' - ) - ), - array( - 'element' =>'Submit', - 'type' =>'submit', - 'label' =>'Submit' - ) - ), - - 'chgPasswd' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - 'default' => 'chgPasswd' - ), - array( - 'element' => 'uid', - 'type' => 'hidden', - ), - array( - 'element' => 'oldpass', - 'type' => 'password', - 'label' => 'Old Password', - 'required' => TRUE, - ), - array( - 'element' => 'pass', - 'type' => 'password', - 'label' => 'New Password', - 'required' => TRUE, - ), - array( - 'element' => 'pass2', - 'type' => 'password', - 'label' => 'Retype Password', - 'required' => TRUE, - ), - array( - 'rule' => 'compare', - 'element' => array('pass','pass2'), - 'rulemsg' => 'The Passwords do not match' - ), - array( - 'element' =>'Submit', - 'type' =>'submit', - 'label' =>'Submit' - ) - - ), - - 'addUser' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - 'constant' => 'addUser' - ), - array( - 'element' => 'login', - 'type' => 'text', - 'label' => 'Username', - 'required' => TRUE - ), - array( - 'element' =>'pass', - 'type' =>'password', - 'label' =>'Users Password', - 'required' =>TRUE - ), - array( - 'element' =>'pass2', - 'type' =>'password', - 'label' =>'Repeat Password', - 'required' =>TRUE - ), - array( - 'rule' =>'compare', - 'element' =>array('pass','pass2'), - 'rulemsg' =>'The Passwords do not match' - ), - array( - 'element' =>'Submit', - 'type' =>'submit', - 'label' =>'Submit' - ) - ), - - 'addGroup' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - 'constant' => 'addGroup' - ), - array( - 'element' => 'login', - 'type' => 'text', - 'label' => 'Group Name', - 'required' => TRUE - ), - array( - 'element' =>'Submit', - 'type' =>'submit', - 'label' =>'Submit' - ) - ), - - 'login' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - 'constant' => 'login' - ), - array( - 'element' => 'login', - 'type' => 'text', - 'label' => 'Username', - 'required' => TRUE - ), - array( - 'element' => 'pass', - 'type' => 'password', - 'label' => 'Password', - 'required' => TRUE - ), - array( - 'element' => 'cancel', - 'type' => 'button', - 'label' => 'Cancel', - 'attributes'=> array('onClick' => 'window.close()'), - 'groupit' => TRUE - ), - array( - 'element' => 'Submit', - 'type' => 'submit', - 'label' => 'Submit', - 'groupit' => TRUE - ), - array( - 'group' => array('cancel', 'Submit') - ), - ), - - 'uploadFileM' => array( - array( - 'element' => 'act', - 'type' => 'hidden' - ), - array( - 'element' => 'id', - 'type' => 'hidden' - ), - array( - 'element' => 'mediafile', - 'type' => 'file', - 'label' => 'Mediafile', - 'required' => TRUE, - 'requiredmsg'=> 'please select Media file' - ), - array( - 'element' => 'mdatafile', - 'type' => 'file', - 'label' => 'Metadata', - 'required' => TRUE, - 'requiredmsg'=> 'please select Metadata file' - ), - array( - 'element' => 'Submit', - 'type' => 'submit', - 'label' => 'Submit' - ) - ), - - 'file' => array( - array( - 'element' => 'act', - 'type' => 'hidden' - ), - array( - 'element' => 'id', - 'type' => 'hidden' - ), - array( - 'element' => 'folderId', - 'type' => 'hidden' - ), - array( - 'element' => 'mediafile', - 'type' => 'file', - 'label' => 'Mediafile', - 'required' => TRUE, - 'requiredmsg'=> 'please select Media file' - ), - array( - 'element' => 'cancel', - 'type' => 'button', - 'label' => 'Cancel', - 'attributes'=> array( - 'class'=> "button", - 'onClick' => "location.href='".UI_BROWSER."'"), - 'groupit' => TRUE - ), - array( - 'element' => 'Submit', - 'type' => 'submit', - 'label' => 'Submit', - 'groupit' => TRUE, - 'attributes' => array( - 'class'=> "button", - ), - ), - array( - 'group' => array('cancel', 'Submit') - ) - ), - - 'webstream' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - ), - array( - 'element' => 'id', - 'type' => 'hidden' - ), - array( - 'element' => 'folderId', - 'type' => 'hidden' - ), - array( - 'element' => 'title', - 'type' => 'text', - 'label' => 'Title', - 'required' => TRUE - ), - array( - 'element' => 'url', - 'type' => 'text', - 'label' => 'Stream URL', - 'required' => TRUE, - 'requiredmsg'=> 'URL is missing', - 'rule' => 'regex', - 'format' => UI_REGEX_URL, - 'rulemsg' => 'URL seems invalid', - ), - array( - 'element' => 'length', - 'type' => 'date', - 'label' => 'Length
Leave zero for Live Stream', - 'options' => array('format' => 'His'), - ), - array( - 'element' => 'cancel', - 'type' => 'button', - 'label' => 'Cancel', - 'attributes'=> array('onClick' => "location.href='".UI_BROWSER."'"), - 'groupit' => TRUE - ), - array( - 'element' => 'Submit', - 'type' => 'submit', - 'label' => 'Submit', - 'groupit' => TRUE - ), - array( - 'group' => array('cancel', 'Submit') - ) - ), - - 'search' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - 'constant' => 'SEARCH.newSearch' - ), - array( - 'element' => 'id', - 'type' => 'hidden' - ), - array( - 'element' => 'counter', - 'type' => 'hidden' - ), - array( - 'element' => 'max_rows', - 'type' => 'hidden', - 'constant' => UI_SEARCH_MAX_ROWS - ), - array( - 'element' => 'operator', - 'type' => 'select', - 'label' => 'Operator', - 'options' => array( - 'or' => 'Or', - 'and' => 'And', - ) - ), - array( - 'element' => 'filetype', - 'type' => 'select', - 'label' => 'Filetype', - 'options' => array( - 'File' => '*', - 'audioclip' => 'Audioclip', - 'webstream' => 'Webstream', - 'playlist' => 'Playlist' - ) - ), - array( - 'element' => 'limit', - 'type' => 'select', - 'label' => 'Rows per Page', - 'options' => array( - 10 => 10, - 25 => 25, - 50 => 50, - 100 => 100 - ) - ), - array( - 'element' => 'clear', - 'type' => 'button', - 'label' => 'Reset', - 'attributes' => array('onClick' => "this.form.reset(); hpopup('".UI_HANDLER."?act=SEARCH.clear', 'SF')"), - 'groupit' => TRUE, - ), - array( - 'element' => 'addrow', - 'type' => 'button', - 'label' => 'One more Row', - 'attributes' => array('onClick' => 'SearchForm_addRow()'), - 'groupit' => TRUE, - ), - array( - 'element' => 'submit', - 'type' => 'submit', - 'label' => 'Submit', - 'groupit' => TRUE, - ), - array('group' => array('clear', 'addrow', 'submit') - ), - ), - - 'relations' => array( - 'standard' => array( - 'partial' => 'partial', - 'full' => 'full', - 'prefix' => 'prefix', - '=' => '=' , - '<' => '<', - '<=' => '<=', - '>' => '>', - '>=' => '>=' - ), - 1 => array( - 'partial' => 'partial', - 'full' => 'full', - 'prefix' => 'prefix', - '=' => '=' - ), - - ), - - 'languages' => array( - array( - 'element' => 'langid', - 'type' => 'select', - 'label' => 'Language', - 'options' => array( - 'en.English' => 'English', - 'nl.Dutch' => 'Dutch', - 'cz.Czech' => 'Czech', - 'de.German' => 'German', - 'hu.Hungarian' => 'Hungarian', - 'sr.Serbian' => 'Serbian' - ) - ) - ), - - 'browse_columns' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - ), - array( - 'element' => 'id', - 'type' => 'hidden' - ), - 'form' => array( - 'element' => 'col', - 'type' => 'hidden' - ), - 'category' => array( - 'element' => 'category', - 'type' => 'select', - 'label' => 'Category', - 'attributes'=> array( - 'onChange' => 'this.form.act.value="BROWSE.setCategory"; this.form.submit()', - 'style' => 'width: 180px;', - 'id' => 'category_1' - ) - ), - 'value' => array( - 'element' => 'value', - 'type' => 'select', - 'multiple' => TRUE, - 'attributes'=> array( - 'size' => 10, - 'class' => 'area_browse', - 'onChange' => 'this.form.act.value="BROWSE.setValue"; this.form.submit()' - ) - ) - ), - - 'browse_global' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - ), - array( - 'element' => 'filetype', - 'type' => 'select', - 'label' => 'Filetype', - 'options' => array( - 'File' => '*', - 'audioclip' => 'Audioclip', - 'webstream' => 'Webstream', - 'playlist' => 'Playlist' - ), - 'attributes'=> array('onChange' => 'hpopup("'.UI_HANDLER.'?act=BROWSE.setFiletype&filetype=" + this.form.filetype.value)') - ), - array( - 'element' => 'limit', - 'type' => 'select', - 'label' => 'Rows per Page', - 'options' => array( - 10 => 10, - 25 => 25, - 50 => 50, - 100 => 100 - ), - 'attributes'=> array('onChange' => 'hpopup("'.UI_HANDLER.'?act=BROWSE.setLimit&limit=" + this.form.limit.value)') - ) - ), - - 'simplesearch' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - 'constant' => 'SEARCH.simpleSearch' - ), - array( - 'element' => 'simplesearch', - 'type' => 'header', - 'label' => 'Library Search', - ), - array( - 'element' => 'criterium', - 'type' => 'text', - 'label' => NULL, - 'groupit' => TRUE - ), - array( - 'element' => 'submit', - 'type' => 'submit', - 'label' => 'Search', - 'groupit' => TRUE - ), - array( - 'group' => array('criterium', 'submit') - ) - ), - - 'PL.changeTransition' => array( - 'transition' => array( - array( - 'element' => 'headline', - 'type' => 'static' - ), - /* - array( - 'element' => 'type', - 'type' => 'radio', - 'label' => 'Type', - 'options' => array( - 'fadeX' => 'Crossfade', - 'pause' => 'Pause' - ), - 'default' => 'fadeX' - ) */ - array( - 'element' => 'type', - 'type' => 'hidden', - 'default' => 'fadeX' - ), - ), - 'fadeIn' => array( - array( - 'element' => 'headline', - 'type' => 'static' - ), - /* - array( - 'element' => 'type', - 'type' => 'radio', - 'label' => 'Type', - 'options' => array('fadeIn' => 'Fade in'), - 'default' => 'fadeIn' - ) */ - array( - 'element' => 'type', - 'type' => 'hidden', - 'default' => 'fadeIn' - ), - - ), - 'fadeOut' => array( - array( - 'element' => 'headline', - 'type' => 'static' - ), - /* - array( - 'element' => 'type', - 'type' => 'radio', - 'label' => 'Type', - 'options' => array('fadeOut' => 'Fade out'), - 'default' => 'fadeOut' - ) */ - array( - 'element' => 'type', - 'type' => 'hidden', - 'default' => 'fadeOut' - ), - ), - 'all' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - 'constant' => 'PL.changeTransition' - ), - array( - 'element' => 'id', - 'type' => 'hidden' - ), - array( - 'element' => 'duration', - 'type' => 'text', - 'rule' => 'numeric', - 'attributes'=> array('size' => 4, 'maxlength' => 4), - 'groupit' => TRUE - ), - array( - 'element' => 'switchdown', - 'type' => 'button', - 'label' => '-', - 'attributes'=> array('onClick' => 'pl_switchDown()', 'onMousedown' => 'pl_start("Down")', 'onMouseUp' => "pl_stop()", 'onMouseOut' => "pl_stop()"), - 'groupit' => TRUE - ), - array( - 'element' => 'switchup', - 'type' => 'button', - 'label' => '+', - 'attributes'=> array('onClick' => 'pl_switchUp()', 'onMousedown' => 'pl_start("Up")', 'onMouseUp' => "pl_stop()", 'onMouseOut' => "pl_stop()"), - 'groupit' => TRUE - ), - array( - 'group' => array('duration', 'switchdown', 'switchup'), - 'label' => 'Duration' - ), - array( - 'element' => 'cancel', - 'type' => 'button', - 'label' => 'Cancel', - 'attributes'=> array('onClick' => 'window.close()'), - 'groupit' => TRUE, - ), - array( - 'element' => 'reset', - 'type' => 'reset', - 'label' => 'Reset', - 'groupit' => TRUE, - ), - array( - 'element' => 'submit', - 'type' => 'submit', - 'label' => 'Submit', - 'groupit' => TRUE, - ), - array( - 'group' => array('cancel', 'reset', 'submit') - ) - ) - ), - 'schedule' => array( - array( - 'element' => 'act', - 'type' => 'hidden', - 'constant' => 'SCHEDULER.addItem' - ), - 'date' => array( - 'element' => 'date', - 'type' => 'date', - 'label' => 'Date', - 'options' => array('format' => 'Ymd'), - ), - 'time' => array( - 'element' => 'time', - 'type' => 'date', - 'label' => 'Time', - 'options' => array('format' => 'His'), - ), - 'playlist' => array( - 'element' => 'playlist', - 'type' => 'select', - 'label' => 'Playlist', - 'required' => TRUE, - ), - array( - 'element' => 'cancel', - 'type' => 'button', - 'label' => 'Cancel', - 'attributes'=> array('onClick' => 'window.close()'), - 'groupit' => TRUE - ), - array( - 'element' => 'reset', - 'type' => 'reset', - 'label' => 'Reset', - 'groupit' => TRUE - ), - array( - 'element' => 'submit', - 'type' => 'submit', - 'label' => 'Submit', - 'groupit' => TRUE - ), - array( - 'group' => array('cancel', 'reset', 'submit') - ) - ) -); + array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'constant' => 'changeStationPrefs' + ), + array( + 'element' => 'basics', + 'type' => 'header', + 'label' => 'Station Settings', + ), + array( + 'rule' => 'nopunctuation', + 'element' => 'stationMaxfilesize', + ), + array( + 'element' => 'stationFrequency', + 'isPref' => TRUE, + 'type' => 'text', + 'label' => 'Frequency', + 'required' => TRUE + ), + array( + 'element' => 'stationName', + 'isPref' => TRUE, + 'type' => 'text', + 'label' => 'Station Name', + 'required' => TRUE + ), + array( + 'element' => 'stationLogoPath', + 'isPref' => TRUE, + 'type' => 'hidden', + 'label' => 'Station Logo Path', + 'default' => 'img/stationlogo.image', + 'required' => TRUE, + ), + array( + 'rule' => 'regex', + 'element' => 'stationLogoPath', + 'format' => '/^img\/[a-z0-9.-_]*$/', + 'rulemsg' => 'Path appears invalid' + ), + array( + 'element' => 'stationURL', + 'isPref' => TRUE, + 'type' => 'text', + 'label' => 'Station URL', + 'default' => 'http://', + 'required' => TRUE + ), + array( + 'rule' => 'regex', + 'element' => 'stationURL', + 'format' => UI_REGEX_URL, + 'rulemsg' => 'URL seems not to be valid' + ), + array( + 'element' => 'stationlogo', + 'type' => 'file', + 'label' => 'Station Logo', + 'requiredmsg'=> 'please select Logo file', + 'attributes'=> array('multiple' => 'application/pdf') + ), + array( + 'element' => 'systemsettings', + 'type' => 'header', + 'label' => 'System Settings' + ), + array( + 'element' => UI_SCRATCHPAD_MAXLENGTH_KEY, + 'isPref' => TRUE, + 'type' => 'select', + 'label' => 'Maximum length of ScratchPad', + 'options' => array( + 5 => 5, + 10 => 10, + 25 => 25 + ) + ), + array( + 'element' => 'stationMaxfilesize', + 'isPref' => TRUE, + 'type' => 'text', + 'label' => 'Reduce Upload Filesize', + 'rule' => 'numeric', + 'attributes' => array( + 'onFocus' => 'alert ("'.tra('Note: System Maximum is set to $1 in php.ini. You can just reduce this amount here.', + ini_get('upload_max_filesize')).'")' + ) + ), + array( + 'element' =>'Submit', + 'type' =>'submit', + 'label' =>'Submit' + ) + ), + + 'chgPasswd' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'default' => 'chgPasswd' + ), + array( + 'element' => 'uid', + 'type' => 'hidden', + ), + array( + 'element' => 'oldpass', + 'type' => 'password', + 'label' => 'Old Password', + 'required' => TRUE, + ), + array( + 'element' => 'pass', + 'type' => 'password', + 'label' => 'New Password', + 'required' => TRUE, + ), + array( + 'element' => 'pass2', + 'type' => 'password', + 'label' => 'Retype Password', + 'required' => TRUE, + ), + array( + 'rule' => 'compare', + 'element' => array('pass','pass2'), + 'rulemsg' => 'The passwords do not match' + ), + array( + 'element' =>'Submit', + 'type' =>'submit', + 'label' =>'Submit' + ) + + ), + + 'addUser' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'constant' => 'addUser' + ), + array( + 'element' => 'login', + 'type' => 'text', + 'label' => 'Username', + 'required' => TRUE + ), + array( + 'element' =>'pass', + 'type' =>'password', + 'label' =>'User Password', + 'required' =>TRUE + ), + array( + 'element' =>'pass2', + 'type' =>'password', + 'label' =>'Repeat Password', + 'required' =>TRUE + ), + array( + 'rule' =>'compare', + 'element' =>array('pass','pass2'), + 'rulemsg' =>'The passwords do not match' + ), + array( + 'element' =>'Submit', + 'type' =>'submit', + 'label' =>'Submit' + ) + ), + + 'addGroup' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'constant' => 'addGroup' + ), + array( + 'element' => 'login', + 'type' => 'text', + 'label' => 'Group Name', + 'required' => TRUE + ), + array( + 'element' =>'Submit', + 'type' =>'submit', + 'label' =>'Submit' + ) + ), + + 'login' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'constant' => 'login' + ), + array( + 'element' => 'login', + 'type' => 'text', + 'label' => 'Username', + 'required' => TRUE + ), + array( + 'element' => 'pass', + 'type' => 'password', + 'label' => 'Password', + 'required' => TRUE + ), + array( + 'element' => 'cancel', + 'type' => 'button', + 'label' => 'Cancel', + 'attributes'=> array('onClick' => 'window.close()'), + 'groupit' => TRUE + ), + array( + 'element' => 'Submit', + 'type' => 'submit', + 'label' => 'Submit', + 'groupit' => TRUE + ), + array( + 'group' => array('cancel', 'Submit') + ), + ), + + 'uploadFileM' => array( + array( + 'element' => 'act', + 'type' => 'hidden' + ), + array( + 'element' => 'id', + 'type' => 'hidden' + ), + array( + 'element' => 'mediafile', + 'type' => 'file', + 'label' => 'Media File', + 'required' => TRUE, + 'requiredmsg'=> 'Please select media file' + ), + array( + 'element' => 'mdatafile', + 'type' => 'file', + 'label' => 'Metadata', + 'required' => TRUE, + 'requiredmsg'=> 'Please select metadata file' + ), + array( + 'element' => 'Submit', + 'type' => 'submit', + 'label' => 'Submit' + ) + ), + + 'file' => array( + array( + 'element' => 'act', + 'type' => 'hidden' + ), + array( + 'element' => 'id', + 'type' => 'hidden' + ), + array( + 'element' => 'folderId', + 'type' => 'hidden' + ), + array( + 'element' => 'mediafile', + 'type' => 'file', + 'label' => 'Media File', + 'required' => TRUE, + 'requiredmsg'=> 'please select media file' + ), + array( + 'element' => 'cancel', + 'type' => 'button', + 'label' => 'Cancel', + 'attributes'=> array( + 'class'=> "button", + 'onClick' => "location.href='".UI_BROWSER."'"), + 'groupit' => TRUE + ), + array( + 'element' => 'Submit', + 'type' => 'submit', + 'label' => 'Submit', + 'groupit' => TRUE, + 'attributes' => array( + 'class'=> "button", + ), + ), + array( + 'group' => array('cancel', 'Submit') + ) + ), + + 'webstream' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + ), + array( + 'element' => 'id', + 'type' => 'hidden' + ), + array( + 'element' => 'folderId', + 'type' => 'hidden' + ), + array( + 'element' => 'title', + 'type' => 'text', + 'label' => 'Title', + 'required' => TRUE + ), + array( + 'element' => 'url', + 'type' => 'text', + 'label' => 'Stream URL', + 'required' => TRUE, + 'requiredmsg'=> 'URL is missing', + 'rule' => 'regex', + 'format' => UI_REGEX_URL, + 'rulemsg' => 'URL seems invalid', + ), + array( + 'element' => 'length', + 'type' => 'date', + 'label' => 'Length
Enter zero for Live Stream', + 'options' => array('format' => 'His'), + ), + array( + 'element' => 'cancel', + 'type' => 'button', + 'label' => 'Cancel', + 'attributes'=> array('onClick' => "location.href='".UI_BROWSER."'"), + 'groupit' => TRUE + ), + array( + 'element' => 'Submit', + 'type' => 'submit', + 'label' => 'Submit', + 'groupit' => TRUE + ), + array( + 'group' => array('cancel', 'Submit') + ) + ), + + 'search' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'constant' => 'SEARCH.newSearch' + ), + array( + 'element' => 'id', + 'type' => 'hidden' + ), + array( + 'element' => 'counter', + 'type' => 'hidden' + ), + array( + 'element' => 'max_rows', + 'type' => 'hidden', + 'constant' => UI_SEARCH_MAX_ROWS + ), + array( + 'element' => 'operator', + 'type' => 'select', + 'label' => 'Operator', + 'options' => array( + 'or' => 'Or', + 'and' => 'And', + ) + ), + array( + 'element' => 'filetype', + 'type' => 'select', + 'label' => 'File type', + 'options' => array( + 'File' => '*', + 'audioclip' => 'Audio Clip', + 'webstream' => 'Web Stream', + 'playlist' => 'Playlist' + ) + ), + array( + 'element' => 'limit', + 'type' => 'select', + 'label' => 'Rows per Page', + 'options' => array( + 10 => 10, + 25 => 25, + 50 => 50, + 100 => 100 + ) + ), + array( + 'element' => 'clear', + 'type' => 'button', + 'label' => 'Reset', + 'attributes' => array('onClick' => "this.form.reset(); hpopup('".UI_HANDLER."?act=SEARCH.clear', 'SF')"), + 'groupit' => TRUE, + ), + array( + 'element' => 'addrow', + 'type' => 'button', + 'label' => 'Add Criteria', + 'attributes' => array('onClick' => 'SearchForm_addRow()'), + 'groupit' => TRUE, + ), + array( + 'element' => 'submit', + 'type' => 'submit', + 'label' => 'Submit', + 'groupit' => TRUE, + ), + array('group' => array('clear', 'addrow', 'submit') + ), + ), + + 'relations' => array( + 'standard' => array( + 'partial' => 'partial', + 'full' => 'full', + 'prefix' => 'prefix', + '=' => '=' , + '<' => '<', + '<=' => '<=', + '>' => '>', + '>=' => '>=' + ), + 1 => array( + 'partial' => 'partial', + 'full' => 'full', + 'prefix' => 'prefix', + '=' => '=' + ), + + ), + + 'languages' => array( + array( + 'element' => 'langid', + 'type' => 'select', + 'label' => 'Language', + 'options' => array( + 'en.English' => 'English', + 'nl.Dutch' => 'Nederlaands', + 'cz.Czech' => 'Cesky', + 'de.German' => 'Deutsch', + 'hu.Hungarian' => 'Magyar', + 'sr.Serbian' => 'Srpski' + ) + ) + ), + + 'browse_columns' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + ), + array( + 'element' => 'id', + 'type' => 'hidden' + ), + 'form' => array( + 'element' => 'col', + 'type' => 'hidden' + ), + 'category' => array( + 'element' => 'category', + 'type' => 'select', + 'label' => 'Category', + 'attributes'=> array( + 'onChange' => 'this.form.act.value="BROWSE.setCategory"; this.form.submit()', + 'style' => 'width: 180px;', + 'id' => 'category_1' + ) + ), + 'value' => array( + 'element' => 'value', + 'type' => 'select', + 'multiple' => TRUE, + 'attributes'=> array( + 'size' => 10, + 'class' => 'area_browse', + 'onChange' => 'this.form.act.value="BROWSE.setValue"; this.form.submit()' + ) + ) + ), + + 'browse_global' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + ), + array( + 'element' => 'filetype', + 'type' => 'select', + 'label' => 'File Type', + 'options' => array( + 'File' => '*', + 'audioclip' => 'Audio Clip', + 'webstream' => 'Web Stream', + 'playlist' => 'Playlist' + ), + 'attributes'=> array('onChange' => 'hpopup("'.UI_HANDLER.'?act=BROWSE.setFiletype&filetype=" + this.form.filetype.value)') + ), + array( + 'element' => 'limit', + 'type' => 'select', + 'label' => 'Rows Per Page', + 'options' => array( + 10 => 10, + 25 => 25, + 50 => 50, + 100 => 100 + ), + 'attributes'=> array('onChange' => 'hpopup("'.UI_HANDLER.'?act=BROWSE.setLimit&limit=" + this.form.limit.value)') + ) + ), + + 'simplesearch' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'constant' => 'SEARCH.simpleSearch' + ), + array( + 'element' => 'simplesearch', + 'type' => 'header', + 'label' => 'Search Library', + ), + array( + 'element' => 'criterium', + 'type' => 'text', + 'label' => NULL, + 'groupit' => TRUE + ), + array( + 'element' => 'submit', + 'type' => 'submit', + 'label' => 'Search', + 'groupit' => TRUE + ), + array( + 'group' => array('criterium', 'submit') + ) + ), + + 'PL.changeTransition' => array( + 'transition' => array( + array( + 'element' => 'headline', + 'type' => 'static' + ), + /* + array( + 'element' => 'type', + 'type' => 'radio', + 'label' => 'Type', + 'options' => array( + 'fadeX' => 'Crossfade', + 'pause' => 'Pause' + ), + 'default' => 'fadeX' + ) */ + array( + 'element' => 'type', + 'type' => 'hidden', + 'default' => 'fadeX' + ), + ), + 'fadeIn' => array( + array( + 'element' => 'headline', + 'type' => 'static' + ), + /* + array( + 'element' => 'type', + 'type' => 'radio', + 'label' => 'Type', + 'options' => array('fadeIn' => 'Fade in'), + 'default' => 'fadeIn' + ) */ + array( + 'element' => 'type', + 'type' => 'hidden', + 'default' => 'fadeIn' + ), + + ), + 'fadeOut' => array( + array( + 'element' => 'headline', + 'type' => 'static' + ), + /* + array( + 'element' => 'type', + 'type' => 'radio', + 'label' => 'Type', + 'options' => array('fadeOut' => 'Fade out'), + 'default' => 'fadeOut' + ) */ + array( + 'element' => 'type', + 'type' => 'hidden', + 'default' => 'fadeOut' + ), + ), + 'all' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'constant' => 'PL.changeTransition' + ), + array( + 'element' => 'id', + 'type' => 'hidden' + ), + array( + 'element' => 'duration', + 'type' => 'text', + 'rule' => 'numeric', + 'attributes'=> array('size' => 4, 'maxlength' => 4), + 'groupit' => TRUE + ), + array( + 'element' => 'switchdown', + 'type' => 'button', + 'label' => '-', + 'attributes'=> array('onClick' => 'pl_switchDown()', 'onMousedown' => 'pl_start("Down")', 'onMouseUp' => "pl_stop()", 'onMouseOut' => "pl_stop()"), + 'groupit' => TRUE + ), + array( + 'element' => 'switchup', + 'type' => 'button', + 'label' => '+', + 'attributes'=> array('onClick' => 'pl_switchUp()', 'onMousedown' => 'pl_start("Up")', 'onMouseUp' => "pl_stop()", 'onMouseOut' => "pl_stop()"), + 'groupit' => TRUE + ), + array( + 'group' => array('duration', 'switchdown', 'switchup'), + 'label' => 'Duration' + ), + array( + 'element' => 'cancel', + 'type' => 'button', + 'label' => 'Cancel', + 'attributes'=> array('onClick' => 'window.close()'), + 'groupit' => TRUE, + ), + array( + 'element' => 'reset', + 'type' => 'reset', + 'label' => 'Reset', + 'groupit' => TRUE, + ), + array( + 'element' => 'submit', + 'type' => 'submit', + 'label' => 'Submit', + 'groupit' => TRUE, + ), + array( + 'group' => array('cancel', 'reset', 'submit') + ) + ) + ), + 'schedule' => array( + array( + 'element' => 'act', + 'type' => 'hidden', + 'constant' => 'SCHEDULER.addItem' + ), + 'date' => array( + 'element' => 'date', + 'type' => 'date', + 'label' => 'Date', + 'options' => array('format' => 'Ymd'), + ), + 'time' => array( + 'element' => 'time', + 'type' => 'date', + 'label' => 'Time', + 'options' => array('format' => 'His'), + ), + 'playlist' => array( + 'element' => 'playlist', + 'type' => 'select', + 'label' => 'Playlist', + 'required' => TRUE, + ), + array( + 'element' => 'cancel', + 'type' => 'button', + 'label' => 'Cancel', + 'attributes'=> array('onClick' => 'window.close()'), + 'groupit' => TRUE + ), + array( + 'element' => 'reset', + 'type' => 'reset', + 'label' => 'Reset', + 'groupit' => TRUE + ), + array( + 'element' => 'submit', + 'type' => 'submit', + 'label' => 'Submit', + 'groupit' => TRUE + ), + array( + 'group' => array('cancel', 'reset', 'submit') + ) + ) +); \ No newline at end of file diff --git a/livesupport/modules/htmlUI/var/formmask/metadata.inc.php b/livesupport/modules/htmlUI/var/formmask/metadata.inc.php index c58d89d99..954fd9dfc 100755 --- a/livesupport/modules/htmlUI/var/formmask/metadata.inc.php +++ b/livesupport/modules/htmlUI/var/formmask/metadata.inc.php @@ -150,7 +150,7 @@ $mask = array( 'element' => 'ls:year', 'type' => 'select', 'label' => 'Year', - 'options' => _getNumArr(1900, date('Y')+5), + #'options' => _getNumArr(1900, date('Y')+5), 'id3' => 'Year' ), array( @@ -208,14 +208,14 @@ $mask = array( 'element' => 'ls:track_num', 'type' => 'select', 'label' => 'Track number', - 'options' => _getNumArr(0, 99), + #'options' => _getNumArr(0, 99), 'id3' => 'Track' ), array( 'element' => 'ls:disc_num', 'type' => 'select', 'label' => 'Disc number', - 'options' => _getNumArr(0, 20), + #'options' => _getNumArr(0, 20), 'id3' => 'Disk' ), array( diff --git a/livesupport/modules/htmlUI/var/html/styles_livesupport.css b/livesupport/modules/htmlUI/var/html/styles_livesupport.css index ab92643fa..359e3cf2a 100755 --- a/livesupport/modules/htmlUI/var/html/styles_livesupport.css +++ b/livesupport/modules/htmlUI/var/html/styles_livesupport.css @@ -43,6 +43,14 @@ form { font-size: 12px; width: 100px; } +.button_wide { font-size: 12px; + font-weight: bold; + color: #666; + background-color: #F7F9FB; + padding: 0 25px 0 25px; + cursor: pointer; + width: 150px; +} .button_large { font-size: 12px; font-weight: bold; color: #666; diff --git a/livesupport/modules/htmlUI/var/localizer/display.inc.php b/livesupport/modules/htmlUI/var/localizer/display.inc.php index 3dd40e702..39a299224 100755 --- a/livesupport/modules/htmlUI/var/localizer/display.inc.php +++ b/livesupport/modules/htmlUI/var/localizer/display.inc.php @@ -86,7 +86,7 @@ class Display { } $html .= ""; - $html .= ""; + $html .= ""; $html .= "\n"; if ($target[Id] == _DEFAULT_LANG_) { // default language => can change keys diff --git a/livesupport/modules/htmlUI/var/templates/playlist/simpleManagement.tpl b/livesupport/modules/htmlUI/var/templates/playlist/simpleManagement.tpl index 425434a1b..ced440bf5 100755 --- a/livesupport/modules/htmlUI/var/templates/playlist/simpleManagement.tpl +++ b/livesupport/modules/htmlUI/var/templates/playlist/simpleManagement.tpl @@ -10,9 +10,9 @@

##Playlist Editor##

 

{if $PL->reportLookedPL()} - + {else} - + {/if} {/if} diff --git a/livesupport/modules/htmlUI/var/templates/scheduler/calendar.tpl b/livesupport/modules/htmlUI/var/templates/scheduler/calendar.tpl index b3e21b11c..58931b3ed 100755 --- a/livesupport/modules/htmlUI/var/templates/scheduler/calendar.tpl +++ b/livesupport/modules/htmlUI/var/templates/scheduler/calendar.tpl @@ -9,8 +9,7 @@
  • ##Day##
  • ##Week##
  • ##Month##
  • - -
  • ##Today##
  • +
  • ##Today##
  • @@ -22,25 +21,22 @@ - - @@ -71,9 +67,9 @@ @@ -86,68 +82,3 @@ - - - -{* -
    << -
    -
    + + - - -
    - {foreach from=$SCHEDULER->Decade item="_Year"} {/foreach}
    {/if} {if $_Day.isSelected} - {$_Day.day} + {$_Day.day} {else} - {$_Day.day} + {$_Day.day} {/if}
    - - - - - - - - - - {foreach from=$SCHEDULER->Month item="_Day"} - {if $_Day.isFirst} - - - {/if} - - {if $_Day.isLast} - - {/if} - {/foreach} - -
    {$SCHEDULER->curr.year}-{$SCHEDULER->curr.month}-{$SCHEDULER->curr.day}
    << -
    - -
    -
    -
    - -
    - -
    >>
    {$_Day.week} - - {if $_Day.isEmpty} -
    - {elseif $_Day.isToday} -
    - {elseif $_Day.isCurrent} -
    - {else} -
    - {/if} - {if $_Day.isSelected} - {$_Day.day} - {else} - {$_Day.day} - {/if} - -
    -
    -*} diff --git a/livesupport/modules/htmlUI/var/templates/scheduler/entry.tpl b/livesupport/modules/htmlUI/var/templates/scheduler/entry.tpl deleted file mode 100755 index 22562bf35..000000000 --- a/livesupport/modules/htmlUI/var/templates/scheduler/entry.tpl +++ /dev/null @@ -1 +0,0 @@ -{$_title}
    {$_period}
    {$_creator}
    \ No newline at end of file diff --git a/livesupport/modules/htmlUI/var/templates/scheduler/month.tpl b/livesupport/modules/htmlUI/var/templates/scheduler/month.tpl index 3a88a5aba..2cc0639aa 100755 --- a/livesupport/modules/htmlUI/var/templates/scheduler/month.tpl +++ b/livesupport/modules/htmlUI/var/templates/scheduler/month.tpl @@ -25,10 +25,12 @@ {/if} -

    {$_Day.day}

    + +

    {$_Day.day}

    +
    {if $_Day.isLast} diff --git a/livesupport/modules/htmlUI/var/templates/scheduler/week.tpl b/livesupport/modules/htmlUI/var/templates/scheduler/week.tpl index a9e407631..09e3a08af 100755 --- a/livesupport/modules/htmlUI/var/templates/scheduler/week.tpl +++ b/livesupport/modules/htmlUI/var/templates/scheduler/week.tpl @@ -14,7 +14,7 @@ *}
     
    -

    {$SCHEDULER->curr.week}. ##KW## {$SCHEDULER->curr.year}

    +

    {$SCHEDULER->curr.week}. ##calendar week## {$SCHEDULER->curr.year}