📄 index.htm
字号:
<!--<?php
print <<<EOT
-->
<div id="main">
<div class="top">
<div class="top-wrap"><h1>$shopdb[storename]
<!--
EOT;
if($shop_predomain){print <<< EOT
-->
<br /><a href="http://$shop_predomain" style="color:#FFFFFF;">$shop_predomain</a>
<!--
EOT;
}print <<< EOT
-->
</h1></div>
<div class="shop-guide">
<ul>
<li class="active"><a href="shop.php?uid=$uid">首 页</a></li>
<li><a href="shop.php?action=credit&uid=$shopdb[uid]">信用评价</a></li>
</ul>
</div>
</div>
<div class="c"></div>
<div class="shop-main">
<div class="shop-side">
<div>
<h2>卖家信息</h2>
<dl class="side-dl">
<!--
EOT;
if($shopdb['icon']){print <<< EOT
-->
<dd><img src="{$shopdb[icon]}" width="160" height="160" /></dd>
<!--
EOT;
}print <<< EOT
-->
<dd>$shopdb[username]
<!--
EOT;
if($shopdb['ifcommend']=='1'){print <<< EOT
-->
<img src="$imgpath/shop/$shoptemplate/starshop.gif" alt="推荐店铺" width="16" height="16" />
<!--
EOT;
}if($shopdb['qq']){print <<<EOT
-->
<a href="http://wpa.qq.com/msgrd?V=1&Uin={$shopdb[qq]}&Site={$db_shopname}&Menu=yes" target="_blank"><img src="http://wpa.qq.com/pa?p=1:{$shopdb[qq]}:4" alt="点这里与我联系"></a>
<!--
EOT;
}print <<<EOT
-->
</dd>
<dd>卖家信用:$shopdb[scredit] <a href="shop.php?action=credit&uid=$shopdb[uid]" target="_blank"><img style="margin-bottom:-3px" src="$imgpath/default/credit/{$lpic[$shopdb[sellerid]]}.gif" title="{$ltitle[$shopdb[sellerid]]}"></a></dd>
<dd>买家信用:$shopdb[bcredit] <a href="shop.php?action=credit&uid=$shopdb[uid]" target="_blank"><img style="margin-bottom:-3px" src="$imgpath/default/credit/{$lpic[$shopdb[memberid]]}.gif" title="{$ltitle[$shopdb[memberid]]}"></a></dd>
<dd>卖家好评率:$shopdb[scent]%</dd>
<dd>买家好评率:$shopdb[bcent]%</dd>
<dd>建店时间:$shopdb[regdate]</dd>
<dd><a onclick="ajax.send('ajax.php?action=collect_shop&uid=$shopdb[uid]','',ajax.guide)" style="cursor:pointer">收藏该店铺</a> <a href="usercp.php?userjob=msg&action=write&touid=$shopdb[uid]" target="_blank"><img src="images/default/header_msg_mail.gif" alt="发送站内信" align="absmiddle"></a>
</dd>
<dd>
<!--
EOT;
if($_SYS[shop_commend] || $user_name == $manager){
if($shopdb[ifcommend]){print <<<EOT
-->
<a style="cursor:pointer;" title="取消系统推荐店铺" OnClick="sendmsg('ajax.php','action=uncommend_shop&uid=$uid',this.id);" id="commend_shop">取消推荐</a>
<!--
EOT;
}else{print <<<EOT
-->
<a style="cursor:pointer;" title="设置成系统推荐店铺" OnClick="sendmsg('ajax.php','action=commend_shop&uid=$uid',this.id);" id="commend_shop">推荐</a>
<!--
EOT;
}}if($db_reportshop && $_G['report_shop']){print <<<EOT
-->
<a style="cursor:pointer;" title="向系统举报该店铺" OnClick="sendmsg('ajax.php','action=report_shop&uid=$uid',this.id);" id="report">举报</a>
<!--
EOT;
}print <<<EOT
-->
</dd></dl>
</div>
<div>
<h2>搜索店内宝贝</h2>
<dl class="side-dl">
<form action="shop.php?uid=$uid" method="post">
<dd>
<input type="text" name="keyword" class="ip fl" style="width:115px"/>
<input type="submit" value="搜索" />
<div class="c"></div>
</dd>
</form>
</dl>
</div>
<div>
<h2>掌柜的分类</h2>
<ul class="listCate">
<li><a href="shop.php?uid=$uid" id="shopcate_all">所有商品</a></li>
<!--
EOT;
foreach($catedirdb as $k => $val){print <<<EOT
-->
<li><a href="shop.php?uid=$uid&ucid=$k" id="shopcate_$k">$val</a></li>
<!--
EOT;
}print <<<EOT
-->
</ul>
</div>
<div>
<h2>友情链接</h2>
<ul class="listCate sharelink">
<!--
EOT;
foreach($linkdb as $val){
if($val['logo']){print <<<EOT
-->
<li><a href="$val[siteurl]" title="$val[descrip]" target="_blank"><img src="$val[logo]" onload="if(this.width>150)this.width=150;if(this.height>150) this.height=150;"></a></li>
<!--
EOT;
} else{print<<<EOT
-->
<li><a href="$val[siteurl]" title="$val[descrip]" target="_blank">$val[sitename]</a></li>
<!--
EOT;
}}print <<<EOT
-->
</ul>
</div>
</div>
<div class="shop-content">
<div id="shop-dsc">$shopdb[aboutme]</div>
<div class="shop-goodsList">
<h3>商品列表</h3>
<ul>
<!--
EOT;
foreach($goodsdb as $val){
if($val['itemtype'] == '1'){
$val['itemtype'] = '一口价';
} elseif($val['itemtype'] == '3'){
$val['itemtype'] = '团购';
}
print <<<EOT
-->
<li>
<dl>
<dt><a href="detail.php?tid=$val[tid]" target="_blank"><img src="$val[httppic]" width="160" height="160" /></a><a href="detail.php?tid=$val[tid]" target="_blank">$val[subject]</a></dt>
<dd><span class="grayB">$val[itemtype]</span> <strong class="orange-txt">$val[itemprice]</strong> </dd>
</dl>
</li>
<!--
EOT;
}print <<<EOT
-->
</ul>
<div class="c"></div>$pages
</div>
<div>
<h3>顾客留言</h3>
<div class="article-comment">
<div class="comment-list">
<!--
EOT;
foreach($messagedb as $val){print <<<EOT
-->
<dl id="message_$val[id]">
<dt class="tar"><div class="fl"><a href="shop.php?uid=$val[uid]" class="b"><strong>$val[username]</strong></a> <span class="grayB">$val[postdate]</span></div>
<!--
EOT;
if($user_name==$manager || $_SYS['del_message_shop'] || $_S['del_shop_msg'] && $val['touid']==$user_uid){
print <<< EOT
-->
<a style="cursor:pointer;" onclick="delmsg('$val[id]');">[删除]</a>
<!--
EOT;
}if($val['touid']==$user_uid){print <<< EOT
-->
<a onclick="sendmsg('ajax.php','action=remessage_shop&id=$val[id]',this.id);" id="remsg_$val[id]" style="cursor:pointer;">[回复]</a>
<!--
EOT;
}print <<< EOT
-->
</dt>
<dd>$val[messagedb]</dd>
<!--
EOT;
if($val['redb']){print <<<EOT
-->
<dd><font color="red"><b>店长</b></font> $val[redate] 回复:<br /><font color="#ff9000">$val[redb]</font></dd>
<!--
EOT;
}print <<<EOT
-->
</dl>
<!--
EOT;
}print <<<EOT
-->
</div>
<!--
EOT;
if($_G['message_shop']){print <<< EOT
-->
<div class="comment-list">
<form method="post" name="msg" action="job.php?uid=$uid" onsubmit="return leavemsg(this);">
<input type="hidden" name="action" value="shopmsg" />
<dl><dt>店铺留言
<!--
EOT;
if($db_messagecheck && $_G['commentcheck']){print <<< EOT
-->
<span class="orange">(留言需审核后,才能显示)</span>
<!--
EOT;
}print <<<EOT
-->
</dt>
<dd><textarea style=" width:90%; height:8em; margin:.2em 0" class="ip" name="messagedb"></textarea>
<div>
<!--
EOT;
if($shopgd){print <<< EOT
-->
温馨提示:点击输入框,以获取验证码<br />请输入验证码:<input id="td_code" type="text" maxLength="4" name="codes" class="ip" size="6" onfocus="opencode('menu_code','td_code')" /><div id="menu_code" style="display:none;" class="menu"><div class="ck"><img src="checkcode.php?" id="checkcode" /><div style="margin-top:3px;cursor:pointer;">看不清楚,换一张</div></div></div>
<!--
EOT;
}print <<< EOT
-->
<input type="submit" class="bt" value=" 提交 " /></div>
</dd>
</dl>
</form>
</div>
<!--
EOT;
}print <<< EOT
-->
</div>
</div>
</div>
</div>
<!--<td width="30%" valign="top" rowspan="2">
店铺公告:
<div class="br"></div>
<div class="noticeline"></div>
<div class="br"></div>
<marquee style="position:relative;" onMouseOver="this.stop()" onMouseOut="this.start()" scrollamount="1" scrolldelay="85" direction="up" behavior="scroll" height="100">$shopdb[aboutme]</marquee>
</td> -->
<script language=JavaScript>
var shopgd = '$shopgd';
function leavemsg(obj) {
if (obj.codes.value == '' && shopgd) {
alert('请填写验证码');
obj.codes.focus();
return false;
}
if (obj.messagedb.value == '') {
alert('内容为空');
obj.messagedb.focus();
return false;
}
return true;
}
function delmsg(id){
if (confirm('您确定要删除该评论吗?')) {
ajax.send('ajax.php','action=del_shop_message&id='+id,function(){
if(ajax.request.responseText.indexOf('\tsuccess') != -1){
$('message_'+id).style.display = 'none';
}
ajax.guide();
});
}
}
var shopcate = "$ucid";
if(shopcate && shopcate != '0'){
$("shopcate_" + shopcate).style.cssText = "color:#FF6600;font-weight: bold;";
} else{
$("shopcate_all").style.cssText = "color:#FF6600;font-weight: bold;";
}
</script>
<!--
EOT;
?>-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -