客户管理系统
应用介绍
此项目是使用PHP和MySQL的客户端管理系统。该项目保留客户记录。 客户管理系统有两个模块,即。 管理员和客户端。按照下面几点操作运行客户端管理系统(CMS)项目:1.下载压缩文件。2.解压缩文件并复制clientms文件夹。3.在根目录下粘贴(用于xampp xampp / htdocs,用于wamp wamp / www,用于灯var / www / html)。4.打开PHPMyAdmin(http:// localhost / phpmyadmin)。5.创建一个名为clientmsdb的数据库。6.导入clientmsdb.sql文件(在SQL文件夹的zip包内提供)。7.运行脚本http:// localhost / clientms(前端)。管理面板的凭证:用户名:admin;密码:Test @ 123;客户端面板的凭据:用户名:phpgurukulofficial@gmail.com;密码:Test @ 123。本人只展示了一小段代码,想了解更详细请下载附件。
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['clientmsaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$eid=$_GET['editid'];
$clientmsaid=$_SESSION['clientmsaid'];
$accttype=$_POST['accounttype'];
$cname=$_POST['cname'];
$comname=$_POST['comname'];
$address=$_POST['address'];
$city=$_POST['city'];
$state=$_POST['state'];
$zcode=$_POST['zcode'];
$wphnumber=$_POST['wphnumber'];
$cellphnumber=$_POST['cellphnumber'];
$ophnumber=$_POST['ophnumber'];
$email=$_POST['email'];
$websiteadd=$_POST['websiteadd'];
$notes=$_POST['notes'];
$sql="update tblclient set AccountType=:accttype,ContactName=:cname,CompanyName=:comname,Address=:address,City=:city,State=:state,ZipCode=:zcode,Workphnumber=:wphnumber,Cellphnumber=:cellphnumber,Otherphnumber=:ophnumber,Email=:email,WebsiteAddress=:websiteadd,Notes=:notes where ID=:eid";
$query=$dbh->prepare($sql);
//$query->bindParam(':acctid',$acctid,PDO::PARAM_STR);
$query->bindParam(':accttype',$accttype,PDO::PARAM_STR);
$query->bindParam(':cname',$cname,PDO::PARAM_STR);
$query->bindParam(':comname',$comname,PDO::PARAM_STR);
$query->bindParam(':address',$address,PDO::PARAM_STR);
$query->bindParam(':city',$city,PDO::PARAM_STR);
$query->bindParam(':state',$state,PDO::PARAM_STR);
$query->bindParam(':zcode',$zcode,PDO::PARAM_STR);
$query->bindParam(':wphnumber',$wphnumber,PDO::PARAM_STR);
$query->bindParam(':cellphnumber',$cellphnumber,PDO::PARAM_STR);
$query->bindParam(':ophnumber',$ophnumber,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':websiteadd',$websiteadd,PDO::PARAM_STR);
$query->bindParam(':notes',$notes,PDO::PARAM_STR);
$query->bindParam(':eid',$eid,PDO::PARAM_STR);
$query->execute();
echo '<script>alert("Client detail has been updated")</script>';
echo "<script type='text/javascript'> document.location ='manage-client.php'; </script>";
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Client Management Sysytem|| Update Clients</title>
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400' rel='stylesheet' type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
<script src="js/jquery-1.10.2.min.js"></script>
<!--clock init-->
<script src="js/css3clock.js"></script>
<!--Easy Pie Chart-->
<!--skycons-icons-->
<script src="js/skycons.js"></script>
<!--//skycons-icons-->
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="inner-content">
<?php //include_once('includes/header.php');?>
<!--//outer-wp-->
<div class="outter-wp">
<!--/sub-heard-part-->
<div class="sub-heard-part">
<ol class="breadcrumb m-b-0">
<li><a href="dashboard.php">Home</a></li>
<li class="active">Update Clients</li>
</ol>
</div>
<!--/sub-heard-part-->
<!--/forms-->
<div class="forms-main">
<h2 class="inner-tittle">Update Clients </h2>
<div class="graph-form">
<div class="form-body">
<form method="post">
<?php
$eid=$_GET['editid'];
$sql="SELECT * from tblclient where ID=:eid";
$query = $dbh -> prepare($sql);
$query->bindParam(':eid',$eid,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $row)
{ ?>
<div class="form-group"> <label for="exampleInputEmail1">Account Type</label> <select type="text" name="accounttype" class="form-control" required='true'>
<option value="<?php echo htmlentities($row->AccountType);?>"><?php echo htmlentities($row->AccountType);?></option>
<option value="Active Account">Active Account</option>
<option value="Inactive Account">Inactive Account</option>
<option value="Contact/Lead">Contact/Lead</option>
<option value="Unknown">Unknown</option>
</select> </div>
<div class="form-group"> <label for="exampleInputEmail1">Contact Name</label> <input type="text" name="cname" value="<?php echo $row->ContactName;?>" class="form-control" required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">Company Name</label> <input type="text" name="comname" value="<?php echo $row->CompanyName;?>" class="form-control" required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">Address</label> <textarea type="text" name="address" class="form-control" required='true' rows="4" cols="3"><?php echo $row->Address;?></textarea> </div>
<div class="form-group"> <label for="exampleInputEmail1">City</label> <input type="text" name="city" value="<?php echo $row->City;?>" class="form-control" required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">State</label> <input type="text" name="state" value="<?php echo $row->State;?>" class="form-control" required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">Zip Code</label> <input type="text" name="zcode" value="<?php echo $row->ZipCode;?>" class="form-control" required='true'> </div>
<div class="form-group"> <label for="exampleInputEmail1">Work Phone Number</label><input type="text" name="wphnumber" value="<?php echo $row->Workphnumber;?>" class="form-control" maxlength='10' required='true' pattern="[0-9]+"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Cell Phone Number</label><input type="text" name="cellphnumber" value="<?php echo $row->Cellphnumber;?>" class="form-control" maxlength='10' pattern="[0-9]+"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Other Phone Number</label><input type="text" name="ophnumber" value="<?php echo $row->Otherphnumber;?>" class="form-control" maxlength='10' pattern="[0-9]+"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Email Address</label> <input type="email" name="email" value="<?php echo $row->Email;?>" class="form-control" required='true'> </div>
<div class="form-group"> <label for="exampleInputPassword1">Website Address</label> <input type="text" name="websiteadd" value="<?php echo $row->WebsiteAddress;?>" required='true' class="form-control"> </div>
<div class="form-group"> <label for="exampleInputEmail1">Notes</label> <textarea type="text" name="notes" class="form-control" required='true' rows="4" cols="3"><?php echo $row->Notes;?></textarea> </div>
<div class="form-group"> <label for="exampleInputPassword1">Creation Date</label> <input type="text" name="" value="<?php echo $row->CreationDate;?>" required='true' class="form-control" readonly='true'> </div>
<?php $cnt=$cnt+1;}} ?>
<button type="submit" class="btn btn-default" name="submit" id="submit">Update</button><input type="button" class="btn btn-default" value="Back" onClick="history.back();return true;"> </form>
</div>
</div>
</div>
</div>
<?php include_once('includes/footer.php');?>
</div>
</div>
<?php include_once('includes/sidebar.php');?>
<div class="clearfix"></div>
</div>
<script>
var toggle = true;
$(".sidebar-icon").click(function() {
if (toggle)
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"});
}
else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400);
}
toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
<?php } ?>
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » 客户管理系统
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
Client Management System | 0.00 KB | 2019-11-44 |
clientms | 0.00 KB | 2019-11-00 |
admin | 0.00 KB | 2019-11-56 |
about-us.php | 4.15 KB | 2019-10-26 |
add-client-services.php | 4.80 KB | 2019-10-18 |
add-client.php | 7.83 KB | 2019-11-06 |
add-services.php | 3.79 KB | 2019-10-24 |
admin-profile.php | 4.72 KB | 2019-11-12 |
bwdates-reports-details.php | 4.27 KB | 2019-10-44 |
bwdates-reports-ds.php | 3.23 KB | 2019-10-04 |
change-password.php | 4.68 KB | 2019-10-48 |
contact-us.php | 4.77 KB | 2019-10-58 |
css | 0.00 KB | 2019-11-52 |
atlas.css | 0.88 KB | 2016-02-24 |
bars.css | 12.93 KB | 2016-02-24 |
bootstrap-markdown.min.css | 2.64 KB | 2016-02-24 |
bootstrap.min.css | 114.56 KB | 2016-02-24 |
chocolat.css | 1.91 KB | 2016-02-24 |
clndr.css | 9.88 KB | 2016-02-50 |
fabochart.css | 1.99 KB | 2016-02-24 |
font-awesome.css | 21.59 KB | 2016-02-24 |
icon-font.min.css | 7.18 KB | 2016-02-24 |
jqvmap.css | 0.83 KB | 2016-02-24 |
popuo-box.css | 6.96 KB | 2016-02-24 |
style.css | 166.72 KB | 2016-03-02 |
vroom.css | 3.92 KB | 2016-02-44 |
dashboard.php | 6.76 KB | 2019-11-20 |
edit-client-details.php | 8.12 KB | 2019-10-12 |
edit-services-details.php | 4.18 KB | 2019-10-54 |
fonts | 0.00 KB | 2019-11-52 |
digital-7-webfont.eot | 9.97 KB | 2016-02-24 |
digital-7-webfont.svg | 36.37 KB | 2016-02-24 |
发表评论 取消回复