<?php include_once tpl('header');?>
<card title="<?php echo $soft->name;?> - <?php echo setting('webname');?>">
<p align="left">
<?php echo $this->nav($soft->cid);?>
<br/>
<?php echo $soft->info;?>
<br/>
<?php if (isset($pageObj)):?>
    <?php echo ilink('阅读全部', url('system', array('s'=>'soft','a'=>'view','id'=>$soft->id,'f'=>1)));?>|<?php echo $pageObj->show();?><br/>
<?php endif;?>

<?php if ($soft->images):?>
    <?php echo ilink('查看更多截图('.$soft->images.'P)', url('system', array('s'=>'soft','a'=>'image','id'=>$soft->id)));?><br/>
<?php endif;?>
<b>=免费下载=</b>
<br/>
<?php foreach ($fileList as $pName => $file):?>
    <?php echo printImage('soft/down.gif');?><b><?php echo $pName;?></b>平台<br/>
    <?php foreach ($file as $value):?>
        --|<a href="<?php echo url('system', array('s'=>'soft','a'=>'download','fid'=>$value['id']));?>"><?php echo $value['name'];?></a>(<?php echo ceil($value['size'] / 1024);?>k)<br/>
        <?php if ($value['support']):?>&nbsp;&nbsp;&nbsp;[支持机型]<?php echo $value['support'];?><br/><?php endif;?>
    <?php endforeach;?>
    ------------
    <br/>
<?php endforeach;?>
<?php if ($soft->adurl):?>
    <?php echo ilink('点击查看更多机型内容&gt;&gt;', url('system', array('s'=>'soft','a'=>'go', 'id'=>$soft->id)));?><br/>
<?php endif;?>
<b>=软件评价=</b>
<br/>
<?php echo ilink('鲜花('.$soft->good.')', url('system', array('s'=>'soft','a'=>'score','score'=>1,'id'=>$soft->id)));?>.<?php echo ilink('臭蛋('.$soft->bad.')', url('system', array('s'=>'soft','a'=>'score','score'=>2,'id'=>$soft->id)));?>|<?php echo ilink('评论('.$soft->comments.')', url('system', array('s'=>'soft','a'=>'comments','id'=>$soft->id)));?>
<br/>
<?php if (!empty($comments)):?>
<?php foreach ($comments as $comment):?>
    [<b><?php echo $soft->comments--;?>楼</b>]<?php echo userLink($comment['uid']);?>:<?php echo $comment['content'];?>(<?php echo $comment['createdate'];?>)<br/>
<?php endforeach;?>
<?php else:?>
    沙发还在，速抢<br/>
<?php endif;?>
<input type="text" name="content" value="" size="20" />
<br/>
<anchor title="发表评论">发表评论<go method="post" href="<?php echo url('system',array('s'=>'soft','a'=>'comment','id'=>$soft->id));?>">
	<postfield name="content" value="$(content)"/>
</go></anchor>
<br/>
<b>=您还可能喜欢=</b>
<br/>
<?php foreach ($commends as $commend):?>
    <?php echo ++$x;?>.<?php echo ilink($commend['name'], url('system', array('s'=>'soft','a'=>'view','id'=>$commend['id'])));?><br/>
<?php endforeach;?>
搜索:<?php $this->widget('soft.widgets.SearchWidget');?>
<br/>
<?php include_once tpl('footer');?>