<head>
<script type="text/javascript">
function over(obj){
obj.style.backgroundColor="#3A5FCD";
obj.style.color="white";
}
function out(obj){
obj.style.backgroundColor="";
obj.style.color="";
}
</script>
<link rel="stylesheet" type="text/css" href="Untitled-1.css">
<style>
#nav a{
color:black;
text-decoration:none;
}
#navin a {
font-size: 20px;
text-decoration:none;
color:black;
font-family:"微软雅黑";
}
#nav {
background-color:#eeeeee;
height:450px;
width:80px;
float:left;
padding:0 30 0 40px;
font-family:"微软雅黑";
font-size:16;
}
#login{
height:450;
width:400;
font-family:"微软雅黑";
float:left;
}
#footer {
background-color:#3A5FCD;
color:white;
clear:both;
width:1300;
text-align:center;
padding:5px;
float:left;
}
#white7 {
background-color:white;
height:450px;
width:100px;
float:left;}
#navin welcome {
font-size: 24px;
}
#header {
font-family: 微软雅黑;
}
#white3 {
background-color:white;
height:450px;
width:200px;
float:left;}
#xian {
background-color:#3A5FCD;
height:3px;
width:1350px;
float:left;}
#white4{
background-color:white;
height:70px;
width:120px;
float:left;
}
#white6{
width:1300;
height:30;}
#welcome{
float:right;
font-family:"微软雅黑";
font-size:16;
}
</style>
</head>
<div id="header">
客服热线:8888888 |安然集团 国内分行 网点及ATM
</div>
<div id="navin">
<div id="white4">
</div>
<img src="未标题-1.gif" alt="logo" width="68" height="70" />
<img src="1508944617_611422.png" alt="logo" width="341" height="62" />
|
<a href="../Untitled-9.html" onMouseMove="over(this);" onMouseOut="out(this);"> 首页 </a>
|
<a href="../index2.html" target="_parent" onMouseMove="over(this);" onMouseOut="out(this);"> 企业业务 </a>
|
<a href="../index.html" target="_parent" onMouseMove="over(this);" onMouseOut="out(this);">个人业务 </a>
|
<a href="../jinrongfuwu.html" onMouseMove="over(this);" onMouseOut="out(this);">金融服务 </a>
|
<a href="../xiaowei.html" onMouseMove="over(this);" onMouseOut="out(this);">小微贷款 </a>
|
</div>
<p>
<?php
session_start();
$m= $_SESSION['message'];
?>
<?php
$username=$_POST['username'];
$count=$_POST['count'];
$mysql_server_name="localhost:1227" ; //数据库服务器名称
$mysql_username="root"; // 连接数据库用户名
$mysql_password="xar961227"; // 连接数据库密码
$mysql_database="bank"; // 数据库的名字
// 连接到数据库
$conn=mysqli_connect($mysql_server_name, $mysql_username,$mysql_password);
mysqli_select_db($conn,$mysql_database);
$cardid=$m["cardid"];
$cid=$m["cid"];
$result=mysqli_query($conn,"SELECT * FROM companyinfo where cid='$cid'") ;
$p=mysqli_fetch_array($result);
$result=mysqli_query($conn,"SELECT * FROM accountinfo where cardid='$cardid'") ;
$c=mysqli_fetch_array($result);
$realamount=$c["amount"];
$result=mysqli_query($conn,"SELECT * FROM accountinfo where cardid='$username'") ;
$toc=mysqli_fetch_array($result);
if($toc){
if($count<=$realamount)
{ echo "<script>alert('转账成功');history.go(-1)
;</script>";
mysqli_query($conn,"update accountinfo set amount=amount+'$count' where cardid='$username'");
mysqli_query($conn,"update accountinfo set amount=amount-'$count' where cardid='$cardid'");
$result=mysqli_query($conn,"select count(*) from transactioninfo");
date_default_timezone_set('PRC'); // 中国时区
$time=date('y-m-d h:i:s',time());
$num=mysqli_fetch_array($result);
mysqli_query($conn,"insert into transactioninfo values ('$num[0]', '$cardid', '$count', '$time','$username')");
}
else
{echo "<script>alert('卡内余额不足,转账失败');
history.go(-1);
</script>";}}
else{
echo "<script>alert('输入的卡号不存在,转账失败');history.go(-1);</script>";}
echo "<div id='welcome' >"."<img src='QQ图片20171203174744.png' width='20' height='20'/>"."welcome:".$p["name"]."</div>";
?>
<div id="xian">
</div>
<div id="white6">
</div>
</div>
<div id="nav">
<p style="color:black"><a href="company1.php">基本信息</a></p><br>
<p><a href="company2.php" style="color:#03C">转账汇款</a></p><br>
<p style="color:black" ><a href="company3.php">查询余额</a></p><br>
<p style="color:black"><a href="company4.php" >金融数据</a></p><br>
<p style="color:black"><a href="company5.php">转账记录</a></p><br>
</div>
<div id="white3">
</div>
<div id="login">
<?php
echo "<div id='me' >"."<br><br>"."卡内余额:".$c["amount"]."<br><br><br>"."</div>";
?>
<form action="login2_2.php" name="loginform" accept-charset="utf-8" method="post"><input type="hidden" name="did" value="0" />
<input type="hidden" name="to" value="log" />
<div id="user">
<label for="u">转账帐号:</label>
<input type="text" id="u" name="notuseusername" /><br><br><br>
</div>
<div id="passwd">
<label for="p">转账金额:</label>
<input type="number" id="p" name="notusecount" /><br><br>
</div>
<div style="margin-top:20px;"><input type="submit" value="转 帐" style="width:224px;"/></div>
</form>
</div>
<div id="white7">
</div>
<div id="img" style="float:left">
<img src="360软件小助手截图20171205105522.png"/> </div>
<div id="footer">
Copyright xuanran
</div>
<?php
$_SESSION["count"]=$c;
?>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
制作了个人银行系统。 分为企业用户和个人用户两类角色,能够实现个人信息查询、余额查询、转账信息查询、转账等功能。放在Apache环境工作区内可以直接打开网页进行操作和功能查看。(压缩包内附带noSQL的完整数据库) 页面设计规范美观,严格按照设计标准。主体色调为蓝色。 (请用IE内核如360安全浏览器等打开,亲测谷歌的chrome内核会出现乱码,因为时间原因没做不同内核的适应设计) 实验考核最后的结果为优秀。
资源推荐
资源详情
资源评论
收起资源包目录
bank.rar (41个子文件)
login1.php 4KB
company2.php 5KB
index2.html 3KB
QQ截图20171206001907.png 202KB
360软件小助手截图20171206003155.png 1.03MB
20160324171535823991.jpg 26KB
index.html 3KB
QQ截图20171205234630.png 860KB
company5.php 4KB
company4.php 4KB
20160325094259957202.jpg 16KB
1508944617_611422.png 9KB
login2_2.php 5KB
Untitled-1.css 1KB
untitled2.png 163KB
360软件小助手截图20171202133247.png 1.28MB
company1.php 4KB
login3.php 4KB
QQ截图20171206000127.png 233KB
QQ图片20171205110205.png 16KB
login5.php 4KB
company2_2.php 6KB
未标题-1.gif 14KB
company3.php 4KB
QQ截图20171025222034.png 327KB
timg.jpg 34KB
xiaowei.html 2KB
bank.sql 11KB
Untitled-9.html 4KB
login.php 4KB
untitled.png 382B
jinrongfuwu.html 2KB
untitled3.png 145KB
QQ截图20171129235517.png 947KB
20300542496312139761839030910.jpg 12KB
360软件小助手截图20171205105522.png 151KB
company.php 4KB
_notes
dwsync.xml 922B
login4.php 4KB
login2.php 4KB
QQ图片20171203174744.png 15KB
共 41 条
- 1
资源评论
- 德宏大魔王2022-12-23可以的这个!
- programmer_lw2018-12-30真的是很好用了
- Jason01142018-12-19大作业做这个,支持了
ARRX
- 粉丝: 118
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功