\n"; echo get_module_title($mod_strings['LBL_MODULE_ID'], $mod_strings['LBL_MODULE_TITLE'], true); echo "\n

\n"; $r=$GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("select id,name,purchase_price from ecmproducts where id='".$_REQUEST['product_id']."'")); $product_name=$r['name']; $product_id=$r['id']; $purchase_price=$r['purchase_price']; $r=$GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("select name,exchange_rate_id from ecmpricekopias where id='".$_COOKIE['pricebook_id']."'")); $name=$r['name']; $exchange_rate_id=$r['exchange_rate_id']; $r=$GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("select value from ecmproductexchangerates where id='".$exchange_rate_id."'")); $er_value=$r['value']; $result = $GLOBALS['db']->query("select * from ecmpricekopias_customview where id='".$_REQUEST['customview_id']."'"); $row=$GLOBALS['db']->fetchByAssoc($result); $t=array(" ",$mod_strings['LBL_PRODUCT_NAME'],$mod_strings['LBL_PRICEBOOK_NAME'],$mod_strings['LBL_PURCHASE_PRICE'],$mod_strings['LBL_LIST_PRICE'], " "); $sorder=$_REQUEST['sorder']; print ''; print '
'; print ''; print ''; print ''; print ''; print ''; print ''; print ''; print '

'; print ''; for($i=0;$i'.$t[$i].''; } print ''; $result = $GLOBALS['db']->query("select name,id from ecmpricekopias where deleted='0'"); $i=0; while($row=$GLOBALS['db']->fetchByAssoc($result)) { print ''; print ''; print ''; print ''; print ''; print ''; $r=$GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("select price from ecmpricekopias_ecmproducts where ecmproduct_id='".$_REQUEST['product_id']."' and ecmpricekopia_id='".$row['id']."'")); $price=$r['price']; print ''; print ''; print ''; $i++; } print '
'.$product_name.''.$row['name'].''.number_format($purchase_price,2,",",".").''.number_format($price,2,",",".").'
'; print '
'; print '
'; ?>