<?php
if (!defined('ROOT')){
	exit;
}
$static='/app/uhome/view/static/file_sale';
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8"/>
		<title><?php echo $userconfig['seo_title'] . C('DOWNLOAD_TITLE'); ?> - <?php echo C('DOWNLOAD_KEYWORD'); ?> </title>
		<link href="<?php echo $static;?>/css/css.css" rel="stylesheet" type="text/css" />
	</head>

	<body>
		<div class="header">
			<div class="wrap">
				<a href="#">
					<img class="logo fl" src="<?php echo $static;?>/images/logo.png" />
				</a>
				<div class="menu fr">
					<ul>
						<li>
							<a href="<?php echo "http://" . $userconfig['domain'] . '.' . C('DOMAIN_WANGPAN'); ?>">商家网盘</a>						</li>
						<li>
							<a href="http://member.<?php echo C('BEN_BZUSR');?>/">在线登录</a>						</li>
						<li>
							<a href="http://member.<?php echo C('BEN_BZUSR');?>/reg">
								立即注册							</a></li>
					</ul>
				</div>
			</div>
		</div>
		
		
		<div class="main wrap">
			<div class="newsbox ibox fl">
				<div class="title">
					<p>
						最新公告
					</p>
				</div>
				<dl>
					<dd style="overflow-y:auto; height: 190px;"><?php echo $userconfig['gonggao'];?></dd>
				</dl>

			</div>
			<div class="kfbox ibox fr">
				<div class="title">
					<p>
						在线客服
					</p>
				</div>
				<div class="content">
				
					<?php
					$service_qq=preg_split("/[\r\n,]+/s", $userconfig['service_qq'],-1,PREG_SPLIT_NO_EMPTY);
					?>
					<?php foreach($service_qq as $k=>$v){?>
					<?php $v=preg_split("/[\|]+/s", $v,-1,PREG_SPLIT_NO_EMPTY);?>
					<a href="tencent://message/?uin=<?php echo $v[0];?>">
						<img src="<?php echo $static;?>/images/qq.png" title="<?php echo $v[1];?>" />
					</a>
					<?php }?>
					<?php if( !empty($service_qq_group)){?>
						<b>QQ群</b>
						<?php
						$service_qq_group=preg_split("/[\r\n,]+/s", $userconfig['service_qq_group'],-1,PREG_SPLIT_NO_EMPTY);
						?>
						<?php foreach($service_qq_group as $k=>$v){?>
						<?php $v=preg_split("/[\|]+/s", $v,-1,PREG_SPLIT_NO_EMPTY);?>
						<a target="_blank" href="<?php echo $v[0];?>" title=<?php echo $v[1];?> ><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" ></a>
						<?php }?>
					<?php }?>
				</div>
			</div>

		</div>
		<div class="clear"></div>
		<div class="download  ibox wrap">
			<table>
				<tr>
					<th width="30%">软件名称</th><th width="12%">软件大小</th><th width="15%">更新时间</th><th width="15%">价格/元</th>
					<th width="15%">软件卡密</th>
					<th width="13%">进入购买</th>
				</tr>
				<?php foreach($list as $k=>$v){?>
				<tr>
					<td><?php echo $v['name'];?></td>
					<td><?php echo file_size($v['size']);?></td>
					<td><?php echo date('Y-m-d',$v['ctime']);?></td><td>¥<?php echo sprintf("%.2f",$v['price']);?></td>
					<td><?php if($v['iszengsong']=='赠送'){echo card_num($v['card_num'].'张/卡密');}else{echo '软件销售';};?></td>
					<td>
						<a target="_blank" href="http://<?php echo C('DOMAIN_DOWNLOAD');?>/file/show/pk1/<?php echo $v['pk1']?>/pk4/<?php echo $v['pk4']?>" class="button">
							点击购买
						</a>
					</td>
				</tr>
				<?php }?>
			</table>
		</div>
		<div class="bottom">
			<div class="wrap">
				<p>
					<span>©版权归属：扎兰屯市姝妍计算机服务有限公司</span> <br />
					<span>ICP备案号：蒙ICP备18000186号</span> | <span>增值电信业务经营许可证：蒙B2-20180007</span> |
				
			  </p>
			</div>
		</div>
	</body>
</html>
