[Phpcms-plugins-cvs] admin4phpCMS/modules/phpcms-content/templates phpcms_menu.tpl,NONE,1.1 module_p
Brought to you by:
mjahn
From: Martin J. <mj...@us...> - 2005-05-26 15:56:05
|
Update of /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms-content/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19290/modules/phpcms-content/templates Modified Files: module_phpcms-content.tpl phpcms-content_editor.tpl Added Files: phpcms_menu.tpl Log Message: beginning of phpcms-content and filemanager --- NEW FILE: phpcms_menu.tpl --- Index: module_phpcms-content.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms-content/templates/module_phpcms-content.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- module_phpcms-content.tpl 15 May 2005 12:24:03 -0000 1.2 +++ module_phpcms-content.tpl 26 May 2005 15:55:55 -0000 1.3 @@ -1 +1,3 @@ -{include file="$INDEX_PATH/modules/phpcms-content/templates/phpcms-content_editor.tpl"} \ No newline at end of file +{if $moduledata.action == 'content'} + {include file="$INDEX_PATH/modules/phpcms-content/templates/phpcms-content_editor.tpl"} +{/if} \ No newline at end of file Index: phpcms-content_editor.tpl =================================================================== RCS file: /cvsroot/phpcms-plugins/admin4phpCMS/modules/phpcms-content/templates/phpcms-content_editor.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- phpcms-content_editor.tpl 15 May 2005 12:24:03 -0000 1.1 +++ phpcms-content_editor.tpl 26 May 2005 15:55:55 -0000 1.2 @@ -1,88 +1,131 @@ - <style type="text/css"> - <!-- - @import url(/test/modules/editor/editor.css) screen; - --> - </style> - <script type="text/javascript" src="/test/modules/editor/editor.js"></script> -{if $WYSIWYG.NAME == 'HTMLAREA'} -<!-- Editorfunktionen --> -<script type="text/javascript"> - _editor_lang = "de"; - _editor_url = "{$WYSIWYG.PATH}"; -</script> -<!-- load the main HTMLArea files --> -<script type="text/javascript" src="{$WYSIWYG.PATH}/htmlarea.js"></script> -<script type="text/javascript"> - HTMLArea.loadPlugin("ImageManager"); - HTMLArea.loadPlugin("CSS"); -</script> -{/if} -{if $WYSIWYG.NAME == 'FCKEDITOR'} -<!-- load the main FCKEditor files --> -<script type="text/javascript" src="{$WYSIWYG.PATH}/fckeditor.js"></script> +{config_load file="`$MODULE_PATH`/phpcms-content/module_phpcms-content_`$LANG`.lng" section="editor" scope="local"}<h1>{#title_editor#}</h1> +<h2>{#title_menu#}</h2> +{* + *include the WYSIWYG-components + *} +{literal} +<script type="text/javascript"><!-- +/** +* display a tab and hide all other tabs +**/ +function switchTab (id) { + var i = 0; + num = tabs.length; + + for (i = 0; i < num; i++) { + if (tabs [i] != id) { + hideTab (tabs [i]); + continue; + } + if (document.getElementById (id).style.display != 'block') { + showTab (tabs [i]); + } else { + hideTab (tabs [i]); + } + } +} -{/if} +/** + * helper-function to hide a tab + **/ +function hideTab (id) { + document.getElementById (id).style.display = 'none'; +} -{if $WYSIWYG.NAME == 'WYSIWYM'} -<script type="text/javascript" src="{$WYSIWYG.PATH}/online-editor.js"></script> -{/if} -<div id="editor" > - <form action="{$INDEX_FILE}?moduleid=phpcms&action=phpcms-content" method="post" id="editor_main" class="editor"> - <fieldset> - <legend>Allgemeines</legend> - <h3>Optionen</h3> - <div class="label"> - <input type="button" name="editor-newfile" class="editor-newfile" onclick="displayTab('new')" value="Neue Datei anlegen" /> - <input type="button" name="editor-openfile" class="editor-openfile" onclick="displayTab('open')" value="Datei zum Editieren öffnen" /> - <input type="submit" name="editor-savefile" class="editor-savefile" value="Datei speichern" /> - <input type="button" name="editor-delfile" class="editor-delfile" onclick="displayTab('delete')" value="Datei löschen" /> - <input type="submit" name="editor-saveexit" class="editor-exit" value="Speichern und Datei schließen" /> +/** +* helper-function to display a tab +**/ +function showTab (id) { + document.getElementById (id).style.display = 'block'; +} + +/** +* register a tabbox +**/ +function registerTab (id) { + tabs.push (id); +} + +window.onload = function onloadHide () { + registerTab ('new'); + registerTab ('open'); + registerTab ('delete'); +/* registerTab ('upload'); + registerTab ('image');*/ + + displayTab ('xyz'); +} +--></script> +{/literal} + <form action="{$INDEX_FILE}?moduleid=phpcms-content" method="post" id="editor_main" class="editor"> + <div class="horizontal"> + <button type="button" name="action" value="new" onclick="switchTab('new');"><img src="{$MODULE_WEB}/phpcms-content/images/editor_new.png" alt="" /> {#button_new_file#} {#button_new#}</button> + <button type="button" name="action" value="open" onclick="switchTab('open');"><img src="{$MODULE_WEB}/phpcms-content/images/editor_edit.png" alt="" /> {#button_open_file#} {#button_open#}</button> + <button type="submit" name="action" value="save"><img src="{$MODULE_WEB}/phpcms-content/images/editor_save.png" alt="" /> {#button_save_file#} {#button_save#}</button> + <button type="button" name="action" value="delete" onclick="switchTab('delete');return false;"><img src="{$MODULE_WEB}/phpcms-content/images/editor_delete.png" alt="" /> {#button_delete#}</button> + <button type="submit" name="action" value="savexit"><img src="{$MODULE_WEB}/phpcms-content/images/editor_exit.png" alt="" /> {#button_save_file_exit#} {#button_saveexit#}</button> </div> {$EDITOR.ERROR} - <div id="new" style="display:block;"> - <h3>Neue Datei anlegen</h3> - <label for="input-newfile"> - <span><a href="{$HELP}#filename" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Dateiname</a></span> - <input type="text" name="input-newfile" id="input-newfile" /> - </label> - <label for="input-template"> - <span><a href="{$HELP}#selectstyle" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Vorlage wählen</a></span> - <select name="input-template" id="input-template"> - {$EDITOR.TPLSELECT} - </select> - </label> - <label for="input-newmenu"> - <span><a href="{$HELP}#selectdoc" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Menüpunkt auswählen</a></span> - <select name="input-newmenu" id="input-newmenu"> - {$MENUS} - </select> - </label> - <div class="label"> - <input type="radio" name="input-newmenu-position" id="input-newmenu-position" value="before" /><span>davor einfügen</span> - </div> - <div class="label"> - <input type="radio" name="input-newmenu-position" id="input-newmenu-position" value="after" selected="selected" /><span>dahinter einfügen</span> - </div> - <label for="input-newfile-submit"> - <input type="submit" name="input-newfile-submit" id="input-newfile-submit" class="editor-newfile" value="Datei anlegen" /> - </label> - </div> + <div id="new" class="hidden"> + <fieldset> + <legend>{#title_new_file#} Neue Datei anlegen</legend> + <label for="input-newfile"> + <span> + {#label_new_filename#} + </span> + <input type="text" name="input-newfile" id="input-newfile" /> + </label> + <label for="input-template"> + <span> + {#label_new_template#} + </span> + <select name="input-template" id="input-template"> + {$EDITOR.TPLSELECT} + </select> + </label> + <label for="input-newmenu"> + <span> + {#labelnew_menu#} + </span> + <select name="input-newmenu" id="input-newmenu"> + {foreach from=$moduledata.menus key=id item=menu} + <option value="{$id}">{$menu}</option> + {/foreach} + </select> + </label> + <div class="label"> + <span>davor einfügen</span> + <input type="radio" name="input-newmenu-position" id="input-newmenu-position" value="before" /> + </div> + <div class="label"> + <span>dahinter einfügen</span> + <input type="radio" name="input-newmenu-position" id="input-newmenu-position" value="after" selected="selected" /> + </div> + <label for="input-newfile-submit"> + <input type="submit" name="input-newfile-submit" id="input-newfile-submit" class="editor-newfile" value="Datei anlegen" /> + </label> + </fieldset> + </div> - <div id="open" style="display:block;"> - <h3>Dokument öffnen und editieren</h3> + <div id="open" class="hidden"> + <fieldset> + <legend>Dokument öffnen und editieren</legend> <label for="input-openfile"> - <span><a href="{$HELP}#selectdoc" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Dokument auswählen</a></span> - <select name="input-openfile" id="input-openfile"> - {$MENUS1} + <span>Dokument auswählen</span> + <div class="dialogue"> + {$MENUS1} + </div> </select> </label> <label for="input-openfile-submit"> <input type="submit" name="input-openfile-submit" id="input-openfile-submit" class="editor-openfile" value="Datei öffnen" /> </label> + </fieldset> </div> - <div id="delete" style="display:block;"> - <h3>Dokument löschen</h3> + <div id="delete" class="hidden"> + <fieldset> + <legend>Dokument löschen</legend> <label for="input-delfile"> <span><a href="{$HELP}#del" onclick="return pop(this,'width=350,height=500,scrollbars,resizable','Hilfe');" onkeypress="verifyKey(this,event);">Dokument auswählen</a></span> <select name="input-delfile" id="input-delfile"> @@ -98,38 +141,133 @@ <label for="input-delfile-submit"> <input type="submit" name="input-delfile-submit" id="input-delfile-submit" class="editor-delfile" value="Datei löschen" /> </label> + </fieldset> </div> </fieldset> + <script src="{$MODULE_WEB}/phpcms-content/wysiwyg/tiny_mce/tiny_mce.js" type="text/javascript"></script> +<h2>Contentfields</h2> + {literal} + <script type="text/javascript"> + <!-- + tinyMCE.init({ + mode : "textareas", + theme : "advanced", + plugins : "table,advimage,advlink,insertdatetime,flash,searchreplace", + theme_advanced_buttons1_add_before : "cut,copy,paste,separator,search,replace,separator", + theme_advanced_buttons2_add : "flash,separator,insertdate,inserttime,separator,forecolor,backcolor", + theme_advanced_buttons3_add_before : "tablecontrols,separator", + theme_advanced_toolbar_location : "top", + theme_advanced_toolbar_align : "left", + theme_advanced_path_location : "bottom", + content_css : "example_full.css", + plugin_insertdate_dateFormat : "%Y-%m-%d", + plugin_insertdate_timeFormat : "%H:%M:%S", + extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]", + external_link_list_url : "example_link_list.js", + external_image_list_url : "example_image_list.js", + flash_external_list_url : "example_flash_list.js", + file_browser_callback : "fileBrowserCallBack" + }); - {if $WYSIWYG.NAME == 'HTMLAREA'} <textarea name="input-content-{$INPUT.ID}" id="input-content-{$INPUT.ID}" rows="20" cols="40">{$INPUT.VALUE}</textarea> - <script language='javascript1.2'>HTMLArea.replace('input-content-{$FIELD}')</script> - {/if} - {if $WYSIWYG.NAME == 'FCKEDITOR'} <textarea name="input-content-{$INPUT.ID}" id="input-content-{$INPUT.ID}" rows="20" cols="40">{$INPUT.VALUE}</textarea> - <script type="text/javascript"> - var oFCKEditor = new FCKEditor ('input-content-{$FIELD}'); - oFCKEditor.ReplaceTextarea (); - </script> - {/if} - {if $WYSIWYG.NAME == 'WYSIWYM'} - <div class="label"> - <img src="{$WYSIWYG.PATH}/edit/boldbtn.gif" width="18" height="18" title="Highlight some text and click for bold" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapTag(document.getElementById('input-content-{$INPUT.ID}'), '<b>', '</b>');" /> - <img src="{$WYSIWYG.PATH}/edit/italicbtn.gif" width="18" height="18" title="Highlight some text and click for italic" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapTag(document.getElementById('input-content-{$INPUT.ID}'), '<em>', '</em>')" /> - <img src="{$WYSIWYG.PATH}/edit/underlinebtn.gif" width="18" height="18" title="Highlight some text and click for underlined" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapTag(document.getElementById('input-content-{$INPUT.ID}'), '<u>', '</u>')" /> - <img src="{$WYSIWYG.PATH}/edit/centerbtn.gif" width="18" height="18" title="Highlight some text and click to center" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapTag(document.getElementById('input-content-{$INPUT.ID}'), '<p class=%22center%22>', '</p>')" /> - <img src="{$WYSIWYG.PATH}/edit/rightbtn.gif" width="18" height="18" title="Highlight some text and click to right align" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapTag(document.getElementById('input-content-{$INPUT.ID}'), '<p class=%22right%22>', '</p>')" /> - <img src="{$WYSIWYG.PATH}/edit/blockquotebtn.gif" width="18" height="18" title="Highlight some text and click for a blockquote" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapTag(document.getElementById('input-content-{$INPUT.ID}'), '<blockquote>', '</blockquote>')" /> - <img src="{$WYSIWYG.PATH}/edit/blistbtn.gif" width="18" height="18" title="Highlight some text and click for a bulleted list" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapTag(document.getElementById('input-content-{$INPUT.ID}'), '<li>', '</li>')" /> - <img src="{$WYSIWYG.PATH}/edit/prebtn.gif" width="18" height="18" title="Highlight some text and click for pre" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapTag(document.getElementById('input-content-{$INPUT.ID}'), '<pre>', '</pre>')" /> - <img src="{$WYSIWYG.PATH}/edit/rulebtn.gif" width="18" height="18" title="Insert a horizontal rule" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="insertTag(document.getElementById('input-content-{$INPUT.ID}'),'<hr />');" /> - <img src="{$WYSIWYG.PATH}/edit/picbtn.gif" width="18" height="18" title="Insert an image" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="insertImage(document.getElementById('input-content-{$INPUT.ID}'));" /> - <img src="{$WYSIWYG.PATH}/edit/linkbtn.gif" width="18" height="18" title="Highlight some text and click to add a link" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapWithLink(document.getElementById('input-content-{$INPUT.ID}'));" /> - <img src="{$WYSIWYG.PATH}/edit/acronymbtn.gif" width="18" height="18" title="Highlight some text and click to add a acronym" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapWithTitle(document.getElementById('input-content-{$INPUT.ID}'), 'acronym');"> - <img src="{$WYSIWYG.PATH}/edit/abbrbtn.gif" width="23" height="18" title="Highlight some text and click to add a abbr" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapWithTitle(document.getElementById('input-content-{$INPUT.ID}'), 'abbr');"> - <img src="{$WYSIWYG.PATH}/edit/quotebtn.gif" width="18" height="18" title="Highlight some text and click for q" class="buttons" onmouseover="mouseover(this);" onmouseout="mouseout(this);" onmousedown="mousedown(this);" onmouseup="mouseup(this);" onclick="wrapTag(document.getElementById('input-content-{$INPUT.ID}'), '<q>', '</q>')"> - </div> - <textarea name="input-content-{$INPUT.ID}" id="input-content-{$INPUT.ID}" rows="20" cols="40">{$INPUT.VALUE}</textarea> - {/if} + function fileBrowserCallBack(field_name, url, type) { + // This is where you insert your custom filebrowser logic + alert("Filebrowser callback: " + field_name + "," + url + "," + type); + } + --> + </script> + {/literal} + <h3>CONTENT</h3> + <textarea name="contentfield-" rows="35" cols="120"> +<h1>phpCMS-Demo - Home » Startseite</h1> + + <h2>Willkommen bei <strong><em>php</em>CMS</strong>!</h2> + +<p>Wenn Sie diese Seite inklusive der Menüs am oberen Rand sehen, läuft der Parser!</p> + + +<p><strong>Sie können mit den Menüs auf die anderen Seiten wechseln.</strong></p> + +<!-- PHPCMS_NOINDEX --> +<p>Diese Textzeile ist in einem Noindex-Tag eingeschlossen und sollte vom HTTP-Indexer nicht indiziert werden.<!-- /PHPCMS_NOINDEX --> +<br />Dieser (tote) <!-- PHPCMS_NOFOLLOW --><a href="/parser/parser.php?file=/demo-de/deadlink.htm">Link</a><!-- /PHPCMS_NOFOLLOW --> ist in einem Nofollow-Tag eingeschlossen und sollte vom HTTP-Indexer nicht gespidert werden.</p> + +phpCMS Plugin-Test + +<p>Viel Spaß mit <strong><em>php</em>CMS</strong>!</p> +<hr /> +<h2 style="text-align:center"><strong>phpMail2Crypt</strong></h2> +<p style="text-align:center">SPAM Schutz durch automatische „Verschlüsselung” von E-Mail Adressen. + +<br /> +<span style="color:red">NEU!</span> phpMail2Crypt arbeitet jetzt unabhängig von PAX! <span style="color:red">NEU!</span></p> + +<p>phpMail2Crypt verwendet eine Kombination verschiedener Techniken, um es sogenannten Spambots zu erschweren, E-Mail Adressen zu sammeln:</p> +<ul> +<li>JavaScript Ver- und Entschlüsselung</li> +<li>ASCII-Verschlüsselung</li> + +<li>Bild-Datei</li> +</ul> +<p>Zwar kann es keinen 100%igen Schutz gegen Spambots geben, mit phpMail2Crypt machen Sie ihnen das Leben aber erheblich schwerer!</p> +<br /> +<p>Einfaches Beispiel: +</p> +<dl> + <dt> + <strong>Schritt 1:</strong> E-Mail Adresse (z.B. "no...@ph...") in Content Datei schreiben: + </dt> + <dd><br /><strong><!-- MAIL2CRYPT no...@ph... --></strong><br /> + + </dd> + + <dt> + <br /><strong>Schritt 2:</strong> Automatische Umwandlung: <br /><br /> + </dt> + <dd><script type="text/javascript" ><!--//--><![CDATA[//><!-- + <br /><strong>showmail( "87889289748641898189768692237778")</strong> + + <br />//--><!]]></script><br /><br /></dd> + + <dt> + <strong>Schritt 3:</strong> Ausgabe im Browser:<br /><br /> + </dt> + <dd>Variante A: <strong><!-- MAIL2CRYPT no...@ph... --></strong> + + <br />Ausgabe: <script type="text/javascript" ><!--//--><![CDATA[//><!-- +showmail("87889289748641898189768692237778", "", "", "", "") +//--><!]]></script><noscript>nospam<img src="/parser/gif/at.gif" width="11" height="12" border="0" alt="@" />phpcms.de</noscript><br /><br /> + </dd> + <dd>Variante B: <strong><!-- MAIL2CRYPT no...@ph...,Schreib mir --></strong> + <br />Ausgabe: <script type="text/javascript" ><!--//--><![CDATA[//><!-- +showmail("87889289748641898189768692237778", "Schreib mir", "", "", "") +//--><!]]></script><noscript>Schreib mir (nospam<img src="/parser/gif/at.gif" width="11" height="12" border="0" alt="@" />phpcms.de)</noscript><br /><br /> + </dd> + + <dd>Variante C: <strong><!-- MAIL2CRYPT no...@ph...,Schreib mir,icon --></strong> + <br />Ausgabe: <script type="text/javascript" ><!--//--><![CDATA[//><!-- +showmail("87889289748641898189768692237778", "Schreib mir", "/parser/gif/mail.gif", "14", "10") +//--><!]]></script><noscript>Schreib mir <img src="/parser/gif/mail.gif" width="14" height="10" border="0" alt="" /> (nospam<img src="/parser/gif/at.gif" width="11" height="12" border="0" alt="@" />phpcms.de)</noscript><br /><br /> + </dd> + <dd><noscript> nospam<img src="/demo-de/gif/at.gif" width="11" height="12" align="bottom" border="0" alt="@" />phpcms.de</dd> + +</dl> +<p>Ist "Mail2Crypt" im GUI ausgeschaltet, werden E-Mail Adressen normal im Text dargestellt. +</p> +<p> </p> +<p> </p> + + + <p>Output of embedded script / Ausgabe eines eingebetteten Scripts:</p><p>Browser: Mozilla/5.0 (X11; U; Linux i686; de-DE; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2)<br /> +IP-Nummer: 84.179.186.127<br /> +SCRIPT_FILENAME: /var/kunden/web3/html/phpcms-demo/parser/parser.php<br /> +SCRIPT_NAME: /parser/parser.php<br /> + +QUERY_STRING: file=/demo-de/index.htm<br /> +PATH_INFO: <br /> +PATH_TRANSLATED: /var/kunden/web3/html/phpcms-demo/parser/parser.php<br /> +Testvariable: Kuckuck! +</p> </textarea> {$EDITOR.EDIT} </form> </div> |