<?php
/*
 * @author     M2E Pro Developers Team
 * @copyright  M2E LTD
 * @license    Commercial use is forbidden
 */

// @codingStandardsIgnoreFile

/** @var $this Ess_M2ePro_Block_Adminhtml_Ebay_Template_Category_Chooser_Edit */

$selectedCategory = $this->getSelectedCategory();

?>

<style>
    #selected_category_container {
        height: 40px;
        border: 1px solid black;
        background-color: #ffffff;
        margin-bottom: 10px;
        margin-top: 15px;
    }

    #chooser_browser {
        white-space: nowrap;
        overflow: hidden;
        overflow-x: auto;
        border: 1px solid #000000;
        height: 162px;
        padding: 10px;
    }

    #chooser_tabs_container {
        height: 250px;
    }

    #chooser_search_results {
        height: 193px;
        overflow: auto;
        margin-top: 16px;
        border: 1px solid #000000;
        padding: 0 5px 5px 5px;
    }

    #chooser_search_input_container {
        height: 23px;
        padding-left: 10px;
    }

    #chooser_search_input_container > button {
        height: 22px;
    }

    #query {
        width: 500px;
        height: 20px;
        border: 1px black solid;
        border-radius: 3px;
        margin-right: 15px;
        padding-left: 3px;
    }

    #chooser_recent {
        height: 230px;
        border: 1px solid #000000;
        padding: 0 7px 7px 7px;
        overflow: auto;
    }

    #chooser_attributes {
        border: 1px solid black;
        height: 175px;
        padding: 0 7px 7px 7px;
        overflow: auto;
    }

    #chooser_buttons_container {
        position: absolute;
        bottom: 0;
        right: 0;
        padding: 10px 24px;
    }
</style>

<div id="selected_category_container">
    <table width="100%" style="margin-top: -2px">
        <tr>
            <td height="40px" valign="middle" style="vertical-align: middle; padding-left: 15px">
                <strong id="category_title_container">
                    <?php echo $this->getCategoryTitle(); ?>:
                </strong>

                <span id="selected_category_path" style="margin-left: 10px; margin-right: 10px;">
                    <?php echo $this->getSelectedCategoryPathHtml(); ?>
                </span>

                <a href="javascript:void(0)" id="category_reset_link" <?php if (empty($selectedCategory)): ?>style="display: none;"<?php endif; ?> onclick="EbayTemplateCategoryChooserObj.unSelectCategory()"><?php echo Mage::helper('M2ePro')->__('Reset') ?></a>
            </td>
        </tr>
    </table>
</div>

<input type="hidden" id="category_type" value="<?php echo $this->getCategoryType(); ?>">
<input type="hidden" id="category_validation" value="" class="required-entry">