<!--
<?php
print <<<EOT
--> 
<div id="shop_order" style="display: none;position:absolute;top:50%;left:50%;z-index=2;">
<div style="position:relative;top:-50%;left:-50%;">
<!--  -->
<dl>
<dt><span>宝贝已成功添加到购物车中</span><em onClick="close_layer_msg()">关闭</em></dt>
<dd>
<p><img src="$webdb[www_url]/images/default/loading.gif">请稍候,数据加载中...</p>
<div><a href="#" onclick="join_shop()">去购物车结算</a></div>
</dd>
</dl>
<!--  -->
</div></div>
<link rel="stylesheet" type="text/css" href="$webdb[www_url]/images/elegant/shop/bencandy.css">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="MainContainer">
  <tr>
    <td class="main">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="conttable">
        <tr>
          <td class="head">
          	<div class="TAG"><span><a editurl='$city_url/job.php?job=doinfo&fid=$fid&id=$id&atc=do'>$fidDB[name]</a></span></div>
            <div class="more"><a href="$webdb[www_url]/member/?main=$Murl/member/post.php?fid=$fid">发布</a>
<!--
EOT;
if($web_admin||$lfjuid==$rsdb[uid]){print <<<EOT
-->
              <a href="$webdb[www_url]/member/?main=$Murl/member/post.php?job=edit&fid=$fid&id=$id">修改</a> 
              <a href="$webdb[www_url]/member/?main=$Murl/member/post.php?action=del&fid=$fid&id=$id">删除</a> 
<!--
EOT;
}print <<<EOT
-->
            </div>
          </td>
        </tr>
        <tr>
          <td class="cont">
          	  <div class="bencandy_pic"> <a href="$city_url/job.php?job=show_img&fid=$fid&id=$id" class="picurl" target="_blank"> 
              <img src='$rsdb[picurl]' onError="this.src='$webdb[www_url]/images/default/nopic.jpg'" border="0" width="160" height="115"> 
              </a> <a href="$city_url/job.php?job=show_img&fid=$fid&id=$id" class="but" target="_blank">共{$rsdb[picnum]}图</a> 
            </div>
            <div class="describ"> 
              <div class="title">{$rsdb[title]}</div>
              <div class="infoa">发布时间:<a editurl='$Murl/job.php?job=bencandy&fid=$fid&id=$id&act=do'>{$rsdb[posttime]}</a>　&nbsp;&nbsp; 浏览量：{$rsdb[hits]}次</div>
              <div class="infob"> 
                <div><span>本店价格：</span><font color="#FF0000">￥ {$rsdb[price]} 元</font></div>
				<!--
EOT;
if($rsdb['sortid']){print <<<EOT
-->
                 <div><span>有无会员价：</span>{$rsdb[sortid]} </div> 
				 <!--
EOT;
}print <<<EOT
--><!--
EOT;
if($rsdb['market_price']){print <<<EOT
-->
                 <div><span>市场价格：</span>{$rsdb[market_price]} </div> 
				 <!--
EOT;
}print <<<EOT
--><!--
EOT;
if($rsdb['shoptype']){print <<<EOT
-->
                 <div><span>型号：</span>{$rsdb[shoptype]} </div> 
				 <!--
EOT;
}print <<<EOT
--><!---->
              </div>
            </div>
            <div class="shopbuy">
              <dl class="buynum">
              		<dt>购买数量</dt>
                    <dd><input type="text" class="shopnum" value="1" />
                </dd>
              </dl> 
              <span class="butter"><a href="javascript:;" onClick="post_ordershop($id,1)">立即购买</a></span> 
              <span class="butter butter1"><a href="javascript:;" onClick="post_ordershop($id,2);">加入购物车</a> </span>
<script language="JavaScript">
<!--
var fid=$fid;
var au;
function post_ordershop(id,u){au=u;
	var num=$(".shopnum").val();
	if(/^[1-9][0-9]*$/.test(num)==false){
        alert("请输入一个整数!");
        $(".shopnum").focus();
        return false;
    }
	else{
		show_layer_msg('shop_order',"#0000ff");
		$.get("order2.php?type=setcookie&cid="+id+"&num="+num+"&"+Math.random(),function(d){
			if(u==1){
				join_shop();
			}else if(u==2){
				$("#shop_order dl dd p").html(d);
			}
		});
	}	
}
function join_shop(){
	window.location.href="join.php";
}
//-->
</script>
            </div>
            <div class="order_do"> <a href="job.php?job=report&fid=$fid&id=$id" class="report" target="_blank">举报此信息</a> 
              <a href="job.php?job=collect&id=$id" class="fav" target="_blank">收藏此信息</a> 
            </div>
            <div class="content"> 
              <div class="h"><span>详细介绍</span></div>
              <div class="c">
              	<table width="100%" cellspacing="0" cellpadding="0" style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word' align="center">
              	  <tr> 
                    <td>$rsdb[content]</td>
                  </tr>
                </table>
              </div>
            </div>	
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" id="commentTable">
        <tr> 
          <td class="heada"><span class="TAG">评论</span></td>
        </tr>
        <tr> 
          <td class="middle"> 
            <div id="comment"></div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="base_table">
              <tr> 
                <td class="headb" colspan="2"><span>添加评论</span></td>
              </tr>
<!--
EOT;
$displaystyle = $lfjid ? "style=\"display:none;\"" : "";
print <<<EOT
-->
              <tr $displaystyle> 
                <td class="tdl">称　　呼:</td>
                <td class="tdr">
                  <input type="text" name="textfield2" id="comment_username" value="$lfjid">
                </td>
              </tr>
              <!--
EOT;
if(!$web_admin&&!$groupdb[comment_img]){
$webdb[yzImgComment]=1;
print <<<EOT
-->
              <tr> 
                <td class="tdl">验 证 码:</td>
                <td class="tdr"> 
                  <input id="yzImgNum" type="text" name="yzimg" size="8" onFocus="commentyzimg()">
                  <SCRIPT LANGUAGE="JavaScript">
<!--
function commentyzimg(){
	if(/yzimg\.php/.test(document.getElementById("yz_Img").src)==false){
		document.getElementById("yz_Img").style.display='';
		document.getElementById("yz_Img").src='$webdb[www_url]/do/yzimg.php?'+Math.random();
	}	
}
document.write('<img border="0" id="yz_Img" name="imageField" onclick="this.src=this.src+Math.random();" src="" style="display:none;">');
//-->
</SCRIPT>
                </td>
              </tr>
              <!--
EOT;
}
print <<<EOT
-->
              <tr> 
                <td class="tdl">内　　容:</td>
                <td class="tdr">
                  <textarea name="textfield" cols="70" rows="8" id="comment_content" onKeyDown="quickpost(event)"></textarea>
                </td>
              </tr>
              <tr> 
                <td class="tdl"> 
<script language="JavaScript">
<!--
getcomment("job.php?job=comment_ajax&fid=$fid&id=$id");
cnt = 0;
function quickpost(event)
{
	if((event.ctrlKey && event.keyCode == 13)||(event.altKey && event.keyCode == 83))
	{
		cnt++;
		if (cnt==1){
			post_comment();
		}else{
			alert('内容正在提交...');
		}
	}	
}
function post_comment(){
	postcomment('job.php?job=comment_ajax&action=post&fid=$fid&id=$id','$webdb[yzImgComment]');
	if(document.getElementById("yz_Img")!=null){
		//document.getElementById("yz_Img").src="$webdb[www_url]/do/yzimg.php?"+Math.random();;
		document.getElementById("yz_Img").src='';
		document.getElementById("yz_Img").style.display='none';
	}
}
//-->
</script>
                </td>
                <td class="tdr">
                  <input type="button" id="comment_submit" name="Submit" value="提交" onClick="post_comment();">
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
    <td class="side">
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="sidetable">
        <tr> 
          <td class="head"><div class="TAG">卖家信息</div></td>
        </tr>
        <tr> 
          <td class="cont"> 
          	<div id="cname">$companydb[title]</div>
            <div class="listc">认证情况:{$renzhengDB[$companydb[renzheng]]}</div>
          	<div class="listc">发布者ID:<a href="$webdb[www_url]/member/homepage.php?uid=$rsdb[uid]"  onClick="if($rsdb[uid]==0)return false;" target="_blank"><span>$rsdb[username]</span></a></div>
          	<div class="listc">联系人:$companydb[qy_contact]</div>
          	<div class="listc">联系电话:$companydb[qy_contact_tel]</div>
          	<div class="listc">传真:$companydb[qy_contact_fax]</div>
          	<div class="listc">联系邮箱:$companydb[qy_contact_email]</div>
          	<div class="img"><a href="$webdb[www_url]/home/?uid=$rsdb[uid]" target="_blank"><img src="images/default/goshop.gif" border="0"></a></div>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" class="sidetable mt10">
        <tr> 
          <td class="head"><div class="TAG">最新商品</div></td>
        </tr>
        <tr> 
          <td class="cont">
<!--
EOT;
$array=list_title('new',10);
foreach($array AS $rs){print <<<EOT
-->
            <div class="list"><a href="bencandy.php?city_id=$rs[city_id]&fid=$rs[fid]&id=$rs[id]" target="_blank">$rs[title]</a></div>
<!--
EOT;
}print <<<EOT
-->  
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!--
EOT;
?>
-->
