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/widget_featured.php
<h3 class="widgettitle">
今日特价秒杀
</h3>
<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;
}
.yh_on{width:50px; height:16px;background-image:url('<?php bloginfo('stylesheet_directory');?>/images/yh_kg.png');position: absolute;top: 15px;left: -50px;}
.yh_off{width:50px; height:16px;background-image:url('<?php bloginfo('stylesheet_directory');?>/images/yh_kg.png');position: absolute;top: 15px;left: -50px;background-position: 10px 16px;}
</style>
<?php 
$type = $_GET["type"];
if($type) {
    $js = "jquery-1.4.2.min.js";
}else {
    $js = "";
}
?>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory');?>/js/<?php  echo $js;?>"></script><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="height:auto;padding-top:10px;border:1px solid #e8e9e4;">
<div class="prolist">
<?php
     include 'pager_helper.php';
     include  '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);

try{
	$rs = $client->__soapCall("getPanelOffer",array("fab"));
}catch (Exception $e) {		
	print $e->getMessage();
}

     $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 = "已过期";
					$yh_bt="yh_off";
				} else {
					$buy_str = "<a href='/今日特价?mrp_promotion_id=$offer_id&page_url=$page_url&desc='><img src='".site_url()."/wp-content/themes/frameMyrsky/images/ljgm.png' /></a>";
					$yh_bt="yh_on";
				}
				if($qty == 0) {
					$buy_str = "已售完";
				}
				 echo "<div style='position: relative;'><span class='{$yh_bt}'></span>{$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 = "#";
					$href = "javascript:";					
					$click_title = "onclick=\"alert('该优惠已过期');\"";
				} 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 = "#";
					$href = "javascript:";
					$click_title = "onclick=\"alert('该优惠已售完');\"";
				}				
				echo "<div>"."<a href=$href $click_title>".$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">
<div class="home_bottom_left_img"></div>
</div>
<div class="home_bottom_right">
<span>电路板</span> <span style="color: #969696;">优惠供应</span>
<br/><br/>
<p>
电路板特殊供应:标准工艺,快速1,2层电路板生产。pcb打样价格,2层400元/平方米;pcb打样交期最快24小时出货。 
</p>
<p>我司能提供交期短,1,2层电路板打样,pcb打样,100%保证质量。<a title="电路板报价" href="<?php site_url();?>/%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>
<p>
普通2层电路板样板:100元/片起,交期:5个工作日。可以拼板,不限制阻焊,字符。也没有最小起订量。</p>
<p style="font-size: 17px;">1,2层电路板优惠政策:</p>
<p>1.每天在<a title="迈瑞凯淘宝店" rel="nofollow" href="http://myrsky.taobao.com" target="_blank">迈瑞凯taobao店</a>及本网自助下单购买1,2层电路板的客户(按下单先后时间),报价确认后,对于标准工艺(
2层板,板厚:1.6,工艺,喷锡,阻焊油墨:绿,单面字符,字符油墨:白,线宽/线距:大于等于5mil。)
,开工费再优惠50.00元,例如原开工费100.00元,优惠后为50.00元(网上自助下单)。</p>
<p>2。如发货后,客户反馈坏板,经检测后,工厂无条件重做,且由些产生的运费,工厂承担。</p>
<p>3。1,2层电路板产品,在相同质量下,如我们价格高于其他厂家,退还差价,并奖励差额部分的10%做为奖励。(只需提供对方报价及网站信息。)</p>
</div>
</div>
</div>