File: /var/www/html/wp-content/themes/frameMyrskyNew/myrsky_good.php
<?php
/**
 * @package WordPress
 * @subpackage frameMyrsky_Theme
 */
/*
Template Name: 商品信息
*/
?>
<?php get_header() ?>
<script type="text/javascript">
function changeIframeHeight(H){
	var dom = document.getElementById('mainFrame'); 
	dom.style.height = H+"px";
}
</script>
<?php if (have_posts()) : while (have_posts()) : the_post(); 
						//$erp_page_path = get_the_content().'?cat=resistor&part_id='.$_GET['part_id'].'&c_owner=myro&wp_income=1'; 
						//#15520 by penglanjun 2015-10-08 去掉写死的分类,在打开页面根据实际分类进行设值
						$part_id = $_GET['part_id'];
						$cat = $_GET['cat'];
						$add_param = "";
						if(!empty($part_id)){
							$add_param .= "&part_id=$part_id";
						}
						if(!empty($cat)){
							$add_param .= "&cat=$cat";
						}
						$erp_page_path = get_the_content().'?c_owner=myro&wp_income=1'.$add_param; 
				 		wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
		 			endwhile; endif; 
		?> 
	<!-- 将ID更改为mainFrame 以适应iframe高度的自适应处理,原ID并未使用 -->
	<iframe id="mainFrame"  src="<?php echo "http://".$_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].'/'.$erp_page_path; ?>" 	name="mainFrame" width="960px" height="400px" scrolling="no" frameborder="0" >
	</iframe>
	
</div>
<?php get_footer() ?>