query("update ecmdevices_customview set name='".$_REQUEST['name']."',columns='".$columns."',titles='".$titles."',orders='".$orders."' where id='".$_REQUEST['record']."'"); else $db->query("insert into ecmdevices_customview values('".create_guid()."','".$_REQUEST['name']."','".$columns."','".$titles."','".$orders."')"); header("Location: index.php?module=EcmDevices&action=DetailView&record=".$_SESSION['pricebook_id']."&tab=items"); ?>