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
<style type="text/css">
.Pagination {margin:10px 0 0;padding:2px 0;text-align:left; height:20px; line-height:20px; font-family:Arial, Helvetica, sans-serif,"����";}    

.Pagination .dot{ border:medium none; padding:4px 8px}    

.Pagination a:link, .Pagination a:visited {border:1px solid #dedede;color:#696969;text-decoration:none;}    

.Pagination a:hover, .Pagination a:active, .Pagination a.current:link, .Pagination a.current:visited {border:1px solid #dedede;color:#fff; background-color:gray; background-image:none; border:#ff6600 solid 1px;}    

.Pagination .selectBar{ border:#dedede solid 1px; font-size:12px; width:95px; height:21px; line-height:21px; margin-left:5px; display:inline}    

.Pagination a.tips{_padding:4px 7px 1px;}  
.prolist{
margin: 0px 10px 10px;
}

.prolist div a{
color: #777777;
display: block;
text-decoration:none;
margin:2px;
line-height:20px;
}
.prolist div a:hover{
color: #336699;
text-decoration:none;
}
.show{
	cursor:pointer;
}
.t_detail {
	width:100%;
	text-aligh:center;
}
.detail {
	display:block;
	border:1px solid #e8e9e4;
}
</style>
<?php 
$type = $_GET["type"];
if($type) {
  ?> 
  <script type="text/javascript" src="<?php bloginfo('stylesheet_directory');?>/js/jquery-1.4.2.min.js"></script>
<?php 
}
?>
<script>
$(function() {
	$(".show").toggle(function() {
		var show_id = $(this).attr("show_id");
		if($(this).text() == '������ϸ') {
			$("#"+show_id).slideUp("slow");
			$(this).text('չ����ϸ');
		}
	},function() {
		var show_id = $(this).attr("show_id");	
		if($(this).text() == 'չ����ϸ') {
			$(this).text('������ϸ');
			$("#"+show_id).slideDown("slow");			
		}	
	});
});
</script>
<div style="width:100%;height:auto;padding-top:10px;border:1px solid #e8e9e4;">
<div class="prolist">
<?php
     include_once 'pager_helper.php';
     include_once 'clientConfig.php';
     $page = $_GET["page"]?$_GET["page"]:1;
$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("getPanelOffer", array('fab'));

     $pro_info_all = unserialize($rs);

     $code = $pro_info_all["code"];
     if($code == 200) {
        $data1 = $pro_info_all['data'];
        $currency_unit = $data1['currency_unit'];
        $panel_list_all = $data1['panel_list'];
		$rowcount = count($panel_list_all);
		//echo $rowcount = $client->__soapCall("getPanelTotal", array());
        $myPage=new Pager($rowcount,$page,5);
		$start = $myPage->getStart();
		$rs1 = $client->__soapCall("getPanelOffer", array('fab',"","",$start,"5"));
		$pro_info = unserialize($rs1);
		$data = $pro_info["data"];
		$panel_list = $data["panel_list"];
        $pageStr= $myPage->GetPagerContent();
		$arr_1 = array("%","(",")");
		$arr_2 = array("PPP","LL","RR");
        if($type=='all') {
			$show_bottom = "style='display:none'";
			$i = 1;
			foreach((array)$panel_list as $panel_info) {
				 $url = $panel_info[url];
				 $offer_id = $url[args][mrp_promotion_id];
				 $desc = $panel_info[desc][zh];
				 $desc = base64_decode($desc);
				 $qty = $panel_info[qty];
				 $desc = iconv("gb2312","utf-8",$desc);
				 $desc1 = str_replace($arr_1,$arr_2,$desc);
				 $page_url = $url[page];
				 $panel_board_id = $panel_info[panel_board_id];
				 $page_url = base64_encode($page_url);
				 $end = $panel_info[offer_info][time_end];
				 $efficacious_time = $panel_info[efficacious_time];
				 if(strtotime($efficacious_time) > strtotime($end)) {
					$efficacious_time = $end;
				 }
				 $expected_time = substr($panel_info[expected_time],0,10);
				 $material = base64_decode($panel_info[material]);
				 $material = iconv("gb2312","utf-8",$material);
				 $lpi_color = base64_decode($panel_info[lpi_color]);
				 $lpi_color = iconv("gb2312","utf-8",$lpi_color);
				 $silkscreen_color = base64_decode($panel_info[silkscreen_color]);
				 $silkscreen_color = iconv("gb2312","utf-8",$silkscreen_color);
				 $finished = base64_decode($panel_info[finished]);
				 $finished = iconv("gb2312","utf-8",$finished);
				if(time() > strtotime($end) || time() > strtotime($efficacious_time)) {
					$buy_str = "�ѹ���";
				} else {
					$buy_str = "<a href='/�����ؼ�?mrp_promotion_id=$offer_id&page_url=$page_url&desc='>��������>></a>";
				}
				if($qty == 0) {
					$buy_str = "������";
				}
				 echo "<div>{$i}��".$desc."(�Żݺ�<strong>{$panel_board_id}</strong>)"."&nbsp;&nbsp;&nbsp;&nbsp;<br><span class='show' show_id='detail_$i'>������ϸ</span>
				 <div id='detail_$i' class='detail'>
				 <table class='t_detail'>
				 <tr><td>�ߴ�</td><td>{$panel_info[size_x]}*{$panel_info[size_y]}{$panel_info[size_unit]}</td></tr>
				<tr><td>���</td><td>{$panel_info[qty]}</td></tr>
				<tr><td>���</td><td>{$material}</td></tr>
				<tr><td>���</td><td>{$panel_info[layer]}</td></tr>
				<tr><td>���(mm)</td><td>{$panel_info[thickness]}mm</td></tr>
				<tr><td>���ͭ��</td><td>{$panel_info[cop_weight]}{$panel_info[cop_weight_unit]}</td></tr>
				<tr><td>����</td><td>{$finished}</td></tr>
				<tr><td>�躸��ɫ</td><td>{$lpi_color}</td></tr>
				<tr><td>�ַ���ɫ</td><td>{$silkscreen_color}</td></tr>
				<tr><td>����</td><td>{$expected_time}</td></tr>	
				<tr><td>���״̬</td><td>{$buy_str}</td></tr>				
				 </table>
				
				 </div>
				 </div><br>";
				 $i ++;
			}		
		
		} else {
			$show_bottom = "";
			$count = count($panel_list);
			if($count > 4) $count = 4;
			$show_str = "";
			for($i=1;$i<=4;$i++) {
				$space .= "&nbsp;&nbsp;";
			}
			$i = 0;
			foreach((array)$panel_list as $panel_info) {
				if($i == $count) break;
				$url = $panel_info[url];
				$offer_id = $url[args][mrp_promotion_id];
				$desc = $panel_info[desc][zh];
				$desc = base64_decode($desc);
				$qty = $panel_info[qty];
				$desc = iconv("gb2312","utf-8",$desc);
				$desc1 = str_replace($arr_1,$arr_2,$desc);
				$desc1 = urlencode($desc1);
				$page_url = $url[page];
				$page_url = base64_encode($page_url);
				$begin = $panel_info[offer_info][time_begin];
				$end = $panel_info[offer_info][time_end];
				$efficacious_time = $panel_info[efficacious_time];	
				if(strtotime($efficacious_time) > strtotime($end)) {
					$efficacious_time = $end;
				}
				$day = 0;
				$hours = 0;
				$show_str = "";
				if(time() > strtotime($end) || time() > strtotime($efficacious_time)) {
					$show_str = "<span style='color:#ED7121;'>�ѹ���</span>";
					$href = "#";
				} else {
					$diff_time = strtotime($efficacious_time) - time();
					if ($diff_time>3600){
					$hours = floor($diff_time/3600);
					if($hours > 24) {
						$day = floor($hours/24);
						$hours = $hours%24;
					}
					$m = floor(($diff_time%3600)/60);
					$show_str = $day."��".$hours."Сʱ".$m."����";
					}else{
					$m = floor($diff_time/60);
					$show_str = "{$day}��{$hours}Сʱ".$m."����";
					}
					$show_str = "<span style='color:green;'>ʣ��".$show_str."</span>";
					$href = "/�����ؼ�?mrp_promotion_id=$offer_id&page_url=$page_url&desc=";

				}
				
				if($qty == 0) {
					$show_str = "<span style='color:#ED7121;'>������</span>";
					$href = "#";
				}				
				echo "<div>"."<a href=$href>".$desc."&nbsp;&nbsp;({$show_str} {$space}�Żݽ�ֹ���ڣ�".substr($efficacious_time,0,10).")</a></div>";
				$i ++;
			}
			echo "<div><a href='/�����ؼ���Ϣ?type=all'>����>></a></div>";
		}
     } elseif($code == 1002) {
        echo "<div>���������</div>";
     } else {
		echo "<div>δ�����κκ���ƴ����Ż�</div>";
	 }

?>
</div>
<?php      
if(!empty($type)) {
    echo $pageStr; 
}
?></div>
<div class="home_bottom" <?php echo $show_bottom?> >
<div class="service">
<div class="home_bottom_left">
<h2><span>��·��</span> �Żݹ�Ӧ</h2>
<div class="ser_left"><img src="wp-content/themes/framePCB/images/img_2.jpg" alt="IMG" width="50" height="63" align="left" /></div>
<div class="ser_right">
<p>
<strong>��·�����⹩Ӧ����׼���գ�����1,2���·�������pcb����۸�2��380Ԫ/ƽ���ף�</strong><strong>pcb���</strong><strong>�������24Сʱ������ </strong>
</p>
��˾���ṩ���ڶ̣�1,2���·������pcb�����100%��֤�����<a title="��·�屨��" href="http://www.myrsky.com.cn/%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%9C%8D%E5%8A%A1/%E5%85%B3%E4%BA%8E%E4%BB%B7%E6%A0%BC/" target="_self">pcb�����pcb�����������ϸ</a>��
<p>
��ͨ2���·����壺100Ԫ/Ƭ�𣬽��ڣ�5������ա�����ƴ�壬�������躸���ַ���Ҳû����С�����</p>
<h2>1��2���·���Ż���ߣ�</h2>
<p><strong>1.ÿ����<a title="����Ա���" rel="nofollow" href="http://myrsky.taobao.com" target="_blank">���taobao��</a>���������µ�����1,2���·��Ŀͻ������µ��Ⱥ�ʱ�䣩,����ȷ�Ϻ󣬶��ڱ�׼���գ�</strong>
<strong>2���,���1.6�����գ�������躸��ī���̣������ַ�,�ַ���ī���ף��߿�/�߾ࣺ���ڵ���5mil����</strong>
<strong>�����������Ż�50.00Ԫ������ԭ������100.00Ԫ���Żݺ�Ϊ50.00Ԫ���������µ�)</strong>��</p>
<p>2���緢���󣬿ͻ��������壬�����󣬹�����������������Щ������˷ѣ������е���</p>
<p>3��1,2���·��Ʒ������ͬ����£������Ǽ۸����������ң��˻���ۣ����������ֵ�10%�Ϊ��������ֻ���ṩ�Է����ۼ��վ��Ϣ����</p>
</div>
</div>
<div class="home_bottom_right">
<p>
<img style="margin: 5px; float: right;" src="/wp-content/uploads/ul.gif" alt="" /><a title="ISO9001֤��" href="http://www.myrsky.com.cn/%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%9C%8D%E5%8A%A1/iso%E8%AE%A4%E8%AF%81" target="_self"><img style="margin: 5px; float: right;" src="/wp-content/uploads/iso9001.jpg" alt="" /></a>
</p>
<p><img style="margin: 10px; float: right;" src="/wp-content/uploads/payment-accepted.gif" alt="" />
</p>
</div>
</div>
</div>