HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/8.2.20
System: Linux 825a8fd6cf8c 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User: apache (48)
PHP: 8.2.20
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/themes/frameMyrskyNew/首页快速下单.php
<script>
$(function(){
		$("#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 = "请输入正确的尺寸 !";//"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>";
	}
}
?>

		<span style="letter-spacing: 7px;font-size: 16px;line-height: 19px;color: #0D2A58;">即时</span>
		<span style="letter-spacing: 7px;font-size: 16px;line-height: 19px;color: #7F7F7F;">报价!</span>
	<hr />
<table class="quickQuote_table">
	<tr>
	<td>
	</td>
	<td>
	</td>
	<td colspan="2">
	<label id="tip1" class='smallblacktitle'></label>
	</td>
	</tr>
	<tr>
	<td>
	 <span class='h2like'>数量:</span> 
	</td>
	<td>
	<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>
	</td>
	<td>
	</td>
	<td >
	<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' />
	</td>
	</tr>
	<tr>
	<td>
	<span
		class='h2like'>单位:</span>
	</td>
	<td>
	<select id='qty_unit'><option
			value='Piece'>片</option>
		<option value='Panel'>拼</option>
	</select> 
	</td>
	</tr>
	<tr>
	<td>
	<span class='h2like'>长:</span>
	</td>
	<td>
	<input
		onkeyup="document.getElementById('tip1').innerHTML='';" value="cm" style="color:#C1C1C1"
		id='quick_sizex' type='text' class='qsftxt' onfocus="if(this.value=='cm'){this.value='';this.style.color=''}"  onblur="if(this.value==''){this.value='cm';this.style.color='#C1C1C1'}"/>
	</td>
	</td>
	<td>
	<span class='h2like'>宽:</span>
	</td>
	<td>
	<input
		onkeyup="document.getElementById('tip1').innerHTML='';" value="cm" style="color:#C1C1C1"
		id='quick_sizey' type='text' class='qsftxt' onfocus="if(this.value=='cm'){this.value='';this.style.color=''}"  onblur="if(this.value==''){this.value='cm';this.style.color='#C1C1C1'}"/>
	</td>
	</tr>
	<tr>
	<td>
	<span class='h2like'>层数:</span> 
	</td>
	<td>
	<select
		id='quick_layer' name='quick_layer'>
		<? echo $lay_options ?>
	</select>
	</td>
	<td>
	</td>
	<td>
	</td>
	</tr>
	<tr>
	<td colspan ="4">
	<div class="quickQuote_btn" id='quick_apply'><label>立即报价</label></div>
	</td>
	</tr>
	</table>

</div>