</table>
        </div>
<!-- info -->

<!-- картинка -->
        <div id="image">
          <table border="0">

           <tr>
            <td class="main" width="200" valign="top"><?php 
echo TEXT_EDIT_CATEGORIES_IMAGE;
?>
</td>
            <td class="top"><?php 
echo vam_draw_file_field('categories_image') . '<br />' . vam_draw_separator('pixel_trans.gif', '24', '15') . vam_draw_hidden_field('categories_previous_image', $cInfo->categories_image);
?>
            <?php 
if ($cInfo->categories_image) {
    ?>
            <br><img src="<?php 
    echo DIR_WS_CATALOG . 'images/categories/' . $cInfo->categories_image;
    ?>
">
            <br><?php 
    echo '&nbsp;' . $cInfo->categories_image;
    echo vam_draw_selection_field('del_cat_pic', 'checkbox', 'yes') . TEXT_DELETE;
}
?>
            </td>
          </tr>
     }
     $contents[] = array('text' => '<br />' . TEXT_INFO_SHIPPING_STATUS_IMAGE . '<br />' . vam_draw_file_field('shipping_status_image'));
     $contents[] = array('text' => '<br />' . TEXT_INFO_SHIPPING_STATUS_NAME . $shipping_status_inputs_string);
     $contents[] = array('text' => '<br />' . vam_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
     $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_INSERT . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . BUTTON_INSERT . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_SHIPPING_STATUS, 'page=' . $_GET['page']) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_SHIPPING_STATUS . '</b>');
     $contents = array('form' => vam_draw_form('status', FILENAME_SHIPPING_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->shipping_status_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $shipping_status_inputs_string = '';
     $languages = vam_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $shipping_status_inputs_string .= '<br />' . $languages[$i]['name'] . ':&nbsp;' . vam_draw_input_field('shipping_status_name[' . $languages[$i]['id'] . ']', vam_get_shipping_status_name($oInfo->shipping_status_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_INFO_SHIPPING_STATUS_IMAGE . '<br />' . vam_draw_file_field('shipping_status_image', $oInfo->shipping_status_image));
     $contents[] = array('text' => '<br />' . TEXT_INFO_SHIPPING_STATUS_NAME . $shipping_status_inputs_string);
     if (DEFAULT_SHIPPING_STATUS_ID != $oInfo->shipping_status_id) {
         $contents[] = array('text' => '<br />' . vam_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
     }
     $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_UPDATE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . BUTTON_INSERT . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_SHIPPING_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->shipping_status_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_SHIPPING_STATUS . '</b>');
     $contents = array('form' => vam_draw_form('status', FILENAME_SHIPPING_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->shipping_status_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br /><b>' . $oInfo->shipping_status_name . '</b>');
     if ($remove_status) {
         $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_DELETE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . '&nbsp;' . BUTTON_DELETE . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_SHIPPING_STATUS, 'page=' . $_GET['page'] . '&oID=' . $oInfo->shipping_status_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
     }
     break;
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main" valign="top"><?php 
    echo TEXT_BANNERS_IMAGE;
    ?>
</td>
            <td class="main"><?php 
    echo vam_draw_file_field('banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br />' . DIR_FS_CATALOG_IMAGES . 'banner/' . vam_draw_input_field('banners_image_local', $bInfo->banners_image);
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_BANNERS_IMAGE_TARGET;
    ?>
</td>
            <td class="main"><?php 
<!-- body_text //-->
    <td class="boxCenter" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td class="main">
        
    <h1 class="contentBoxHeading"><?php 
echo HEADING_TITLE;
?>
</h1>
            
        <table border="0" width="100%" cellspacing="0" cellpadding="0">
         
          <tr>
        <td class="main">
          <?php 
echo vam_draw_form('xml_import', FILENAME_YML_IMPORT, '', 'post', 'enctype="multipart/form-data"') . "\n" . vam_draw_file_field('xml_file') . "\n";
?>
          <input type="hidden" name="action" value="import">
          <br>
          <?php 
echo TEXT_YML_MAX_SIZE;
?>
 <b><?php 
echo ini_get('upload_max_filesize');
?>
</b><br />
          <span class="button"><button type="submit" value="<?php 
echo TEXT_YML_IMPORT;
?>
"><?php 
echo vam_image(DIR_WS_IMAGES . 'icons/buttons/import.png', '', '12', '12');
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_BASE . '<br />' . ENTRY_CUSTOMERS_STATUS_BASE . '<br />' . vam_draw_pull_down_menu('customers_base_status', vam_get_customers_statuses()));
     $contents[] = array('text' => '<br />' . vam_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
     $contents[] = array('align' => 'center', 'text' => '<br /><span class="button"><button type="submit" value="' . BUTTON_INSERT . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . BUTTON_INSERT . '</button></span> <a class="button" href="' . vam_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page']) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CUSTOMERS_STATUS . '</b>');
     $contents = array('form' => vam_draw_form('status', FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $customers_status_inputs_string = '';
     $languages = vam_get_languages();
     for ($i = 0; $i < sizeof($languages); $i++) {
         $customers_status_inputs_string .= '<br />' . vam_image(DIR_WS_CATALOG . 'lang/' . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . vam_draw_input_field('customers_status_name[' . $languages[$i]['id'] . ']', vam_get_customers_status_name($cInfo->customers_status_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_NAME . $customers_status_inputs_string);
     $contents[] = array('text' => '<br />' . vam_image(DIR_WS_ICONS . $cInfo->customers_status_image, $cInfo->customers_status_name) . '<br />' . DIR_WS_ICONS . '<br /><b>' . $cInfo->customers_status_image . '</b>');
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_IMAGE . '<br />' . vam_draw_file_field('customers_status_image', $cInfo->customers_status_image));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_PUBLIC_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_PUBLIC . ' ' . vam_draw_pull_down_menu('customers_status_public', $customers_status_public_array, $cInfo->customers_status_public));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_MIN_ORDER_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_MIN_ORDER . ' ' . vam_draw_input_field('customers_status_min_order', $cInfo->customers_status_min_order));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_MAX_ORDER_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_MAX_ORDER . ' ' . vam_draw_input_field('customers_status_max_order', $cInfo->customers_status_max_order));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE . ' ' . vam_draw_pull_down_menu('customers_status_show_price', $customers_status_show_price_array, $cInfo->customers_status_show_price));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_SHOW_PRICE_TAX_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_SHOW_PRICE_TAX . ' ' . vam_draw_pull_down_menu('customers_status_show_price_tax', $customers_status_show_price_tax_array, $cInfo->customers_status_show_price_tax));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_ADD_TAX_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_ADD_TAX . ' ' . vam_draw_pull_down_menu('customers_status_add_tax_ot', $customers_status_add_tax_ot_array, $cInfo->customers_status_add_tax_ot));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE_INTRO . '<br />' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . ' ' . vam_draw_input_field('customers_status_discount', $cInfo->customers_status_discount));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES . ' ' . vam_draw_pull_down_menu('customers_status_discount_attributes', $customers_status_discount_attributes_array, $cInfo->customers_status_discount_attributes));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_OT_XMEMBER_INTRO . '<br /> ' . ENTRY_OT_XMEMBER . ' ' . vam_draw_pull_down_menu('customers_status_ot_discount_flag', $customers_status_ot_discount_flag_array, $cInfo->customers_status_ot_discount_flag) . '<br />' . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . ' ' . vam_draw_input_field('customers_status_ot_discount', $cInfo->customers_status_ot_discount));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_GRADUATED_PRICES_INTRO . '<br />' . ENTRY_GRADUATED_PRICES . ' ' . vam_draw_pull_down_menu('customers_status_graduated_prices', $customers_status_graduated_prices_array, $cInfo->customers_status_graduated_prices));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_PAYMENT_UNALLOWED_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_PAYMENT_UNALLOWED . ' ' . vam_draw_input_field('customers_status_payment_unallowed', $cInfo->customers_status_payment_unallowed));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_SHIPPING_UNALLOWED_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_SHIPPING_UNALLOWED . ' ' . vam_draw_input_field('customers_status_shipping_unallowed', $cInfo->customers_status_shipping_unallowed));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_FSK18_INTRO . '<br />' . ENTRY_CUSTOMERS_FSK18 . ' ' . vam_draw_pull_down_menu('customers_fsk18', $customers_fsk18_array, $cInfo->customers_fsk18));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_FSK18_DISPLAY_INTRO . '<br />' . ENTRY_CUSTOMERS_FSK18_DISPLAY . ' ' . vam_draw_pull_down_menu('customers_fsk18_display', $customers_fsk18_display_array, $cInfo->customers_fsk18_display));
     $contents[] = array('text' => '<br />' . TEXT_INFO_CUSTOMERS_STATUS_WRITE_REVIEWS_INTRO . '<br />' . ENTRY_CUSTOMERS_STATUS_WRITE_REVIEWS . ' ' . vam_draw_pull_down_menu('customers_status_write_reviews', $customers_status_write_reviews_array, $cInfo->customers_status_write_reviews));
    //	echo '<br /><br />' . TEXT_PRODUCTS_IMAGE_GET_FILE . '<br />' . vam_draw_pull_down_menu('get_file_image_0',$file_list,$pInfo->products_image);
    // EOF Add existing image
    if ($pInfo->products_image != '') {
        echo '</tr><tr><td align="center" class="main" valign="middle">' . vam_draw_selection_field('del_pic', 'checkbox', $pInfo->products_image) . ' ' . TEXT_DELETE . '</td></tr></table>';
    } else {
        echo '</td></tr>';
    }
    // display MO PICS
    if (MO_PICS > 0) {
        $mo_images = vam_get_products_mo_images($pInfo->products_id);
        for ($i = 0; $i < MO_PICS; $i++) {
            echo '<tr><td colspan="4">' . vam_draw_separator('pixel_black.gif', '100%', '1') . '</td></tr>';
            echo '<tr><td colspan="4">' . vam_draw_separator('pixel_trans.gif', '1', '10') . '</td></tr>';
            if ($mo_images[$i]["image_name"]) {
                echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="' . (PRODUCT_IMAGE_THUMBNAIL_WIDTH + 15) . '">' . vam_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES . $mo_images[$i]["image_name"], TEXT_STANDART_IMAGE . ' ' . ($i + 1)) . '</td>';
            } else {
                echo '<tr>';
            }
            echo '<td class="main">' . TEXT_PRODUCTS_IMAGE . ' ' . ($i + 1) . '<br />' . vam_draw_file_field('mo_pics_' . $i) . '<br />' . vam_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . $mo_images[$i]["image_name"] . vam_draw_hidden_field('products_previous_image_' . ($i + 1), $mo_images[$i]["image_name"]);
            // BOF Add existing image
            echo '<br />' . TEXT_PRODUCTS_IMAGE_UPLOAD_DIRECTORY . '<br />' . vam_draw_pull_down_menu('mo_pics_upload_dir_image_' . $i, $dir_list, dirname($mo_images[$i]["image_name"]) . '/');
            //echo '<br /><br />' . TEXT_PRODUCTS_IMAGE_GET_FILE . '<br />' . vam_draw_pull_down_menu('mo_pics_get_file_image_'.$i,$file_list,$mo_images[$i]["image_name"]);
            // EOF Add existing image
            if (isset($mo_images[$i]["image_name"])) {
                echo '</tr><tr><td align="center" class="main" valign="middle">' . vam_draw_selection_field('del_mo_pic[]', 'checkbox', $mo_images[$i]["image_name"]) . ' ' . TEXT_DELETE . '</td></tr></table>';
            } else {
                echo '</td></tr>';
            }
        }
    }
}
     $values_entry_query = vam_db_query($values_entry_query_raw);
     $values_entry_data = vam_db_fetch_array($values_entry_query);
     $entry_type = 'text';
     if ($values_entry_data['enter_values'] == 'image' || $values_entry_data['enter_values'] == 'multiimage') {
         $entry_type = 'image';
     }
     $value_inputs_string = '';
     $languages = vam_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $specification_value_query_raw = "select svd.specification_value\n                                            from " . TABLE_SPECIFICATIONS_VALUES . " sv,\n                                                 " . TABLE_SPECIFICATIONS_VALUES_DESCRIPTION . " svd\n                                            where svd.specification_values_id = sv.specification_values_id\n                                              and svd.language_id = '" . $languages[$i]['id'] . "'\n                                              and sv.specification_values_id = '" . $vInfo->specification_values_id . "'\n                                            limit 1";
         // print $specifications_query_raw . "<br />\n";
         $specification_value_query = vam_db_query($specification_value_query_raw);
         $specification_value_data = vam_db_fetch_array($specification_value_query);
         $specification_value = $specification_value_data['specification_value'];
         if ($entry_type == 'image') {
             $value_inputs_string .= '<br />' . $languages[$i]['name'] . ':&nbsp;' . vam_draw_file_field('specification_value' . $languages[$i]['id']);
         } else {
             $value_inputs_string .= '<br />' . $languages[$i]['name'] . ':&nbsp;' . vam_draw_input_field('specification_value[' . $languages[$i]['id'] . ']', $specification_value);
         }
     }
     $contents[] = array('text' => '<br />' . TEXT_EDIT_VALUE . $value_inputs_string . vam_draw_hidden_field('entry_type', $entry_type));
     $contents[] = array('text' => '<br />' . TEXT_VALUE_SORT_ORDER . '<br />' . vam_draw_input_field('value_sort_order', $vInfo->value_sort_order, 'size="5"'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . '<span class="button"><button type="submit" value="' . IMAGE_SAVE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . IMAGE_SAVE . '</button></span>' . ' <a class="button" href="' . vam_href_link(FILENAME_PRODUCTS_SPECIFICATIONS, 'sgpath=' . $specs_group_path . '&spath=' . $specs_path . '&value=1&vid=' . $vInfo->specification_values_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . IMAGE_CANCEL . '</span></a>');
     break;
 case 'delete_value':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_VALUE . '</b>');
     $contents = array('form' => vam_draw_form('delete_value', FILENAME_PRODUCTS_SPECIFICATIONS, 'action=delete_value_confirm&sgpath=' . $specs_group_path . '&spath=' . $specs_path . '&value=1'));
     $contents[] = array('text' => TEXT_DELETE_VALUE_INTRO . vam_draw_hidden_field('specification_values_id', $vInfo->specification_values_id) . vam_draw_hidden_field('specifications_id', $vInfo->specifications_id));
     $contents[] = array('text' => '<br /><b>' . $vInfo->value . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br />' . '<span class="button"><button type="submit" value="' . IMAGE_DELETE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/delete.png', '', '12', '12') . '&nbsp;' . IMAGE_DELETE . '</button></span>' . ' <a class="button" href="' . vam_href_link(FILENAME_PRODUCTS_SPECIFICATIONS, 'sgpath=' . $specs_group_path . '&spath=' . $specs_path . '&value=1&vid=' . $vInfo->specification_values_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . IMAGE_CANCEL . '</span></a>');
     break;
     }
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_META_KEYWORDS . $manufacturer_inputs_string);
     $manufacturer_inputs_string = '';
     $languages = vam_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br>' . $languages[$i]['name'] . ':&nbsp;' . vam_draw_input_field('manufacturers_meta_description[' . $languages[$i]['id'] . ']', vam_get_manufacturers_meta_description($mInfo->manufacturers_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_META_DESCRIPTION . $manufacturer_inputs_string);
     // EOF manufacturers meta tags
     $manufacturer_inputs_string = '';
     $languages = vam_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_desc_string .= '<br>' . $languages[$i]['name'] . ':&nbsp;' . vam_draw_textarea_field('manufacturers_description[' . $languages[$i]['id'] . ']', 'soft', '30', '5', vam_get_manufacturers_description($mInfo->manufacturers_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_DESCRIPTION . $manufacturer_desc_string);
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_IMAGE . '<br />' . vam_draw_file_field('manufacturers_image') . '<br />' . $mInfo->manufacturers_image);
     $manufacturer_inputs_string = '';
     $languages = vam_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br />' . $languages[$i]['name'] . '&nbsp;' . vam_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', vam_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br />' . '<span class="button"><button type="submit" value="' . BUTTON_SAVE . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/save.png', '', '12', '12') . '&nbsp;' . BUTTON_SAVE . '</button></span>' . '&nbsp;' . '<a class="button" href="' . vam_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '"><span>' . vam_image(DIR_WS_IMAGES . 'icons/buttons/cancel.png', '', '12', '12') . '&nbsp;' . BUTTON_CANCEL . '</span></a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>');
     $contents = array('form' => vam_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br /><b>' . $mInfo->manufacturers_name . '</b>');
     $contents[] = array('text' => '<br />' . vam_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
     if ($mInfo->products_count > 0) {
echo TEXT_IMPORT;
?>
      <table width="100%"  border="0" cellspacing="2" cellpadding="0">
        <tr>
          <td width="7%"></td>
          <td width="93%" class="infoBoxHeading"><?php 
echo UPLOAD;
?>
</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>
<?php 
echo vam_draw_form('upload', FILENAME_CSV_BACKEND, 'action=upload', 'POST', 'enctype="multipart/form-data"');
echo vam_draw_file_field('file_upload');
echo '<br/><span class="button"><button type="submit" value="' . BUTTON_UPLOAD . '">' . vam_image(DIR_WS_IMAGES . 'icons/buttons/submit.png', '', '12', '12') . '&nbsp;' . BUTTON_UPLOAD . '</button></span>';
?>
</form>
          </td>
        </tr>
        <tr>
          <td></td>
          <td class="infoBoxHeading"><?php 
echo SELECT;
?>
</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>
              <tr>
                <td class="main" valign="top"><?php echo TEXT_BANNERS_GROUP; ?></td>
                <td class="main"><?php echo vam_draw_pull_down_menu('affiliate_banners_group', $groups_array, $abInfo->affiliate_banners_group) . TEXT_BANNERS_NEW_GROUP . '<br>' . vam_draw_input_field('new_affiliate_banners_group', '', '', ((sizeof($groups_array) > 0) ? false : true)); ?></td>
              </tr>
              <tr>
                <td colspan="2"><?php echo vam_draw_separator('pixel_trans.gif', '1', '10'); ?></td>
              </tr>
    */
    ?>
          <tr>
            <td class="main" valign="top"><?php 
    echo TEXT_BANNERS_IMAGE;
    ?>
</td>
            <td class="main"><?php 
    echo vam_draw_file_field('affiliate_banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br>' . DIR_FS_CATALOG_IMAGES . vam_draw_input_field('affiliate_banners_image_local', $abInfo->affiliate_banners_image);
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '10');
    ?>
            echo '<br />' . TEXT_CHOOSE_FILE_SERVER_PRODUCTS . '</br>';
            echo vam_draw_pull_down_menu('select_file', $files, $default_value);
            if ($content['content_file'] != '') {
                echo TEXT_CURRENT_FILE . ' <b>' . $content['content_file'] . '</b><br />';
            }
            ?>
      </td>
      </td>
   </tr> 
      <tr> 
      <td width="10%" valign="top"><?php 
            echo TEXT_UPLOAD_FILE;
            ?>
</td>
      <td width="90%"><?php 
            echo vam_draw_file_field('file_upload') . ' ' . TEXT_UPLOAD_FILE_LOCAL;
            ?>
</td>
   </tr> 
 <?php 
            if ($content['content_file'] != '') {
                ?>
    <tr> 
      <td width="10%"><?php 
                echo TEXT_FILENAME;
                ?>
</td>
      <td width="90%" valign="top"><?php 
                echo vam_draw_hidden_field('file_name', $content['content_file']) . vam_image(DIR_WS_CATALOG . 'admin/images/icons/icon_' . str_replace('.', '', strstr($content['content_file'], '.')) . '.gif') . $content['content_file'];
                ?>
</td>