<?php require_once 'nsoconfig.php';?>
<?php include_once '_cake_top.php';?>
    <?php include_once '_cake_header.php';?>
    <div id="main-content">
        <?php include_once'_cake_searchbar.php'?>
        <div class="pml">
        	<?php
			$post = getPost($_GET['id']);
			$bigImage = getFileWithFullPathByPost($post['id'], 'image');
			$image = getImagePathBySize($bigImage, '200');
			$paper = getFileWithFullPathByPost($post['id'], 'paper');
			$empty = NSO_UPLOAD_DIR_NAME . '/';
			if ($paper == $empty) $paper = '#';
			$book  = getFileWithFullPathByPost($post['id'], 'book');
			if ($book == $empty) $book = '#';
			$driver= getFileWithFullPathByPost($post['id'], 'driver');
			if ($driver == $empty) $driver = '#';
			?>
            <div class="pmlt1"><img src="images/ic_p.gif">产品展示</div>
            <div class="pmlt2">
                <div class="pmlt2l"><img width="198" height="198" src="<?php echo $image?>">
                    <div class="pmlt2lv"><a target="_blank" href="<?php echo $bigImage?>"><img width="107" height="20" border="0" style="border:none;" src="images/view.gif"></a></div>
					<div class="pmlt2lt">下载区： 
					<a <?php if($paper=='#'):?>class="no_file"<?php endif;?> target="_blank" href="<?php echo $paper?>">彩页</a> | 
					<a <?php if($book=='#'):?>class="no_file"<?php endif;?> target="_blank" href="<?php echo $book?>">用户手册</a> | 
					<a <?php if($driver=='#'):?>class="no_file"<?php endif;?> target="_blank" href="<?php echo $driver?>">驱动</a></div>
                </div>
                <div class="pmlt2r">
                    <h3><?php echo $post['title']?></h3>
                    <h4>
                        <?php echo $post['preview']?>
                    </h4>
                </div>
            </div>
            <div class="pmlt3">
                <div class="pmltt">产品特性及参数</div>
                <div class="pmltc">
                   	<?php echo $post['content']?>
                </div>
            </div>
            <div class="h15"></div>
        </div>
        <?php include_once '_cake_product_siderbar.php';?>
    </div>
    <?php include_once '_cake_footer.php';?>