奶牛场商店管理系统项目(DFSMS)
预览截图
应用介绍
此项目是奶牛场商店管理系统项目(DFSMS)。DFSMS是基于Web的应用程序,用于管理乳品店的产品。 它具有一个模块,即管理员,负责管理乳品店的所有功能。管理员还可以更新其个人资料,更改密码并恢复密码。管理员凭证:用户名:admin;密码:Test @ 123。按照下面几点操作运行奶牛场商店管理系统项目(DFSMS):1.下载压缩文件。2.解压缩文件并复制dfsms文件夹。3.在根目录下粘贴(用于xampp xampp / htdocs,用于wamp wamp / www,用于灯var / www / html)。4.打开PHPMyAdmin(http:// localhost / phpmyadmin)。5.创建一个名称为dfsms的数据库。6.导入dfsms.sql文件(在SQL文件夹的zip包中提供)。7.运行脚本http:// localhost / dfsms。本人只展示了一小段代码,在预览区展示了登录页面、管理员控制台页面、添加产品页面、发票页面;如想了解得更多请下载附件。
<?php
session_start();
//error_reporting(0);
include('includes/config.php');
if (strlen($_SESSION['aid']==0)) {
header('location:logout.php');
} else{
// Edit Company Code
if(isset($_POST['update']))
{
$cmpid=substr(base64_decode($_GET['compid']),0,-5);
//Getting Post Values
$cname=$_POST['companyname'];
$query=mysqli_query($con,"update tblcompany set CompanyName='$cname' where id='$cmpid'");
echo "<script>alert('Company update successfully.');</script>";
echo "<script>window.location.href='manage-companies.php'</script>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Add Company</title>
<link href="vendors/jquery-toggles/css/toggles.css" rel="stylesheet" type="text/css">
<link href="vendors/jquery-toggles/css/themes/toggles-light.css" rel="stylesheet" type="text/css">
<link href="dist/css/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- HK Wrapper -->
<div class="hk-wrapper hk-vertical-nav">
<!-- Top Navbar -->
<?php include_once('includes/navbar.php');
include_once('includes/sidebar.php');
?>
<div id="hk_nav_backdrop" class="hk-nav-backdrop"></div>
<!-- /Vertical Nav -->
<!-- Main Content -->
<div class="hk-pg-wrapper">
<!-- Breadcrumb -->
<nav class="hk-breadcrumb" aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-light bg-transparent">
<li class="breadcrumb-item"><a href="#">Company</a></li>
<li class="breadcrumb-item active" aria-current="page">Add</li>
</ol>
</nav>
<!-- /Breadcrumb -->
<!-- Container -->
<div class="container">
<!-- Title -->
<div class="hk-pg-header">
<h4 class="hk-pg-title"><span class="pg-title-icon"><span class="feather-icon"><i data-feather="external-link"></i></span></span>Add Company</h4>
</div>
<!-- /Title -->
<!-- Row -->
<div class="row">
<div class="col-xl-12">
<section class="hk-sec-wrapper">
<div class="row">
<div class="col-sm">
<form class="needs-validation" method="post" novalidate>
<?php
$cmpid=substr(base64_decode($_GET['compid']),0,-5);
$query=mysqli_query($con,"select * from tblcompany where id='$cmpid' ");
$cnt=1;
while($row=mysqli_fetch_array($query))
{
?>
<div class="form-row">
<div class="col-md-6 mb-10">
<label for="validationCustom03">Company Name</label>
<input type="text" class="form-control" id="validationCustom03" value="<?php echo $row['CompanyName'];?>" name="companyname" required>
<div class="invalid-feedback">Please provide a valid Company name.</div>
</div>
</div>
<?php } ?>
<button class="btn btn-primary" type="submit" name="update">Update</button>
</form>
</div>
</div>
</section>
</div>
</div>
</div>
<!-- Footer -->
<?php include_once('includes/footer.php');?>
<!-- /Footer -->
</div>
<!-- /Main Content -->
</div>
<script src="vendors/jquery/dist/jquery.min.js"></script>
<script src="vendors/popper.js/dist/umd/popper.min.js"></script>
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="vendors/jasny-bootstrap/dist/js/jasny-bootstrap.min.js"></script>
<script src="dist/js/jquery.slimscroll.js"></script>
<script src="dist/js/dropdown-bootstrap-extended.js"></script>
<script src="dist/js/feather.min.js"></script>
<script src="vendors/jquery-toggles/toggles.min.js"></script>
<script src="dist/js/toggle-data.js"></script>
<script src="dist/js/init.js"></script>
<script src="dist/js/validation-data.js"></script>
</body>
</html>
<?php } ?>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: [email protected] 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 奶牛场商店管理系统项目(DFSMS)
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
Dairy Farm Shop Management System Project | 0.00 KB | 2019-12-16 |
dfsms | 0.00 KB | 2019-12-28 |
add-category.php | 4.27 KB | 2019-12-04 |
add-company.php | 3.90 KB | 2019-12-06 |
add-product.php | 5.38 KB | 2019-12-58 |
bwdate-report-details.php | 6.70 KB | 2019-12-36 |
bwdate-report-ds.php | 4.14 KB | 2019-12-28 |
change-password.php | 5.12 KB | 2019-12-08 |
dashboard.php | 7.42 KB | 2019-12-22 |
dist | 0.00 KB | 2019-12-26 |
css | 0.00 KB | 2019-12-22 |
animate.css | 71.21 KB | 2015-08-34 |
dripicons.css | 10.90 KB | 2018-06-44 |
font-awesome.min.css | 28.45 KB | 2016-09-50 |
glyphicons.css | 14.80 KB | 2018-03-28 |
ionicons.min.css | 45.55 KB | 2018-06-40 |
lightgallery.css | 25.62 KB | 2018-11-04 |
linea-icon.css | 48.63 KB | 2016-09-56 |
material-design-iconic-font.min.css | 69.24 KB | 2017-01-24 |
pe-icon-7-stroke.css | 9.54 KB | 2016-09-46 |
simple-line-icons.css | 12.39 KB | 2016-09-46 |
style.css | 556.97 KB | 2019-09-30 |
style.css.map | 294.04 KB | 2019-07-24 |
themify-icons.css | 16.13 KB | 2016-09-58 |
fonts | 0.00 KB | 2019-12-24 |
dripicons | 0.00 KB | 2019-12-24 |
dripicons-v2.eot | 39.57 KB | 2016-04-58 |
dripicons-v2.svg | 97.04 KB | 2016-04-58 |
dripicons-v2.ttf | 39.40 KB | 2016-04-58 |
dripicons-v2.woff | 25.39 KB | 2016-04-58 |
fontawesome | 0.00 KB | 2019-12-24 |
fontawesome-webfont.eot | 74.72 KB | 2016-09-20 |
发表评论 取消回复