123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <?
- include("../config/conn.php");
- include("../config/function.php");
- include("../config/xy.php");
- $sj=date("Y-m-d H:i:s");
- $myweb=$_GET[str];
- if(empty($myweb)){$uid=$_GET[id];$ses="id=".$uid."";}else{$ses="myweb='".$myweb."'";}
- $sqluser="select * from yjcode_user where zt=1 and (shopzt=2 or shopzt=4) and ".$ses;mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser);
- if(!$rowuser=mysql_fetch_array($resuser)){php_toheader("./");}
- if(4==$rowuser[shopzt]){php_toheader(weburl."shop/dqview".$rowuser[id].".html");}
- $uid=$rowuser[id];
- ?>
- <html>
- <head>
- <meta http-equiv="x-ua-compatible" content="ie=7" />
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title><?=$rowuser[shopname]?>的网上店铺 - <?=webname?></title>
- <? $cssjsty="a";include("../tem/cssjs.html");?>
- <link href="<?=weburl?>shop/shop.css" rel="stylesheet" type="text/css" />
- <script language="javascript" src="<?=weburl?>shop/js/index.js"></script>
- </head>
- <body>
- <? include("top.php");?>
- <script language="javascript">
- document.getElementById("shopmenu1").className="a1";
- </script>
- <? $ses="yjcode_shopbannar where userid=".$rowuser[id]." and zt=0";if(returncount($ses)>0){?>
- <!--切换B-->
- <div class="banner" id="banner" >
- <? $i=0;while1("*",$ses." order by xh asc");while($row1=mysql_fetch_array($res1)){?>
- <a href="<?=$row1[aurl]?>" class="d1"<? if(2==$row1[targ]){?> target="_blank"<? }?> style="background:url(../upload/<?=$row1[userid]?>/shopbannar_<?=$row1[bh]?>.jpg) center no-repeat;"></a>
- <? $i++;}?>
- <div class="d2" id="banner_id">
- <ul style="margin-left:-<?=16*$i/2?>px;">
- <? for($j=0;$j<$i;$j++){?><li></li><? }?>
- </ul>
- </div>
- </div>
- <script type="text/javascript">banner();</script>
- <!--切换E-->
- <div class="bfb"></div>
- <? }?>
- <div class="bfb bfbshop">
- <div class="yjcode">
- <!--左B-->
- <? include("left.php");?>
- <!--左E-->
-
- <!--右B-->
- <div class="iright">
-
- <div class="rcap">
- <div class="d1">关于我们</div>
- <div class="d2"><a href="<?=weburl?>shop/aboutview<?=$rowuser[id]?>.html">More>></a></div>
- </div>
- <div class="gywm">
- <?=returnjgdw($rowuser[seodes],"","这家伙很懒,没写说明")?>
- </div>
-
- <div class="rcap">
- <div class="d1">服务项目</div>
- <div class="d2"><a href="<?=weburl?>shop/prolist_i<?=$rowuser[id]?>v.html">More>></a></div>
- </div>
- <div class="fwxm">
- <?
- while1("*","yjcode_protype where zt=0 and admin=1 and userid=".$uid." order by xh asc");while($row1=mysql_fetch_array($res1)){
- ?>
- <a href="<?=weburl?>shop/prolist_i<?=$rowuser[id]?>v_j<?=$row1[id]?>v.html"><?=$row1[name1]?></a>
- <? }?>
- </div>
-
- <div class="rcap">
- <div class="d1">最新交易</div>
- </div>
- <div class="newjy">
- <span class="icon"></span>
- <ul id="rolltxt">
- <? $i=0;while1("*","yjcode_order where (ddzt='wait' or ddzt='db' or ddzt='suc') and selluserid=".$uid." order by sj desc limit 20");while($row1=mysql_fetch_array($res1)){?>
- <li><?=returnjiami(returnnc($row1[userid]))?> 购买了 <span class="s1"><?=returntitdian($row1[tit],90)?></span> 单价:<span class="s2">¥<?=$row1[money1]?></span> [<?=returnorderzt($row1[ddzt])?>] </li>
- <? $i++;}?>
- </ul>
- </div>
- <span id="jynum" style="display:none;"><?=$i?></span>
- <script language="javascript" src="<?=weburl?>shop/jy.js"> </script>
-
- <div class="rcap">
- <div class="d1">最新上架</div>
- <div class="d2"><a href="<?=weburl?>shop/prolist_i<?=$rowuser[id]?>v.html">More>></a></div>
- </div>
- <div class="plist">
- <?
- while1("*","yjcode_pro where userid=".$uid." and zt=0 and ifxj=0 order by lastsj desc limit 8");while($row1=mysql_fetch_array($res1)){
- $au="../product/view".$row1[id].".html";
- $tp=returntp("bh='".$row1[bh]."' order by iffm desc","-2");
- ?>
- <ul class="u2">
- <li class="l1"><a href="<?=$au?>" target="_blank"><img border="0" title="<?=$row1[tit]?>" src="<?=$tp?>" onerror="this.src='../img/none180x180.gif'" width="180" height="180" /></a></li>
- <li class="l2"><strong>¥<?=returnjgdian(returnyhmoney($row1[yhxs],$row1[money2],$row1[money3],$sj,$row1[yhsj1],$row1[yhsj2],$row1[id]))?></strong></li>
- <li class="l3"><a href="<?=$au?>" target="_blank" title="<?=$row1[tit]?>"><?=strgb2312($row1[tit],0,50)?></a></li>
- <li class="l4">成交:<?=$row1[xsnum]?>次</li>
- <li class="l5"><a href="<?=$au?>" target="_blank">立即购买</a></li>
- </ul>
- <? }?>
- </div>
-
- <div class="rcap">
- <div class="d1">客户评价</div>
- <div class="d2"><a href="<?=weburl?>shop/pjlist_i<?=$rowuser[id]?>v.html">More>></a></div>
- </div>
- <?
- $a1=returncount("yjcode_propj where selluserid=".$uid." and pf1=1")+returncount("yjcode_propj where selluserid=".$uid." and pf2=1")+returncount("yjcode_propj where selluserid=".$uid." and pf3=1");
- $a2=returncount("yjcode_propj where selluserid=".$uid." and pf1=2")+returncount("yjcode_propj where selluserid=".$uid." and pf2=2")+returncount("yjcode_propj where selluserid=".$uid." and pf3=2");
- $a3=returncount("yjcode_propj where selluserid=".$uid." and pf1=3")+returncount("yjcode_propj where selluserid=".$uid." and pf2=3")+returncount("yjcode_propj where selluserid=".$uid." and pf3=3");
- $a4=returncount("yjcode_propj where selluserid=".$uid." and pf1=4")+returncount("yjcode_propj where selluserid=".$uid." and pf2=4")+returncount("yjcode_propj where selluserid=".$uid." and pf3=4");
- $a5=returncount("yjcode_propj where selluserid=".$uid." and pf1=5")+returncount("yjcode_propj where selluserid=".$uid." and pf2=5")+returncount("yjcode_propj where selluserid=".$uid." and pf3=5");
- $al=$a1+$a2+$a3+$a4+$a5;
- if($al==0){$a1v=0;$a2v=0;$a3v=0;$a4v=0;$a5v=0;}
- else{
- $a1v=sprintf("%.1f",$a1/$al*100);
- $a2v=sprintf("%.1f",$a2/$al*100);
- $a3v=sprintf("%.1f",$a3/$al*100);
- $a4v=sprintf("%.1f",$a4/$al*100);
- $a5v=sprintf("%.1f",$a5/$al*100);
- }
- $hp=returncount("yjcode_propj where selluserid=".$uid." and pjlx=1");
- $pa=returncount("yjcode_propj where selluserid=".$uid."");
- if($pa==0){$av="100";}else{$av=sprintf("%.2f",$hp/$pa*100);}
- ?>
- <ul class="pjcap">
- <li class="l1"><span>好评率</span><strong><?=$av?>%</strong></li>
- <li class="l1"><span>综合得分</span><strong><?=round(($mspf+$fhpf+$shpf)/3,2)?></strong></li>
- <li class="l2">描述相符:<span><?=$mspf?></span>分<br>发货速度:<span><?=$fhpf?></span>分<br>服务态度:<span><?=$shpf?></span>分</li>
- </ul>
- <div class="pjcap1">
- <ul class="u1">
- <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf1.gif" /></span><span class="s1"><strong>1</strong>分</span><span class="s2" style="width:<?=returnjgdw($a1v*1.2,"",1)?>px"></span><span class="s3"><?=$a1v?>%</span></li>
- <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf2.gif" /></span><span class="s1"><strong>2</strong>分</span><span class="s2" style="width:<?=returnjgdw($a2v*1.2,"",1)?>px"></span><span class="s3"><?=$a2v?>%</span></li>
- <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf3.gif" /></span><span class="s1"><strong>3</strong>分</span><span class="s2" style="width:<?=returnjgdw($a3v*1.2,"",1)?>px"></span><span class="s3"><?=$a3v?>%</span></li>
- <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf4.gif" /></span><span class="s1"><strong>4</strong>分</span><span class="s2" style="width:<?=returnjgdw($a4v*1.2,"",1)?>px"></span><span class="s3"><?=$a4v?>%</span></li>
- <li class="l1"><span class="s0"><img src="<?=weburl?>shop/img/pjf5.gif" /></span><span class="s1"><strong>5</strong>分</span><span class="s2" style="width:<?=returnjgdw($a5v*1.2,"",1)?>px"></span><span class="s3"><?=$a5v?>%</span></li>
- </ul>
- </div>
- <?
- while1("*","yjcode_propj where selluserid=".$uid." order by sj desc limit 10");while($row1=mysql_fetch_array($res1)){
- $usertx="../upload/".$row1[userid]."/user.jpg";
- if(!is_file($usertx)){$usertx="../user/img/nonetx.gif";}else{$usertx=$usertx."?id=".rnd_num(1000);}
- $pjlx=returnjgdw($row1[pjlx],"",1);
- if($pjlx==1){$pj="好评";}
- elseif($pjlx==2){$pj="一般";}
- elseif($pjlx==3){$pj="差评";}
- ?>
- <div class="pj pj<?=$pjlx?>">
- <ul class="u1"><li class="l1"><img src="../user/img/nonetx.gif" width="50" height="50" /></li><li class="l2"><?=returnjiami(returnnc($row1[userid]))?></li></ul>
- <ul class="u2">
- <li class="l1">
- <?=strip_tags($row1[txt])?><br>
- <?
- if(1==$row1[iftp]){
- while2("*","yjcode_tp where bh='".$row1[orderbh]."' order by xh asc");while($row2=mysql_fetch_array($res2)){$tp="../".str_replace(".","-1.",$row2[tp]);
- ?>
- <a href="../<?=$row2[tp]?>" target="_blank"><img src="<?=$tp?>" width="50" height="50" /></a>
- <? }}?>
- </li>
- <li class="l3"><?=$row1[sj]?></li>
- </ul>
- <div class="d2"><span class="s<?=$pjlx?>"><?=$pj?></span></div>
- </div>
- <? }?>
-
- </div>
- <!--右E-->
- </div>
- </div>
- <? include("../tem/bottom.html");?>
- </body>
- </html>
|