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/myrsky_home.php
<?php
/**
 * @package WordPress
 * @subpackage frameMyrsky_Theme
 */
/*
Template Name: Myrsky Home 
*/
?>
<?php get_header() ?>
<?php 
/* if (have_posts()) : while (have_posts()) : the_post(); 
	$erp_page_path = get_the_content(); 
	wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
endwhile; endif; 
echo "http://".$_SERVER['SERVER_NAME'].'/'.$erp_page_path; 
*/			
?> 
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory');?>/js/jquery-1.4.2.min.js" ></script>  
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory');?>/js/jquery.cookie.js"></script>
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory');?>/js/led.js"></script>
<div id="ifocus">
	<div id="ifocus_pic">
		<div id="ifocus_piclist" style="left:0; top:0;">
			<ul>
				<?php 
				//首页图片以post_excerpt升序显示,注意该字段是字符串类型 
				global $wpdb;
				$attachments = $wpdb->get_results($wpdb->prepare("SELECT DISTINCT `ID`,`post_title`,`guid`,`post_content` FROM $wpdb->posts WHERE post_type = 'attachment' and post_parent='$post->ID' order by (post_excerpt+0) asc limit 4"));
				//ECHO "SELECT DISTINCT `ID`,`post_title`,`guid`,`post_content` FROM $wpdb->posts WHERE post_type = 'attachment' and post_parent='$post->ID' order by (post_excerpt+0) asc limit 4";
				if(empty($attachments)){
					$args = array(   
						'post_type' => 'attachment',   
						'numberposts' => 4,   
						'post_status' => null,   
						'post_parent' => $post->ID,
						'orderby' => 'post_date',
						'order' => 'DESC'
					);   

					$attachments = get_posts($args); 
				}					
				//var_dump($attachments);		die("调试代码中,请稍后刷新再试-lxq.");	
				foreach($attachments as $focusKey => $attachment){
					$post_title = $attachment->post_title;
					$post_content = $attachment->post_content;
					$post_src = $attachment->guid;
					
				//}
				$ifocusClass    = 0==$focusKey ? 'current':'normal';			
				?>		 
				<li><a href="#" target="_blank"><img src="<?php echo $post_src;?>"/></a></li>
				<?php
				}
				?>
			</ul>
		</div>
		<!-- 图片下方阴影--> 
		<div id="ifocus_opdiv"></div>
		 <div id="ifocus_tx">
			<ul>		
			<?php 
			foreach($attachments as $focusKey => $attachment){
					$post_title = $attachment->post_title;
					$post_content = $attachment->post_content;
					$post_src = $attachment->guid;
					
				//}
				$ifocusClass    = 0==$focusKey ? 'current':'normal';
			?>	
			 <li class="<?php echo $ifocusClass;?>">
			  <h2><?php echo $post_title;?></h2>
			  <p class="text_display_home"><?php echo $post_content;?></p>
			</li> 
			<?php } ?>
			</ul>
		</div>   
	</div>
	<div id="ifocus_btn">
		<ul>
			<?php 		
				foreach($attachments as $focusKey => $attachment){					
					$post_title = $attachment->post_title;
					$post_content = $attachment->post_content;
					$post_src = $attachment->guid;
					
				//}
				$ifocusClass    = 0==$focusKey ? 'current':'normal';
			?>
			<li class="<?php echo $ifocusClass;?>"><img src="<?php echo $post_src?>" alt="<?php echo $post_title;?>" /></li>
			<?php }?>
		</ul>
	</div>
</div>  

<div class="specialBody" >
<ul>
  <li>
  	<div class="img_left"><img src="/wp-content/themes/framePCB/images/ico_1.jpg" alt="PCB Prototyping" width="67" height="82" align="left"/></div>
  	<div class="text_right">
  	<table><tr>
  		<td align="left"><h2> 电路板特价区 </h2></td>
  		<td align="right" valign="bottom"><input type="image" src="<?php bloginfo('stylesheet_directory');?>/images/quote_now.gif" onclick="window.location.href='/电路板下单/电路板特价/';" title="PCB Prototyping Qutoe" alt="PCB Prototyping Quote"/></td>
  	</tr></table><hr/>

<p>
<strong>电路板网上自助下单,  </strong> 价格最低:<strong>50.00元/10片  (1,2层板,尺寸5cm)</strong>, 其它尺寸自动报价;</p>
 <p> 标准交期:6天交期;	 数量:无最小起订量 ; </p>
 <p> 工艺满足:	板厚:1.6,工艺,喷锡,阻焊油墨:绿,字符油墨:白,线宽/线距:8/8mil。
 
</p>

	</div>
 </li>
</ul></div>

<div class="mainBody" >
<ul>
  <li>
  	<div class="img_left"><img src="/wp-content/themes/framePCB/images/ico_3.jpg" alt="PCB Production" width="67" height="82" align="left"/></div>
  	<div class="text_right">
		<table><tr>
  		<td align="left"><h2>电路板</h2></td>
  		<td align="right" valign="bottom"><input type="image" src="<?php bloginfo('stylesheet_directory');?>/images/quote_now.gif" onclick="window.location.href='/线路板报价/';" title="电路板报价" alt="电路板报价"/></td>
  	</tr></table><hr/>
<p>
在线提供,各种类型的<strong>电路板样板</strong>和<strong>电路板批量板</strong>报价,</P>
<p>1-30层,无铅,特殊材料(金属芯板,厚铜等),特殊工艺...   
&nbsp;&nbsp;<a href="<?php bloginfo("url");?>/加工业务/空白线路板(pcb)/"  class="font12_gray">&gt;&gt;更多</a>
</p>
<br/>
	</div>
   </li>
</ul>
<ul>
  <li>
  	<div class="img_left">
  		<img src="/wp-content/themes/framePCB/images/ico_2.jpg" alt="PCB Assembly" width="67" height="82" align="left"/>
  	</div>
  	<div class="text_right">
		<table><tr>
  		<td align="left"><h2>电路板焊接</h2></td>
  		<td align="right" valign="bottom"><input type="image" src="<?php bloginfo('stylesheet_directory');?>/images/quote_now.gif" onclick="window.location.href='/电路板下单/电路板焊接报价/';" title="电路板焊接报价" alt="电路板焊接报价"/></td>
		</tr></table><hr/>
<p>
我司提供电路板贴片,插件焊接服务,</P>
<p>同时也提供各种类型电子元件,没有最小起订量,以最快捷的速度生产,能满足客户各种需求 ... 
&nbsp;&nbsp;<a href="<?php bloginfo("url");?>/加工业务/焊接板(pcba)/"  class="font12_gray">&gt;&gt;更多</a> </p>
	</div>
   </li>
</ul>
</div>

<div class="clr"></div>

<div class="home_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层电路板生产。 </strong></p>
<p>
我司能提供交期短,低价的1,2层电路板样板,100%保证质量。报价详细。 
</p>
<p>
普通电路板样板:100元/片,交期:6个工作日。免开工费,可以拼板,不限制阻焊,字符。也没有最小起订量。
</p>
</div>
</div>
<div class="home_bottom_right">

<img style="margin: 5px;float:right;" src="/wp-content/uploads/ul.gif" /><img style="margin: 5px; float:right;" src="/wp-content/uploads/iso9001.jpg" /><img style="margin: 5px 3px 5px 5px;float:left;" src="/wp-content/uploads/digicert.png" /><img style="margin: 5px 5px 5px 3px;float:right;" src="/wp-content/uploads/RoHS.png" />



<img style="margin: 10px;float:right;" src="/wp-content/uploads/payment-accepted.gif" />

</div>
    </div>
    
    <div class="clr"></div>
</div>
<?php get_footer() ?>