<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
	<!-- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	| 开单大师（专业的房产ERP管理系统）
	+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	| © 2018 http://www.kaidandashi.com All rights reserved.
	+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	| 本系统由淮南市银泰软件科技有限公司提供技术支持
	+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
	| QQ号：984784483
	+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit|ie-comp|ie-stand">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
		<meta http-equiv="Cache-Control" content="no-siteapp"/>
		<!--[if lt IE 9]>
		<script type="text/javascript" src="/Public/lib/html5shiv.js"></script>
		<script type="text/javascript" src="/Public/lib/respond.min.js"></script>
		<![endif]-->
		<link rel="stylesheet" href="/Public/lib/layui1/css/layui.css" >
		<style type="text/css">
			.bghui{
				background-color: #FCFCFC;
			}
			.f20{
				font-size:18px;font-family:'Microsoft Yahei';
			}
			.layui-tab-title li{
				font-size:18px;font-family:'Microsoft Yahei';
			}
			.layui-col-space10>* {
				padding: 0px 5px;
			}
			.layui-tab {
				margin:10px 0 0 0 ;
			}
			.layui-table img {
				max-width: 150px;
			}
			.lscxalj a:hover{
				<?php echo ($lscxanbk); ?>
			}
			table td,table th li{
				text-align:center;
			}
		</style>
		<title>我的桌面</title>
	</head>
	<body class="bghui">
		<div class="layui-container">
			<div class="layui-card" style="margin:0 0 5px 0;">
				<div class="layui-card-header f20">快捷按钮</div>
				<div class="layui-card-body">
					<div class="">
						<div class="layui-row lscxalj">
							<div class="layui-col-md3" style="text-align: center;">
								<a onClick="layer_show('添加出售房源','<?php echo U('fangyuan/addesfy',array('jylx'=>1));?>',1024,764)" class="layui-btn layui-btn-radius layui-btn-primary" style="color: black;">
									添加出售
								</a>
							</div>
							<div class="layui-col-md3" style="text-align: center;">
								<a href="javascript:;" onClick="layer_show('添加出租房源','<?php echo U('fangyuan/addesfy',array('jylx'=>2));?>',1024,764)" class="layui-btn layui-btn-radius layui-btn-primary" style="color: black;">
									添加出租
								</a>
							</div>
							<div class="layui-col-md3" style="text-align: center;">
								<a onClick="layer_show('添加求购客源','<?php echo U('keyuan1/addkeyuan',array('mmzl'=>1));?>',1024,764)" class="layui-btn layui-btn-radius layui-btn-primary" style="color: black;">
									添加求购
								</a>
							</div>
							<div class="layui-col-md3" style="text-align: center;">
								<a href="javascript:;" onClick="layer_show('添加求租客源','<?php echo U('keyuan1/addkeyuan',array('mmzl'=>2));?>',1024,764)" class="layui-btn layui-btn-radius layui-btn-primary" style="color: black;">
									添加求租
								</a>
							</div>
							<br/><br/>
							<div class="layui-col-md3" style="text-align: center;">
								<a data-href="<?php echo U('admin/fangyuan/esfy');?>" data-title="二手房源" href="javascript:;" onClick="parent.Hui_admin_tab(this)" class="layui-btn layui-btn-radius layui-btn-primary" style="color: black;">
									房源查询
								</a>
							</div>
							<div class="layui-col-md3" style="text-align: center;">
								<a data-href="<?php echo U('admin/keyuan1/index');?>" data-title="客源查询" href="javascript:;" onClick="parent.Hui_admin_tab(this)" class="layui-btn layui-btn-radius layui-btn-primary" style="color: black;">
									客源查询
								</a>
							</div>
							<div class="layui-col-md3" style="text-align: center;">
								<a data-href="<?php echo U('admin/fygongju/drawhx');?>" data-title="户型设计" href="javascript:;" onClick="parent.Hui_admin_tab(this)" class="layui-btn layui-btn-radius layui-btn-primary" style="color: black;">
									户型设计
								</a>
							</div>
							<div class="layui-col-md3" style="text-align: center;">
								<a class="layui-btn layui-btn-radius layui-btn-primary black" href="javascript:location.replace(location.href);" style="color: black;">
									刷新页面
								</a>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-container">
			<div class="layui-row layui-col-space10">
				<div class="layui-col-md4">
					<div class="layui-tab layui-tab-card">
						<ul class="layui-tab-title">
							<li class="layui-this">本店月度数据</li>
							<li>本店员工月度数据</li>
						</ul>
						<div class="layui-tab-content" style="height: 200px; background-color: #FFFFFF">
							<div class="layui-tab-item layui-show">
								<table class="layui-table" lay-even lay-skin="nob" lay-size="sm" style="margin-top: -3px;">
									<colgroup>
										<col width="80">
										<col width="100">
										<col>
									</colgroup>
									<thead>
										<tr>
											<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">本月数据</li></th>
											<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">同比增长</li></th>
											<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">公司排名</li></th>
										</tr>
									</thead>
									<tbody>
										<?php if(is_array($kybmtj)): foreach($kybmtj as $ky=>$result): if(is_array($result)): foreach($result as $key=>$ky): if($ky["bm"] == $kybmtj['bm']): ?><tr>
														<td>客源<?php echo ($ky["nky"]); ?>条</td>
														<td><?php echo ($ky["tbzz"]); ?>%</td>
														<td>第<?php echo ($key+1); ?>名</td>
													</tr><?php endif; endforeach; endif; endforeach; endif; ?>
										<?php if(is_array($fybmtj)): foreach($fybmtj as $fy=>$result): if(is_array($result)): foreach($result as $key=>$fy): if($fy["bm"] == $fybmtj['bm']): ?><tr>
														<td>房源<?php echo ($fy["nfy"]); ?>条</td>
														<td><?php echo ($fy["tbzz"]); ?>%</td>
														<td>第<?php echo ($key+1); ?>名</td>
													</tr><?php endif; endforeach; endif; endforeach; endif; ?>
										<?php if(is_array($dkbmtj)): foreach($dkbmtj as $dk=>$result): if(is_array($result)): foreach($result as $key=>$dk): if($dk["bm"] == $dkbmtj['bm']): ?><tr>
														<td>带看<?php echo ($dk["ndk"]); ?>次</td>
														<td><?php echo ($dk["tbzz"]); ?>%</td>
														<td>第<?php echo ($key+1); ?>名</td>
													</tr><?php endif; endforeach; endif; endforeach; endif; ?>
									</tbody>
								</table>
							</div>
							<div class="layui-tab-item">
								<table class="layui-table" lay-even lay-skin="nob" lay-size="sm" style="margin-top: -3px;">
									<colgroup>
										<col width="80">
										<col width="50">
										<col width="80">
										<col width="50">
										<col>
									</colgroup>
									<thead>
										<tr>
											<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">员工</li></th>
											<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">房源</li></th>
											<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">同比增加</li></th>
											<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">客源</li></th>
											<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">同比增加</li></th>
										</tr>
									</thead>
									<tbody>
										<?php if(is_array($fykytj)): foreach($fykytj as $key=>$tj): if($key < 5): ?><tr>
													<td><?php echo ($tj["ygmingcheng"]); ?></td>
													<td><?php echo ($tj["nfy"]); ?></td>
													<td><?php echo ($tj["fytbzj"]); ?>%</td>
													<td><?php echo ($tj["nky"]); ?></td>
													<td><?php echo ($tj["kytbzj"]); ?>%</td>
												</tr>
												<?php else: ?>
												<tr>
													<td>……</td>
													<td>……</td>
													<td>……</td>
													<td>……</td>
													<td>……</td>
												</tr><?php endif; endforeach; endif; ?>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
				<div class="layui-col-md4">
					<div class="layui-card layui-tab layui-tab-card">
						<div class="layui-card-header f20">准意向客户</div>
						<div class="layui-card-body" style="height: 200px;">
							<table class="layui-table" lay-even lay-skin="nob" lay-size="sm" style="margin-top: -3px;">
									<colgroup>
									<col width="80">
									<col width="100">
									<col>
								</colgroup>
								<thead>
									<tr>
										<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">客户姓名</li></th>
										<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">编号</li></th>
										<th><li style="color:<?php echo ($lscx); ?>;font-size:12px;font-weight:bold;">七天带看</li></th>
									</tr>
								</thead>
								<tbody>
									<?php if(is_array($yixiang)): foreach($yixiang as $key=>$y): ?><tr>
											<td><a data-href="<?php echo U('admin/keyuan1/neirong1',array('id'=>$y['id']));?>" data-title="成交<?php echo ($y['cjbianhao']); ?>" href="javascript:;" onClick="parent.Hui_admin_tab(this)" class=""><?php echo ($y["khxingming"]); ?></a></td>
											<td><a data-href="<?php echo U('admin/keyuan1/neirong1',array('id'=>$y['id']));?>" data-title="成交<?php echo ($y['cjbianhao']); ?>" href="javascript:;" onClick="parent.Hui_admin_tab(this)" class=""><?php echo ($y["xqbianhao"]); ?></a></td>
											<td><?php echo ($y["count"]); ?>次</td>
										</tr><?php endforeach; endif; ?>
								</tbody>
							</table>
						</div>
					</div>
				</div>
				<div class="layui-col-md4">
					<div class="layui-card layui-tab layui-tab-card">
						<div class="layui-card-header f20">个人信息</div>
						<div class="layui-card-body" style="height:200px">
							<table class="layui-table" lay-even lay-skin="nob">
								<tbody>
									<tr style="color: black;">
										<td>
											<div>
												<?php if($useri["touxiang"] == 1): ?><a href="javascript:;" onClick="layer_show('上传头像','<?php echo U('Index/avatar');?>',600,400);">
														<img id="useravatar" src="/Upload/Avatar/<?php echo session('gongsiid');?>/<?php echo session('username');?>_200.jpg?v=<?php echo mt_rand(1,1000000); ?>" class="img-responsive radius" alt="用户头像" style="width:120px;height: 120px;">
													</a>
													<?php else: ?>
													<a href="javascript:;" onClick="layer_show('上传头像','<?php echo U('Index/avatar');?>',600,400);">
														<img id="useravatar" src="/Public/static/h-ui/images/ucnter/avatar-default.jpg" class="img-responsive radius" alt="用户头像" style="width:120px;height: 155px;">
													</a><?php endif; ?>
											</div>
											<span>点击上图上传头像</span>
										</td>
										<td>
											<div class="col-md-7 col-sm-7 col-xs-7">
												<div style="margin:10px;text-align:left;">
													<span>姓名：</span>
													<span class="pd-15"><?php echo ($useri['ygmingcheng']); ?></span>
												</div>
												<div style="margin:10px;text-align:left;">
													<span>工号：</span>
													<span class="pd-15"><?php echo ($useri['ygbianhao']); ?></span>
												</div>
												<div style="margin:10px;text-align:left;">
													<span>部门：</span>
													<span class="pd-15" title="<?php echo bumen($useri['bumen']);?>"><?php echo ($bmming); ?></span>
												</div>
												<div style="margin:10px;text-align:left;">
													<span>职务：</span>
													<span class="pd-15"><?php echo ($remark); ?></span>
												</div>
												<div style="margin:10px;text-align:left;">
													<span>电话：</span>
													<span class="pd-15"><?php echo ($useri['dianhua']); ?></span>
												</div>
											</div>
										</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="/Public/lib/jquery/1.9.1/jquery.min.js"></script>
		<script type="text/javascript" src="/Public/lib/layer/2.4/layer.js"></script>
		<script type="text/javascript" src="/Public/lib/layui1/layui.js" charset="utf-8"></script>
		<script>
			layui.use('element', function(){
				var element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
			});
			function layer_show(title,url,w,h){
				layer.open({
					type: 2,
					offset: '30px',
					area: [w+'px', h +'px'],
					fix: false, //不固定
					maxmin: false,
					skin: 'layui-layer-rim',
					shade:0.4,
					title: title,
					content: url
				});
			}
		</script>
	</body>
</html>