📄 explorer_files_new_link
字号:
<?xml version="1.0"?>
<WORKPLACE>
<TEMPLATE>
<![CDATA[
<HTML>
<script language=JavaScript>
<!--
top.help_url='FunkButtonNeu/AnlegenNeuerVerknuepfung.html';
//-->
</script>
<head>
<script language=JavaScript>
<!--
function checkForm(whichone){
var okay=true;
var lengthOkay=true;
var inp=document.getElementById("name"+whichone).value;
for(var i=0;i<inp.length;i++){
if(inp.charAt(i)=='%' || inp.charAt(i)=='#' || inp.charAt(i)=='&'){
okay=false;
badchar=inp.charAt(i);
}
}
if(whichone==1){
var inp=document.getElementById("navtext").value;
for(var i=0;i<inp.length;i++){
if(inp.charAt(i)=='%' || inp.charAt(i)=='#' || inp.charAt(i)=='&'){
okay=false;
badchar=inp.charAt(i);
}
}
}
if(okay==false)alert("]]><LABEL value="error.message.badcharacter" /><![CDATA["+badchar);
if(document.getElementById("name"+whichone).value.length<1)lengthOkay=false;
if(document.getElementById("neulink"+whichone).value.length<1)lengthOkay=false;
if(whichone==1){
if(document.getElementById("navtext").value.length<1)lengthOkay=false;
}
if(!lengthOkay)alert("]]><LABEL value="error.message.datamissing" /><![CDATA[");
if(okay && lengthOkay){
if(whichone==2){
var re='explorer_files_new_link.html?step=1&file='+
escape(document.getElementById("name"+whichone).value)+
'&link='+escape(document.getElementById("neulink"+whichone).value);
//alert(re);
document.location.href=re;
}
if(whichone==1){
var re='explorer_files_new_link.html?step=1&file='+
escape(document.getElementById("name"+whichone).value)+
'&link='+escape(document.getElementById("neulink"+whichone).value)+
'&navtitle='+escape(document.getElementById("navtext").value)+
'&navpos='+ document.getElementById("linkPos").value;
//alert(re);
document.location.href=re;
}
}
}
function switchLayerData(from,to){
var temp1=document.getElementById("name"+from).value;
var temp2=document.getElementById("neulink"+from).value;
document.getElementById("name"+to).value=temp1;
document.getElementById("neulink"+to).value=temp2;
if(temp1.length > 0){
document.getElementById("WEITER").disabled=false;
}
}
function switchlyr(show, hide){
hidelyr(hide);
showlyr(show);
}
function showlyr(welche){
document.getElementById(welche).style.visibility = "visible";
}
function hidelyr(welche){
document.getElementById(welche).style.visibility = "hidden";
}
function switchLayer2(t){
switchLayerData(2,1);
switchlyr('isInNav','notInNav');
t.checked=false;
}
function switchLayer1(t){
switchLayerData(1,2);
switchlyr('notInNav','isInNav');
t.checked=true;
}
//-->
</script>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>OpenCms</title>
<link rel=stylesheet type="text/css" href="../css/format.css">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="../templates/js/opencms.js"></SCRIPT>
</HEAD>
<body bgcolor="#ffffff" background="]]><METHOD name="picsUrl">bg_weiss.gif</METHOD><![CDATA[" bgproperties=fixed marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 onUnload="if(treewin!=null)treewin.close();">
<table width=100% height=100% border=0 cellspacing=0 cellpadding=0>
<tr><td align=center valign=middle>
<!-- 2 -->
<div id="notInNav" style="visibility:hidden; FONT-FAMILY: MS Sans Serif, Arial, helvetica, sans-serif; FONT-SIZE: 8pt; position: absolute; LEFT: 0px; TOP: 0px; width:100%; height:100%; ">
<br>
<br>
<br>
<form name="NEU2">
<table border=2 cellspacing=0 cellpadding=0 width=500px>
<tr><td>
<table cellspacing=0 cellpadding=5 border=0 width=100% height=100%>
<tr><td colspan=3 class=head>]]><LABEL value="title.newlink" /><![CDATA[</td></tr>
<tr><td colspan=3 class=leerzeile> </td></tr>
<tr>
<td class=formular width=35%>]]><LABEL value="input.name" /><![CDATA[:</td>
<td colspan=2 class=dialogtxt> ]]><INPUTFIELD name="name2" class="textfeld3" size="31" length="40" method="setValue" action="onfocus='NEU2.WEITER.disabled=false;'"/><![CDATA[</td>
</tr>
<tr>
<td class=formular>]]><LABEL value="input.linkto" /><![CDATA[:</td>
<td class=dialogtxt>
<input type="text" name="neulink2" class="textfeld3" size="31" />
</td>
<td class=formular><a href="javascript:treewin=opensmallwin('folder_tree.html?foldertree=/&formname=NEU2&variable=neulink2&onlineselect=yes&viewfile=yes', 'explorer_viewer', 150, 300),treewin.focus();"><img src="]]><METHOD name="picsUrl">ic_file_folder.gif</METHOD><![CDATA[" border="0" alt="]]><LABEL value="label.selectfolder" /><![CDATA["></a></td>
</tr>
<tr>
<td colspan=3 class=dialogtxt>
<input type="checkbox" onClick="javascript:switchLayer2(this);" > ]]><LABEL value="input.addtonav" /><![CDATA[
</td>
</tr>
<tr>
<td class=formular>
<br>
</td>
<td colspan=2 class=dialogtxt>
<br>
</td>
</tr>
<tr>
<td class=formular>
<br>
</td>
<td colspan=2 class=dialogtxt>
<br>
</td>
</tr>
<tr>
<td colspan=3 class=leerzeile> </td>
</tr>
<tr>
<td colspan=3 class=formular>
<table cellspacing=0 cellpadding=5 width=100%>
<tr>
<td class=formular align=right width=60%><INPUT class=button width=100 type="button" value="]]><LABEL value="button.previousscreen" /><![CDATA[" id=ZURUECK name=ZURUECK onClick="location='explorer_files_new.html';"></td>
<td class=formular align=middle width=20%><INPUT disabled class=button width=100 type="button" value="]]><LABEL value="button.endwizard" /><![CDATA[" id=WEITER name=WEITER onClick="checkForm(2);"></td>
<td class=formular align=middle width=20%><INPUT class=button width=100 type="button" value="]]><LABEL value="button.cancel" /><![CDATA[" id=CANCEL_FOLDER name=CANCEL_FOLDER onClick="location='explorer_files.html';"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
<!-- *********************************************************************************************************** -->
<!-- 1 -->
<div id="isInNav" style="visibility:visible; FONT-FAMILY: MS Sans Serif, Arial, helvetica, sans-serif; FONT-SIZE: 8pt; position: absolute; LEFT: 0px; TOP: 0px; width:100%; height:100%; ">
<br>
<br>
<br>
<form name="NEU1">
<table border=2 cellspacing=0 cellpadding=0 width=500px>
<tr><td>
<table cellspacing=0 cellpadding=5 border=0 width=100% height=100%>
<tr><td colspan=3 class=head>]]><LABEL value="title.newlink" /><![CDATA[</td></tr>
<tr><td colspan=3 class=leerzeile> </td></tr>
<tr>
<td class=formular width=35%>]]><LABEL value="input.name" /><![CDATA[:</td>
<td colspan=2 class=dialogtxt> ]]><INPUTFIELD name="name1" class="textfeld3" size="31" length="40" method="setValue" action="onfocus='NEU1.WEITER.disabled=false;'"/><![CDATA[</td>
</tr>
<tr>
<td class=formular>]]><LABEL value="input.linkto" /><![CDATA[:</td>
<td class=dialogtxt>
<input type="text" name="neulink1" class="textfeld3" size="31" />
</td>
<td class=formular><a href="javascript:treewin=opensmallwin('folder_tree.html?foldertree=/&formname=NEU1&variable=neulink1&onlineselect=yes&viewfile=yes', 'explorer_viewer', 150, 300),treewin.focus();"><img src="]]><METHOD name="picsUrl">ic_file_folder.gif</METHOD><![CDATA[" border="0" alt="]]><LABEL value="label.selectfolder" /><![CDATA["></a></td>
</tr>
<tr>
<td colspan=3 class=dialogtxt>
<input type="checkbox" onClick="javascript:switchLayer1(this);" checked> ]]><LABEL value="input.addtonav" /><![CDATA[
</td>
</tr>
<tr>
<td class=formular>
]]><LABEL value="input.navtitle" /><![CDATA[:
</td>
<td colspan=2 class=dialogtxt>
]]><INPUTFIELD name="navtext" class="textfeld3" size="31" length="100" /><![CDATA[
</td>
</tr>
<tr>
<td class=formular>
]]><LABEL value="input.insert" /><![CDATA[
</td>
<td colspan=2 class=dialogtxt>
]]><SELECT class="localstyle" name="linkPos" width="400" div="true" method="getNavPos" /><![CDATA[
</td>
</tr>
<tr>
<td colspan=3 class=leerzeile> </td>
</tr>
<tr>
<td colspan=3 class=formular>
<table cellspacing=0 cellpadding=5 width=100%>
<tr>
<td class=formular align=right width=60%><INPUT class=button width=100 type="button" value="]]><LABEL value="button.previousscreen" /><![CDATA[" id=ZURUECK name=ZURUECK onClick="location='explorer_files_new.html';"></td>
<td class=formular align=middle width=20%><INPUT disabled class=button width=100 type="button" value="]]><LABEL value="button.endwizard" /><![CDATA[" id=WEITER name=WEITER onClick="checkForm(1);"></td>
<td class=formular align=middle width=20%><INPUT class=button width=100 type="button" value="]]><LABEL value="button.cancel" /><![CDATA[" id=CANCEL_FOLDER name=CANCEL_FOLDER onClick="location='explorer_files.html';"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>
</td></tr>
</table>
</body>
</HTML>
]]>
</TEMPLATE>
<TEMPLATE name="change">
<![CDATA[
<HTML>
<script language=JavaScript>
<!--
top.help_url='FunkButtonNeu/AnlegenNeuerVerknuepfung.html';
var lasturl=']]><PROCESS>lasturl</PROCESS><![CDATA[';
//-->
</script>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<title>OpenCms</title>
<link rel=stylesheet type="text/css" href="../css/format.css">
<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="../templates/js/opencms.js"></SCRIPT>
</HEAD>
<body bgcolor="#ffffff" background="]]><METHOD name="picsUrl">bg_weiss.gif</METHOD><![CDATA[" bgproperties=fixed marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 onUnload="if(treewin!=null)treewin.close();">
<table width=100% height=100% border=0 cellspacing=0 cellpadding=0>
<tr><td align=center valign=middle>
<form name=NEU action="javascript:location='explorer_files_new_link.html?step=1&newlink=false&link=' + document.NEU.neulink.value + '&file=]]><PROCESS>LINK</PROCESS><![CDATA[';" method="post">
<table border=2 cellspacing=0 cellpadding=0 width=500px>
<tr><td>
<table cellspacing=0 cellpadding=5 border=0 width=100% height=100%>
<tr><td colspan=3 class=head>]]><LABEL value="title.changelink" /><![CDATA[</td></tr>
<tr><td colspan=3 class=leerzeile> </td></tr>
<tr>
<td class=formular width=10%>]]><LABEL value="input.name"/><![CDATA[:</td>
<td colspan=2 class=dialogtxt width=40%>]]><PROCESS>LINKNAME</PROCESS><![CDATA[</td>
</tr>
<!--<tr>
<td class=formular>]]><LABEL value="input.linkto" /><![CDATA[:</td>
<td class=dialogtxt><input name="NEULINK" class="textfeld2" size="40" maxlength="100" value="]]><PROCESS>LINKVALUE</PROCESS><![CDATA["> </td>
</tr>-->
<tr>
<td class=formular>]]><LABEL value="input.linkto" /><![CDATA[:</td>
<td class=dialogtxt>
<input type="text" name="neulink" class="textfeld3" size=31 value="]]><PROCESS>LINKVALUE</PROCESS><![CDATA[" >
</td>
<td class=formular><a href="javascript:treewin=opensmallwin('folder_tree.html?foldertree=/&formname=NEU&variable=neulink&onlineselect=yes&viewfile=yes', 'explorer_viewer', 150, 300),treewin.focus();"><img src="]]><METHOD name="picsUrl">ic_file_folder.gif</METHOD><![CDATA[" border="0" alt="]]><LABEL value="label.selectfolder" /><![CDATA["></a></td>
</tr>
<tr>
<td colspan=3 class=leerzeile> </td>
</tr>
<tr>
<td colspan=3 class=formular>
<table cellspacing=0 cellpadding=5 width=100%>
<tr>
<td class=formular align=middle width=20%><INPUT class=button width=100 type="button" value="]]><LABEL value="button.ok" /><![CDATA[" id="OK" name="OK" onClick="location='explorer_files_new_link.html?step=1&newlink=false&link=' + document.NEU.neulink.value + '&file=]]><PROCESS>LINK</PROCESS><![CDATA[';"></td>
<td class=formular align=middle width=20%><INPUT class=button width=100 type="button" value="]]><LABEL value="button.cancel" /><![CDATA[" id=CANCEL_FOLDER name=CANCEL_FOLDER onClick="location=lasturl;"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td></tr>
</table>
</body>
</HTML>
]]>
</TEMPLATE>
</WORKPLACE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -