sintonia/livesupport/modules/htmlUI/var/html/templates/editMetaData.tpl

121 lines
5.8 KiB
Smarty
Raw Normal View History

2005-02-03 17:55:35 +01:00
{literal}
<style type="text/css">
.dynformelement {
width : 270px;
2005-02-08 12:22:08 +01:00
text-align : right;
2005-02-03 17:55:35 +01:00
}
</style>
{/literal}
2005-02-16 23:47:55 +01:00
<div id="metadataform">
2005-02-21 15:42:15 +01:00
{include file="sub/x.tpl"}
2005-02-03 17:55:35 +01:00
<center>
2005-02-16 23:47:55 +01:00
{$editMetaData.tabs}
{$editMetaData.langswitch}
{foreach from=$editMetaData.pages key=key item=dynform}
2005-02-21 15:42:15 +01:00
{include file="sub/dynForm_plain.tpl"}
2005-02-03 17:55:35 +01:00
{/foreach}
</center>
</div>
<script language="javascript">
{literal}
function switchMDataLang()
{
2005-02-16 23:47:55 +01:00
if (validate_editMetaData(document.forms['editMetaData'])) {
document.forms['editMetaData'].elements['langid'].value = document.forms['langswitch'].elements['langid'].value;
document.forms['editMetaData'].submit();
2005-02-03 17:55:35 +01:00
}
2005-02-16 23:47:55 +01:00
document.forms['langswitch'].elements['langid'].value = document.forms['editMetaData'].elements['langid'].value
2005-02-03 17:55:35 +01:00
showMain();
return false;
}
function spread(element, name)
2005-02-21 15:42:15 +01:00
{
2005-02-17 20:23:48 +01:00
if (document.forms['editMetaData'].elements['Main___' + name]) document.forms['editMetaData'].elements['Main___' + name].value = element.value;
if (document.forms['editMetaData'].elements['Music_Basic___' + name]) document.forms['editMetaData'].elements['Music_Basic___' + name].value = element.value;
if (document.forms['editMetaData'].elements['Music_Advanced___' + name]) document.forms['editMetaData'].elements['Music_Advanced___' + name].value = element.value;
if (document.forms['editMetaData'].elements['Talk_Basic___' + name]) document.forms['editMetaData'].elements['Talk_Basic___' + name].value = element.value;
if (document.forms['editMetaData'].elements['Talk_Advanced___' + name]) document.forms['editMetaData'].elements['Talk_Advanced___' + name].value = element.value;
2005-02-03 17:55:35 +01:00
}
function showMain()
{
2005-02-16 23:47:55 +01:00
document.getElementById('metadataform').style.height=400;
2005-02-03 17:55:35 +01:00
document.getElementById('masterpanel').style.height=600;
document.getElementById('div_Main').style.visibility='';
document.getElementById('div_Main').style.height='';
document.getElementById('div_Music_Basic').style.visibility='hidden';
document.getElementById('div_Music_Basic').style.height='0';
document.getElementById('div_Music_Advanced').style.visibility='hidden';
document.getElementById('div_Music_Advanced').style.height='0';
document.getElementById('div_Talk_Basic').style.visibility='hidden';
document.getElementById('div_Talk_Basic').style.height='0';
document.getElementById('div_Talk_Advanced').style.visibility='hidden';
document.getElementById('div_Talk_Advanced').style.height='0';
}
function showMusic_Basic()
{
2005-02-16 23:47:55 +01:00
document.getElementById('metadataform').style.height=600;
2005-02-03 17:55:35 +01:00
document.getElementById('masterpanel').style.height=800;
document.getElementById('div_Main').style.visibility='hidden';
document.getElementById('div_Main').style.height='0';
document.getElementById('div_Music_Basic').style.visibility='';
document.getElementById('div_Music_Basic').style.height='';
document.getElementById('div_Music_Advanced').style.visibility='hidden';
document.getElementById('div_Music_Advanced').style.height='0';
document.getElementById('div_Talk_Basic').style.visibility='hidden';
document.getElementById('div_Talk_Basic').style.height='0';
document.getElementById('div_Talk_Advanced').style.visibility='hidden';
document.getElementById('div_Talk_Advanced').style.height='0';
}
function showMusic_Advanced()
{
2005-02-16 23:47:55 +01:00
document.getElementById('metadataform').style.height=1300;
2005-02-03 17:55:35 +01:00
document.getElementById('masterpanel').style.height=1500;
document.getElementById('div_Main').style.visibility='hidden';
document.getElementById('div_Main').style.height='0';
document.getElementById('div_Music_Basic').style.visibility='hidden';
document.getElementById('div_Music_Basic').style.height='0';
document.getElementById('div_Music_Advanced').style.visibility='';
document.getElementById('div_Music_Advanced').style.height='';
document.getElementById('div_Talk_Basic').style.visibility='hidden';
document.getElementById('div_Talk_Basic').style.height='0';
document.getElementById('div_Talk_Advanced').style.visibility='hidden';
document.getElementById('div_Talk_Advanced').style.height='0';
}
function showTalk_Basic()
{
2005-02-16 23:47:55 +01:00
document.getElementById('metadataform').style.height=400;
2005-02-03 17:55:35 +01:00
document.getElementById('masterpanel').style.height=600;
document.getElementById('div_Main').style.visibility='hidden';
document.getElementById('div_Main').style.height='0';
document.getElementById('div_Music_Basic').style.visibility='hidden';
document.getElementById('div_Music_Basic').style.height='0';
document.getElementById('div_Music_Advanced').style.visibility='hidden';
document.getElementById('div_Music_Advanced').style.height='0';
document.getElementById('div_Talk_Basic').style.visibility='';
document.getElementById('div_Talk_Basic').style.height='';
document.getElementById('div_Talk_Advanced').style.visibility='hidden';
document.getElementById('div_Talk_Advanced').style.height='0';
}
function showTalk_Advanced()
{
2005-02-16 23:47:55 +01:00
document.getElementById('metadataform').style.height=400;
2005-02-03 17:55:35 +01:00
document.getElementById('masterpanel').style.height=600;
document.getElementById('div_Main').style.visibility='hidden';
document.getElementById('div_Main').style.height='0';
document.getElementById('div_Music_Basic').style.visibility='hidden';
document.getElementById('div_Music_Basic').style.height='0';
document.getElementById('div_Music_Advanced').style.visibility='hidden';
document.getElementById('div_Music_Advanced').style.height='0';
document.getElementById('div_Talk_Basic').style.visibility='hidden';
document.getElementById('div_Talk_Basic').style.height='0';
document.getElementById('div_Talk_Advanced').style.visibility='';
document.getElementById('div_Talk_Advanced').style.height='';
}
showMain();
{/literal}
</script>