qichexinxi_updt.php

(开头部分) 4KB

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

<?php 
$id=$_GET["id"];
include_once 'conn.php';
$ndate =date("Y-m-d");
$addnew=$_POST["addnew"];
if ($addnew=="1" )
{

	$bianhao=$_POST["bianhao"];$leibie=$_POST["leibie"];$yanse=$_POST["yanse"];$chexing=$_POST["chexing"];$huandangfangshi=$_POST["huandangfangshi"];$zhaopian=$_POST["zhaopian"];$jiage=$_POST["jiage"];$beizhu=$_POST["beizhu"];
	$sql="update qichexinxi set bianhao='$bianhao',leibie='$leibie',yanse='$yanse',chexing='$chexing',huandangfangshi='$huandangfangshi',zhaopian='$zhaopian',jiage='$jiage',beizhu='$beizhu' where id= ".$id;
	mysql_query($sql);
	echo "<script>javascript:alert('修改成功!');location.href='qichexinxi_list.php';</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><link rel="stylesheet" href="css.css" type="text/css"><script language="javascript" src="js/Calendar.js"></script>
</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>
<?php
$sql="select * from qichexinxi where id=".$id;
$query=mysql_query($sql);
$rowscount=mysql_num_rows($query);
if($rowscount>0)
{
?>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse"> 

      <tr><td>编号:</td><td><input name='bianhao' type='text' id='bianhao' value='<?php echo mysql_result($query,$i,bianhao);?>' /></td></tr><tr><td>类别:</td><td><select name='leibie' id='leibie'><?php getoption("qicheleibie","leibie")?></select></select></td></tr><script language="javascript">document.form1.leibie.value='<?php echo mysql_result($query,$i,leibie);?>';</script><tr><td>颜色:</td><td><select name='yanse' id='yanse' style='border:solid 1px #000000; color:#666666'>
        <option value="红">红</option>
        <option value="黑">黑</option>
        <option value="白">白</option>
        <option value="蓝">蓝</option>
        <option value="灰">灰</option>
        <option value="银">银</option>
      </select></td></tr><script language="javascript">document.form1.yanse.value='<?php echo mysql_result($query,$i,yanse);?>';</script><tr><td>车型:</td><td><select name='chexing' id='chexing' style='border:solid 1px #000000; color:#666666'>
        <option value="小轿">小轿</option>
        <option value="商务">商务</option>
        <option value="越野">越野</option>
        <option value="跑车">跑车</option>
      </select></td></tr><script language="javascript">document.form1.chexing.value='<?php echo mysql_result($query,$i,chexing);?>';</script><tr><td>换档方式:</td><td><select name='huandangfangshi' id='huandangfangshi' style='border:solid 1px #000000; color:#666666'>
        <option value="手动">手动</option>
后面还有 19 行代码,购买后查看完整代码

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

AI 解读

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

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