血库和献血者管理系统
此项目是血库和献血者管理系统。这个管理系统是维护与献血者,每个血库中可用的不同血型有关的所有信息,并帮助他们以更好的方式进行管理。从下面两点去运行项目:1.下载文件并将其解压缩到本地系统副本bbdms上。2.将bbdms文件夹放在根目录中。本人只展示了一小段代码,如想了解更详细请下载附件。
应用介绍
此项目是血库和献血者管理系统。这个管理系统是维护与献血者,每个血库中可用的不同血型有关的所有信息,并帮助他们以更好的方式进行管理。访问者功能(前端)有响应式模板、易于使用、献血者登记系统、血型和基于位置的搜索引擎、捐助者详细信息、联系我们。从下面两点去运行项目:1.下载文件并将其解压缩到本地系统副本bbdms上。2.将bbdms文件夹放在根目录中。本人只展示了一小段代码,如想了解更详细请下载附件。
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(isset($_POST['send']))
{
$name=$_POST['fullname'];
$email=$_POST['email'];
$contactno=$_POST['contactno'];
$message=$_POST['message'];
$sql="INSERT INTO tblcontactusquery(name,EmailId,ContactNumber,Message) VALUES(:name,:email,:contactno,:message)";
$query = $dbh->prepare($sql);
$query->bindParam(':name',$name,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':contactno',$contactno,PDO::PARAM_STR);
$query->bindParam(':message',$message,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Query Sent. We will contact you shortly";
}
else
{
$error="Something went wrong. Please try again";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>Modern Business - Start Bootstrap Template</title>
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
<!-- Custom styles for this template -->
<link href="css/modern-business.css" rel="stylesheet">
<!-- Temporary navbar container fix -->
<style>
.navbar-toggler {
z-index: 1;
}
@media (max-width: 576px) {
nav > .container {
width: 100%;
}
}
</style>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<?php include('includes/header.php');?>
<!-- Page Content -->
<div class="container">
<!-- Page Heading/Breadcrumbs -->
<h1 class="mt-4 mb-3">Contact</h1>
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.php">Home</a>
</li>
<li class="breadcrumb-item active">Contact</li>
</ol>
<!-- Content Row -->
<div class="row">
<!-- Map Column -->
<div class="col-lg-8 mb-4">
<h3>Send us a Message</h3>
<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php echo htmlentities($error); ?> </div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo htmlentities($msg); ?> </div><?php }?>
<form name="sentMessage" method="post">
<div class="control-group form-group">
<div class="controls">
<label>Full Name:</label>
<input type="text" class="form-control" id="name" name="fullname" required data-validation-required-message="Please enter your name.">
<p class="help-block"></p>
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Phone Number:</label>
<input type="tel" class="form-control" id="phone" name="contactno" required data-validation-required-message="Please enter your phone number.">
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Email Address:</label>
<input type="email" class="form-control" id="email" name="email" required data-validation-required-message="Please enter your email address.">
</div>
</div>
<div class="control-group form-group">
<div class="controls">
<label>Message:</label>
<textarea rows="10" cols="100" class="form-control" id="message" name="message" required data-validation-required-message="Please enter your message" maxlength="999" style="resize:none"></textarea>
</div>
</div>
<div id="success"></div>
<!-- For success/fail messages -->
<button type="submit" name="send" class="btn btn-primary">Send Message</button>
</form>
</div>
<!-- Contact Details Column -->
<?php
$pagetype=$_GET['type'];
$sql = "SELECT Address,EmailId,ContactNo from tblcontactusinfo";
$query = $dbh -> prepare($sql);
$query->bindParam(':pagetype',$pagetype,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<div class="col-lg-4 mb-4">
<h3>Contact Details</h3>
<p>
<?php echo htmlentities($result->Address); ?>
<br>
</p>
<p>
<abbr title="Phone">P</abbr>: <?php echo htmlentities($result->ContactNo); ?>
</p>
<p>
<abbr title="Email">E</abbr>: <a href="mailto:name@example.com"><?php echo htmlentities($result->EmailId); ?>
</a>
</p>
<?php }} ?>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container -->
<?php include('includes/footer.php');?>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/tether/tether.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<!-- Contact form JavaScript -->
<!-- Do not edit these files! In order to set the email address and subject line for the contact form go to the bin/contact_me.php file. -->
<script src="js/jqBootstrapValidation.js"></script>
<script src="js/contact_me.js"></script>
</body>
</html>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 血库和献血者管理系统
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
bloodbank and donar management system | 0.00 KB | 2017-11-02 |
bbdms | 0.00 KB | 2017-07-54 |
admin | 0.00 KB | 2017-09-06 |
add-bloodgroup.php | 4.25 KB | 2017-07-10 |
add-donor.php | 7.09 KB | 2017-11-34 |
change-password.php | 5.63 KB | 2017-07-12 |
css | 0.00 KB | 2017-07-08 |
awesome-bootstrap-checkbox.css | 6.58 KB | 2016-03-20 |
bootstrap-select.css | 6.49 KB | 2016-03-20 |
bootstrap-social.css | 33.04 KB | 2016-03-20 |
bootstrap.min.css | 122.06 KB | 2016-03-20 |
css | 0.00 KB | 2017-07-08 |
vars.css | 0.17 KB | 2016-03-20 |
dataTables.bootstrap.min.css | 4.15 KB | 2016-03-20 |
datatables.min.css | 123.58 KB | 2016-03-20 |
fileinput.min.css | 3.29 KB | 2016-03-20 |
font-awesome.min.css | 26.08 KB | 2016-03-20 |
jquery.dataTables.min.css | 13.30 KB | 2016-03-20 |
less | 0.00 KB | 2017-07-08 |
components.less | 8.12 KB | 2016-03-20 |
vars.less | 1.03 KB | 2016-03-20 |
style.css | 12.74 KB | 2016-03-20 |
style.less | 4.68 KB | 2016-03-20 |
dashboard.php | 5.25 KB | 2017-07-14 |
donor-list.php | 6.34 KB | 2017-10-32 |
download-records.php | 1.49 KB | 2017-09-42 |
fonts | 0.00 KB | 2017-07-08 |
fontawesome-webfont.eot | 67.26 KB | 2016-03-20 |
fontawesome-webfont.svg | 347.64 KB | 2016-03-20 |
fontawesome-webfont.ttf | 134.96 KB | 2016-03-20 |
fontawesome-webfont.woff | 79.38 KB | 2016-03-20 |
fontawesome-webfont.woff2 | 62.95 KB | 2016-03-20 |
发表评论 取消回复