From 3e6af4880e82182c87db3b5779e0aeb47ed951de Mon Sep 17 00:00:00 2001 From: sebastian Date: Wed, 23 Mar 2005 13:01:12 +0000 Subject: [PATCH] *** empty log message *** --- .../htmlUI/var/formmask/metadata.inc.php | 44 +++++-------------- .../modules/htmlUI/var/html/ui_browser.php | 8 ++-- .../modules/htmlUI/var/html/ui_handler.php | 2 +- .../var/templates/file/metadataform.tpl | 27 ++++++++++-- .../var/templates/playlist/metadata.tpl | 23 +++++++--- .../modules/htmlUI/var/ui_base.inc.php | 10 ++--- .../modules/htmlUI/var/ui_browser.class.php | 34 +++++--------- livesupport/modules/htmlUI/var/ui_conf.php | 2 + .../modules/htmlUI/var/ui_handler.class.php | 25 ++++++----- .../modules/htmlUI/var/ui_playlist.class.php | 43 +++++++----------- 10 files changed, 106 insertions(+), 112 deletions(-) diff --git a/livesupport/modules/htmlUI/var/formmask/metadata.inc.php b/livesupport/modules/htmlUI/var/formmask/metadata.inc.php index 10db29456..225e01475 100755 --- a/livesupport/modules/htmlUI/var/formmask/metadata.inc.php +++ b/livesupport/modules/htmlUI/var/formmask/metadata.inc.php @@ -10,7 +10,11 @@ $mask = array( 'type' => 'hidden' ), array( - 'element' => 'langid', + 'element' => 'curr_langid', + 'type' => 'hidden' + ), + array( + 'element' => 'target_langid', 'type' => 'hidden' ), ), @@ -30,7 +34,7 @@ $mask = array( 'label' => 'Cancel', 'attributes'=> array( 'class'=> "button", - 'onClick' => "location.href='".UI_BROWSER."'" + 'onClick' => "MData_cancel()" ), 'groupit' => TRUE, ), @@ -41,43 +45,17 @@ $mask = array( 'groupit' => TRUE, 'attributes'=> array( 'class'=> "button", - 'onClick' => 'return switchMDataLang();' + //'onClick' => 'return switchMDataLang();' + 'onClick' => 'MData_submit()' ), ), array( 'group' => array('reset', 'cancel', 'button'), ) ), - 'tabs' => array(/* - array( - 'element' => 'Main', - 'type' => 'button', - 'label' => 'Main', - 'groupit' => TRUE, - 'attributes' => array('onClick' => 'showMain()') - ), - array( - 'element' => 'Music', - 'type' => 'button', - 'label' => 'Music', - 'groupit' => TRUE, - 'attributes' => array('onClick' => 'showMusic()') - ), - array( - 'element' => 'Talk', - 'type' => 'button', - 'label' => 'Talk', - 'groupit' => TRUE, - 'attributes' => array('onClick' => 'showTalk()') - ), - array( - 'group' => array('Main', 'Music', 'Talk'), - ) -*/ - ), 'langswitch' => array( array( - 'element' => 'langid', + 'element' => 'target_langid', 'type' => 'select', 'label' => 'Language', 'options' => array( @@ -86,7 +64,7 @@ $mask = array( 'de' => 'German', 'hu' => 'Hungarian', ), - 'attributes'=> array('onChange' => 'return switchMDataLang()') + 'attributes'=> array('onChange' => 'MData_switchLang()') ) ), 'pages' => array( @@ -517,4 +495,4 @@ $mask = array( ), ) ); -?> \ No newline at end of file +?> diff --git a/livesupport/modules/htmlUI/var/html/ui_browser.php b/livesupport/modules/htmlUI/var/html/ui_browser.php index fb24114f8..2587c6350 100644 --- a/livesupport/modules/htmlUI/var/html/ui_browser.php +++ b/livesupport/modules/htmlUI/var/html/ui_browser.php @@ -99,17 +99,17 @@ if ($uiBrowser->userid) { case "editItem": $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); - $Smarty->assign('editItem', array('type' => $uiBrowser->type, 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid)); + $Smarty->assign('editItem', array('type' => $uiBrowser->type, 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid, 'curr_langid' => $_REQUEST['curr_langid'])); break; case "editFile": $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); - $Smarty->assign('editItem', array('type' => 'file', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid)); + $Smarty->assign('editItem', array('type' => 'file', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid, 'curr_langid' => $_REQUEST['curr_langid'])); break; case "editWebstream": $Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id)); - $Smarty->assign('editItem', array('type' => 'webstream', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid)); + $Smarty->assign('editItem', array('type' => 'webstream', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid, 'curr_langid' => $_REQUEST['curr_langid'])); break; case "SEARCH": @@ -171,7 +171,7 @@ if ($uiBrowser->userid) { case "PL.editMetaData": $Smarty->assign('PL_editMetaData', TRUE); - $Smarty->assign('PL_id', $_REQUEST['id']); + $Smarty->assign('_PL', array('curr_langid' => $_REQUEST['curr_langid'])); $Smarty->assign('PL_simpleManagement', TRUE); break; diff --git a/livesupport/modules/htmlUI/var/html/ui_handler.php b/livesupport/modules/htmlUI/var/html/ui_handler.php index 0f62a65fc..b57a3a67f 100644 --- a/livesupport/modules/htmlUI/var/html/ui_handler.php +++ b/livesupport/modules/htmlUI/var/html/ui_handler.php @@ -109,7 +109,7 @@ switch($_REQUEST['act']){ break; case "editMetaData": - $uiHandler->editMetaData($uiHandler->id, $_REQUEST); + $uiHandler->editMetaData($_REQUEST); $uiHandler->SCRATCHPAD->reLoadM(); break; diff --git a/livesupport/modules/htmlUI/var/templates/file/metadataform.tpl b/livesupport/modules/htmlUI/var/templates/file/metadataform.tpl index e9dffbd5a..412c99bd0 100755 --- a/livesupport/modules/htmlUI/var/templates/file/metadataform.tpl +++ b/livesupport/modules/htmlUI/var/templates/file/metadataform.tpl @@ -1,4 +1,4 @@ -{UIBROWSER->metaDataForm id=$editItem.id assign="_metadataform"} +{UIBROWSER->metaDataForm id=$editItem.id langid=$editItem.curr_langid assign="_metadataform"}