shangpinxinxi_add.php

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?php
session_start();
include_once 'conn.php';
$ndate =date("Y-m-d");
$addnew=$_POST["addnew"];
if ($addnew=="1" )
{
	$bianhao=$_POST["bianhao"];
    $mingcheng=$_POST["mingcheng"];
    $shangpinleibie=$_POST["shangpinleibie"];
    $tupian=$_POST["tupian"];
    $gongyingshangmingcheng=$_POST["gongyingshangmingcheng"];
    $xiaoshoujiage=$_POST["xiaoshoujiage"];
    $kucun=$_POST["kucun"];
    $beizhu=$_POST["beizhu"];
    
	//lixandonxgjixelxb
	//qiuji
	//qiuhe
	ischongfu("select id from shangpinxinxi where  bianhao='$bianhao'");
	$sql="insert into shangpinxinxi(bianhao,mingcheng,shangpinleibie,tupian,gongyingshangmingcheng,xiaoshoujiage,kucun,beizhu) values('$bianhao','$mingcheng','$shangpinleibie','$tupian','$gongyingshangmingcheng','$xiaoshoujiage','$kucun','$beizhu') ";
	mysql_query($sql);
	//danjuzhixi;mysql_query($sql);
	echo "<script>javascript:alert('添加成功!');history.back();</script>";
}
?>

<!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" />
<title>商品信息</title>
<!--bixanjxiqxi-->
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<link rel="stylesheet" href="css.css" type="text/css">
</head>
<script language="javascript">
	
	
	function OpenScript(url,width,height)
{
  var win = window.open(url,"SelectToSort",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
	function OpenDialog(sURL, iWidth, iHeight)
{
   var oDialog = window.open(sURL, "_EditorDialog", "width=" + iWidth.toString() + ",height=" + iHeight.toString() + ",resizable=no,left=0,top=0,scrollbars=no,status=no,titlebar=no,toolbar=no,menubar=no,location=no");
   oDialog.focus();
}
</script>
<body>
<p>添加商品信息: 当前日期: <?php echo $ndate; ?></p>
<script language="javascript">
	function check()
{
	if(document.form1.bianhao.value==""){alert("请输入编号");document.form1.bianhao.focus();return false;}
    if(document.form1.mingcheng.value==""){alert("请输入名称");document.form1.mingcheng.focus();return false;}
    if(document.form1.xiaoshoujiage.value==""){alert("请输入销售价格");document.form1.xiaoshoujiage.focus();return false;}
    if((/^(\+|-)?(0|[1-9]\d*)(\.\d*[1-9])?$/.test(document.form1.xiaoshoujiage.value))){}else{alert("销售价格必需数字型");document.form1.xiaoshoujiage.focus();return false;}
    if((/^(\+|-)?(0|[1-9]\d*)(\.\d*[1-9])?$/.test(document.form1.kucun.value))){}else{alert("库存必需数字型");document.form1.kucun.focus();return false;}
    
后面还有 54 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。