{TEMPLATE ext_article
    (ITEM[item_status, item_title, item_descr, item_descr_full, link_url, link_target, link_jumps_to, link_jumps_from, item_rating_moder, item_image_mime])
}
    {INCLUDE top}
    {INCLUDE menu}

<table id="ext_article"><tr>
<td class="left">
    <div class="descr">
    {IF $CNCAT[item][item_status] == 1}
        <h3>{cn_str($CNCAT[item][item_title])}</h3>
        {cn_str($CNCAT[item][item_descr_full])}
    {ELSE}
        {$CNCAT[lang][article_not_approved]}
    {ENDIF}
    {IF $CNCAT[item][_control_bar]}
    <div class="control">
        <a href="{$CNCAT[abs]}{$CNCAT[system][dir_admin]}index.php?act=links&mode=delete&id={$CNCAT[item][item_id]}">{$CNCAT[lang][do_delete]}</a>&nbsp;&bull;&nbsp;
        {IF $CNCAT[item][item_status] == 1}
            <a href="{$CNCAT[abs]}{$CNCAT[system][dir_admin]}index.php?act=links&mode=asnew&id={$CNCAT[item][item_id]}">{$CNCAT[lang][do_asnew]}</a>&nbsp;&bull;&nbsp;
        {ELSE}
            <a href="{$CNCAT[abs]}{$CNCAT[system][dir_admin]}index.php?act=links&mode=approve&id={$CNCAT[item][item_id]}">{$CNCAT[lang][do_approve]}</a>&nbsp;&bull;&nbsp;
        {ENDIF}
        <a href="{$CNCAT[abs]}{$CNCAT[system][dir_admin]}index.php?act=articles_add&mode=forms&edit=1&id={$CNCAT[item][item_id]}">{$CNCAT[lang][do_edit]}</a>&nbsp;&bull;&nbsp;
        <a href="{$CNCAT[abs]}{$CNCAT[system][dir_admin]}index.php?act=check&mode=checkone&id={$CNCAT[item][item_id]}">{$CNCAT[lang][do_check]}</a>&nbsp;&bull;&nbsp;
        {DISPLAY ADMIN_RATING}
    </div>
    {ENDIF}
    </div>
</td>
{IF $CNCAT[item][item_status] == 1}
<td class="right">
    <table class="pagetitle">
        <tr><td class="title">
            Информация
        </td><td class="clear"></td></tr>
    </table>
    <table class="info">
        <tr><td class="text" colspan="2"></td></tr>
        {IF $CNCAT[item][link_url]}
        <tr><td class="name" colspan="2">{$CNCAT[lang][link_url_article]}:</td></tr>
        <tr><td class="text" colspan="2">
            {IF $CNCAT[item][link_target] == 1}
                <a target="_blank" href="{cn_str($CNCAT[item][link_url])}">{cn_str($CNCAT[item][link_url])}</a>
            {ENDIF}
            {IF $CNCAT[item][link_target] == 2}
                <a target="_blank" href="{$CNCAT[abs]}cncat_jump.php?{$CNCAT[item][item_id]}">{cn_str($CNCAT[item][link_url])}</a>
            {ENDIF}
            {IF $CNCAT[item][link_target] == 3}
                <a target="_blank" href="{cn_str($CNCAT[item][link_url])}" onclick="location.href='{$CNCAT[abs]}cncat_jump.php?{$CNCAT[item][item_id]}'; return false;">{cn_str($CNCAT[item][link_url])}</a>
            {ENDIF}
        </td></tr>
        {ENDIF}
        <tr><td class="name">{$CNCAT[lang][categories]}:</td><td class="text"></td></tr>
        <tr><td class="text" colspan="2">
                {DISPLAY CATEGORIES}
        </td></tr>
        </tr>
        {DISPLAY FILTERS}
        <tr>
            <td class="name">{$CNCAT[lang][moder_rating]}:</td>
            <td class="text">
                {IF $CNCAT[item][item_rating_moder]}
                    {cn_str($CNCAT[item][item_rating_moder])}
                {ELSE}
                    {$CNCAT[lang][no_moder_rating]}
                {ENDIF}
            </td>
        </tr>
        <tr><td class="name">{$CNCAT[lang][jumps_to]}:</td><td class="text">{cn_str($CNCAT[item][link_jumps_to])}</td></tr>
        <tr><td class="name">{$CNCAT[lang][jumps_from]}:</td><td class="text">{cn_str($CNCAT[item][link_jumps_from])}</td></tr>
        <tr><td colspan="2">&nbsp;</td></tr>
    </table>
</td>
{ENDIF}
</tr></table>

    {INCLUDE bottom}
{/TEMPLATE}

{TEMPLATE ext_cats_top}
<ul>
{/TEMPLATE}
{TEMPLATE ext_cat
    (CAT[title_full])
}<li><a href="{cn_str($CNCAT[cat][_url])}">{cn_str($CNCAT[cat][title_full])}</a></li>{/TEMPLATE}
{TEMPLATE ext_cat_delim}{/TEMPLATE}
{TEMPLATE ext_cats_bottom}
</ul>
{/TEMPLATE}

{TEMPLATE ext_filter_top}
        <tr><td class="name">{cn_str($CNCAT[filter][title])}:</td><td class="text">
{/TEMPLATE}
{TEMPLATE ext_filtval}{cn_str($CNCAT[filtval][title])}{/TEMPLATE}
{TEMPLATE ext_filtval_delim}, {/TEMPLATE}
{TEMPLATE ext_filter_bottom}
        </td></tr>
{/TEMPLATE}
