📄 system_kc_edit.php
字号:
<?php
require(dirname(__FILE__)."/include/config_rglobals.php");
require(dirname(__FILE__)."/include/config_base.php");
require(dirname(__FILE__)."/include/page.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="style/main.css" rel="stylesheet" type="text/css" />
<title>产品入库管理</title>
<style type="text/css">
.rtext {background:transparent;border:0px;color:red;font-weight:bold;font-family:Verdana, Arial, Helvetica, sans-serif;}
</style>
</head>
<?php
if ($action=='save'){//保存入库单及记录
if($labid=='' || $kc_number=='' || $pid==''){
showmsg('执行了带有非法参数的文件','-1');
exit();
}
$bsql=New Dedesql(false);
$query="select * from #@__mainkc where p_id='$pid'";
$bsql->SetQuery($query);
$bsql->Execute();
$rowcount=$bsql->GetTotalRow();
if ($rowcount==0){
ShowMsg('非法参数或没有此产品信息!','-1');
exit();
}
else{
$bsql->executenonequery("update #@__mainkc set number='$kc_number',l_id='$labid' where p_id='".$pid."'");
$loginip=getip();
$logindate=getdatetimemk(time());
$username=str_replace($cfg_cookie_encode,'',$_COOKIE['VioomaUserID']);
WriteNote('修改产品'.get_name($pid,'name').'资料成功',$logindate,$loginip,$username);
ShowMsg('产品信息已成功修改','system_kc.php');
$bsql->close();
exit();
}
}
else{
if($pid=='' || $lid==''){
echo "<script language='javascript'>alert('非法参数');history.go(-1);</script>";
exit();}
?>
<body onload="form1.seek_text.focus()">
<table width="100%" border="0" id="table_style_all" cellpadding="0" cellspacing="0">
<tr>
<td id="table_style" class="l_t"> </td>
<td> </td>
<td id="table_style" class="r_t"> </td>
</tr>
<tr>
<td> </td>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="2">
<tr>
<td><strong><strong> 库存管理-修改库存资料</strong> - <a href="system_kc.php">查看库存</a> - <a href="system_basic_cp.php?action=seek">产品基本信息表</a></td>
</tr><form action="system_kc_edit.php?action=save" method="post" name="form1">
<tr>
<td bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="table_border">
<tr height="30">
<td class="cellcolor">产品货号:</td>
<td class="cellcolor"> <input type="text" name="pid" value="<?php echo $pid; ?>" readonly class="rtext" size="10">
</td>
</tr>
<tr>
<td class="cellcolor" width="30%">产品名称:<br></td>
<td> <input type="text" name="seek_text" value="<?php echo get_name($pid,'name')?>" readonly> (修改名称请到<a href="system_basic_cp.php?action=seek">产品基本信息</a>)
<input type="hidden" name="seek_number" value=""/>
</td>
</tr>
<tr>
<td class="cellcolor" width="30%">所在仓库:<br></td>
<td> <?php getlab($lid) ?>
</td>
</tr>
<tr>
<td class="cellcolor" width="30%">现有库存数量:<br></td>
<td> <input type="text" name="kc_number" size="5" value="<?php echo $n; ?>"> <?php echo get_name(get_name($pid,'dwname'),'dw')?>
</td>
</tr>
<tr id="product_date" style="display:block;">
<td colspan="2">
其它基本信息: <font color=red><?php echo "规格:".get_name($pid,'gg')." 分类:".get_name(get_name($pid,'bcate'),'categories')."->".get_name(get_name($pid,'scate'),'categories')." 供货商:".get_name($pid,'gys');?></font>
</td>
</tr>
<tr>
<td class="cellcolor"> </td>
<td> <input type="submit" value="保存<?php echo get_name($pid,'name')?>的资料"></td>
</tr></form>
</table>
</td>
</tr>
</table>
</td>
<td> </td>
</tr>
<tr>
<td id="table_style" class="l_b"> </td>
<td> </td>
<td id="table_style" class="r_b"> </td>
</tr>
</table>
<?php
}
copyright();
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -