<?php
if ($prop->getIsList() && count($prop->getProductPropList()) > 0) { ?>
    <?php
    $strValue = $value->getTranslation()->ru->value;
    $list = $prop->getProductPropList();
    ?>
    <select name="<?php echo $baseFieldName . '[' . $prop['id'] . ']'; ?>">
        <?php $selected = ($strValue == 0) ? ' selected="selected"' : '' ?>
        <option value="0" <?php echo $selected; ?>>—</option>

        <?php foreach ($list as $list_elem) { ?>
            <?php $selected = ($strValue == $list_elem->getId()) ? ' selected="selected"' : '' ?>
            <option value="<?php echo $list_elem->getId() ?>" <?php echo $selected ?>>
                <?php echo $list_elem->getTranslation()->ru->variant; ?>
            </option>
        <?php } ?>
    </select>
<?php } else { ?>
    <table cellpadding="0" cellspacing="0" width="100" class="noStyleTable">
        <tr>
            <td>РУ</td>
            <td>
                <?php
                echo '<input size="8" maxlength="8" name="' . $baseFieldName . '[' . $prop["id"] . '][ru]" value="' . $value->getTranslation()->ru->value . '"  type="text"><i class="br5"></i>';
                ?>
            </td>
        </tr>
        <tr>
            <td>EN</td>
            <td>
                <?php
                echo '<input size="8" maxlength="8" name="' . $baseFieldName . '[' . $prop["id"] . '][en]" value="' . $value->getTranslation()->en->value . '"  type="text"><i class="br5"></i>';
                ?>
            </td>
        </tr>
    </table>
<?php } ?>
