基于php的简单图书管理系统 ,登录,注册,退出登录,数据库增删改查 ,建立sessioon ,建立mysql数据库。_php图书管理系统-程序员宅基地

技术标签: css  html5  php  mysql  数据库  

目录

一.建立MySQL数据库

二.链接数据库文件(conn.php)

三.前端登录页面(log.php)

四.登录实现页面(log_ok.php)

五.前端注册页面(register.php)

六.注册实现界面(register_ok.php)

七.主页面(index1.php)增删改查中的 查

八.添加图书(index_ok.php)增删改查中的 增

九.修改和删除页面(index-select.php)

十.修改图书(update.php)

十一.修改成功页面(update_ok.php)

十二.删除页面(delete.php)

十三.退出系统(back.php)


一.建立MySQL数据库

1.我使用的是xampp,在浏览器地址栏输入http://localhost//phpmyadmin

注意:端口号默认是80端口,也就是http://localhost:80//phpmyadmin,如果你改了你的端口号注意更改

2.点击新建数据库(库名是itcast52)两个表明,book52(增删改查用)user52(登录注册用)

以下是数据库的文件,建立一个记事本,把代码粘贴上去,点击保存,把后缀从text改成sql,然后在数据库建立一个itcast52数据库,在数据库里面导入sql文件即可(数据库就完毕了)

-- phpMyAdmin SQL Dump
-- version 3.5.2.2
-- http://www.phpmyadmin.net
--
-- 主机: 127.0.0.1
-- 生成日期: 2022 年 05 月 16 日 05:24
-- 服务器版本: 5.5.27
-- PHP 版本: 5.4.7

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;

--
-- 数据库: `itcast52`
--

-- --------------------------------------------------------

--
-- 表的结构 `book52`
--

CREATE TABLE IF NOT EXISTS `book52` (
  `id` varchar(20) NOT NULL,
  `name` varchar(20) CHARACTER SET utf8 COLLATE utf8_estonian_ci NOT NULL,
  `price` varchar(20) NOT NULL,
  `data` varchar(20) NOT NULL,
  `type` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- 转存表中的数据 `book52`
--

INSERT INTO `book52` (`id`, `name`, `price`, `data`, `type`) VALUES
('003', 'csdn', '55', '2025-11-6', '数据库设计'),
('012', '雕塑', '17777', '20255-5-6', '雕塑'),
('066', '固化剂', '255', '2001-09-06', '添加剂'),
('3119050152', '张修博', '999999', '2000-01-12', '人');

-- --------------------------------------------------------

--
-- 表的结构 `user52`
--

CREATE TABLE IF NOT EXISTS `user52` (
  `account` char(100) NOT NULL,
  `username` char(100) NOT NULL,
  `sex` char(100) NOT NULL,
  `age` char(100) NOT NULL,
  `address` char(100) NOT NULL,
  `mail` char(100) NOT NULL,
  `password` char(100) NOT NULL,
  `number` char(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

--
-- 转存表中的数据 `user52`
--

INSERT INTO `user52` (`account`, `username`, `sex`, `age`, `address`, `mail`, `password`, `number`) VALUES
('3119050152', '张修博', '男', '21', '河南商丘', '[email protected]', '3119050152', '3119050152');

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

二.链接数据库文件(conn.php)

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>conn文件</title>
</head>

<body>
		<?php
	
$mysql_server_name = 'localhost'; //改成自己的mysql数据库服务器
$mysql_username = 'root'; //改成自己的mysql数据库用户名
$mysql_password = ''; //改成自己的mysql数据库密码
$mysql_database = 'itcast52'; //改成自己的mysql数据库名
$conn=mysqli_connect($mysql_server_name,$mysql_username,$mysql_password,$mysql_database); //连接数据库
//连接数据库错误提示
	mysqli_query($conn, 'set names utf8');
	mysqli_query($conn, 'set character set utf8');
if (mysqli_connect_errno($conn)) 
{ 
	die("连接 MySQL 失败: " . mysqli_connect_error()); 
}
?>
</body>
</html>

三.前端登录页面(log.php)

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
	<style type="text/css">
		#aaa{width: 300px;
		height: 30px;}		
		
	</style>

<body>
    <center>
		<h2>登录界面</h2>
    <form method="POST" action="log_ok.php">
       账号 :<input id="aaa" type="text" name="uname" placeholder="用户名" />
        <br /><br/>
       密码 :<input id="aaa"type="password" name="pwd" placeholder="密码" />
        <br />
        <input type="submit" >
		<input type="reset"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="register.php">注册账号</a>
		
    </form>
</center>
</body>
</html>

四.登录实现页面(log_ok.php)

<?php
//------文件编码格式,为了显示中文--------
header("content-type:text/html; charest=UTF-8");

//-------收受web的传值-------
$uname=$_POST["uname"];
$pwd=$_POST["pwd"];

//-----链接mysql数据库---
include("conn.php");

//----免除一些警告-------
error_reporting(0);

//-------启动session------
session_start();

//判断$uname与$pwd是否为空值-->true 返回上一步-->false 执行数据库查询,并且给session赋值
if(!($uname && $pwd)){
	echo"<script>alert('输入的账号或密码为空!请重新输入账号和密码');history.go(-1);</script>";
}else{
	$sqlstr ="SELECT * FROM user52 WHERE (account='$uname') AND (password='$pwd')";
	
	$result = $conn->query($sqlstr);
	}	
	if($result->num_rows > 0){
		$_SESSION["user"]=$uname;
		echo"<script>alert('登录成功,即将转到主页面');location='index1.php'</script>";	
		
	}else{
		echo"<script>alert('密码或者账号错误,登录失败,请重新输入账号和密码');history.go(-1);</script>";
}

?>

五.前端注册页面(register.php)

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
	<style type="text/css">
		.aaa{width: 300px;
		height: 30px;}		
		
	</style>
	<style type="text/javascript">
	</style>

<body>
	<?php 
	$a=mt_rand(333333,999999999);
	?>
	
	<center>
		<h2>注册界面</h2>
 <form method="post" name="from1" action="register_ok.php"><!--  在数据库中id是自动增长列  -->
	     账号:   <input name="id"  class="aaa" type="text" value="<?php echo"$a";?>"><br/><br/>
         姓名: <input  class="aaa" type="text"  name="username"><br/><br/>
	     性别: <input  class="aaa" type="text"  name="sex"><br/><br/>
	     年龄: <input  class="aaa" type="text"  name="age"><br/><br/>
	     地址: <input  class="aaa" type="text"  name="address"><br/><br/>
         邮箱: <input  class="aaa" type="text"  name="mail"><br/><br/>
	     密码: <input  class="aaa" type="text"  name="password"><br/><br/>
确认   密码: <input  class="aaa" type="text"  name="repsw"><br/><br/>
   手机号:    <input   class="aaa"type="text"  name="number"><br/><br/>
     
		 
	 <input type="reset"name="reset" value="重置">
	 <input type="submit"name="submit" value="注册"  onClick="myfunction">
	&nbsp;&nbsp;  <a href="log.php"><< 返回上一页</a>
	 <a href="register.php">点击注册</a>
</form>
</body>
</html>

六.注册实现界面(register_ok.php)

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
	
</body>

<body>
	<?php
	include_once("conn.php");
	header("content-type:text/html; charest=UTF-8");//文件编码格式
	session_start();
	
	
	$id=$_POST['id'];
	$username=$_POST['username'];
	$sex=$_POST['sex'];
	$age=$_POST['age'];
	$address=$_POST['address'];
	$mail=$_POST['mail'];
	$password=$_POST['password'];
	$repsw=$_POST['repsw'];
	$number=$_POST['number'];
	
	
	
    
	if(!($id and $username and $sex and $age and $address and $mail and $password and $number and $repsw )){
		echo"<script>alert('输入值不许为空');history.go(-1);</script>";
	}else{
		 if(!($repsw==$password)){
		echo"<script>alert('两次密码不一致');history.go(-1);</script>";
	 }else{
	$sql = "SELECT * FROM user52 WHERE (account='$id')";//在数据库中找相应信息!
	$res = $conn->query($sql);
		 //判断结果集的记录数是否大于0
	
		if ($res->num_rows > 0){
			echo"<script>alert('已经有相同账号,请您换个账号进行注册');history.go(-1);</script>";
		}else{
			$_SESSION['user']=$id;
			$sqlstr1="insert into user52 values('".$id."','".$username."','".$sex."','".$age."','".$address."','".$mail."','".$password."','".$number."')";
		    //执行sql   insert语句    把用post引用的变量接入到register中
		    $result = mysqli_query($conn,$sqlstr1);//承接结果集
			
			if($result){
			echo"<script>alert('注册成功');location='index1.php'</script>";	
			}else{
			echo"<script>alert('注册失败');history.go(-1);</script>";	
			}
		}
}
			 
 }
	
	
	?>
</body>
</html>

七.主页面(index1.php)增删改查中的 查

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>图书管理系统</title>
</head>

<body>
<?php
error_reporting(0);
session_start();
include("conn.php");
?>
<center>
    <table width="799" height="247" border="1" cellpadding="0" cellspacing="0">
        <tr>
            <td height="220" background="1.jpg">&nbsp;</td>
        </tr>
        <tr>
            <td>
                <table width="100%" height="27"  border="1" cellpadding="0" cellspacing="0">
                    <tr bgcolor="#9791C2">
                        <td width="149" align="center" valign="middle"><b>
                                <?php
                                echo date("Y-m-d")."";
                                ?>
                            </b></td>
                        <td width="130" align="center" valign="middle"><a href="index1.php" class="s">浏览目录</a></td>
                        <td width="130" align="center" valign="middle"><a href="index_ok.php" class="s">添加图书</a></td>
                        <td width="130" align="center" valign="middle"><a href="index-select.php" class="s">简单查询</a></td>
                        <td width="130" align="center" valign="middle"><a href="back.php" class="s">退出系统</a></td>
                        <td width="130" align="center" valign="middle"><a href="index1.php" class="s"><?php if(!($_SESSION['user']))
                                    echo'session为空';
                                else{
                                    echo"欢迎 :";
                                    echo $_SESSION['user'];

                                } ?></a></td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table width="799"  border="0" cellpadding="0" cellspacing="0">
        <tr>
        <tr align="center" valign="middle">
            <?php
            include_once("conn.php");
            ?>
            <table width="52.5%" border="1" cellpadding="0" cellspacing="0">
                <tr bgcolor="#F7E0A3">
                    <td width="3%" height="25" class="top" align="center">id</td>
                    <td width="10%" class="top" align="center">图书名称</td>
                    <td width="10%" class="top" align="center">价格</td>
                    <td width="10%" class="top" align="center">出版日期</td>
                    <td width="5%" class="top" align="center">类型</td>
                </tr>
                <?php
                $result = mysqli_query($conn,"select * from book52 ");
                /*$sums = mysqli_num_rows($result);
                echo $nums;*/
                while($myrows = mysqli_fetch_array($result)){
                    ?>
                    <tr>
                        <td align="center"><span class="STYLE2"><?php echo $myrows['id'];?></span></td>
                        <td align="center"><span class="STYLE2"><?php echo $myrows['name'];?></span></td>
                        <td align="center"><span class="STYLE2"><?php echo $myrows['price'];?></span></td>
                        <td align="center"><span class="STYLE2"><?php echo $myrows['data'];?></span></td>
                        <td align="center"><span class="STYLE2"><?php echo $myrows['type'];?></span></td>
                    </tr>

                    <?php

                }
                ?>
            </table>
        </tr>
        </tr>
    </table>
</center>
<?php
$sum = mysqli_num_rows($result);
echo $sum;
?>
</body>
</html>

八.添加图书(index_ok.php)增删改查中的 增

这个代码包含了实现的代码!

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>添加数据</title>
</head>

<body>
<?php
	error_reporting(0);
session_start();
	include("conn.php");

?>
	<center>
	<table width="799" height="247" border="1" cellpadding="0" cellspacing="0">
		<tr>
			<td height="220" background="1.jpg">&nbsp;</td>
		</tr>
		<tr>
			<td>
		<table width="100%" height="27"  border="1" cellpadding="0" cellspacing="0">
			<tr bgcolor="#9791C2">
			<td width="149" align="center" valign="middle">
				<b>
			<?php
				echo date("Y-m-d")."";
			?>
			</b>
				</td>
			<td width="130" align="center" valign="middle"><a href="index1.php" class="s">浏览目录</a></td>
			<td width="130" align="center" valign="middle"><a href="index_ok.php" class="s">添加图书</a></td>
			<td width="130" align="center" valign="middle"><a href="index-select.php" class="s">简单查询</a></td>
			
			<td width="130" align="center" valign="middle"><a href="back.php" class="s">退出系统</a></td>
			<td width="130" align="center" valign="middle"><a href="index1.php" class="s"><?php if(!($_SESSION['user']))
echo'session为空';
else{
	echo"欢迎 :";
	echo $_SESSION['user'];
	
	} ?></a></td>
		    </tr>
	        </table>
				
				
		    </td>
	    </tr>
	</table>
		
		
		
		<form method="post" name="form1" action="index_ok.php">
			
		    编号 : <input type="text" name="id" ></input><br/><br/>
			姓名 : <input type="text" name="name"></input><br/><br/>
		    价格 : <input type="text" name="price"></input><br/><br/>
			日期 : <input type="text" name="data"></input><br/><br/>
			类型 : <input type="text" name="type"></input><br/><br/>
			<input type="reset" name="5" value="重置"></input>
			<input type="submit" name="6" value="提交"></input>
            
		</form>
<?php
error_reporting(0);
	header("content-type:text/html; charest=UTF-8");//文件编码格式
	include_once("conn.php");//连接数据库文件
$a=$_POST["id"];
$b=$_POST["name"];
$c=$_POST["price"];
$d=$_POST["data"];
$e=$_POST["type"];

//把input中的namejie


if(!($a and $b and $c and $d and $e)){
	echo"<script>alter('输入值不许为空');history.go(-1);</script>";//判断变量名是否为空值
	
}else{

	
$sqlstr1="insert into book52 values('".$a."','".$b."','".$c."','".$d."','".$e."')";
		
		//执行sql   insert语句    把用post引用的变量接入到bookable中
		
		$result = mysqli_query($conn,$sqlstr1);//承接结果集
		
		if($result){
			echo"<script>alter('添加成功');location='index1.php'</script>";	
		}else{
			echo"<script>alter('添加失败');history.go(-1);</script>";
		}
}
?>
		</center>
</body>
</html>

九.修改和删除页面(index-select.php)

这个页面包含了两个功能  修改 和  删除  但是 功能实现 在另外两个页面里

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>简单查询</title>
</head>

<body>
<?php
	error_reporting(0);
session_start();
	include("conn.php");

?>
	<center>
	<table width="799" height="247" border="1" cellpadding="0" cellspacing="0">
		<tr>
			<td height="220" background="1.jpg">&nbsp;</td>
		</tr>
		<tr>
			<td>
			<table width="100%" height="27"  border="1" cellpadding="0" cellspacing="0">
			<tr bgcolor="#9791C2">
			<td width="149" align="center" valign="middle"><b>
			<?php
				echo date("Y-m-d")."";
			?>
			</b></td>
			<td width="130" align="center" valign="middle"><a href="index1.php" class="s">浏览目录</a></td>
			<td width="130" align="center" valign="middle"><a href="index_ok.php" class="s">添加图书</a></td>
			<td width="130" align="center" valign="middle"><a href="index-select.php" class="s">简单查询</a></td>
			
			<td width="130" align="center" valign="middle"><a href="back.php" class="s">退出系统</a></td>
			<td width="130" align="center" valign="middle"><a href="index1.php" class="s"><?php if(!($_SESSION['user']))
echo'session为空';
else{
	echo"欢迎 :";
	echo $_SESSION['user'];
	
	} ?></a></td>
		    </tr>
	        </table>
		    </td>
	    </tr>
	</table>
	<table width="799"  border="0" cellpadding="0" cellspacing="0">
		<tr>
		<tr align="center" valign="middle">
				<?php
					include_once("conn.php");
				?>
				<table width="52.5%" border="1" cellpadding="0" cellspacing="0">
					<tr bgcolor="#F7E0A3">
						<td width="3%" height="25" class="top" align="center">id</td>
						<td width="10%" class="top" align="center">图书名称</td>
						<td width="10%" class="top" align="center">价格</td>
						<td width="10%" class="top" align="center">出版日期</td>
						<td width="5%" class="top" align="center">类型</td>
						<td width="5%" class="top" align="center">芜湖</td>
					</tr>
		<?php
		
		header("content-type:text/html; charest=UTF-8");//文件编码格式
	include_once("conn.php");//连接数据库文件
		
		$sqlstr="select * from book52 order by id ";//通过把sql语句放到变量值中 来执行php
		
		$result = mysqli_query($conn,$sqlstr);//承接结果集   一般来说结果集之后会被用在循环中例如index_ok.php ,或者遍历输出数据库中的值例如index1.php
		
		while($rows= mysqli_fetch_row($result)){
			
			?>
					<tr>
					<td align="center"><span class="m_td"><?php echo $rows[0];?></span></td>
					<td align="center"><span class="m_td"><?php echo $rows[1];?></span></td>
					<td align="center"><span class="m_td"><?php echo $rows[2];?></span></td>
					<td align="center"><span class="m_td"><?php echo $rows[3];?></span></td>
					<td align="center"><span class="m_td"><?php echo $rows[4];?></span></td>
					<td align="center" class="m_td">
						<a href =update.php?action=update&id=<?php echo $rows[0]?>>修改</a>/
						<a href =delete.php?action=delete&id=<?php echo $rows[0]?>>删除</td>
					</tr>
					
					<?php
						
						}
					?>	
					
							</table>
		    </tr>
		</tr>  
	</table>
</center>
	
	
</body>
</html>

十.修改图书(update.php)

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>更改文档</title>
</head>

<body>
	
		<?php
		error_reporting(0);
		include_once("conn.php");//连接数据库文件
		if($_GET['action']=="update"){
			
			$sqlstr="select * from book52 where id =".$_GET['id'];      //".$_GET['id'];没看懂
			$result = mysqli_query($conn,$sqlstr);//承接结果集   一般来说结果集之后会被用在循环中例如index_ok.php ,或者遍历输出数据库中的值例如index1.php
			$rows = mysqli_fetch_row($result);       //枚举数组
		
	
			?>
		  
			
		<form method="post" name="intForm" action="update_ok.php">
			
		    姓名 : <input type="text" name="name"     value="<?php echo $rows[1];    ?>"></input><br/><br/>
			价格 : <input type="text" name="price"   value="<?php echo $rows[2];  ?>"></input><br/><br/>
		    日期 : <input type="text" name="data"  value="<?php echo $rows[3]; ?>"></input><br/><br/>
		    类型 : <input type="text" name="type"   value="<?php echo $rows[4];  ?>"></input><br/><br/>
			<input type="hidden" name="action"value="update"></input>
			<input type="hidden" name="id" value="<?php echo $rows[0] ?>"></input>
            <input type="reset" name="Reset" value="重置">
            <input type="submit" name="Submit" value="提交">
            
            
		</form>

	<?php
		}
				?>
	
</body>
</html>

十一.修改成功页面(update_ok.php)

这个项目的实现是 地址栏传参数,不会的同学可以去看下资料就差不多会了

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
	<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>更新数据</title>
</head>
<body>
<?php
header("Content-type:text/html; charest=UTF-8");//编码方式

include_once("conn.php");//连接数据库
$a=$_POST["id"];
$b=$_POST["name"];
$c=$_POST["price"];
$d=$_POST["data"];
$e=$_POST["type"];
	if($_POST['action'] == "update"){
		if(!( $b and $c and $d and $e)){
			echo "输入不允许为空";  //返回上一页  或者使用alert
		}else{
		$sqlstr="update book52 set  name='".$b."',price='".$c."',data='".$d."',type='".$e."' where id=".$a; //定义更新语句
		
		//如果查询所有后面属性可以省略,一一对应
		$result = mysqli_query($conn,$sqlstr);
		
		
		if($result){
			echo"修改成功,点击<a href='index1.php'>这里</a>查看";
		}else{
			echo"修改失败.<br>$sqlstr";
		}
	}
	}
?>
</body>
</html>
</body>
</html>

十二.删除页面(delete.php)

包含了删除的功能

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
	<?php
	header("Content-type:text/html; charest=UTF-8");//编码方式
	// 处理删除操作的页面 
	include_once("conn.php");
	if($_GET['action']=="delete"){
	$sqlstr1="delete from book52 where id =".$_GET['id'];
	$result=mysqli_query($conn,$sqlstr1);
		
		
		if($result){
			echo"删除成功";
		}else{
			echo"删除失败";
		}
	}
	
?>
</body>
</html>

十三.退出系统(back.php)

这个代码就是清除session的值,并且返回到登陆页面

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
	 <?php
	session_start();
	session_unset();
	session_destroy();
	echo"<script>alert('您已经退出系统,请重新登录');location='log.php'</script>";
	
	?>
</body>
</html>

总结:由于仅仅是实现了该有的功能,所以页面不是太美观,有时间的同学可以仔细改一下,如果同学们有什么问题或者我写错了什么,可以在评论区发言,我看到会回复的,共同学习!勉励!!

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_51272114/article/details/124804827

智能推荐

从零开始搭建Hadoop_创建一个hadoop项目-程序员宅基地

文章浏览阅读331次。第一部分:准备工作1 安装虚拟机2 安装centos73 安装JDK以上三步是准备工作,至此已经完成一台已安装JDK的主机第二部分:准备3台虚拟机以下所有工作最好都在root权限下操作1 克隆上面已经有一台虚拟机了,现在对master进行克隆,克隆出另外2台子机;1.1 进行克隆21.2 下一步1.3 下一步1.4 下一步1.5 根据子机需要,命名和安装路径1.6 ..._创建一个hadoop项目

心脏滴血漏洞HeartBleed CVE-2014-0160深入代码层面的分析_heartbleed代码分析-程序员宅基地

文章浏览阅读1.7k次。心脏滴血漏洞HeartBleed CVE-2014-0160 是由heartbeat功能引入的,本文从深入码层面的分析该漏洞产生的原因_heartbleed代码分析

java读取ofd文档内容_ofd电子文档内容分析工具(分析文档、签章和证书)-程序员宅基地

文章浏览阅读1.4k次。前言ofd是国家文档标准,其对标的文档格式是pdf。ofd文档是容器格式文件,ofd其实就是压缩包。将ofd文件后缀改为.zip,解压后可看到文件包含的内容。ofd文件分析工具下载:点我下载。ofd文件解压后,可以看到如下内容: 对于xml文件,可以用文本工具查看。但是对于印章文件(Seal.esl)、签名文件(SignedValue.dat)就无法查看其内容了。本人开发一款ofd内容查看器,..._signedvalue.dat

基于FPGA的数据采集系统(一)_基于fpga的信息采集-程序员宅基地

文章浏览阅读1.8w次,点赞29次,收藏313次。整体系统设计本设计主要是对ADC和DAC的使用,主要实现功能流程为:首先通过串口向FPGA发送控制信号,控制DAC芯片tlv5618进行DA装换,转换的数据存在ROM中,转换开始时读取ROM中数据进行读取转换。其次用按键控制adc128s052进行模数转换100次,模数转换数据存储到FIFO中,再从FIFO中读取数据通过串口输出显示在pc上。其整体系统框图如下:图1:FPGA数据采集系统框图从图中可以看出,该系统主要包括9个模块:串口接收模块、按键消抖模块、按键控制模块、ROM模块、D.._基于fpga的信息采集

微服务 spring cloud zuul com.netflix.zuul.exception.ZuulException GENERAL-程序员宅基地

文章浏览阅读2.5w次。1.背景错误信息:-- [http-nio-9904-exec-5] o.s.c.n.z.filters.post.SendErrorFilter : Error during filteringcom.netflix.zuul.exception.ZuulException: Forwarding error at org.springframework.cloud..._com.netflix.zuul.exception.zuulexception

邻接矩阵-建立图-程序员宅基地

文章浏览阅读358次。1.介绍图的相关概念  图是由顶点的有穷非空集和一个描述顶点之间关系-边(或者弧)的集合组成。通常,图中的数据元素被称为顶点,顶点间的关系用边表示,图通常用字母G表示,图的顶点通常用字母V表示,所以图可以定义为:  G=(V,E)其中,V(G)是图中顶点的有穷非空集合,E(G)是V(G)中顶点的边的有穷集合1.1 无向图:图中任意两个顶点构成的边是没有方向的1.2 有向图:图中..._给定一个邻接矩阵未必能够造出一个图

随便推点

MDT2012部署系列之11 WDS安装与配置-程序员宅基地

文章浏览阅读321次。(十二)、WDS服务器安装通过前面的测试我们会发现,每次安装的时候需要加域光盘映像,这是一个比较麻烦的事情,试想一个上万个的公司,你天天带着一个光盘与光驱去给别人装系统,这将是一个多么痛苦的事情啊,有什么方法可以解决这个问题了?答案是肯定的,下面我们就来简单说一下。WDS服务器,它是Windows自带的一个免费的基于系统本身角色的一个功能,它主要提供一种简单、安全的通过网络快速、远程将Window..._doc server2012上通过wds+mdt无人值守部署win11系统.doc

python--xlrd/xlwt/xlutils_xlutils模块可以读xlsx吗-程序员宅基地

文章浏览阅读219次。python–xlrd/xlwt/xlutilsxlrd只能读取,不能改,支持 xlsx和xls 格式xlwt只能改,不能读xlwt只能保存为.xls格式xlutils能将xlrd.Book转为xlwt.Workbook,从而得以在现有xls的基础上修改数据,并创建一个新的xls,实现修改xlrd打开文件import xlrdexcel=xlrd.open_workbook('E:/test.xlsx') 返回值为xlrd.book.Book对象,不能修改获取sheett_xlutils模块可以读xlsx吗

关于新版本selenium定位元素报错:‘WebDriver‘ object has no attribute ‘find_element_by_id‘等问题_unresolved attribute reference 'find_element_by_id-程序员宅基地

文章浏览阅读8.2w次,点赞267次,收藏656次。运行Selenium出现'WebDriver' object has no attribute 'find_element_by_id'或AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'等定位元素代码错误,是因为selenium更新到了新的版本,以前的一些语法经过改动。..............._unresolved attribute reference 'find_element_by_id' for class 'webdriver

DOM对象转换成jQuery对象转换与子页面获取父页面DOM对象-程序员宅基地

文章浏览阅读198次。一:模态窗口//父页面JSwindow.showModalDialog(ifrmehref, window, 'dialogWidth:550px;dialogHeight:150px;help:no;resizable:no;status:no');//子页面获取父页面DOM对象//window.showModalDialog的DOM对象var v=parentWin..._jquery获取父window下的dom对象

什么是算法?-程序员宅基地

文章浏览阅读1.7w次,点赞15次,收藏129次。算法(algorithm)是解决一系列问题的清晰指令,也就是,能对一定规范的输入,在有限的时间内获得所要求的输出。 简单来说,算法就是解决一个问题的具体方法和步骤。算法是程序的灵 魂。二、算法的特征1.可行性 算法中执行的任何计算步骤都可以分解为基本可执行的操作步,即每个计算步都可以在有限时间里完成(也称之为有效性) 算法的每一步都要有确切的意义,不能有二义性。例如“增加x的值”,并没有说增加多少,计算机就无法执行明确的运算。 _算法

【网络安全】网络安全的标准和规范_网络安全标准规范-程序员宅基地

文章浏览阅读1.5k次,点赞18次,收藏26次。网络安全的标准和规范是网络安全领域的重要组成部分。它们为网络安全提供了技术依据,规定了网络安全的技术要求和操作方式,帮助我们构建安全的网络环境。下面,我们将详细介绍一些主要的网络安全标准和规范,以及它们在实际操作中的应用。_网络安全标准规范