{if $smarty.request.action=='edit'}
{#DOC_EDIT_DOCUMENT#} ID: {$smarty.request.Id}
{foreach from=$smarty.session.accept_langs key=lang_id item=lang} {if $document->lang_pack[$lang_id]>''}
{else}
{/if} {/foreach}
{elseif $smarty.request.action=='copy'}
{#DOC_COPY_DOCUMENT#}
{else}
{#DOC_ADD_DOCUMENT#}
{foreach from=$smarty.session.accept_langs key=lang_id item=lang} {if $document->lang_pack[$lang_id]>''}
{else}
{/if} {/foreach}
{/if}
{#MAIN_PAGE#}
{#DOC_SUB_TITLE#}
{if $smarty.request.action=='edit'}
{#DOC_EDIT_DOCUMENT#}
{if check_permission('rubric_edit')}
{#DOC_IN_RUBRIK#}
>
{$document->rubric_title|escape}
{else}
{#DOC_IN_RUBRIK#}
> {$document->rubric_title|escape}
{/if}
{if $document->document_title != ""}{$document->document_title}{else}{#DOC_SHOW3_TITLE#}{/if}
{else}
{#DOC_ADD_DOCUMENT#}
{#DOC_IN_RUBRIK#}
> {$document->rubric_title|escape}
{if $smarty.request.document_title != ""}{$smarty.request.document_title}{else}{#DOC_IN_NEW#}{/if}
{/if}
{if ($smarty.request.Id == 1 || $smarty.request.Id == $PAGE_NOT_FOUND_ID) && $smarty.request.action != 'new' && $smarty.request.action != 'copy'} {assign var=dis value = 'disabled'} {/if}
{#DOC_TABS_META#}
{#DOC_TABS_URL#}
{#DOC_TABS_DATE#}
{#DOC_TABS_OTHER#}
{#DOC_NAME#}
[?]
{#DOC_META_KEYWORDS#}
[?]
{$document->document_meta_keywords|escape|stripslashes}
{#DOC_META_DESCRIPTION#}
[?]
{$document->document_meta_description|escape|stripslashes}
{#DOC_INDEX_TYPE#}
document_meta_robots=='index,follow'} selected="selected"{/if}>{#DOC_INDEX_FOLLOW#}
document_meta_robots=='index,nofollow'} selected="selected"{/if}>{#DOC_INDEX_NOFOLLOW#}
document_meta_robots=='noindex,nofollow'} selected="selected"{/if}>{#DOC_NOINDEX_NOFOLLOW#}
{#DOC_SITEMAP_FREQ#}
[?]
document_sitemap_freq=='0'} selected="selected"{/if}>{#DOC_SITEMAP_ALWAYS#}
document_sitemap_freq=='1'} selected="selected"{/if}>{#DOC_SITEMAP_HOURLY#}
document_sitemap_freq=='2'} selected="selected"{/if}>{#DOC_SITEMAP_DAILY#}
document_sitemap_freq=='3' || $document->document_sitemap_freq == ''} selected="selected"{/if}>{#DOC_SITEMAP_WEEKLY#}
document_sitemap_freq=='4'} selected="selected"{/if}>{#DOC_SITEMAP_MONTHLY#}
document_sitemap_freq=='5'} selected="selected"{/if}>{#DOC_SITEMAP_YEARLY#}
document_sitemap_freq=='6'} selected="selected"{/if}>{#DOC_SITEMAP_NEVER#}
{#DOC_SITEMAP_PRIORITY#}
[?]
document_sitemap_pr=='0'} selected="selected"{/if}>0 {#DOC_SITEMAP_PRIORITY_LOW#}
document_sitemap_pr=='0.1'} selected="selected"{/if}>0.1
document_sitemap_pr=='0.2'} selected="selected"{/if}>0.2
document_sitemap_pr=='0.3'} selected="selected"{/if}>0.3
document_sitemap_pr=='0.4'} selected="selected"{/if}>0.4
document_sitemap_pr=='0.5' || $document->document_sitemap_pr==''} selected="selected"{/if}>0.5 {#DOC_SITEMAP_PRIORITY_MID#}
document_sitemap_pr=='0.6'} selected="selected"{/if}>0.6
document_sitemap_pr=='0.7'} selected="selected"{/if}>0.7
document_sitemap_pr=='0.8'} selected="selected"{/if}>0.8
document_sitemap_pr=='0.9'} selected="selected"{/if}>0.9
document_sitemap_pr=='1'} selected="selected"{/if}>1 {#DOC_SITEMAP_PRIORITY_HIG#}
{#DOC_CHOOSE_LANG#}
{foreach from=$smarty.session.accept_langs key=lang_id item=lang} {if ($smarty.request.lang == $lang_id)}
{$lang}
{elseif ($document->document_lang == $lang_id)}
{$lang}
{elseif (!$smarty.request.lang AND !$document->document_lang AND $document->document_lang == '' AND $smarty.const.DEFAULT_LANGUAGE == $lang_id)}
{$lang}
{else}
{$lang}
{/if} {/foreach}
{#DOC_URL#}
[?]
{if $smarty.request.Id != 1 && $smarty.request.Id != $PAGE_NOT_FOUND_ID}
{/if} {if $smarty.request.Id && $smarty.request.Id != $PAGE_NOT_FOUND_ID}
История
{/if}
{#DOC_URL_LOG#}
[?]
document_alias_history=='0'} selected="selected"{/if}>{#DOC_URL_LOG_RUBRIC#}
document_alias_history=='1'} selected="selected"{/if}>{#DOC_URL_LOG_USE#}
document_alias_history=='2'} selected="selected"{/if}>{#DOC_URL_LOG_NOTUSE#}
{if $document_alias}
{#DOC_URL_LINK#}
[?]
{foreach from=$document_alias key=k item=v}
{$k}:
{#DOC_LINK_CHOOSE#}
{section name=nov loop=$v}
{if $v[nov].document_breadcrum_title}{$v[nov].document_breadcrum_title}{else}{$v[nov].document_title}{/if}
{/section}
{/foreach}
{/if}
{#DOC_START_PUBLICATION#}
{#DOC_END_PUBLICATION#}
{#DOC_RUBRIC_TMPLS#}
[?]
{#DOC_TEMPLATE_DEFAULT#}
{foreach from=$rubric_tmpls item=tmpl}
rubric_tmpl_id == $tmpl->id}selected="selected"{/if}>{$tmpl->title}
{/foreach}
{#DOC_CAN_SEARCH#}
document_in_search==1 || $smarty.request.action=='new'}checked{/if} />
{#DOC_STATUS#}
{if $smarty.request.action == 'new'} {if $document->dontChangeStatus==1} {assign var=sel_1 value=''} {assign var=sel_2 value='selected="selected"'} {else} {assign var=sel_1 value='selected="selected"'} {assign var=sel_2 value=''} {/if} {else} {if $document->document_status==1} {assign var=sel_1 value='selected="selected"'} {assign var=sel_2 value=''} {else} {assign var=sel_1 value=''} {assign var=sel_2 value='selected="selected"'} {/if} {/if}
dontChangeStatus==1} disabled="disabled"{/if}>
{#DOC_STATUS_ACTIVE#}
{#DOC_STATUS_INACTIVE#}
{#DOC_USE_NAVIGATION#}
[?]
{include file='navigation/tree.tpl'}
{#DOC_BREADCRUMB_TITLE#}
{#DOC_USE_BREADCRUMB#}
{#DOC_BREADCRUMB_BTN#}
{if $document->parent}{#DOC_BREADCRUMB_WITH#} «
{$document->parent->document_title|stripslashes}
»{/if}
{#DOC_USE_LANG_PACK#}
{#DOC_SHOW_LANG#}
{#DOC_PROPERTY#}
{#DOC_MAIN_CONTENT#}
{if $document->fields} {foreach from=$document->fields item=document_field_group} {if $document->count_groups > 1}
{if $document_field_group.group_title}{$document_field_group.group_title}{else}{#DOC_FIELD_G_UNKNOW#}{/if}
{/if} {foreach from=$document_field_group.fields item=field}
{$field.Id}
{$field.rubric_field_title|escape}
{if $field.rubric_field_description}
{$field.rubric_field_description}
{/if}
{$field.result}
{/foreach} {/foreach} {else}
{#DOC_MAIN_NOCONTENT#}
{/if}
{if $smarty.request.action == 'edit'}
{elseif $smarty.request.action == 'copy'}
{else}
{/if}
{#DOC_REVISSION#}
{if $document->canDelRev == 1}
{else}
{/if}
{#DOC_REVISSION_DATA#}
{#DOC_REVISSION_USER#}
{#DOC_ACTIONS#}
{if $document_rev} {foreach from=$document_rev item=doc_rev}
{$doc_rev->doc_revision|date_format:$TIME_FORMAT|pretty_date}
{$doc_rev->user_id}
{if $document->canDelRev == 1}
{/if}
{/foreach} {else}
{#DOC_REVISSION_NO_ITEMS#}
{/if}