{#EDITDOC_INSERT_H#}
{#EDITDOC_INSERT#}
{if $template != true} {/if}
{if $smarty.request.id != ''} {include file="$codemirror_connect"}
{if $smarty.request.id != ''}{#EDITDOC_EDIT_H#}{else}{#EDITDOC_INSERT_H#}{/if}
{#EDITDOC_NAME#}
{#EDITDOC_RUBRICS#}
{#EDITDOC_USE_CODE#}
{#EDITDOC_USE_REVISIONS#}
{#EDITDOC_HEADER_FORM#}
{#EDITDOC_HEADER_PHP#}
[header:XXX] |  [body:XXX] |  [title:XXX] |  [type:XXX] |
OL |  UL |  LI |  P |  B |  I |  H1 |  H2 |  H3 |  H4 |  H5 |  DIV |  A |  IMG |  SPAN |  PRE |  BR |  TAB |
{#EDITDOC_HEADER_HEAD#}
{foreach from=$data.header key=k item=v} {/foreach}
  {#EDITDOC_HEADER_CORE#} {#EDITDOC_HEADER_INSTR#}
$data['header']['{$k}']
{include file="$codemirror_editor" ctrls='$("#save_editdoc").ajaxSubmit(sett_options);' conn_id="document_header_$k" textarea_id="document_header_$k" height=100}
{include file="$codemirror_editor" ctrls='$("#save_editdoc").ajaxSubmit(sett_options);' conn_id="document_template_$k" textarea_id="document_template_$k" height=100}
{#EDITDOC_HEADER_BODY#}
{foreach from=$data.body key=k item=v} {/foreach}
  {#EDITDOC_HEADER_CORE#} {#EDITDOC_HEADER_INSTR#}
{$v[0]}
$data['body']['{$k}']
{include file="$codemirror_editor" ctrls='$("#save_editdoc").ajaxSubmit(sett_options);' conn_id="document_body_$k" textarea_id="document_body_$k" height=120}
{include file="$codemirror_editor" ctrls='$("#save_editdoc").ajaxSubmit(sett_options);' conn_id="document_body_template_$k" textarea_id="document_body_template_$k" height=120}
{#EDITDOC_HEADER_BEFORE#}
{#EDITDOC_HEADER_PHP#}
OL |  UL |  LI |  P |  B |  I |  H1 |  H2 |  H3 |  H4 |  H5 |  DIV |  A |  IMG |  SPAN |  PRE |  BR |  TAB |
{#EDITDOC_HEADER_AFTER#}
{#EDITDOC_HEADER_PHP#}
OL |  UL |  LI |  P |  B |  I |  H1 |  H2 |  H3 |  H4 |  H5 |  DIV |  A |  IMG |  SPAN |  PRE |  BR |  TAB |
 
{include file="$codemirror_editor" conn_id="" textarea_id='editdoc_template' ctrls='$("#save_editdoc").ajaxSubmit(sett_options);' height=420} {include file="$codemirror_editor" conn_id="2" textarea_id='editdoc_before_edit' ctrls='$("#save_editdoc").ajaxSubmit(sett_options);' height=440} {include file="$codemirror_editor" conn_id="3" textarea_id='editdoc_after_edit' ctrls='$("#save_editdoc").ajaxSubmit(sett_options);' height=440} {else}
{if $smarty.request.id != ''}{#EDITDOC_EDIT_H#}{else}{#EDITDOC_INSERT_H#}{/if}
{#EDITDOC_NAME#}
{#EDITDOC_RUBRICS#}
{/if}