⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 explorer_files_new_page

📁 cms是开源的框架
💻
📖 第 1 页 / 共 3 页
字号:
<?xml version="1.0" encoding="ISO-8859-1"?>
<WORKPLACE>
<TEMPLATE>
<![CDATA[

<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=]]><METHOD name="getEncoding"/><![CDATA[">

<script language="JavaScript">

    function simpleEscape(text) {
        return text.replace(/\//g, "%2F");
    }

    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 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(whichone==1){
            if(document.getElementById("newTitle"+whichone).value.length<1)lengthOkay=false;
            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_page.html?step=1&newfile='+
                    encodeURIComponent(document.getElementById("name"+whichone).value)+
                    '&title='+encodeURIComponent(document.getElementById("newTitle"+whichone).value)+
                    '&keywords='+encodeURIComponent(document.getElementById("newKeyWords"+whichone).value)+
                    '&description='+encodeURIComponent(document.getElementById("newDescription"+whichone).value)+
                    '&template='+simpleEscape(document.getElementById("useTemplate"+whichone).value)+
                    '&default_body='+encodeURIComponent(document.getElementById("defaultBody"+whichone).options[document.getElementById("defaultBody"+whichone).selectedIndex].value);

                //alert(re);
                document.location.href=re;
            }

            if(whichone==1){
                var re='explorer_files_new_page.html?step=1&newfile='+
                    encodeURIComponent(document.getElementById("name"+whichone).value)+
                    '&title='+encodeURIComponent(document.getElementById("newTitle"+whichone).value)+
                    '&keywords='+encodeURIComponent(document.getElementById("newKeyWords"+whichone).value)+
                    '&description='+encodeURIComponent(document.getElementById("newDescription"+whichone).value)+
                    '&template='+simpleEscape(document.getElementById("useTemplate"+whichone).value)+
                    '&default_body='+encodeURIComponent(document.getElementById("defaultBody"+whichone).options[document.getElementById("defaultBody"+whichone).selectedIndex].value)+
                    '&navtitle='+encodeURIComponent(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("newTitle"+from).value;
        var temp3=document.getElementById("newKeyWords"+from).value;
        var temp4=document.getElementById("newDescription"+from).value;
        var temp5=document.getElementById("useTemplate"+from).selectedIndex;
        var temp6=document.getElementById("defaultBody"+from).selectedIndex;


        document.getElementById("name"+to).value=temp1;
        document.getElementById("newTitle"+to).value=temp2;
        document.getElementById("newKeyWords"+to).value=temp3;
        document.getElementById("newDescription"+to).value=temp4;
        document.getElementById("useTemplate"+to).selectedIndex=temp5;
        document.getElementById("defaultBody"+to).selectedIndex=temp6;

    }

    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>

<link rel=stylesheet type="text/css" href="]]><method name="resourcesUri">format.css</method><![CDATA[">

</head>

<body>

<!-- 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>
    <table border=2 cellspacing=0 cellpadding=0 width=530px align=center>
        <tr>
            <td>
                <table cellspacing=0 cellpadding=5 border=0 width=100% height=100%>
                    <tr>
                        <td colspan=2 class=head>
                            ]]><LABEL value="title.newpage" /><![CDATA[
                        </td>
                    </tr>
                    <tr>
                        <td colspan=2 class=dialogtxt>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td class=formular width=120>
                            ]]><LABEL value="input.name" /><![CDATA[:
                        </td>
                        <td class=dialogtxt>
                            <input type="textfield" id="name2" maxlength=100 size="40" length="100" class="textfeld2" value="]]><PROCESS>name</PROCESS><![CDATA[">
                        </td>
                    </tr>
                    <tr>
                        <td class=formular>
                            ]]><LABEL value="input.title" /><![CDATA[:
                        </td>
                        <td class=dialogtxt>
                            ]]><INPUTFIELD name="newTitle2" class="textfeld2" size="40" length="100" /><![CDATA[
                        </td>
                    </tr>
                    <tr>
                        <td class=formular>
                            ]]><LABEL value="input.template" /><![CDATA[:
                        </td>
                        <td class=dialogtxt>
                            ]]><SELECT class="localstyle" name="useTemplate2" width="370" div="true" method="getTemplates" /><![CDATA[
                        </td>
                    </tr>

                    <tr>
                        <td class=formular>
                            ]]><LABEL value="input.default_body" /><![CDATA[:
                        </td>
                        <td class=dialogtxt>
                            ]]><SELECT class="localstyle" name="defaultBody2" width="370" div="true" method="getLayouts" /><![CDATA[
                        </td>
                    </tr>
                    <tr>
                        <td class=formular>
                            ]]><LABEL value="input.keywords" /><![CDATA[:
                        </td>
                        <td class=dialogtxt>

                            ]]><INPUTFIELD name="newKeyWords2" class="textfeld2" size="40" length="100" /><![CDATA[
                        </td>
                    </tr>
                    <tr>
                        <td class=formular>
                            ]]><LABEL value="input.description" /><![CDATA[:
                        </td>
                        <td class=dialogtxt>
                            ]]><INPUTFIELD name="newDescription2" class="textfeld2" size="40" length="100" /><![CDATA[

                        </td>
                    </tr>

                    <tr>
                        <td colspan=2 class=dialogtxt>
                        <input type="checkbox" onClick="javascript:switchLayer2(this);" >&nbsp;&nbsp;]]><LABEL value="input.addtonav" /><![CDATA[
                        </td>
                    </tr>
                    <tr>
                        <td class=formular>
                            <br>
                        </td>
                        <td class=dialogtxt>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td class=formular>
                            <br>
                        </td>
                        <td class=dialogtxt>
                            <br>
                        </td>
                    </tr>
                    <tr>
                        <td colspan=2 class=dialogtxt>&nbsp;<br><br>
                        </td>
                    </tr>
                    <tr>
                        <td class=dialogtxt colspan=2 align=right>
                            <input class=button type="button" value="]]><LABEL value="button.previousscreen" /><![CDATA[" onClick="location='explorer_files_new.html';">
                            <input class=button type="button" value="]]><LABEL value="button.endwizard" /><![CDATA[" onClick=checkForm(2);>
                            <input class=button type="button" value="]]><LABEL value="button.cancel" /><![CDATA[" onClick="location=']]><METHOD name="explorerFileUri" /><![CDATA[';">
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</form>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -