<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="keywords" content="<?php echo $head[keywords];?>" />
<meta name="description" content="<?php echo $head[description];?>" />
<base href="<?php echo $DIRCMS['site_url'];?>" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/share.css" type="text/css" rel="stylesheet" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/company.css" type="text/css" rel="stylesheet" />
<script language="JavaScript">
<!--
function killerrors() 
{ 
	return true; 
}
window.onerror = killerrors;
//-->
</script>
<script language="javascript" src="images/js/jquery.min.js" type="text/javascript"></script>
<script language="javascript" src="images/js/comment.func.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript" src="template/<?php echo $DIRCMS['tpl_name'];?>/images/site.js"></script>
<title><?php echo $head[title];?></title>
</head>

<body>
	<div class="company_top">
		<div class="company_top_main">
			<div class="company_top_main_left">
				<div id="login_div">
				<a href="member/index.php?file=login&action=login">登录</a> | <a href="member/index.php?file=login&action=register">注册</a>
				</div>
				<div id="usercenet" style="display:none">
				浏览器不支持Js!
				</div>
			<script language="javascript" src="login.js.php"></script>
			</div>
			<div class="company_top_main_right">
			<a href="post/index.php" target="_blank">免费发布信息</a> | <a href="<?php echo $DIRCMS['site_url'];?>">网站首页</a> | <a href="member/index.php?file=login&action=login">商家入驻</a></div>
			</div>
		</div>
	</div>
	<div class="company_nav">
		<div class="company_nav_logo"><img src="<?php if($companypic) { ?><?php echo $companypic;?><?php }else{ ?>images/nopic.gif<?php }?>" align="absmiddle" /> <?php echo $companyname;?></div>
		<ul>
			<?php $no=1;if(is_array($menu))foreach($menu as $__key=>$_menu){?>
			<li><a href="<?php echo $_menu['url'];?>" <?php if($__key==1) { ?>class="current"<?php }?>><?php echo $_menu['name'];?></a></li>
			<?php $no++;}?>
		</ul>
	</div>
	<div class="company_body">
		<div class="company_body_left">
			<div class="company_c_nav">基本信息</div>
			<div class="company_baseinfo">
				<div class="company_baseinfo_t"><?php echo $companyname;?></div>
<span>商家积分：</span><?php echo $point;?> 分
<br />
<span>店铺地址：</span><?php echo $address;?>
<br />
<span>交通路线：</span><?php echo $busroute;?>
<br />
<span>营业时间：</span><?php echo $openingtime;?>
<br />
<span>在线客服：</span> <span class="qq"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $qq;?>&site=qq&menu=yes"><?php echo $qq;?></a></span>
<br />
				<div class="tel"><?php echo $phone;?></div>
			</div>
			<div class="company_c_nav">认证信息</div>
			<div class="company_baseinfo">
				<?php if($shenfenzheng) { ?>
				<img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/person1.gif" align="absmiddle" />  本店铺已提交身份证，通过认证 
				<?php }else{ ?>
				<img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/person0.gif" align="absmiddle" />  本店铺未提交身份证，尚未认证 
				<?php }?>
				<br />
				<?php if($zhizhao) { ?>
				<img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/company1.gif" align="absmiddle" />  <a href="<?php echo $zhizhao;?>" target="_blank">本店铺已提营业执照，通过认证 </a>
				<?php }else{ ?>
				<img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/company0.gif" align="absmiddle" />  本店铺未通过营业执照认证
				<?php }?>
				<div class="company_body_baoc" style="width:215px; overflow:hidden">
				<a href="about/connectus.html" target="_blank"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/baocuo.gif" /></a>
				<a href="about/connectus.html" target="_blank"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/renling.gif" /></a>
				</div>
			</div>
		</div>
		<div class="company_body_right">
			<div class="company_body_right_top">
				<div class="company_body_right_top_left">
					<?php if($pics) { ?>
					<?php $pic_array=getImages($pics);?>
					<?php $no=1;if(is_array($pic_array))foreach($pic_array as $r){?>
					<?php $focus_title[]=str_replace(array('"','\''),array('',''),$r['name']);?>
					<?php $focus_imgs[]=str_replace(array('"','\''),array('',''),$r['url']);?>
					<?php $focus_urls[]=str_replace(array('"','\''),array('',''),$r['url']);?>
					<?php $no++;}?>
					<script type="text/javascript">
					<!--
						var focus_width=435
						var focus_height=225
						var text_height=0
						var swf_height = focus_height+text_height
						
						var pics='<?php echo implode("|",$focus_imgs);?>'
						var links='<?php echo implode("|",$focus_urls);?>'
						var texts='<?php echo implode("|",$focus_title);?>'	
						document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
						document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
						document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
						document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
						document.write('<embed ID="focus_flash" src="images/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#Ffffff" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');		
						document.write('</object>');
					//-->
					</script>
					<!--焦点图结束-->
					<?php }else{ ?>
					<img src="<?php echo $companypic;?>" width="435" height="225" />
					<?php }?>
				</div>
				<div class="company_body_right_top_right">
					<div class="dpdt_nav"></div>
					<ul>
						<?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."co_news` WHERE `".DB_PRE."co_news`.`status`=1 AND `".DB_PRE."co_news`.`userid`=".intval($id)." ORDER BY `".DB_PRE."co_news`.`id` DESC",8,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
						<li><a href="<?php echo $DIRCMS['site_url'];?>company/shownews_<?php echo $r['id'];?>.html" target="_blank"><?php echo $r['title'];?></a></li>
						<?php }$dir_page=$_DATA['pagestring'];unset($_DATA); ?>
					</ul>					
				</div>
			</div>
			<?php if($pics) { ?>
			<script language="javascript"> 
				$(function(){ 
				var ei = $("#large"); 
				ei.hide(); 
				$(".sp img").mouseover(function(e){ 
				ei.css({top:e.pageY,left:e.pageX}).html('<img style="border:1px solid gray;" width="500" src="' + this.src + '" />').fadeIn(); 
				}).mouseout( function(){ 
				ei.hide(); 
				})
				}); 
			</script>
			<style type="text/css"> 
			#large{position:absolute;display:none;z-index:999;} 
			</style> 
			<div class="long_nav">
				<div class="long_nav_left">商家图片</div>
				<div class="long_nav_right"></div>
			</div>
			<div class="company_body_right_box">
				<ul>
					<?php $pic_array=getImages($pics);?>
					<?php $no=1;if(is_array($pic_array))foreach($pic_array as $r){?>
						<li class="sp"><a href="<?php echo $r['url'];?>" target="_blank"><img src="<?php echo $r['url'];?>" title="<?php echo $r['name'];?>" /><br /><?php echo $r['name'];?></a></li>	
					<?php $no++;}?>
				</ul>
			</div>
			<div id="large"></div>
			<?php }?>
			<?php if($shipin) { ?>
			<div class="vedio_nav">
				<div class="vedio_nav_left">视频展示</div>
				<div class="vedio_nav_right"></div>
			</div>
			<div class="company_body_right_vedio">
				<ul>
					<?php $shipin_array=getVedios($shipin);?>
					<?php $no=1;if(is_array($shipin_array))foreach($shipin_array as $r){?>
					<li><embed src="<?php echo $r['url'];?>" type="application/x-shockwave-flash" play="true" loop="true" width="135" height="95" menu="true"></embed><br /><a href="<?php echo $r['url'];?>" target="_blank"><?php echo $r['name'];?></a></li>
					<?php $no++;}?>
				</ul>
			</div>
			<?php }?>
			<script language="javascript"> 
				$(function(){ 
				var ei = $("#plarge"); 
				ei.hide(); 
				$(".bp img").mouseover(function(e){ 
				ei.css({top:e.pageY,left:e.pageX}).html('<img style="border:1px solid gray;" width="500" src="' + this.src + '" />').fadeIn(); 
				}).mouseout( function(){ 
				ei.hide(); 
				})
				}); 
			</script>
			<style type="text/css"> 
			#plarge{position:absolute;display:none;z-index:999;} 
			</style> 
			<div class="long_nav">
				<div class="long_nav_left"><?php echo getmenuNamebyid($id,5);?></div>
				<div class="long_nav_right"><a href="<?php echo $DIRCMS['site_url'];?>company/product_<?php echo $id;?>_1_1.html" target="_blank">更多</a></div>
			</div>
			<div class="company_body_right_box">
				<ul>
					<?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."co_product` WHERE `".DB_PRE."co_product`.`status`=1 AND `".DB_PRE."co_product`.`userid`=".intval($id)." ORDER BY `".DB_PRE."co_product`.`id` DESC",4,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
					<li class="bp"><a href="<?php echo $DIRCMS['site_url'];?>company/showproduct_<?php echo $r['id'];?>.html" target="_blank"><img src="<?php echo $r['pruductimg'];?>" /><br /><?php echo $r['product'];?></a></li>
					<?php }$dir_page=$_DATA['pagestring'];unset($_DATA); ?>
				</ul>
			</div>
			<div id="plarge"></div>
			<div class="long_nav">
				<div class="long_nav_left">最新点评</div>
				<div class="long_nav_right"></div>
			</div>
			
			<?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."member_comment` WHERE `".DB_PRE."member_comment`.`status`=1 AND `".DB_PRE."member_comment`.`memberid`=".intval($id)." ORDER BY `".DB_PRE."member_comment`.`id` DESC",8,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
			<div class="company_body_comment">
				<div class="company_body_comment_left">
					<img src="<?php echo $r['userface'];?>" /><br /><?php echo $r['username'];?>
				</div>
				<div class="company_body_comment_right">
服务 <img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/star/<?php echo $r['fuwu'];?>.gif" />
品质 <img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/star/<?php echo $r['pinzhi'];?>.gif" /> 
性价比 <img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/star/<?php echo $r['xingjiabi'];?>.gif" />
<br />
<a href="<?php echo $DIRCMS['site_url'];?>company/company_<?php echo $r['memberid'];?>.html" target="_blank"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/<?php echo $r['score'];?>.gif" /></a>
<?php echo $r['content'];?>
<br />
<span style="color:#666">[发布于<?php echo date('Y-m-d H:i:s',$r['addtime']);?>]</span> 
				</div>
			</div>
			<?php }$dir_page=$_DATA['pagestring'];unset($_DATA); ?>

			
			<div class="long_nav">
				<div class="long_nav_left">发布点评</div>
				<div class="long_nav_right">&nbsp;</div>
			</div>
			<div class="company_body_comment_p">
			<form action="company/comment.php" method="post" name="cform" id="commentform">
			<input type="hidden" name="memberid" value="<?php echo $id;?>" />
			<input type="hidden" name="membername" value="<?php echo $username;?>" />
			<input type="hidden" name="authkey" value="<?php echo md5(AUTH_KEY.$id.$username);?>" />
			<select name="fuwu">
				<option value="1">-服务-</option>
				<option value="0">差(0)</option>
				<option value="1">一般(1)</option>
				<option value="2">还行(2)</option>
				<option value="3">好(3)</option>
				<option value="4">很好(4)</option>
				<option value="5">非常好(5)</option>
			</select>
			
			<select name="pinzhi">
				<option value="1">-环境-</option>
				<option value="0">差(0)</option>
				<option value="1">一般(1)</option>
				<option value="2">还行(2)</option>
				<option value="3">好(3)</option>
				<option value="4">很好(4)</option>
				<option value="5">非常好(5)</option>
			</select>
			
			<select name="xingjiabi">
				<option value="1">-性价比-</option>
				<option value="0">差(0)</option>
				<option value="1">一般(1)</option>
				<option value="2">还行(2)</option>
				<option value="3">好(3)</option>
				<option value="4">很好(4)</option>
				<option value="5">非常好(5)</option>
			</select>
			<br />
			总  体：<input type="radio" name="score" value="80" style="border:0px">喜欢 <input type="radio" checked="checked" name="score" value="60" style="border:0px">无所谓 <input type="radio"  name="score" value="30" style="border:0px">不喜欢
			<br />
			请在下面输入评论内容 (仅限200字
			<br />
			<textarea cols="96" rows="8"  name="content" id="c_content"></textarea>
			<br />
			验证码：<input type="text" name="chkcode" id="c_chkcode" size="8"/> <img src="<?php echo $DIRCMS['site_url'];?>checkcode.php" onclick="this.src='<?php echo $DIRCMS[site_url];?>checkcode.php?id='+Math.random()*5;" style="cursor:pointer;" align="middle" alt="验证码,看不清楚?请点击刷新验证码"/><br />
			<br />
			<input type="submit" value="直接发表" class="yl_btn" />
			</form>
			<span id="commentmsg" style="color:#FF3300"></span>
			</div>
		</div>
	</div>
	<!-- 底部 -->
	<?php include template('footer');?>
</body>
</html>