📄 acc_xsspxx.php
字号:
<?php
////////////////////////////////////////////////////////
// Author by Shuweich
// Date : 2007.11.13
// 建站支持: http://www.shuweich.net
// 作者: Shuweich
// QQ: 1502384
// ICQ: 190492112
// MSN: shuweich@hotmail.com
// E-mail: root@shuweich.net
// E-mail: shuweich@163.com
////////////////////////////////////////////////////////
// 模块管理 by txdyz
// For 提取公用商品信息
////////////////////////////////////////////////////////
include_once '../../mainfile.php';
$title='显示商品信息';
include_once 'head_win.php';
## 提取公用商品信息
$Squ = "select bybz from ".$xoopsDB->prefix("market_store")." where store_id='".$_REQUEST['s_id0']."' limit 0,1";
$ssp0 = $xoopsDB->fetchrow( $xoopsDB->query($Squ) );
$S_ID = substr($ssp0[0],23,1)=='7'?'696':$_REQUEST['s_id0'];
$que = "select sp_code,sp_name,sp_level,sp_barcode,sp_sj ";
$que.= " from ".$xoopsDB->prefix("market_spinfo");
## $que.= " where store_id='420101f278' order by sp_code";
$que.= " where store_id='".$S_ID."' order by sp_code";
$res = $xoopsDB->query($que);
echo "<br /><center>商品资料信息\n";
echo "<table border='1'>\n";
echo "<tr><th>唯一店内码</th><th>品名</th><th>认证</th><th>商品条码</th><th>售价</th></tr>\n";
## echo "<tr><th>品名</th><th>认证等级</th><th>商品条码</th><th>售价</th></tr>\n";
while ( $row = $xoopsDB->fetchrow($res) ) {
if ( $row[2] == '' ) $row[2] = ' ';
echo "<tr><td>$row[0]</td><td><nobr>$row[1]</nobr></td><td>$row[2]</td><td>$row[3]</td><td align='right'>$row[4]</td></tr>\n";
## echo "<tr><td><nobr>$row[1]</nobr></td><td>$row[2]</td><td>$row[3]</td><td align='right'>$row[4]</td></tr>\n";
}
echo "<tr><th>唯一店内码</th><th>品名</th><th>认证</th><th>商品条码</th><th>售价</th></tr>\n";
echo "</table>\n";
$que = "select count(*) dpsl ";
$que.= " from ".$xoopsDB->prefix("market_spinfo");
$que.= " where store_id='".$S_ID."'";
$res = $xoopsDB->query($que);
$Num = $xoopsDB->fetchrow($res);
echo "单品数量:".$Num[0];
echo "<hr /><input type='button' value='关闭窗口' onclick='returnValue=1;window.close();' />\n";
include_once '../../footer.php';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -