echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="' . (PRODUCT_IMAGE_THUMBNAIL_WIDTH + 15) . '">' . olc_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES . $pInfo->products_image, 'Standard Image') . '</td>';
    }
    $products_previous_image = 'products_previous_image_';
    echo '<td class="main">' . TEXT_PRODUCTS_IMAGE . HTML_BR . olc_draw_file_field('products_image') . HTML_BR . olc_draw_separator('pixel_trans.gif', '24', '15') . HTML_NBSP . $pInfo->products_image . olc_draw_hidden_field($products_previous_image . '0', $pInfo->products_image);
    if ($pInfo->products_image) {
        echo '</td></tr></table>';
    } else {
        echo '</td></tr>';
    }
    // display MO PICS
    if (MO_PICS > 0) {
        $mo_images = olc_get_products_mo_images($pInfo->products_id);
        for ($i = 0; $i < MO_PICS; $i++) {
            echo '<tr><td colspan="4">' . olc_draw_separator('pixel_black.gif', '100%', '1') . '</td></tr>';
            echo '<tr><td colspan="4">' . olc_draw_separator('pixel_trans.gif', '1', '10') . '</td></tr>';
            $image_name = $mo_images[$i]["image_name"];
            $i1 = $i + 1;
            if ($image_name) {
                echo '<tr><td colspan="4"><table><tr><td align="center" class="main" width="' . (PRODUCT_IMAGE_THUMBNAIL_WIDTH + 15) . '">' . olc_image(DIR_WS_CATALOG_THUMBNAIL_IMAGES . $image_name, 'Image ' . $i1) . '</td>';
            } else {
                echo '<tr>';
            }
            echo '<td class="main">' . TEXT_PRODUCTS_IMAGE . BLANK . $i1 . HTML_BR . olc_draw_file_field('mo_pics_' . $i) . HTML_BR . olc_draw_separator('pixel_trans.gif', '24', '15') . HTML_NBSP . $image_name . olc_draw_hidden_field($products_previous_image . $i1, $image_name);
            if ($image_name) {
                echo '</tr><tr><td align="center" valign="middle">' . olc_draw_selection_field('del_mo_pic[]', 'checkbox', $image_name) . BLANK . TEXT_DELETE . '</td></tr></table>';
            } else {
                echo '</td></tr>';
            }
        }
    }
}
    $products_vpe = $pInfo->products_vpe;
    $products_vpe = $products_vpe == EMPTY_STRING ? DEFAULT_PRODUCTS_VPE_ID : $products_vpe;
    $products_vpe_pulldown = olc_draw_pull_down_menu('products_vpe', $vpe_array, $products_vpe);
    $products_min_order_vpe = $pInfo->products_min_order_vpe;
    $products_min_order_vpe = $products_min_order_vpe == EMPTY_STRING ? $products_vpe : $products_min_order_vpe;
    $products_min_order_vpe_pulldown = olc_draw_pull_down_menu('products_min_order_vpe', $vpe_array, $products_min_order_vpe);
    $have_vpe = '
		      <tr>
		        <td class="main">' . TEXT_PRODUCTS_VPE_VISIBLE . HTML_NBSP . olc_draw_selection_field('products_vpe_status', 'checkbox', '1', $pInfo->products_vpe_status == 1 ? true : false) . '
		        </td>
		        <td class="main">' . TEXT_PRODUCTS_VPE_VALUE . HTML_NBSP . olc_draw_input_field('products_vpe_value', $pInfo->products_vpe_value, 'size="10"') . HTML_NBSP . TEXT_PRODUCTS_VPE . HTML_NBSP . $products_vpe_pulldown . '
		        </td>
		      </tr>
		      <!-- W. Kaiser - Baseprice-->
		      <tr>
		        <td class="main">' . TEXT_PRODUCTS_BASEPRICE_SHOW . HTML_NBSP . olc_draw_selection_field('products_baseprice_show', 'checkbox', '1', $pInfo->products_baseprice_show == 1 ? true : false) . '
		        </td>
		        <td class="main">' . TEXT_PRODUCTS_BASEPRICE_VALUE . HTML_NBSP . olc_draw_input_field('products_baseprice_value', $pInfo->products_baseprice_value, 'size="10"') . '
		        </td>
		      </tr>
		      <!-- W. Kaiser - Baseprice-->
		      <!-- W. Kaiser - Minimum order-->
		      <tr>
		        <td class="main">' . TEXT_PRODUCTS_MINORDER_QTY . HTML_NBSP . '</td>
		        <td class="main">' . olc_draw_input_field('products_min_order_quantity', $pInfo->products_min_order_quantity, 'size="5"') . HTML_NBSP . TEXT_PRODUCTS_MINORDER_VPE . HTML_NBSP . $products_min_order_vpe_pulldown . '
		        </td>
		      </tr>
		      <!-- W. Kaiser - Minimum order-->
		      <!-- W. Kaiser - UVP-->
		      <tr>
		        <td class="main">' . TEXT_PRODUCTS_UVP . HTML_NBSP . '</td>
function olc_draw_radio_field($name, $value = '', $checked = false, $parameters = '')
{
    return olc_draw_selection_field($name, 'radio', $value, $checked, $parameters);
}
function olc_draw_checkbox_field($name, $value = '', $checked = false, $parameters = '')
{
    return olc_draw_selection_field($name, 'checkbox', $value, $checked, $parameters);
}
  </tr>
</table>

<?php 
// ---------------------------------------------------------------------------- // INFOS HOLEN
$languages = olc_get_languages();
$lang_anz = sizeof($languages);
for ($i = 0; $i < $lang_anz; $i++) {
    $promotion_query = olc_db_query("SELECT\n        products_promotion_title,\n        products_promotion_image,\n        products_promotion_desc\n      FROM " . TABLE_PRODUCTS_DESCRIPTION . "\n      WHERE products_id = '" . (int) $_GET['pID'] . "'\n      AND language_id = '" . $languages[$i]['id'] . "'");
    $promotion = olc_db_fetch_array($promotion_query);
    //echo '<pre>'; print_r($promotion); echo '</pre>';
    $title .= olc_image(DIR_WS_ADMIN . 'images/icons/' . $languages[$i]['code'] . '_icon.gif', 'Language') . '<input type="text" name="products_promotion_title[' . $languages[$i]['id'] . ']" size="75" value="' . $promotion['products_promotion_title'] . '"><br />';
    // grafik vorhanden
    if ($promotion['products_promotion_image'] != '') {
        $image .= olc_image(DIR_WS_CATALOG_IMAGES . 'products_promotion/' . $promotion['products_promotion_image'], 'Image') . "\n" . olc_draw_hidden_field('products_promotion_image' . $i, $promotion['products_promotion_image']) . '<br>';
        $image .= olc_draw_selection_field('del_products_promotion_image' . $i, 'checkbox', 'products_promotion_image' . $i) . ' ' . PP_TEXT_DELETE . '<br /><br />';
    }
    $image .= olc_image(DIR_WS_ADMIN . 'images/icons/' . $languages[$i]['code'] . '_icon.gif', 'Language') . olc_draw_file_field('products_promotion_image' . $i) . '&nbsp;<br />';
    $description .= olc_image(DIR_WS_ADMIN . 'images/icons/' . $languages[$i]['code'] . '_icon.gif', 'Language') . '<textarea id="products_promotion_desc[' . $languages[$i]['id'] . ']" name="products_promotion_desc[' . $languages[$i]['id'] . ']" cols="100" rows="15" style="width:99%;">' . $promotion['products_promotion_desc'] . '</textarea><br />';
}
// ---------------------------------------------------------------------------- // INFOS HOLEN eof
?>
<table cellpadding="2" cellspacing="1" border="0" style="padding-top: 5px;">
  <tr>
    <td class="pp_title"><?php 
echo PP_TEXT_TITLE;
?>
</td>
  </tr>
  <tr>
    <td class="pp_main"><?php