<?php
// 创建一个cURL资源
$ch = curl_init(); // 设置URL和相应的选项
curl_setopt($ch, CURLOPT_URL, 'http://avnetexpress.avnet.com/store/em/EMController?langId=-1&storeId=500201&catalogId=500201&term=39000038&x=0&y=0&searchType=&advAction=&N=0&Ne=100000&action=products'); // 需要获取的URL地址,也可以在 curl_init()函数中设置
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // 将 curl_exec()获取的信息以文件流的形式返回,而不是直接输出
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); // 在发起连接前等待的时间,如果设置为0,则无限等待// 抓取URL并把它传递给浏览器
$html_code = curl_exec($ch); // 执行一个cURL会话// 关闭cURL资源,并且释放系统资源
curl_close($ch);// 输出
echo $html_code;
?>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=8" >
<title>39000038 Parts - Avnet Express</title>
<meta name="description" content="Order39000038 parts online at Avnet Express. Same Day Ship, 4.5M+ parts online, View Manufacturer Info, free datasheet download" />
<meta name="keywords" content=", , 39000038, , order parts, manufacturer datasheet, avnet electronics eting" />
<meta name="robots" content="noarchive" />
<link rel="stylesheet" type="text/css" href="/wcsstore/emstore/css/eStore.css" /> <style>
td#DRCtext table li{width:380px;white-space:normal;vertical-align:top;}
td#DRCtext table{width:400px;border-width:0px;}
</style> <script language="JavaScript">
// marcel 11/04/08
function displayHelpWindow(helpText)
{
var helpWindow = window.open("","help","scrollbars=yes,resizable=yes,width=400,height=400,top=1,left=1");
helpWindow.document.open();
helpWindow.document.write("<html><head><title>What's this?</title></head><body style=\"padding:0px;margin:2px;width:100%\">");
helpWindow.document.write("<div style=\"height:100%;background-color:#f0f0f0;color:#000000;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:11px;margin:0px;padding:8px;border:1px solid #D9D9D9;\">");
if (helpText == "availability") {
helpWindow.document.write("<p><b>Availability</b></p>");
helpWindow.document.write("<p><b>(n) Stock</b> - The quantity (n) of stock listed is immediately available for shipment.</p>");
helpWindow.document.write("<p><b>No Stock</b> - There is currently no stock available for immediate shipment. Items ordered which have no stock available will be placed in a backorder status.</p>");
helpWindow.document.write("<p><b>Stock on Order</b> - Incoming quantity and expected availability dates of product that is on order for Avnet.</p>");
helpWindow.document.write("<p><b>Factory Lead Time</b> - The estimated lead time, required by the manufacturer, to fulfill orders to Avnet. Factory Lead Time does not include shipping and receiving time.</p>");
helpWindow.document.write("<p><b>Bond</b> - The quantity of stock in customer's bond at Avnet's warehouse.</p>");
helpWindow.document.write("<p><b>In-plant Store</b> - The quantity of stock in bond at the Customer's In-plant Store.</p>");
} else if (helpText == "type") {
helpWindow.document.write("<p><b>Type</b></p>");
helpWindow.document.write("<p>Alternate parts are provided for your reference. Avnet classifies these alternates as a guideline only. Please check the Supplier's datasheet for exact specifications.</p>");
helpWindow.document.write("<b>Equivalent</b> - An equivalent is a part that is a direct replacement in pinout and parametrics.</p>");
helpWindow.document.write("<p><b>Upgrade</b> - An upgrade is a part that is a direct replacement in pinout, some parametric values may be better.</p>");
helpWindow.document.write("<p><b>Downgrade</b> - A downgrade is a part that is a direct replacement in pinout, some parametric values may be less.</p>");
} else if (helpText == "buy") {
helpWindow.document.write("<p><b>Buy Qty & Min/Mult</b></p>");
helpWindow.document.write("<p><b>Min</b> - The minimum quantity required to purchase the part.</p>");
helpWindow.document.write("<p><b>Mult</b> - The incremental quantities required for purchase greater than the minimum.</p>");
helpWindow.document.write("<p><b>Special Qty Offer</b> - The part can be purchased in a smaller min/mult quantity up to a maximum of the n Stock quantity listed. Purchase quantities greater than the n Stock quantity must be purchased in the standard min/mult quantity.</p>");
} else if (helpText == "reqDeliveryQty") {
helpWindow.document.write("<p><b>Requested Quantity</b> Enter the amount of each scheduled shipment.</p>");
} else if (helpText == "reqDeliveryDate") {
helpWindow.document.write("<p><b>Requested Delivery Date</b> Enter the date you want to receive the requested quantity.</p>");
} else if (helpText == "unitPrice") {
helpWindow.document.write("<p><b>Estimated Shipment</b> Estimated shipment dates are based on today?s view of product availability. In the event there are changes to product availability and/or pricing that may affect your scheduled order</p>");
} else if (helpText == "needHelp") {
helpWindow.document.write("<p>Scheduled Orders: A scheduled order is an order that is scheduled in advance or that contains multiple delivery dates over a period of time. It is normally used when there is a recurring need for the part. To assist you when creating scheduled orders</p>");
} else {
helpWindow.document.write(helpText);
}
helpWindow.document.write("</div></body></html>");
helpWindow.document.close();
helpWindow.focus();
}
function isValidBuyQuantity(buyqty, min, mult)
{
.......