血库和献血者管理系统

此项目是血库和献血者管理系统。这个管理系统是维护与献血者,每个血库中可用的不同血型有关的所有信息,并帮助他们以更好的方式进行管理。从下面两点去运行项目: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>

文件列表(部分)

名称 大小 修改日期
bloodbank and donar management system0.00 KB2017-11-02
bbdms0.00 KB2017-07-54
admin0.00 KB2017-09-06
add-bloodgroup.php4.25 KB2017-07-10
add-donor.php7.09 KB2017-11-34
change-password.php5.63 KB2017-07-12
css0.00 KB2017-07-08
awesome-bootstrap-checkbox.css6.58 KB2016-03-20
bootstrap-select.css6.49 KB2016-03-20
bootstrap-social.css33.04 KB2016-03-20
bootstrap.min.css122.06 KB2016-03-20
css0.00 KB2017-07-08
vars.css0.17 KB2016-03-20
dataTables.bootstrap.min.css4.15 KB2016-03-20
datatables.min.css123.58 KB2016-03-20
fileinput.min.css3.29 KB2016-03-20
font-awesome.min.css26.08 KB2016-03-20
jquery.dataTables.min.css13.30 KB2016-03-20
less0.00 KB2017-07-08
components.less8.12 KB2016-03-20
vars.less1.03 KB2016-03-20
style.css12.74 KB2016-03-20
style.less4.68 KB2016-03-20
dashboard.php5.25 KB2017-07-14
donor-list.php6.34 KB2017-10-32
download-records.php1.49 KB2017-09-42
fonts0.00 KB2017-07-08
fontawesome-webfont.eot67.26 KB2016-03-20
fontawesome-webfont.svg347.64 KB2016-03-20
fontawesome-webfont.ttf134.96 KB2016-03-20
fontawesome-webfont.woff79.38 KB2016-03-20
fontawesome-webfont.woff262.95 KB2016-03-20

立即下载

相关下载

[血库和献血者管理系统] 此项目是血库和献血者管理系统。这个管理系统是维护与献血者,每个血库中可用的不同血型有关的所有信息,并帮助他们以更好的方式进行管理。从下面两点去运行项目:1.下载文件并将其解压缩到本地系统副本bbdms上。2.将bbdms文件夹放在根目录中。本人只展示了一小段代码,如想了解更详细请下载附件。

评论列表 共有 0 条评论

暂无评论

微信捐赠

微信扫一扫体验

立即
上传
发表
评论
返回
顶部