📄 acc_ckspkc.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 查询当日流水
////////////////////////////////////////////////////////
$title='查看昨日库存';
include_once '../../mainfile.php';
include_once 'head_inc.php';
include_once 'head_win.php';
$que = "select a.store_id,a.sp_date,a.jzzy,a.sp_barcode,b.sp_name,b.sp_jz,b.sp_jldw,b.sp_bzdw,a.sp_kc,a.rz_user_id ";
$que.= " from ".$xoopsDB->prefix("market_spkc");
$que.= " a left join ".$xoopsDB->prefix("market_spinfo")." b using (store_id,sp_code) ";
$que.= " where a.store_id='".$_REQUEST['s_id0']."' order by a.sp_code";
echo "<br /><center>商品库存(轧帐后数据)\n";
## echo $que."<hr />\n";
echo "<table border='1'>\n";
echo "<tr class='v'><th>№</th><th>记帐日期</th><th>摘要</th><th>商品条码</th><th>商品名称</th><th>规格</th><th>单位</th><th>库存</th><th>记帐人</th></tr>\n";
$res = $xoopsDB->query($que);
$i=1;
while ( $row = $xoopsDB->fetchrow($res) ) {
echo "<tr>";
echo "<td>".$i."</td>\n";
echo "<td><nobr>".$row[1]."</nobr></td>\n";
echo "<td><nobr>".$_ZY[$row[2]]."</nobr></td>\n";
echo "<td><nobr>".$row[3]."</nobr></td>\n";
echo "<td><nobr>".$row[4]."</nobr></td>\n";
echo "<td align='right'><nobr>".$row[5].$row[6]."</nobr></td>\n";
echo "<td align='center'><nobr>".$row[7]."</nobr></td>\n";
echo "<td align='right'><nobr>".$row[8]."</nobr></td>\n";
echo "<td>".$row[9]."</td>\n";
echo "</tr>";
$i++;
}
echo "<tr class='v'><th>№</th><th>记帐日期</th><th>摘要</th><th>商品条码</th><th>商品名称</th><th>规格</th><th>单位</th><th>库存</th><th>记帐人</th></tr>\n";
echo "</table>\n";
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 + -