<!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 $keywords;?>" />
<meta name="description" content="<?php echo $description;?>" />
<base href="<?php echo $DIRCMS['site_url'];?>" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/share.css" rel="stylesheet" type="text/css" />
<link href="template/<?php echo $DIRCMS['tpl_name'];?>/css/show_class.css" rel="stylesheet" type="text/css" />
<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" src="images/js/dig.func.js" type="text/javascript"></script>
<style type="text/css" >
#content_fangwu img 
{ 
	vertical-align: middle;
	max-width:580px;   /* FF IE7 */
	width:expression(this.width > 580 && this.width > this.height ? 580 : true);
	overflow:hidden;
}
</style>
<title><?php echo $title;?>-<?php echo $DIRCMS['site_name'];?></title>
</head>

<body>
<!-- 头部 -->
	<?php include template('head');?>
<!-- 正文 -->
	<div class="ads_960"><script language="javascript" src="<?php echo $DIRCMS[site_url];?>ads.js.php?id=14"></script></div>
	<div class="position"><?php echo $dir_postion;?></div>
	<div class="show">
		<div class="show_left">
			<div class="show_left_title"><?php echo $title;?>～</div>
			<div class="show_left_desc"><span style="float:left">发布时间：<?php echo date('Y-m-d H:i:s',$updatetime);?>  信息有效期：<?php echo $youxiaoqi;?>  浏览：<span id="clicks">0</span>次 </span><span style="float:right">信息编号 <?php echo $id;?> <a href="member/index.php">置顶</a> | <a href="member/index.php">修改</a> | <a href="member/index.php">删除</a> | <a href="about/connectus.html" target="_blank">举报</a></span></div>
			<div class="show_left_userinfo">
				<div class="show_left_userinfo_left">
					<ul>
						<li>联 系 人：<?php echo $lianxiren;?></li>
						<li>联系电话：<?php echo $dianhua;?></li>
						<li>QQ 咨 询：<?php echo $qq;?></li>
						<li>电子邮箱：<?php echo $email;?></li>
					</ul>
				</div>
				<div class="show_left_userinfo_right">
					<ul>
						<li>所在区域：<?php echo getAreaname($areaid);?></li>
						<li>信息类型：<?php echo $leixing;?> </li>
						<li>有效日期：<?php echo $youxiaoqi;?> 天</li>
						<li>物品价格：<?php echo $price;?> 元 </li>
						<li>支付方式：<?php echo $fukuan;?> </li>
						<li>需要数量：<?php echo $shuliang;?></li>
						<li>新旧程度：<?php echo $xinjiu;?></li>	
					</ul>
				</div>
			</div>
			<div class="show_left_nav">信息详情</div>
			<div class="show_left_info" id="content_fangwu">
			<?php echo $content;?>
			</div>
			<?php if($tupian) { ?>
			<div class="show_left_nav">信息图片</div>
			<div class="show_left_info" id="content_fangwu">
			<?php $pic_array=getImages($tupian);?>
			<?php $no=1;if(is_array($pic_array))foreach($pic_array as $r){?>
				<a href="<?php echo $r['url'];?>" target="_blank"><img src="<?php echo $r['url'];?>" title="<?php echo $r['name'];?>" style="border:#ccc 1px solid; padding:1px; width:196px; height:138px" /></a> 
			<?php $no++;}?>
			</div>
			<?php }?>
			<?php if($iscomment) { ?>
			<div class="show_left_nav">信息评论</div>	
			<div class="show_left_wrap_pinglun">
				<div class="show_left_wrap_pinglun_list">
					<?php $dir_page="";$_DATA=get_sql_tag_data("SELECT * FROM `".DB_PRE."comment` WHERE `".DB_PRE."comment`.`status`=1 AND `".DB_PRE."comment`.`contentid`=".intval($id)." ORDER BY `".DB_PRE."comment`.`support` DESC,`".DB_PRE."comment`.`id` DESC",20,0,0);foreach($_DATA as $no => $r)if(is_array($r)){?>
					<div class="show_left_wrap_pinglun_list_user"><span style="float:left">网友 [<?php echo $r['username'];?>]：</span><span style="float:right; color:#666"><?php echo date('Y-m-d H:i:s',$r['addtime']);?></span></div>
					<div class="show_left_wrap_pinglun_list_content"><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/<?php echo $r['score'];?>.gif" /><?php echo $r['content'];?></div>
					<?php }$dir_page=$_DATA['pagestring'];unset($_DATA); ?>
				</div>					
				<form action="comment/" method="post" name="commentform" id="commentform">
				<input type="hidden" name="contentid" value="<?php echo $id;?>" />
				<input type="hidden" name="catid" value="<?php echo $catid;?>" />
				<input type="hidden" name="do_submit" value="1" />
				<input type="hidden" name="authkey" value="<?php echo md5(AUTH_KEY.$catid.$id);?>" />
					<div style="clear:both">
						<div style="text-align:right">共 <span style="color:#ff0000" id="comments_box">0</span> 条评论，<a href="<?php echo $DIRCMS['site_url'];?>comment/index.php?contentid=<?php echo $id;?>" target="_blank">点击查看</a> &nbsp;</div>
						<div><strong>表 情</strong>：<input type="radio" style="border:0px"  name="score" value="1" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/1.gif" />&nbsp;<input type="radio" style="border:0px"  name="score" value="2"/><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/2.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="3" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/3.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="4" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/4.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="5" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/5.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="6" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/6.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="7" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/7.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="8" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/8.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="9" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/9.gif" />&nbsp;<input type="radio" style="border:0px" name="score" value="10" /><img src="template/<?php echo $DIRCMS['tpl_name'];?>/images/biaoq/10.gif" /> </div> 
					</div>
					<textarea class="text_pinglun" name="comment[content]" id="c_content"></textarea>
					<span style="float:left"><strong>验证码</strong>：<input type="text" name="chkcode" id="c_chkcode" class="checkcode" />
					 <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 />
					</span><span style="float:right; color:#666"><input type="submit" class="bt_pinglun" value="" /></span>
					<br />
					<span id="commentmsg" style="color:#FF3300"></span>
				</form>
			</div>	
			<?php }?>
		</div>
		<div class="show_right">
			<div class="show_right_nav"><?php echo $dir_catname;?></div>
			<div class="show_right_content">
				<ul>
					<?php $_DATA=get_category_tag($catid,'10','self','0');$dir_catid=$catid;foreach($_DATA as $no => $r){ $catid=$r['id'];?>
					<li><a href="<?php echo $r['url'];?>" target="_blank" title="<?php echo $r['categoryname'];?>"><?php echo $r['categoryname'];?></a></li>
					<?php }unset($_DATA); $catid=$dir_catid;?>
				</ul>
			</div>
		</div>
	</div>
<!-- 底部 -->
	<!-- 底部开始 -->
	<?php include template('footer');?>
	<!-- 底部结束 -->
	<script language="javascript" src="c.js.php?id=<?php echo $id;?>"></script>
	</body>
</html>