<a name="article_edit"></a>
<div class="article-edit">
<div id="article-edit-top">
<a class="right" href="#article_preview">
<img src="./bilder/vorschau.gif"/>
{{$l_core_button_preview}}</a>
<h2>{{$l_core_message_article_edit}}</h2>
</div>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "exact",
elements : "f_content",
language : "{{$f_lang_2}}",
theme : "advanced",
plugins : "inlinepopups",
dialog_type : "modal",
convert_urls : false,
content_css : "./local/local.css",
entity_encoding : "raw",
theme_advanced_buttons1 : "bold,justifyleft,justifycenter,justifyright,bullist,numlist,separator,undo,redo,separator,link,unlink,separator,formatselect{{$js_edit_button}}",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
//theme_advanced_resizing : true,
theme_advanced_source_editor_width : "370",
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],span[class|align|style]"
});
</script>
<dl class="formdata">
<dt>
<label for="f_title">{{$l_core_label_title}}</label>
<input class="title" type="text" name="f_title" value="{{$l_title}}"/>
</dt>
<dt>
<label for="f_subtitle">{{$l_core_label_subtitle}}</label>
<input class="subtitle" type="text" name="f_subtitle" value="{{$l_subtitle}}"/>
</dt>
<dt>
<label for="f_content">{{$l_core_label_text}}</label>
<textarea name="f_content" cols="42" rows="15">{{$l_content}}</textarea>
</dt>
</dl>
<div class="button">
<a href="#"
onclick="document.main.action='{{$href_save_edit}}';
document.main.f_action.value='{{$action_save_edit}}';
document.main.submit(); return false;">
<img src="./bilder/speichern1.gif"/>
{{$l_core_button_save}}
</a>
</div>
<br/>
</div>
<div class="clear"></div>
<div class="article-edit">
<div class="imagedata">
<h2>{{$l_core_message_picture_edit}}</h2>
<h3 id="image_action_label">{{$l_core_label_image_action}}</h3>
<div id="picture_edit_mode" style="display:{{$tpl_view_picture_change}}">
<input id="image_id" type="hidden" name="f_image_id" value="{{$tpl_image_start_id}}"/>
<label for="f_image_destination">{{$l_core_label_image_selection}}</label>
<select id="image_destination" name="f_image_destination">
<option id="opt1" value="{{$tpl_option_start_value}}" selected="selected" >
{{$l_core_label_image_option}}
</option>
</select>
<div id="image-preview">
<p>
{{if $image_article_short}}
<img id="thumb_short" src="{{$image_article_short}}" alt="Image"/>
{{else}}
<img id="thumb_short" src="./local/bilder/no_image.jpg" alt="No Image" />
{{/if}}
{{$l_core_description_image_size_list}}
</p>
<p>
{{if $image_article_normal}}
<img id="thumb_big" src="{{$image_article_normal}}" alt="Image" />
{{else}}
<img id="thumb_big" src="./local/bilder/no_image.jpg" alt="No Image" />
{{/if}}
{{$l_core_description_image_size_zoom}}
</p>
</div>
<div class="clear"> </div>
</div>
<label for="f_image_file">{{$l_core_label_image_upload}} </label>
<input type="file" name="f_image_file" value=""/>
<label for="image_text">{{$l_core_label_image_caption}}</label>
<textarea id="image_text" name="f_image_text">{{$l_image_start_text}}</textarea>
<div class="button">
<a href="#"
onclick="document.main.action='{{$href_save_edit}}';
document.main.f_action.value='{{$action_save_edit}}';
document.main.submit(); return false;">
<img src="./bilder/speichern1.gif"/>
{{$l_core_button_save}}
</a>
<a href="#" id="button_new_image" style="display:{{$tpl_view_picture_change}}"
onclick="make_new_picture_mode(); return false;">
<img src="./bilder/new_img.gif"/>
{{$l_core_button_add_image}}
</a>
</div>
<div id="image-preview-museen">
<h2>{{$l_core_message_picture_preview}}</h2>
{{foreach key=i_pic_nr item=a_picdata from=$image_list}}
<div class="imagebox-preview">
<img src="{{$a_picdata[file_short]}}" alt="Image" onclick="make_edit_picture_mode({{$i_pic_nr}}, '{{$a_picdata[file]}}', '{{$a_picdata[file_short]}}', '{{$a_picdata[edit_text]}}');"/>
</div>
{{/foreach}}
<div class="clear"> </div>
</div><!--#####ende image-preview-all#####-->
</div><!--#####endeimagedata#####-->
</div><!--#####article-edit#####-->
<div class="clear"></div>
<div class="button">
<a href="#"
onclick="document.main.action='{{$href_save}}';
document.main.f_action.value='save_article';
document.main.submit(); return false;">
<img src="./bilder/speichern1.gif"/>
{{$l_core_but_prev}}
</a>
<a href="#"
onclick="document.main.action='{{$href_save_publish}}';
document.main.f_action.value='publish_article';
document.main.submit(); return false;">
<img src="./bilder/www.gif"/>
{{$l_core_button_publish}}
</a>
<a href="{{$href_article_del}}"
onclick=" if (confirm('Soll der Artikel: {{$l_title}} - wirklich gelöscht werden?')){
return true;
}
else{
return false;
}">
<img src="./bilder/delete.gif"/>{{$l_core_button_delete}}</a>
</div>
<div class="clear"> </div>
<div class="article-preview">
<a name="article_preview"></a>
<a class="right" href="#article_edit">
<img src="./bilder/hoch.gif"/>
{{$l_core_button_work_on}}</a>
<h2>{{$l_core_message_article_preview}}</h2>
</div>
<script language="javascript" type="text/javascript">
// <![CDATA[
function make_edit_picture_mode() {
/* variable Parameter der Funktion */
$('image_action_label').innerHTML = '{{$l_core_label_image_action_change}}';
$('image_id').value=arguments[0];
$('thumb_short').src=arguments[2];
$('thumb_big').src=arguments[1];
$('image_text').innerHTML = arguments[3];
if (!$('opt2')) {
Element.remove('opt1');
new Insertion.Top('image_destination',
'<option id="opt1" value="all" selected="selected" >{{$l_core_select_image_size_all}}</option><option id="opt2" value="short">{{$l_core_select_image_size_list}}</option><option id="opt3" value="normal">{{$l_core_select_image_size_zoom}}</option>');
}
if (Element.getStyle('picture_edit_mode', 'display')=='none') {
Effect.BlindDown('picture_edit_mode');
/*Element.toggle('picture_edit_mode');
*/
Element.toggle('button_new_image');
}
}
function make_new_picture_mode() {
$('image_action_label').innerHTML = '{{$l_core_label_image_action_new}}';
$('image_id').value= -1;
$('image_text').innerHTML = '';
if ($('opt2')) {
Element.remove('opt1');
Element.remove('opt2');
Element.remove('opt3');
new Insertion.Top('image_destination',
'<option id="opt1" value="new" selected="selected" >{{$l_core_label_image_action_new}}</option>');
}
if (Element.getStyle('picture_edit_mode', 'display')=='block') {
Element.toggle('picture_edit_mode');
Element.toggle('button_new_image');
}
}
// ]]>
</script>
<!--#####ende template-article-edit#####-->