客户管理系统

此项目是使用PHP和MySQL的客户端管理系统。该项目保留客户记录。 客户管理系统有两个模块,即。 管理员和客户端。管理面板的凭证:用户名:admin;密码:Test @ 123;客户端面板的凭据:用户名:[email protected];密码:Test @ 123。本人只展示了一小段代码,想了解更详细请下载附件。

应用介绍

此项目是使用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;客户端面板的凭据:用户名:[email protected];密码: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 }  ?>

文件列表(部分)

名称 大小 修改日期
Client Management System0.00 KB2019-11-44
clientms0.00 KB2019-11-00
admin0.00 KB2019-11-56
about-us.php4.15 KB2019-10-26
add-client-services.php4.80 KB2019-10-18
add-client.php7.83 KB2019-11-06
add-services.php3.79 KB2019-10-24
admin-profile.php4.72 KB2019-11-12
bwdates-reports-details.php4.27 KB2019-10-44
bwdates-reports-ds.php3.23 KB2019-10-04
change-password.php4.68 KB2019-10-48
contact-us.php4.77 KB2019-10-58
css0.00 KB2019-11-52
atlas.css0.88 KB2016-02-24
bars.css12.93 KB2016-02-24
bootstrap-markdown.min.css2.64 KB2016-02-24
bootstrap.min.css114.56 KB2016-02-24
chocolat.css1.91 KB2016-02-24
clndr.css9.88 KB2016-02-50
fabochart.css1.99 KB2016-02-24
font-awesome.css21.59 KB2016-02-24
icon-font.min.css7.18 KB2016-02-24
jqvmap.css0.83 KB2016-02-24
popuo-box.css6.96 KB2016-02-24
style.css166.72 KB2016-03-02
vroom.css3.92 KB2016-02-44
dashboard.php6.76 KB2019-11-20
edit-client-details.php8.12 KB2019-10-12
edit-services-details.php4.18 KB2019-10-54
fonts0.00 KB2019-11-52
digital-7-webfont.eot9.97 KB2016-02-24
digital-7-webfont.svg36.37 KB2016-02-24

立即下载

相关下载

[客户管理系统] 此项目是使用PHP和MySQL的客户端管理系统。该项目保留客户记录。 客户管理系统有两个模块,即。 管理员和客户端。管理面板的凭证:用户名:admin;密码:Test @ 123;客户端面板的凭据:用户名:[email protected];密码:Test @ 123。本人只展示了一小段代码,想了解更详细请下载附件。

评论列表 共有 0 条评论

暂无评论

微信捐赠

微信扫一扫体验

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