array( array( 'element' => 'act', 'type' => 'hidden', 'constant' => 'systemPrefs' ), array( 'element' => 'basics', 'type' => 'header', 'label' => 'Basic Settings', ), array( 'element' => 'maxfilesize', 'isPref' => TRUE, 'type' => 'text', 'label' => 'Maximum File Size for Upload', 'required' => TRUE, 'default' => ini_get('upload_max_filesize') ), array( 'rule' => 'nopunctuation', 'element' => 'maxfilesize', ), array( 'element' => 'frequency', 'isPref' => TRUE, 'type' => 'text', 'label' => 'Frequency', 'required' => TRUE ), array( 'element' => 'stationName', 'isPref' => TRUE, 'type' => 'text', 'label' => 'Staion Name', 'required' => TRUE ), array( 'element' => 'stationLogoPath', 'isPref' => TRUE, 'type' => 'text', 'label' => 'Station Logo path' ), array( 'element' => 'stationURL', 'isPref' => TRUE, 'type' => 'text', 'label' => 'Station URL', 'default' => 'http://' ), array( 'rule' => 'regex', 'element' => 'stationURL', 'format' => UI_REGEX_URL, 'rulemsg' => 'URL seems not to be valid' ), array( 'element' => UI_SCRATCHPAD_MAXLENGTH_KEY, 'isPref' => TRUE, 'type' => 'select', 'label' => 'Maximun length of ScratchPad', 'options' => array( '4' => '4', '5' => '5', '6' => '6', '7' => '7', '8' => '8', '9' => '9', '10'=>'10' ) ), array( 'element' => 'upload', 'type' => 'header', 'label' => 'Upload' ), array( 'element' => 'stationlogo', 'type' => 'file', 'label' => 'Station Logo', 'requiredmsg'=> 'please select Logo file' ), array( 'element' =>'Submit', 'type' =>'submit', 'label' =>'Submit' ) ), /* =========================================================== Matadata-Mask */ 'metaData' => array( 'basics' => array( array( 'element' => 'act', 'type' => 'hidden', 'constant'=> 'editMetaData' ), array( 'element' => 'id', 'type' => 'hidden' ), array( 'element' => 'langid', 'type' => 'hidden' ), ), 'buttons' => array ( array( 'element' =>'reset', 'type' =>'reset', 'label' =>'Reset', 'groupit' => TRUE, ), array( 'element' =>'button', 'type' =>'button', 'label' =>'Submit', 'groupit' => TRUE, 'attributes'=> array( 'onClick' => 'return switchMDataLang();' ), ), array( 'group' => array('reset', 'button'), ) ), 'tabs' => array( array( 'element' => 'Main', 'type' => 'button', 'label' => 'Main', 'groupit' => TRUE, 'attributes' => array('onClick' => 'showMain()') ), array( 'element' => 'Music_Basic', 'type' => 'button', 'label' => 'Music_Basic', 'groupit' => TRUE, 'attributes' => array('onClick' => 'showMusic_Basic()') ), array( 'element' => 'Music_Advanced', 'type' => 'button', 'label' => 'Music_Advanced', 'groupit' => TRUE, 'attributes' => array('onClick' => 'showMusic_Advanced()') ), array( 'element' => 'Talk_Basic', 'type' => 'button', 'label' => 'Talk_Basic', 'groupit' => TRUE, 'attributes' => array('onClick' => 'showTalk_Basic()') ), array( 'element' => 'Talk_Advanced', 'type' => 'button', 'label' => 'Talk_Advanced', 'groupit' => TRUE, 'attributes' => array('onClick' => 'showTalk_Advanced()') ), 'group' => array( 'group' => array('Main', 'Music_Basic', 'Music_Advanced', 'Talk_Basic', 'Talk_Advanced'), ) ), 'langswitch' => array( array( 'element' => 'langid', 'type' => 'select', 'label' => 'Language', 'options' => array( 'en' => 'English', 'cz' => 'Czech', 'de' => 'German', 'hu' => 'Hungarian', ), 'attributes'=> array('onChange' => 'return switchMDataLang()') ) ), 'pages' => array( 'Main' => array( array( 'element' => 'dc:title', 'type' => 'text', 'label' => 'Title', 'required' => TRUE ), array( 'element' => 'Creator', 'type' => 'text', 'label' => 'Creator', #'required' => TRUE, ), array( 'element' => 'Type_Genre', 'type' => 'text', 'label' => 'Type_Genre', #'required' => TRUE, ), array( 'element' => 'dc:format', 'type' => 'select', 'label' => 'Format', #'required' => TRUE, 'options' => array( '' => '', 'audio/mpeg' => 'audio/mpeg', 'File' => 'File', 'live stream' => 'Live Stream', 'networked file'=> 'Networked File', ) ), array( 'element' => 'dcterms:extent', 'type' => 'text', 'label' => 'Extent', #'attributes'=> array('readonly' => 'on') ), /* array( 'element' => 'Format_Extent_h', 'type' => 'select', 'options' => getDArr('h'), 'groupit' => TRUE ), array( 'element' => 'Format_Extent_m', 'type' => 'select', 'options' => getDArr('m'), 'groupit' => TRUE ), array( 'element' => 'Format_Extent_s', 'type' => 'select', 'options' => getDArr('h'), 'groupit' => TRUE ), array( 'group' => array('Main__Format_Extent_h', 'Main__Format_Extent_m', 'Main__Format_Extent_s'), #'name' => 'gr_Format_Extent', 'label' => 'Format_Extent', 'rule' => 'required', #'grouprule' => 'regex', #'format' => '/([1-9]0)|([1-9]{2})|(0[1-9])/', #'arg1' => 'Please enter Format_Extent', #'howmany' => 1 ), */ ), 'Music_Basic' => array( array( 'element' => 'dc:title', 'type' => 'text', 'label' => 'Title', ), array( 'element' => 'dc:creator', 'type' => 'text', 'label' => 'Creator', ), array( 'element' => 'Source_Album', 'type' => 'text', 'label' => 'Source_Album', ), /* array( 'element' => 'Source_Year', 'type' => 'date', 'label' => 'Source_Year', 'options' => array( 'language' => 'en', 'format' => 'dMY', 'addEmptyOption'=> TRUE, 'minYear' => 1900 ) ), */ array( 'element' => 'Type_Genre', 'type' => 'text', 'label' => 'Type_Genre', ), array( 'element' => 'dc:description', 'type' => 'textarea', 'label' => 'Description', ), array( 'element' => 'dc:format', 'type' => 'select', 'label' => 'Format', 'options' => array( '' => '', 'audio/mpeg' => 'audio/mpeg', 'File' => 'File', 'live stream' => 'Live Stream', 'networked file'=> 'Networked File' ) ), array( 'element' => 'Type_BPM', 'type' => 'text', 'label' => 'Type_BPM', 'rule' => 'numeric', ), array( 'element' => 'Description_Rating', 'type' => 'text', 'label' => 'Description_Rating', 'rule' => 'numeric', ), array( 'element' => 'dcterms:extent', 'type' => 'text', 'label' => 'Extent', 'attributes'=> array('readonly' => 'on') ), ), 'Music_Advanced'=> array( array( 'element' => 'Creator_Role_Encoder', 'type' => 'text', 'label' => 'Creator_Role_Encoder', ), array( 'element' => 'Source_Album_TrackNumber', 'type' => '', 'label' => 'Source_Album_TrackNumber', 'rule' => 'numeric', ), array( 'element' => 'Source_Album_DiscNumber', 'type' => 'text', 'label' => 'Source_Album_DiscNumber', 'rule' => 'numeric', ), array( 'element' => 'Description_Mood', 'type' => 'text', 'label' => 'Description_Mood', ), array( 'element' => 'Publisher', 'type' => 'text', 'label' => 'Publisher', ), array( 'element' => 'Creator_Role_Composer', 'type' => 'text', 'label' => 'Creator_Role_Composer', ), array( 'element' => 'Format_Medium_Bitrate', 'type' => 'text', 'label' => 'Format_Medium_Bitrate', 'rule' => 'numeric' ), array( 'element' => 'Format_Medium_Channels', 'type' => 'select', 'label' => 'Format_Medium_Channels', 'options' => array( '' => '', 'mono' => 'Mono', 'stereo' => 'Stereo', '5.1' => '5.1' ) ), array( 'element' => 'Format_Medium_Samplerate', 'type' => 'text', 'label' => 'Format_Medium_Samplerate', 'rule' => 'numeric' ), array( 'element' => 'Format_Medium_Encoder', 'type' => 'text', 'label' => 'Format_Medium_Encoder', ), array( 'element' => 'Format_CRC', 'type' => 'text', 'label' => 'Format_CRC', 'rule' => 'numeric' ), array( 'element' => 'Description_Lyrics', 'type' => 'textarea', 'label' => 'Description_Lyrics', ), array( 'element' => 'Creator_Role_Orchestra', 'type' => 'text', 'label' => 'Creator_Role_Orchestra', ), array( 'element' => 'Creator_Role_Conductor', 'type' => 'text', 'label' => 'Creator_Role_Conductor', ), array( 'element' => 'Creator_Role_Lyricist', 'type' => 'text', 'label' => 'Creator_Role_Lyricist', ), array( 'element' => 'Creator_Role_OriginalLyricist', 'type' => 'text', 'label' => 'Creator_Role_OriginalLyricist', ), array( 'element' => 'Creator_Role_RadioStationName', 'type' => 'text', 'label' => 'Creator_Role_RadioStationName', ), array( 'element' => 'Description_AudioFileInfoURL', 'type' => 'text', 'label' => 'Description_AudioFileInfoURL', ), array( 'element' => 'Description_ArtistURL', 'type' => 'text', 'label' => 'Description_ArtistURL', ), array( 'element' => 'Description_AudioSourceURL', 'type' => 'text', 'label' => 'Description_AudioSourceURL', ), array( 'element' => 'Description_RadioStationURL', 'type' => 'text', 'label' => 'Description_RadioStationURL', ), array( 'element' => 'Description_BuyCDURL', 'type' => 'text', 'label' => 'Description_BuyCDURL', ), array( 'element' => 'Identifier_ISRCNumber', 'type' => 'text', 'label' => 'Identifier_ISRCNumber', 'rule' => 'numeric' ), array( 'element' => 'Identifier_CatalogNumber', 'type' => 'text', 'label' => 'Identifier_CatalogNumber', 'rule' => 'numeric' ), array( 'element' => 'Creator_Role_OriginalArtist', 'type' => 'text', 'label' => 'Creator_Role_OriginalArtist', ), array( 'element' => 'Rights_Copyright', 'type' => 'text', 'label' => 'Rights_Copyright', ), ), 'Talk_Basic' => array( array( 'element' => 'dc:title', 'type' => 'text', 'label' => 'Title', ), array( 'element' => 'Coverage', 'type' => 'text', 'label' => 'Coverage', ), array( 'element' => 'dc:description', 'type' => 'textarea', 'label' => 'Description', ), array( 'element' => 'Creator', 'type' => 'text', 'label' => 'Creator', ), array( 'element' => 'Subject', 'type' => 'text', 'label' => 'Subject', ), array( 'element' => 'Type_Genre', 'type' => 'text', 'label' => 'Type_Genre', ), array( 'element' => 'dc:format', 'type' => 'select', 'label' => 'Format', 'options' => array( '' => '', 'audio/mpeg' => 'audio/mpeg', 'File' => 'File', 'live stream' => 'Live Stream', 'networked file'=> 'Networked File', ) ), ), 'Talk_Advanced' => array( array( 'element' => 'Contributor', 'type' => 'text', 'label' => 'Contributor', ), array( 'element' => 'Language', 'type' => 'text', 'label' => 'Language', ), array( 'element' => 'Rights', 'type' => 'text', 'label' => 'Rights', ), ) ) ), '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' => 'Submit', 'type' => 'submit', 'label' => 'Submit' ), array( 'element' => 'cancel', 'type' => 'button', 'label' => 'Cancel', 'attributes'=> array('onClick' => 'window.close()') ) ), 'uploadFileM' => array( array( 'element' => 'act', 'type' => 'hidden', 'constant' => 'uploadFileM' ), 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' ) ), 'uploadFile' => array( array( 'element' => 'act', 'type' => 'hidden', 'constant' => 'uploadFile' ), array( 'element' => 'id', 'type' => 'hidden' ), array( 'element' => 'mediafile', 'type' => 'file', 'label' => 'Mediafile', 'required' => TRUE, 'requiredmsg'=> 'please select Media file' ), array( 'element' => 'Submit', 'type' => 'submit', 'label' => 'Submit' ) ), 'addWebstream' => array( array( 'element' => 'act', 'type' => 'hidden', 'constant' => 'addWebstream' ), array( 'element' => 'id', 'type' => 'hidden' ), array( 'element' => 'name', 'type' => 'text', 'label' => 'Name', 'required' => TRUE, 'rule' => 'alphanumeric', 'rulemsg' => 'Name must be alphanumeric' ), array( 'element' => 'url', 'type' => 'text', 'default' => 'http://', 'label' => 'Stream URL', 'required' => TRUE, 'requiredmsg'=> 'URL is missing', 'rule' => 'regex', 'format' => UI_REGEX_URL, 'rulemsg' => 'URL seems invalid', ), array( 'element' => 'duration', 'type' => 'date', 'label' => 'Duration', 'options' => array( 'format' => 'His', ) ), array( 'element' => 'Submit', 'type' => 'submit', 'label' => 'Submit' ) ), 'searchform' => array( array( 'element' => 'act', 'type' => 'hidden', 'constant' => 'search' ), 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' => 'clear', 'type' => 'button', 'label' => 'Clear', 'attributes' => array('onClick' => "hpopup('".UI_HANDLER."?act=search', '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', 'cz' => 'Czech', 'de' => 'German', 'hu' => 'Hungarian', ) ) ) );