File: /var/www/html/wp-content/themes/frameMyrskyNew/首页快速下单.html
<script src="/wp-content/themes/frameMyrsky/js/jquery1.7.2.min.js"></script>
<script>
$(function(){
	$("#quickQuote p").each(function(i){if($(this).html()=='')$(this).remove();});
	$("#quick_apply").click(function(){
		if($("#quick_sizex").val()=='')
		{
			$("#tip1").html('ע��:������ȫ���ߴ磡');
			$("#quick_sizex").focus();
			exit;
		}
		if($("#quick_sizey").val()=='')
		{
			$("#tip1").html('ע��:������ȫ���ߴ磡');
			$("#quick_sizey").focus();
			exit;
		}
		var url='/��·���µ�/��·�屨��-2/?q_qty_other='+$("#quick_qty_other").val()+'&q_qty='+$("#quick_qty").val()+'&q_sizey='+$("#quick_sizey").val()+'&q_sizex='+$("#quick_sizex").val()+'&q_layer='+$("#quick_layer").val()+'&q_unit=cm&quick_quote=1&qty_unit='+$("#qty_unit").val();
		window.location.href=url;	
	})	
})
</script>
<div id='quickQuote' >
<?php
	//include  'pager_helper.php';
    include  'clientConfig.php';
	$className="ErpGetOffer";
	
	
	$ws = "$location/material_manage/{$className}.wsdl";
	$c_arr = array('location'=>$location.$path.$file."?className={$className}",'uri'=>$uri);//?className={$className}
	$client = new SoapClient($ws,$c_arr);
	$rs = $client->__soapCall("getSuggestQty", array('fab'));
	
	$qty_list_info = unserialize($rs);
	if($qty_list_info["code"] == '200'){		
		$qty_list = $qty_list_info['data'];
		$limit =  intval($qty_list_info['cond']['v_lq']);
		$layer_list = $qty_list_info['cond']['v_layer'];
	}
	else{
		$qty_list = array();
		$layer_list = array();
	}
	foreach($qty_list as $qty){
		$qty_options .=  "<option value='$qty'>$qty</option>";
	}
	$qty_options .=  "<option value='other'>���</option>";	
	//$limit_msg = "less or equal $limit ,we only allow the select list qtys !";
	$limit = $limit + 1;
	$limit_msg = "�����С��$limit,��ѡ������б����ṩ�����";//"Quantity Need Larger Than $limit. Please chose the list quantities if less than $limit .";
	$none_msg = "��������� !";//"Please enter the qty which your select other !";
	$dimension_msg = "������ȫ���ߴ� !";//"Please enter the whole Dimensions !";
	$int_qty_msg = "�������ȷ����� ��";//"Plsease enter a positive integer for qty !"; 
	$int_dm_msg = "�������ȷ�ijߴ� ��";//"Plsease enter a positive float for dimensions !"; 
	
	foreach($layer_list as $layer=>$layshow){
		if($layer == '2'){
			$selected = 'selected';
		}
		else{
			$selected = '';
		}
		if($layer){
			$lay_options .= "<option $selected value='$layer'>$layshow</option>";
		}
	}
?>
<p><span class='bigblacktitle' >PCB����</span> ��ʱ����!</p>
<hr>
  <span class='h2like'>���: </span>
<select id='quick_qty' onchange="if(document.getElementById('quick_qty').value=='other'){document.getElementById('quick_qty_other').style.display = '';}else{document.getElementById('tip1').innerHTML='';document.getElementById('quick_qty_other').value='';document.getElementById('quick_qty_other').style.display = 'none'}">
	<? echo $qty_options ?>
</select>
<input id='quick_qty_other'  onclick="var oTip = document.getElementById('tip1');if (this.value==''){oTip.innerHTML ='ע��:'+this.title ;}else{oTip.innerHTML = '';}" onkeyup="var oTip = document.getElementById('tip1');if (this.value==''){oTip.innerHTML ='ע��:'+this.title ;}else{oTip.innerHTML = '';}" type ='text' title='��С <? echo $limit ?>' class='qsftxt' style='display:none' />
<br><label id="tip1" class='smallblacktitle'></label>
<br>
  <span class='h2like'>�����λ</span> <select id='qty_unit'><option value='Piece'>Ƭ</option><option value='Panel'>ƴ</option></select>
<br>
  <span class='h2like'>��: </span>  <input onkeyup="document.getElementById('tip1').innerHTML='';" id='quick_sizex' type ='text' class='qsftxt'/> ����<br>
  <span class='h2like'>��: </span>  <input onkeyup="document.getElementById('tip1').innerHTML='';" id='quick_sizey' type ='text' class='qsftxt'/> ����<br>
  <span class='h2like'>���: </span>
	<select  id='quick_layer' name='quick_layer'>
	<? echo $lay_options ?>
	</select><br>
<image style='margin-top:15px;' id='quick_apply' alt="PCB����" title="PCB����"  src="/wp-content/themes/frameMyrsky/images/quote_now.gif" />
</div>