function getDisplay($pid, $spid, $amvd_provision_rate, $row_class = 'o')
{
    global $class_jc;
    $result = '';
    $obj_product = new Product($pid);
    $have_amvd_catalog = $obj_product->isAddedToSalesPartner($spid);
    $is_active = $obj_product->isActiveInSalesPartner($spid);
    $products_image = $obj_product->displayImage(IMAGE_SIZE_THUMBNAIL_1, IMAGE_SIZE_THUMBNAIL_1);
    $info = '<div style="margin-bottom:20px;">' . $obj_product->displayIDAndCode() . '</div>';
    $info .= '<div class="w150" style="margin:0 auto;">' . $obj_product->displayRecentSoldTable() . '</div>';
    $navids = array('0' => 'Please select a navigation...');
    $navids_opts = retrieveNavIDs($spid, 'bn');
    foreach ($navids_opts as $n_id => $n_name) {
        //if doesn't work in dev environment, it could be caused by umlauts
        //in the navigation name. Can be fixed by adding htmlspecialchars or
        //but we don't need it for live (sahat- 16.09.2014)
        $navids[$n_id] = $n_name;
    }
    $navid = $have_amvd_catalog ? $obj_product->getSalesPartnerMainNavigationID($spid) : null;
    $navigation = '<select class="navigation input">' . loadComboListFromArray($navids, null, $navid, false) . '</select>';
    $result .= '<tr id="' . $pid . '" class="' . $row_class . '">';
    $result .= '<td class="img">' . $products_image . '</td>';
    $result .= '<td class="name">' . $info . '</td>';
    $result .= '<td class="pb">' . $navigation . '</td>';
    $btn_update_text = $is_active ? 'Update' : 'Activate';
    $btn_add = '<input type="button" style="width:90px;" class="add button blue" value="Add" title="Add this product to AM.VD Catalogue"/>';
    $btn_update = '<input type="button" style="width:90px;" class="update button blue" value="' . $btn_update_text . '" title="Update and activate this product on AM.VD Catalogue"/>';
    $btn_ignore = '<input type="button" style="width:90px;" class="ignore button" value="Ignore" title="Ignore from list"/>';
    $btn_deactivate = '<input type="button" style="width:90px;" class="deactivate button blue" value="Deactivate" title="Deactivate or remove from AM.VD catalog"/>';
    $i_hidden = '<input type="hidden" name="jcid" value="' . $obj_product->getSalesPartnerCatalogID($spid) . '"/>';
    if ($have_amvd_catalog) {
        $btn = $i_hidden . $btn_update . '<br/>' . $btn_deactivate;
    } else {
        $btn = $btn_add . '<br/>' . $btn_ignore;
    }
    $result .= '<td class="act">' . $btn;
    $result .= '<input type="hidden" class="pid" value="' . $pid . '"/>';
    $result .= '</td>';
    $result .= '</tr>';
    return $result;
}