CC-1695 Remove Campcaster Studio and make install easier
Changing htmlUI dir structure to be better.
This commit is contained in:
parent
acda23db88
commit
c4b96da797
285 changed files with 0 additions and 0 deletions
93
htmlUI/formmask/exchange.inc.php
Normal file
93
htmlUI/formmask/exchange.inc.php
Normal file
|
@ -0,0 +1,93 @@
|
|||
<?php
|
||||
$mask = array(
|
||||
'BACKUP.schedule' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
'constant' => 'BACKUP.schedule'
|
||||
),
|
||||
array(
|
||||
'element' => 'mon',
|
||||
'type' => 'checkbox',
|
||||
'label' => 'Mon',
|
||||
'groupit' => true
|
||||
),
|
||||
array(
|
||||
'element' => 'tue',
|
||||
'type' => 'checkbox',
|
||||
'label' => 'Tue',
|
||||
'groupit' => true
|
||||
),
|
||||
array(
|
||||
'element' => 'wed',
|
||||
'type' => 'checkbox',
|
||||
'label' => 'Wed',
|
||||
'groupit' => true
|
||||
),
|
||||
array(
|
||||
'element' => 'thu',
|
||||
'type' => 'checkbox',
|
||||
'label' => 'Thu',
|
||||
'groupit' => true
|
||||
),
|
||||
array(
|
||||
'element' => 'fri',
|
||||
'type' => 'checkbox',
|
||||
'label' => 'Fri',
|
||||
'groupit' => true
|
||||
),
|
||||
array(
|
||||
'element' => 'sat',
|
||||
'type' => 'checkbox',
|
||||
'label' => 'Sat',
|
||||
'groupit' => true
|
||||
),
|
||||
array(
|
||||
'element' => 'sun',
|
||||
'type' => 'checkbox',
|
||||
'label' => 'Sun',
|
||||
'groupit' => true
|
||||
),
|
||||
array(
|
||||
'group' => array('mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun'),
|
||||
'label' => 'Weeksdays'
|
||||
),
|
||||
array(
|
||||
'element' => 'date',
|
||||
'type' => 'date',
|
||||
'label' => 'Month/Day',
|
||||
'options' => array(
|
||||
'format' => 'md',
|
||||
'addEmptyOption' => true,
|
||||
'emptyOptionValue' => '*',
|
||||
'emptyOptionText' => '*'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'element' => 'time',
|
||||
'type' => 'date',
|
||||
'label' => 'Hour/Minute',
|
||||
'options' => array(
|
||||
'format' => 'Hi',
|
||||
)
|
||||
),
|
||||
array(
|
||||
'element' =>'cancel',
|
||||
'type' =>'button',
|
||||
'label' =>'Cancel',
|
||||
'attributes'=>array('onclick' => 'location.href="'.UI_BROWSER.'?act=BACKUP"'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' =>'Submit',
|
||||
'type' =>'submit',
|
||||
'label' =>'Submit',
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('cancel', 'Submit'),
|
||||
'label' => ' '
|
||||
),
|
||||
)
|
||||
);
|
||||
?>
|
902
htmlUI/formmask/generic.inc.php
Normal file
902
htmlUI/formmask/generic.inc.php
Normal file
|
@ -0,0 +1,902 @@
|
|||
<?php
|
||||
//
|
||||
// This file contains a list of all the HTML forms in the system,
|
||||
// encoded as arrays.
|
||||
//
|
||||
$tmpAct = '';
|
||||
if (isset($_REQUEST['act'])) {
|
||||
// Get everything up to the first dot
|
||||
$tmpPos = strpos($_REQUEST["act"], '.');
|
||||
if ($tmpPos > 0) {
|
||||
$tmpAct = substr($_REQUEST["act"], 0, $tmpPos);
|
||||
} else {
|
||||
$tmpAct = $_REQUEST["act"];
|
||||
}
|
||||
}
|
||||
|
||||
$ui_fmask = array(
|
||||
/* ===================== list of system preferences which can be adjusted */
|
||||
'stationPrefs' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
'constant' => 'changeStationPrefs'
|
||||
),
|
||||
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/logo.png',
|
||||
'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,
|
||||
'attributes'=> array('maxlength' => 256)
|
||||
),
|
||||
array(
|
||||
'rule' => 'regex',
|
||||
'element' => 'stationURL',
|
||||
'format' => UI_REGEX_URL,
|
||||
'rulemsg' => 'URL seems not to be valid'
|
||||
),
|
||||
array(
|
||||
'element' => 'stationlogo',
|
||||
'type' => 'file',
|
||||
'label' => 'Station logo (maximum 128x128)',
|
||||
'requiredmsg'=> 'please select logo file'
|
||||
),
|
||||
array(
|
||||
'element' => 'schedulerStartupScript',
|
||||
'isPref' => TRUE,
|
||||
'type' => 'text',
|
||||
'label' => 'Scheduler startup script',
|
||||
'required' => false,
|
||||
),
|
||||
array(
|
||||
'element' => 'archiveServerLocation',
|
||||
'isPref' => TRUE,
|
||||
'type' => 'text',
|
||||
'label' => 'Archive server location URL',
|
||||
'default' => "http://" . $CC_CONFIG['archiveUrlHost'] . ":" . $CC_CONFIG['archiveUrlPort'] . $CC_CONFIG['archiveUrlPath']."/".$CC_CONFIG['archiveXMLRPC'],
|
||||
'required' => TRUE,
|
||||
),
|
||||
array(
|
||||
'rule' => 'regex',
|
||||
'element' => 'archiveServerLocation',
|
||||
'format' => UI_REGEX_URL,
|
||||
'rulemsg' => 'archive server location seems not to be valid'
|
||||
),
|
||||
array(
|
||||
'element' => UI_SCRATCHPAD_MAXLENGTH_KEY,
|
||||
'isPref' => TRUE,
|
||||
'type' => 'select',
|
||||
'label' => 'Maximum length of scratchpad',
|
||||
'options' => array(
|
||||
5 => 5,
|
||||
10 => 10,
|
||||
25 => 25,
|
||||
50 => 50
|
||||
),
|
||||
'default' => 10,
|
||||
'required' => TRUE
|
||||
),
|
||||
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'),
|
||||
'label' => ' '
|
||||
),
|
||||
),
|
||||
|
||||
'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' => 'Repeat password',
|
||||
'required' => TRUE,
|
||||
),
|
||||
array(
|
||||
'rule' => 'compare',
|
||||
'element' => array('pass','pass2'),
|
||||
'rulemsg' => 'The passwords do not match.'
|
||||
),
|
||||
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,
|
||||
'attributes' => array('size' => 20)
|
||||
),
|
||||
array(
|
||||
'element' => 'pass',
|
||||
'type' => 'password',
|
||||
'label' => 'Password',
|
||||
'required' => TRUE,
|
||||
'attributes' => array('size' => 20)
|
||||
),
|
||||
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',
|
||||
'attributes'=> array('maxlength' => 256),
|
||||
),
|
||||
array(
|
||||
'element' => 'length',
|
||||
'type' => 'date',
|
||||
'label' => 'Length<br><small>Enter zero for Live Stream</small>',
|
||||
'options' => array('format' => 'His'),
|
||||
),
|
||||
array(
|
||||
'element' => 'cancel',
|
||||
'type' => 'button',
|
||||
'label' => 'Cancel',
|
||||
'attributes'=> array('onClick' => "location.href='".UI_BROWSER."'"),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'test',
|
||||
'type' => 'button',
|
||||
'label' => 'Test',
|
||||
'groupit' => TRUE,
|
||||
'attributes'=> array('onclick' => "if (validate_addWebstream(document.forms['addWebstream'])) popup('".UI_BROWSER."?popup[]=testStream&url=' + document.forms['addWebstream'].elements['url'].value, 'testStream', 400, 250)")
|
||||
),
|
||||
array(
|
||||
'element' => 'Submit',
|
||||
'type' => 'submit',
|
||||
'label' => 'Submit',
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('cancel', 'test', 'Submit')
|
||||
)
|
||||
),
|
||||
|
||||
'search' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
'constant' => "$tmpAct.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(
|
||||
'and' => '##And##',
|
||||
'or' => '##Or##',
|
||||
)
|
||||
),
|
||||
array(
|
||||
'element' => 'filetype',
|
||||
'type' => 'select',
|
||||
'label' => 'File type',
|
||||
'options' => array(
|
||||
UI_FILETYPE_ANY => '*',
|
||||
UI_FILETYPE_AUDIOCLIP => '##Audioclip##',
|
||||
UI_FILETYPE_WEBSTREAM => '##Webstream##',
|
||||
UI_FILETYPE_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 Criteria',
|
||||
'attributes' => array('class' => 'button_wide', 'onClick' => "this.form.reset(); location='".UI_HANDLER."?act=SEARCH.clear'"),
|
||||
'groupit' => TRUE,
|
||||
),
|
||||
array(
|
||||
'element' => 'spacer',
|
||||
'type' => 'static',
|
||||
'text' => '
|
||||
|
||||
'
|
||||
),
|
||||
array(
|
||||
'element' => 'submit',
|
||||
'type' => 'submit',
|
||||
'label' => 'Submit',
|
||||
'groupit' => TRUE,
|
||||
'attributes' => array('class' => 'button_wide')
|
||||
),
|
||||
array('group' => array('clear', 'spacer', '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' => _getLanguages(),
|
||||
'default' => UI_DEFAULT_LANGID
|
||||
)
|
||||
),
|
||||
|
||||
'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="'.$tmpAct.'.setCategory"; this.form.submit()',
|
||||
'style' => 'width: 180px;',
|
||||
'id' => 'category_'
|
||||
)
|
||||
),
|
||||
'value' => array(
|
||||
'element' => 'value',
|
||||
'type' => 'select',
|
||||
'multiple' => TRUE,
|
||||
'attributes'=> array(
|
||||
'size' => 10,
|
||||
'class' => 'area_browse',
|
||||
'id' => 'category_value_',
|
||||
'onChange' => 'this.form.act.value="'.$tmpAct.'.setValue"; this.form.submit()'
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
'browse_global' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
),
|
||||
array(
|
||||
'element' => 'filetype',
|
||||
'type' => 'select',
|
||||
'label' => 'File type',
|
||||
'options' => array(
|
||||
UI_FILETYPE_ANY => '*',
|
||||
UI_FILETYPE_AUDIOCLIP => '##Audioclip##',
|
||||
UI_FILETYPE_WEBSTREAM => '##Webstream##',
|
||||
UI_FILETYPE_PLAYLIST => '##Playlist##'
|
||||
),
|
||||
'attributes'=> array('onChange' => 'location=\''.UI_HANDLER.'?act='.$tmpAct.'.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' => 'location=\''.UI_HANDLER.'?act='.$tmpAct.'.setLimit&limit=\'+ this.form.limit.value')
|
||||
),
|
||||
/* do we need reset?
|
||||
array(
|
||||
'element' => 'spacer',
|
||||
'type' => 'static',
|
||||
'constant' => '',
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'reset',
|
||||
'type' => 'button',
|
||||
'label' => 'Reset criteria',
|
||||
'attributes'=> array('class' => 'button_wide', 'onClick' => 'hpopup("'.UI_HANDLER.'?act='.$_REQUEST['act'].'.setDefaults")'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('spacer', 'reset')
|
||||
)
|
||||
*/
|
||||
),
|
||||
|
||||
'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('class' => 'button_small', 'onClick' => 'pl_switchDown()', 'onMousedown' => 'pl_start("Down")', 'onMouseUp' => "pl_stop()", 'onMouseOut' => "pl_stop()"),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'switchup',
|
||||
'type' => 'button',
|
||||
'label' => '+',
|
||||
'attributes'=> array('class' => 'button_small', 'onClick' => 'pl_switchUp()', 'onMousedown' => 'pl_start("Up")', 'onMouseUp' => "pl_stop()", 'onMouseOut' => "pl_stop()"),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('duration', 'switchdown', 'switchup'),
|
||||
'label' => 'Duration (ms)'
|
||||
),
|
||||
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')
|
||||
)
|
||||
)
|
||||
),
|
||||
'PL.setClipLength' => array(
|
||||
'act' => array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
),
|
||||
'id' => array(
|
||||
'element' => 'id',
|
||||
'type' => 'hidden'
|
||||
),
|
||||
'elemId' => array(
|
||||
'element' => 'elemId',
|
||||
'type' => 'hidden'
|
||||
),
|
||||
'duration' => array(
|
||||
'element' => 'duration',
|
||||
'type' => 'hidden'
|
||||
),
|
||||
'clipStart' => array(
|
||||
'element' => 'clipStart',
|
||||
'type' => 'select',
|
||||
'label' => 'Cue in: ',
|
||||
'options' => array(),
|
||||
'attributes' => 'onChange="return PL_setClipLength(this)"',
|
||||
'groupit' => true
|
||||
),
|
||||
'clipLength' => array(
|
||||
'element' => 'clipLength',
|
||||
'type' => 'select',
|
||||
'label' => 'Length: ',
|
||||
'options' => array(),
|
||||
'attributes' => 'onChange="return PL_setClipLength(this)"',
|
||||
'groupit' => true
|
||||
),
|
||||
'clipEnd' => array(
|
||||
'element' => 'clipEnd',
|
||||
'type' => 'select',
|
||||
'label' => 'Cue out: ',
|
||||
'options' => array(),
|
||||
'attributes' => 'onChange="return PL_setClipLength(this)"',
|
||||
'groupit' => true
|
||||
),
|
||||
array(
|
||||
'group' => array('clipStart', 'clipLength', 'clipEnd')
|
||||
),
|
||||
array(
|
||||
'elemnt' => 'linebreak',
|
||||
'type' => 'static',
|
||||
'text' => '<p></p>'
|
||||
),
|
||||
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' => 'submitter',
|
||||
'type' => 'submit',
|
||||
'label' => 'Submit',
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('cancel', 'reset', 'submitter')
|
||||
)
|
||||
),
|
||||
'schedule' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
'constant' => 'SCHEDULER.addItem'
|
||||
),
|
||||
array(
|
||||
'element' => 'playlist',
|
||||
'type' => 'hidden'
|
||||
),
|
||||
'date' => array(
|
||||
'element' => 'date',
|
||||
'type' => 'date',
|
||||
'label' => 'Date',
|
||||
'options' => array('format' => 'Ymd'),
|
||||
),
|
||||
'time' => array(
|
||||
'element' => 'time',
|
||||
'type' => 'date',
|
||||
'label' => 'Time',
|
||||
'options' => array('format' => 'His'),
|
||||
),
|
||||
'id_duration' => array(
|
||||
'element' => 'id_duration',
|
||||
'type' => 'select',
|
||||
'label' => 'Playlist',
|
||||
'required' => TRUE,
|
||||
),
|
||||
array(
|
||||
'element' => 'snap2Prev',
|
||||
'type' => 'button',
|
||||
'label' => 'Snap to previous',
|
||||
'attributes'=> array('onClick' => 'SCHEDULE_snap2Prev()'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'snap2Hour',
|
||||
'type' => 'button',
|
||||
'label' => 'Snap to hour',
|
||||
'attributes'=> array('onClick' => 'SCHEDULE_snap2Hour()'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'snap2Next',
|
||||
'type' => 'button',
|
||||
'label' => 'Snap to next',
|
||||
'attributes'=> array('onClick' => 'SCHEDULE_snap2Next()'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('snap2Prev', 'snap2Hour', 'snap2Next')
|
||||
),
|
||||
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' => 'submitter',
|
||||
'type' => 'button',
|
||||
'label' => 'Submit',
|
||||
'attributes'=> array('onClick' => 'SCHEDULE_submit()'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('cancel', 'reset', 'submitter')
|
||||
)
|
||||
),
|
||||
'PL.export' => array(
|
||||
'act' => array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
),
|
||||
'id' => array(
|
||||
'element' => 'id',
|
||||
'type' => 'hidden'
|
||||
),
|
||||
array(
|
||||
'element' => 'exporttype',
|
||||
'type' => 'select',
|
||||
'label' => 'Type',
|
||||
'options' => array('allComponents' => 'All components','playlistOnly' => 'Playlist only')
|
||||
),
|
||||
array(
|
||||
'element' => 'playlisttype',
|
||||
'type' => 'select',
|
||||
'label' => 'File Format',
|
||||
'options' => array(
|
||||
'smil' => 'SMIL',
|
||||
// 'xspf' => 'XSPF',
|
||||
'm3u' => 'M3U'
|
||||
)
|
||||
),
|
||||
array(
|
||||
'element' => 'cancel',
|
||||
'type' => 'button',
|
||||
'label' => 'Cancel',
|
||||
'attributes'=> array('onClick' => 'window.close()'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'submitter',
|
||||
'type' => 'button',
|
||||
'label' => 'OK',
|
||||
'attributes'=> array('onClick' => 'this.form.submit()'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('cancel', 'submitter')
|
||||
)
|
||||
),
|
||||
'PL.import' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
'label' => 'PL.import'
|
||||
),
|
||||
array(
|
||||
'element' => 'playlist',
|
||||
'type' => 'file',
|
||||
'label' => 'Playlist file',
|
||||
'required' => TRUE,
|
||||
'requiredmsg'=> 'Please select playlist file'
|
||||
),
|
||||
array(
|
||||
'element' => 'cancel',
|
||||
'type' => 'button',
|
||||
'label' => 'Cancel',
|
||||
'attributes'=> array('onClick' => "location.href='".UI_BROWSER."'"),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'submitter',
|
||||
'type' => 'submit',
|
||||
'label' => 'Submit',
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('cancel', 'submitter')
|
||||
)
|
||||
)
|
||||
);
|
||||
?>
|
63
htmlUI/formmask/mdata_relations.inc.php
Normal file
63
htmlUI/formmask/mdata_relations.inc.php
Normal file
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
$relations = array(
|
||||
'dc:title' => 'Title',
|
||||
'dc:creator' => 'Artist/Creator',
|
||||
'dc:type' => 'Genre',
|
||||
'dc:format' => 'File format',
|
||||
'dcterms:extent' => 'Length',
|
||||
'dc:title' => 'Title',
|
||||
'dc:creator' => 'Artist/Creator',
|
||||
'dc:source' => 'Album',
|
||||
'ls:year' => 'Year',
|
||||
'dc:type' => 'Genre',
|
||||
'dc:description' => 'Description',
|
||||
'dc:format' => 'Format',
|
||||
'ls:bpm' => 'BPM',
|
||||
'ls:rating' => 'Rating',
|
||||
'dcterms:extent' => 'Length',
|
||||
'ls:encoded_by' => 'Encoded by',
|
||||
'ls:track_num' => 'Track number',
|
||||
'ls:disc_num' => 'Disc number',
|
||||
'ls:mood' => 'Mood',
|
||||
'dc:publisher' => 'Label',
|
||||
'ls:composer' => 'Composer',
|
||||
'ls:bitrate' => 'Bitrate',
|
||||
'ls:channels' => 'Channels',
|
||||
'ls:samplerate' => 'Sample rate',
|
||||
'ls:encoder' => 'Encoder software used',
|
||||
'ls:crc' => 'Checksum',
|
||||
'ls:lyrics' => 'Lyrics',
|
||||
'ls:orchestra' => 'Orchestra or band',
|
||||
'ls:conductor' => 'Conductor',
|
||||
'ls:lyricist' => 'Lyricist',
|
||||
'ls:originallyricist' => 'Original lyricist',
|
||||
'ls:radiostationname' => 'Radio station name',
|
||||
'ls:audiofileinfourl' => 'Audio file information web page',
|
||||
'ls:artisturl' => 'Artist web page',
|
||||
'ls:audiosourceurl' => 'Audio source web page',
|
||||
'ls:radiostationurl' => 'Radio station web page',
|
||||
'ls:buycdurl' => '"Buy This Music" page',
|
||||
'ls:isrcnumber' => 'ISRC number',
|
||||
'ls:catalognumber' => 'Catalog number',
|
||||
'ls:originalartist' => 'Original artist',
|
||||
'dc:rights' => 'Copyright',
|
||||
'dc:title' => 'Title',
|
||||
'dcterms:temporal' => 'Report date/time',
|
||||
'dcterms:spatial' => 'Report location',
|
||||
'dcterms:entity' => 'Report organizations',
|
||||
'dc:description' => 'Description',
|
||||
'dc:creator' => 'Artist/Creator',
|
||||
'dc:subject' => 'Subject',
|
||||
'dc:type' => 'Genre',
|
||||
'dc:format' => 'Format',
|
||||
'dc:contributor' => 'Contributor',
|
||||
'dc:language' => 'Language',
|
||||
'dc:rights' => 'Copyright',
|
||||
'dc:title' => 'Title',
|
||||
'dc:creator' => 'Artist/Creator',
|
||||
'dcterms:extent' => 'Length',
|
||||
'dc:description' => 'Description',
|
||||
|
||||
'ls:url' => 'Stream URL'
|
||||
);
|
||||
?>
|
478
htmlUI/formmask/metadata.inc.php
Normal file
478
htmlUI/formmask/metadata.inc.php
Normal file
|
@ -0,0 +1,478 @@
|
|||
<?php /* =========================================================== Matadata-Mask */
|
||||
$mask = array(
|
||||
'basics' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
),
|
||||
array(
|
||||
'element' => 'id',
|
||||
'type' => 'hidden'
|
||||
),
|
||||
array(
|
||||
'element' => 'curr_langid',
|
||||
'type' => 'hidden'
|
||||
),
|
||||
array(
|
||||
'element' => 'target_langid',
|
||||
'type' => 'hidden'
|
||||
),
|
||||
),
|
||||
'buttons' => array (
|
||||
array(
|
||||
'element' =>'reset',
|
||||
'type' =>'reset',
|
||||
'label' =>'Reset',
|
||||
'groupit' => TRUE,
|
||||
'attributes' => array(
|
||||
'class'=> "button",
|
||||
),
|
||||
),
|
||||
array(
|
||||
'element' => 'cancel',
|
||||
'type' => 'button',
|
||||
'label' => 'Cancel',
|
||||
'attributes'=> array(
|
||||
'class'=> "button",
|
||||
'onClick' => "MData_cancel()"
|
||||
),
|
||||
'groupit' => TRUE,
|
||||
),
|
||||
array(
|
||||
'element' =>'button',
|
||||
'type' =>'button',
|
||||
'label' =>'Submit',
|
||||
'groupit' => TRUE,
|
||||
'attributes'=> array(
|
||||
'class'=> "button",
|
||||
//'onClick' => 'return switchMDataLang();'
|
||||
'onClick' => 'MData_submit()'
|
||||
),
|
||||
),
|
||||
array(
|
||||
'group' => array('reset', 'cancel', 'button'),
|
||||
)
|
||||
),
|
||||
'langswitch' => array(
|
||||
array(
|
||||
'element' => 'target_langid',
|
||||
'type' => 'select',
|
||||
'label' => 'Language',
|
||||
'options' => _getLanguages(),
|
||||
'attributes'=> array('onChange' => 'MData_switchLang()')
|
||||
)
|
||||
),
|
||||
'pages' => array(
|
||||
'Main' => array(
|
||||
array(
|
||||
'element' => 'dc:title',
|
||||
'type' => 'text',
|
||||
'label' => 'Title',
|
||||
'required' => TRUE,
|
||||
'id3' => array('Title')
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:creator',
|
||||
'type' => 'text',
|
||||
'label' => 'Artist/Creator',
|
||||
'required' => TRUE,
|
||||
'id3' => array('Artist')
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:type',
|
||||
'type' => 'text',
|
||||
'label' => 'Genre',
|
||||
'required' => FALSE,
|
||||
'id3' => array('Genre')
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:format',
|
||||
'type' => 'select',
|
||||
'label' => 'File format',
|
||||
'required' => TRUE,
|
||||
'options' => array(
|
||||
'File' => 'Audioclip',
|
||||
'live stream' => 'Webstream'
|
||||
),
|
||||
'attributes'=> array('disabled' => 'on'),
|
||||
'id3' => FALSE
|
||||
),
|
||||
array(
|
||||
'element' => 'dcterms:extent',
|
||||
'type' => 'text',
|
||||
'label' => 'Length',
|
||||
'attributes'=> array('disabled' => 'on'),
|
||||
'id3' => FALSE
|
||||
),
|
||||
),
|
||||
'Music' => array(
|
||||
array(
|
||||
'element' => 'dc:title',
|
||||
'type' => 'text',
|
||||
'label' => 'Title',
|
||||
#'id3' => 'Title'
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:creator',
|
||||
'type' => 'text',
|
||||
'label' => 'Artist/Creator',
|
||||
#'id3' => 'Artist'
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:source',
|
||||
'type' => 'text',
|
||||
'label' => 'Album',
|
||||
'id3' => array('Album')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:year',
|
||||
'type' => 'select',
|
||||
'label' => 'Year',
|
||||
'options' => _getNumArr(1900, date('Y')+5),
|
||||
'id3' => array('Year')
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:type',
|
||||
'type' => 'text',
|
||||
'label' => 'Genre',
|
||||
#'id3' => 'Genre'
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:description',
|
||||
'type' => 'textarea',
|
||||
'label' => 'Description',
|
||||
'id3' => array('Comment', 'Comments')
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:format',
|
||||
'type' => 'select',
|
||||
'label' => 'Format',
|
||||
'options' => array(
|
||||
'File' => 'Audioclip',
|
||||
'live stream' => 'Webtream'
|
||||
),
|
||||
'attributes'=> array('disabled' => 'on'),
|
||||
'id3' => FALSE
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:bpm',
|
||||
'type' => 'text',
|
||||
'label' => 'BPM',
|
||||
'rule' => 'numeric',
|
||||
'id3' => array('BPM')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:rating',
|
||||
'type' => 'text',
|
||||
'label' => 'Rating',
|
||||
'rule' => 'numeric',
|
||||
'id3' => array('Rating')
|
||||
),
|
||||
array(
|
||||
'element' => 'dcterms:extent',
|
||||
'type' => 'text',
|
||||
'label' => 'Length',
|
||||
'attributes'=> array('disabled' => 'on'),
|
||||
'id3' => FALSE
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:encoded_by',
|
||||
'type' => 'text',
|
||||
'label' => 'Encoded by',
|
||||
'id3' => array('Encoded by')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:track_num',
|
||||
'type' => 'select',
|
||||
'label' => 'Track number',
|
||||
'options' => _getNumArr(0, 99),
|
||||
'id3' => array('Track')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:disc_num',
|
||||
'type' => 'select',
|
||||
'label' => 'Disc number',
|
||||
'options' => _getNumArr(0, 20),
|
||||
'id3' => array('Disk')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:mood',
|
||||
'type' => 'text',
|
||||
'label' => 'Mood',
|
||||
'id3' => array('Mood')
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:publisher',
|
||||
'type' => 'text',
|
||||
'label' => 'Label',
|
||||
'id3' => array('Label')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:composer',
|
||||
'type' => 'text',
|
||||
'label' => 'Composer',
|
||||
'id3' => array('Composer')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:bitrate',
|
||||
'type' => 'text',
|
||||
'label' => 'Bitrate',
|
||||
'rule' => 'numeric',
|
||||
'id3' => array('Bitrate')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:channels',
|
||||
'type' => 'select',
|
||||
'label' => 'Channels',
|
||||
'options' => array(
|
||||
'' => '',
|
||||
1 => 'Mono',
|
||||
2 => 'Stereo',
|
||||
6 => '5.1'
|
||||
),
|
||||
'id3' => array('Channels')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:samplerate',
|
||||
'type' => 'text',
|
||||
'label' => 'Sample rate',
|
||||
'rule' => 'numeric',
|
||||
'attributes'=> array('disabled' => 'on'),
|
||||
'id3' => array('Samplerate')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:encoder',
|
||||
'type' => 'text',
|
||||
'label' => 'Encoder software used',
|
||||
'id3' => array('Encoder')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:crc',
|
||||
'type' => 'text',
|
||||
'label' => 'Checksum',
|
||||
'rule' => 'numeric',
|
||||
'id3' => array('CRC')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:lyrics',
|
||||
'type' => 'textarea',
|
||||
'label' => 'Lyrics',
|
||||
'id3' => array('Lyrics')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:orchestra',
|
||||
'type' => 'text',
|
||||
'label' => 'Orchestra or band',
|
||||
'id3' => array('Orchestra or band')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:conductor',
|
||||
'type' => 'text',
|
||||
'label' => 'Conductor',
|
||||
'id3' => array('Conductor')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:lyricist',
|
||||
'type' => 'text',
|
||||
'label' => 'Lyricist',
|
||||
'id3' => array('Lyricist')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:originallyricist',
|
||||
'type' => 'text',
|
||||
'label' => 'Original lyricist',
|
||||
'id3' => array('Original lyricist')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:radiostationname',
|
||||
'type' => 'text',
|
||||
'label' => 'Radio station name',
|
||||
'id3' => array('Radio station name')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:audiofileinfourl',
|
||||
'type' => 'text',
|
||||
'label' => 'Audio file information web page',
|
||||
'id3' => array('Audio file information web page'),
|
||||
'attributes'=> array('maxlength' => 256)
|
||||
),
|
||||
array(
|
||||
'rule' => 'regex',
|
||||
'element' => 'ls:audiofileinfourl',
|
||||
'format' => UI_REGEX_URL,
|
||||
'rulemsg' => 'Audio file information web page seems not to be valid URL'
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:artisturl',
|
||||
'type' => 'text',
|
||||
'label' => 'Artist web page',
|
||||
'id3' => array('Artist web page'),
|
||||
'attributes'=> array('maxlength' => 256)
|
||||
),
|
||||
array(
|
||||
'rule' => 'regex',
|
||||
'element' => 'ls:artisturl',
|
||||
'format' => UI_REGEX_URL,
|
||||
'rulemsg' => 'Artist web page seems not to be valid URL'
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:audiosourceurl',
|
||||
'type' => 'text',
|
||||
'label' => 'Audio source web page',
|
||||
'id3' => array('Audio source web page'),
|
||||
'attributes'=> array('maxlength' => 256)
|
||||
),
|
||||
array(
|
||||
'rule' => 'regex',
|
||||
'element' => 'ls:audiosourceurl',
|
||||
'format' => UI_REGEX_URL,
|
||||
'rulemsg' => 'Audio source web page seems not to be valid URL'
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:radiostationurl',
|
||||
'type' => 'text',
|
||||
'label' => 'Radio station web page',
|
||||
'id3' => array('Radio station web page'),
|
||||
'attributes'=> array('maxlength' => 256)
|
||||
),
|
||||
array(
|
||||
'rule' => 'regex',
|
||||
'element' => 'ls:radiostationurl',
|
||||
'format' => UI_REGEX_URL,
|
||||
'rulemsg' => 'Radio station web page seems not to be valid URL'
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:buycdurl',
|
||||
'type' => 'text',
|
||||
'label' => 'Buy CD web page',
|
||||
'id3' => array('Buy CD webpage'),
|
||||
'attributes'=> array('maxlength' => 256)
|
||||
),
|
||||
array(
|
||||
'rule' => 'regex',
|
||||
'element' => 'ls:buycdurl',
|
||||
'format' => UI_REGEX_URL,
|
||||
'rulemsg' => 'Buy CD web page seems not to be valid URL'
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:isrcnumber',
|
||||
'type' => 'text',
|
||||
'label' => 'ISRC number',
|
||||
'rule' => 'numeric',
|
||||
'id3' => array('ISRC')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:catalognumber',
|
||||
'type' => 'text',
|
||||
'label' => 'Catalog number',
|
||||
'rule' => 'numeric',
|
||||
'id3' => array('Catalog')
|
||||
),
|
||||
array(
|
||||
'element' => 'ls:originalartist',
|
||||
'type' => 'text',
|
||||
'label' => 'Original artist',
|
||||
'id3' => array('Original Artist')
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:rights', ## ???
|
||||
'type' => 'text',
|
||||
'label' => 'Copyright',
|
||||
'id3' => array('Copyright')
|
||||
),
|
||||
),
|
||||
'Voice' => array(
|
||||
array(
|
||||
'element' => 'dc:title',
|
||||
'type' => 'text',
|
||||
'label' => 'Title',
|
||||
),
|
||||
array(
|
||||
'element' => 'dcterms:temporal', ## time/date!!
|
||||
'type' => 'text',
|
||||
'label' => 'Report date/time',
|
||||
),
|
||||
array(
|
||||
'element' => 'dcterms:spatial', ## menu
|
||||
'type' => 'textarea',
|
||||
'label' => 'Report location',
|
||||
),
|
||||
array(
|
||||
'element' => 'dcterms:entity',
|
||||
'type' => 'textarea',
|
||||
'label' => 'Report organizations',
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:description',
|
||||
'type' => 'textarea',
|
||||
'label' => 'Description',
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:creator', ## menu??
|
||||
'type' => 'text',
|
||||
'label' => 'Artist/Creator',
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:subject',
|
||||
'type' => 'text',
|
||||
'label' => 'Subject',
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:type', ## menu
|
||||
'type' => 'text',
|
||||
'label' => 'Genre',
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:format',
|
||||
'type' => 'select',
|
||||
'label' => 'Format',
|
||||
'options' => array(
|
||||
'File' => 'Audioclip',
|
||||
'live stream' => 'Webstream'
|
||||
),
|
||||
'attributes'=> array('disabled' => 'on')
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:contributor',
|
||||
'type' => 'text',
|
||||
'label' => 'Contributor',
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:language', ##menu
|
||||
'type' => 'text',
|
||||
'label' => 'Language',
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:rights',
|
||||
'type' => 'text',
|
||||
'label' => 'Copyright',
|
||||
),
|
||||
)
|
||||
),
|
||||
'playlist' => array(
|
||||
array(
|
||||
'element' => 'dc:title',
|
||||
'type' => 'text',
|
||||
'label' => 'Title',
|
||||
'required' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:creator',
|
||||
'type' => 'text',
|
||||
'label' => 'Creator',
|
||||
'required' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'dcterms:extent',
|
||||
'type' => 'text',
|
||||
'label' => 'Length',
|
||||
'attributes'=> array('disabled' => 'on')
|
||||
),
|
||||
array(
|
||||
'element' => 'dc:description',
|
||||
'type' => 'textarea',
|
||||
'label' => 'Description'
|
||||
),
|
||||
)
|
||||
);
|
||||
?>
|
120
htmlUI/formmask/subjects.inc.php
Normal file
120
htmlUI/formmask/subjects.inc.php
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?php
|
||||
$mask = array(
|
||||
'addUser' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
'constant' => 'SUBJECTS.addSubj'
|
||||
),
|
||||
array(
|
||||
'element' => 'login',
|
||||
'type' => 'text',
|
||||
'label' => 'Login',
|
||||
'required' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'passwd',
|
||||
'type' => 'password',
|
||||
'label' => 'Password',
|
||||
'required' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'passwd2',
|
||||
'type' => 'password',
|
||||
'label' => 'Repeat password',
|
||||
'required' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'cancel',
|
||||
'type' => 'button',
|
||||
'label' => 'Cancel',
|
||||
'attributes'=> array('onClick' => 'location.href="'.UI_BROWSER.'?act=SUBJECTS"'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'Submit',
|
||||
'type' => 'submit',
|
||||
'label' => 'Submit',
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('cancel', 'Submit')
|
||||
)
|
||||
),
|
||||
|
||||
'addGroup' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
'constant' => 'SUBJECTS.addSubj'
|
||||
),
|
||||
array(
|
||||
'element' => 'login',
|
||||
'type' => 'text',
|
||||
'label' => 'Groupname',
|
||||
'required' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'cancel',
|
||||
'type' => 'button',
|
||||
'label' => 'Cancel',
|
||||
'attributes'=> array('onClick' => 'location.href="'.UI_BROWSER.'?act=SUBJECTS"'),
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'Submit',
|
||||
'type' => 'submit',
|
||||
'label' => 'Submit',
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('cancel', 'Submit')
|
||||
)
|
||||
),
|
||||
|
||||
'chgPasswd' => array(
|
||||
array(
|
||||
'element' => 'act',
|
||||
'type' => 'hidden',
|
||||
'constant' => 'SUBJECTS.chgPasswd'
|
||||
),
|
||||
array(
|
||||
'element' => 'login',
|
||||
'type' => 'hidden'
|
||||
),
|
||||
'oldpasswd' => array(
|
||||
'element' => 'oldpasswd',
|
||||
'type' => 'password',
|
||||
'label' => 'Old password',
|
||||
'required' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'passwd',
|
||||
'type' => 'password',
|
||||
'label' => 'Password',
|
||||
'required' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'passwd2',
|
||||
'type' => 'password',
|
||||
'label' => 'Repeat password',
|
||||
'required' => TRUE
|
||||
),
|
||||
'cancel' => array(
|
||||
'element' => 'cancel',
|
||||
'type' => 'button',
|
||||
'label' => 'Cancel',
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'element' => 'Submit',
|
||||
'type' => 'submit',
|
||||
'label' => 'Submit',
|
||||
'groupit' => TRUE
|
||||
),
|
||||
array(
|
||||
'group' => array('cancel', 'Submit')
|
||||
)
|
||||
),
|
||||
);
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue