admin/aircompany.php

(开头部分) 5KB

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

<?php
require("../conndb.php");
mysql_Condb();
if($id=="" and $act=="do")
{


 $sql="insert into aircompany(uname,name) values('$uname','$name')";
mysql_query($sql);
header("location:aircompany.php");

}
if($id!="" and $act=="do")
{

	$sql="update aircompany set uname='$uname',name='$name' where id=$id";
	mysql_query($sql);
	echo "<script>alert('修改成功');location.href='aircompany.php'</script>";
	exit;
}
if($del=="ok")
{
	$sql="delete from aircompany where id=$id";
	mysql_query($sql);
header("location:aircompany.php");
}
if($act=="edit")
{
	$sql="select * from aircompany where id=$id";
	$res=mysql_query($sql);
$data1=mysql_fetch_array($res);
}

?>
<!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 href=images/style.css rel=stylesheet type=text/css>
<script language="javascript">

 function chkinput(form)
  {


	  if(form.uname.value=="")
	   {
	     alert("请输入航空公司代码!");
		 form.uname.select();
		 return(false);

	   }
 if(form.name.value=="")
		 {
		   alert("请输入航空公司名称");
		   form.name.select();
		   return(false);
		 }

后面还有 90 行代码,购买后查看完整代码

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

AI 解读

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

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