All pastes #1429362 Raw Edit

Zeug

public text v1 · immutable
#1429362 ·published 2009-05-20 23:00 UTC
rendered paste body
<!-- ADMIN-ENTRY TEMPLATE: entries.tpl START -->
{*** POSSIBLE ERROR MESSAGES START ***}
{if $entry_vars.errMsg}
    <div class="serendipityAdminMsgError"><img style="width: 22px; height: 22px; border: 0px; padding-right: 4px; vertical-align: middle" src="{serendipity_getFile file='admin/img/admin_msg_error.png'}" alt="" />{$entry_vars.errMsg}</div>
{/if}
{*** POSSIBLE ERROR MESSAGES END ***}

{*** MAIN ENTRY FORM START ***}
<form {$entry_vars.entry.entry_form} action="{$entry_vars.targetURL}" method="post" name="serendipityEntry" id="serendipityEntry" style="margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px">
{$entry_vars.hidden}

<div style="width: 75%; float: left">

<fieldset id="basic_content" class="sect_basic">
   <legend>Basic Content</legend>


<div class="serendipityEntryEdit" border="0" width="100%">

<div id="titel_and_date">

    {*** ENTRY TITLE, DRAFT START ***}
           <label for="entryTitle">{$CONST.TITLE}:</label>
           <input class="input_textbox" type="text" id="entryTitle" name="serendipity[title]" value="{$entry_vars.entry.title|@escape}" maxlength="60" /><br />
    {*** ENTRY TITLE, DRAFT END ***}

    {*** ENTRY DATE,CATEGORY START ***}
    {if $entry_vars.allowDateManipulation}
            <label for="serendipityNewTimestamp">{$CONST.DATE}:</label>

            <input type="hidden" name="serendipity[chk_timestamp]" value="{$entry_vars.timestamp}" />
            <input class="input_textbox" type="text" name="serendipity[new_timestamp]" id="serendipityNewTimestamp" value="{$entry_vars.timestamp|@formatTime:DATE_FORMAT_2:true:false:true}" />
            <a href="#" onclick="document.getElementById('serendipityNewTimestamp').value = '{$entry_vars.reset_timestamp|@formatTime:DATE_FORMAT_2:true:false:true}'; return false;" title="{$CONST.RESET_DATE_DESC}"><img src="{serendipity_getFile file='admin/img/clock.png'}" border="0"  style="vertical-align: text-top;" alt="{$CONST.RESET_DATE}" /></a><br />
     {/if}
    {*** ENTRY DATE,CATEGORY END ***}

</div>

    {*** ENTRY TOOLBAR START ***}
        <label for="serendipity[body]">{$CONST.ENTRY_BODY}</label>
        {if NOT $entry_vars.wysiwyg}
        <div style="float:right">
            {if $entry_vars.wysiwyg_advanced}
            <script type="text/javascript" language="JavaScript">
                document.write('<input type="button" class="serendipityPrettyButton input_button" name="insI" value="I" accesskey="i" style="font-style: italic" onclick="wrapSelection(document.forms[\'serendipityEntry\'][\'serendipity[body]\'],\'<em>\',\'</em>\')" />');
                document.write('<input type="button" class="serendipityPrettyButton input_button" name="insB" value="B" accesskey="b" style="font-weight: bold" onclick="wrapSelection(document.forms[\'serendipityEntry\'][\'serendipity[body]\'],\'<strong>\',\'</strong>\')" />');
                document.write('<input type="button" class="serendipityPrettyButton input_button" name="insU" value="U" accesskey="u" style="text-decoration: underline;" onclick="wrapSelection(document.forms[\'serendipityEntry\'][\'serendipity[body]\'],\'<u>\',\'</u>\')" />');
                document.write('<input type="button" class="serendipityPrettyButton input_button" name="insQ" value="{$CONST.QUOTE}" accesskey="q" style="font-style: italic" onclick="wrapSelection(document.forms[\'serendipityEntry\'][\'serendipity[body]\'],\'<blockquote>\',\'</blockquote>\')" />');
                document.write('<input type="button" class="serendipityPrettyButton input_button" name="insJ" value="img" accesskey="j" onclick="wrapInsImage(document.forms[\'serendipityEntry\'][\'serendipity[body]\'])" />');
                document.write('<input type="button" class="serendipityPrettyButton input_button" name="insImage" value="{$CONST.MEDIA}" style="" onclick="window.open(\'serendipity_admin_image_selector.php?serendipity[textarea]=body\', \'ImageSel\', \'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1\');" />');
                document.write('<input type="button" class="serendipityPrettyButton input_button" name="insURL" value="URL" accesskey="l" onclick="wrapSelectionWithLink(document.forms[\'serendipityEntry\'][\'serendipity[body]\'])" />');
            </script>
            {else}
            <script type="text/javascript" language="JavaScript">
                document.write('<input type="button" class="serendipityPrettyButton input_button" value=" B " onclick="serendipity_insBasic(document.forms[\'serendipityEntry\'][\'serendipity[body]\'], \'b\')">');
                document.write('<input type="button" class="serendipityPrettyButton input_button" value=" U " onclick="serendipity_insBasic(document.forms[\'serendipityEntry\'][\'serendipity[body]\'], \'u\')">');
                document.write('<input type="button" class="serendipityPrettyButton input_button" value=" I " onclick="serendipity_insBasic(document.forms[\'serendipityEntry\'][\'serendipity[body]\'], \'i\')">');
                document.write('<input type="button" class="serendipityPrettyButton input_button" value="<img>" onclick="serendipity_insImage(document.forms[\'serendipityEntry\'][\'serendipity[body]\'])">');
                document.write('<input type="button" class="serendipityPrettyButton input_button" value="{$CONST.MEDIA}" onclick="window.open(\'serendipity_admin_image_selector.php?serendipity[textarea]=body\', \'ImageSel\', \'width=800,height=600,toolbar=no\');">');
                document.write('<input type="button" class="serendipityPrettyButton input_button" value="Link" onclick="serendipity_insLink(document.forms[\'serendipityEntry\'][\'serendipity[body]\'])">');
            </script>
            {/if}
        </div>
        {/if}
       <div style="clear:both; float:right">{serendipity_hookPlugin hook="backend_entry_toolbar_body" data=$entry_data.entry hookAll="true"}</div>

    {*** ENTRY TOOLBAR END ***}

    {*** ENTRY BODY START ***}
    <div style="margin-top:5em">


            <textarea style="width: 100%" name="serendipity[body]" id="serendipity[body]" cols="80" rows="20">{$entry_vars.entry.body|@escape}</textarea>

    </div>
    {*** ENTRY BODY START ***}

    {*** ENTRY OPTIONS START ***}
    <div>
            <br />
    </div>
    {*** ENTRY OPTIONS END ***}

    {*** EXTENDED ENTRY TOOLBAR START ***}
         <label for="serendipity[extended]">{$CONST.EXTENDED_BODY}</label>


            {if NOT $entry_vars.wysiwyg}
            <div style="float:right" id="tools_extended">
                {if $entry_vars.wysiwyg_advanced}
                <input type="button" class="serendipityPrettyButton input_button" name="insI" value="I" accesskey="i" style="font-style: italic" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[extended]'],'<em>','</em>')" />
                <input type="button" class="serendipityPrettyButton input_button" name="insB" value="B" accesskey="b" style="font-weight: bold" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[extended]'],'<strong>','</strong>')" />
                <input type="button" class="serendipityPrettyButton input_button" name="insU" value="U" accesskey="u" style="text-decoration: underline;" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[extended]'],'<u>','</u>')" />
                <input type="button" class="serendipityPrettyButton input_button" name="insQ" value="{$CONST.QUOTE}" accesskey="q" style="font-style: italic" onclick="wrapSelection(document.forms['serendipityEntry']['serendipity[extended]'],'<blockquote>','</blockquote>')" />
                <input type="button" class="serendipityPrettyButton input_button" name="insJ" value="img" accesskey="j" onclick="wrapInsImage(document.forms['serendipityEntry']['serendipity[extended]'])" />
                <input type="button" class="serendipityPrettyButton input_button" name="insImage" value="{$CONST.MEDIA}" onclick="window.open('serendipity_admin_image_selector.php?serendipity[textarea]=extended', 'ImageSel', 'width=800,height=600,toolbar=no,scrollbars=1,scrollbars,resize=1,resizable=1');" />
                <input type="button" class="serendipityPrettyButton input_button" name="insURL" value="URL" accesskey="l" onclick="wrapSelectionWithLink(document.forms['serendipityEntry']['serendipity[extended]'])" />
                {else}
                <input type="button" class="serendipityPrettyButton input_button" value=" B " onclick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[extended]'], 'b')">
                <input type="button" class="serendipityPrettyButton input_button" value=" U " onclick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[extended]'], 'u')">
                <input type="button" class="serendipityPrettyButton input_button" value=" I " onclick="serendipity_insBasic(document.forms['serendipityEntry']['serendipity[extended]'], 'i')">
                <input type="button" class="serendipityPrettyButton input_button" value="<img>" onclick="serendipity_insImage(document.forms['serendipityEntry']['serendipity[extended]'])">
                <input type="button" class="serendipityPrettyButton input_button" value="{$CONST.MEDIA}" onclick="window.open('serendipity_admin_image_selector.php?serendipity[textarea]=extended', 'ImageSel', 'width=800,height=600,toolbar=no');">
                <input type="button" class="serendipityPrettyButton input_button" value="Link" onclick="serendipity_insLink(document.forms['serendipityEntry']['serendipity[extended]'])">
                {/if}
            </div>
            {/if}

           <div  style="clear:both; float:right"> {serendipity_hookPlugin hook="backend_entry_toolbar_extended" data=$entry_data.entry hookAll="true"}</div>



    {*** EXTENDED ENTRY TOOLBAR END ***}

    {*** EXTENDED ENTRY BODY START ***}
    <div style="margin-top:5em">

            <textarea style="width: 100%;" name="serendipity[extended]" id="serendipity[extended]" cols="80" rows="30">{$entry_vars.entry.extended|@escape}</textarea>
            {if NOT $entry_vars.wysiwyg}

            {/if}

    </div>
    {*** EXTENDED ENTRY BODY END ***}



        </fieldset>

</div>

<div style="width: 24%; float: right">

<fieldset class="sect_basic">
   <legend>Ver&ouml;ffentlichen</legend>
<p>
	<input accesskey="p" type="submit" value="- {$CONST.PREVIEW} -" class="serendipityPrettyButton input_button"  style="width: 150px" onclick="document.forms['serendipityEntry'].elements['serendipity[preview]'].value='true';" />
</p>

<p style="margin-top:2em">
	<b>Artikel-Status:</b><br/>
                        <select name="serendipity[isdraft]" style="margin-bottom:1em">
                            {if $entry_vars.serendipityRightPublish}
                            <option  value="false" {if $entry_vars.draft_mode == 'publish'}selected="selected"{/if}>{$CONST.PUBLISH}</option>
                            {/if}
                            <option  value="true"  {if $entry_vars.draft_mode == 'draft'}selected="selected"{/if}>{$CONST.DRAFT}</option>
                        </select>

                     <input accesskey="s" type="submit" onclick="return checkSave();" value="- {$CONST.SAVE} -" class="serendipityPrettyButton input_button" />
</p>

</fieldset>
<br />
<fieldset class="sect_basic">
   <legend>{$CONST.CATEGORY}</legend>


<p>
            <select id="categoryselector" name="serendipity[categories][]" style="vertical-align: middle;" multiple="multiple" size="{$entry_vars.cat_count}">
                <option value="0">[{$CONST.NO_CATEGORY}]</option>
                {foreach from=$entry_vars.category_options item="entry_cat"}
                <option value="{$entry_cat.categoryid}" {if $entry_cat.is_selected}selected="selected"{/if}>{$entry_cat.depth_pad}{$entry_cat.category_name}</option>
                {/foreach}
            </select>


</p>


  </fieldset>
<br />
        <fieldset class="sect_opt">
            <legend>Kommentare</legend>


<p>
                        <input class="input_checkbox" id="checkbox_allow_comments" type="checkbox" name="serendipity[allow_comments]" value="true" {if $entry_vars.allow_comments}checked="checked"{/if} /><label for="checkbox_allow_comments">{$CONST.COMMENTS_ENABLE}</label><br />
                        <input class="input_checkbox" id="checkbox_moderate_comments" type="checkbox" name="serendipity[moderate_comments]" value="true" {if $entry_vars.moderate_comments}checked="checked"{/if} /><label for="checkbox_moderate_comments">{$CONST.COMMENTS_MODERATE}</label>

</p>


        </fieldset>


</div>

<div style="clear:both; padding-top:20px;">
            <fieldset>
                <legend><b>{$CONST.ADVANCED_OPTIONS}</b></legend>
    {*** EXTERNAL PLUGINS OUTPUT START ***}
                {$entry_vars.entry|@serendipity_refhookPlugin:'backend_display'}
    {*** EXTERNAL PLUGINS OUTPUT END ***}
            </fieldset>

</div>

</form>
{*** MAIN ENTRY FORM END ***}

{*** SPAWN WYSIWYG EDITORS START ***}
{if $entry_vars.show_wysiwyg}
<script type="text/javascript" language="JavaScript">
    toggle_extended();
</script>
{/if}

{if $entry_vars.wysiwyg}
    {foreach from=$entry_vars.wysiwyg_blocks item="wysiwyg_block_item" key="wysiwyg_block_jsname"}
        {$wysiwyg_block_item|emit_htmlarea_code:$wysiwyg_block_jsname}
    {/foreach}
    {$entry_vars.wysiwyg_blocks|@serendipity_refhookPlugin:'backend_wysiwyg_finish'}
{/if}
{*** SPAWN WYSIWYG EDITORS END ***}

<script type="text/javascript" language="JavaScript" src="serendipity_define.js.php"></script>
<script type="text/javascript" language="JavaScript" src="serendipity_editor.js"></script>
<!-- ADMIN-ENTRY TEMPLATE: entries.tpl END -->