CasperSecurity

Current Path : /var/www/uim.org.in/admin/
Upload File :
Current File : /var/www/uim.org.in/admin/faculty-profile-edit.php

<?php 
session_start();
if(!isset($_SESSION['id'])) :
	header("location:index.php");
	exit;
endif;

$page_title = "Aspire - Modify Doctors profile";
$page_name 	= 'Doctorprofile';
$page1='doctor';
$about="";
$doctors 	= true; //for menu highlight
$id = (int) $connect->escape_string($_GET['id']);
if(isset($_POST['submit'])){
	$email=$_POST['email'];
		$psw=$_POST['psw'];
		$first_name=$_POST['first_name'];
		$last_name=$_POST['last_name'];
		$phone=$_POST['phone'];
		$gender=$_POST['gender'];
		$dob=$_POST['dob'];
		$aboutme=$_POST['aboutme'];
		$address1=$_POST['address1'];
		$address2=$_POST['address2'];
		$city=$_POST['city'];
		$state=$_POST['state'];
		$country=$_POST['country'];
		$postal_code=$_POST['postal_code'];
		$pricing=$_POST['rating_option'];
		$department=$_POST['department'];
	extract($_POST);
	if(!empty($email)) :
		$table 			= 'doctors';
		if(!empty($psw))
			$password 	= md5($psw);
		else 
			$password 	= $oldpsw;
			
		$pricing 		= $custom_rating_count!=''?$custom_rating_count:0;
		
		$path ="profile/";
		
		$dr_image 		= $_FILES['dr_image'];
		$dr_image_filename 	= '';
		if(!empty($dr_image['name'])){
			if($old_dr_image != '' && file_exists($path.$old_dr_image)) :
				unlink($path.$old_dr_image);
			endif;
			//upload doctors image
			$dr_image_filename = $connect->image_upload($dr_image, $path, 1); //1 for either return filename or blank from function(optional)
				
		}else{
			$dr_image_filename = $old_dr_image;
		}
		
		
	
		
		$department = implode(',', $department);	//conver array to string to store in table 
		
		$dr_fields  = array(
							'username'		=>$email, 
							'password'		=>$password, 
							'first_name'	=>$first_name, 
							'last_name'		=>$last_name, 
							'phone'			=>$phone, 
							'gender'		=>$gender, 
							'dob'			=>$dob, 
							'about_me'		=>$aboutme, 
							'dr_image'		=>$dr_image_filename,
							'address1'		=>$address1, 
							'address2'		=>$address2, 
							'city'			=>$city, 
							'state'			=>$state, 
							'country'		=>$country, 
							'postal_code'	=>$postal_code, 
							'pricing'		=>$pricing, 
							'department'	=>$department
						);
		
						
		$last = $connect->update_data2('doctors', $dr_fields, array('id'=>$id));
		
		$last_id = $id;
		if($last != 0) :
			//insert into dr_education table
			if(!empty($degree) || !empty($college) || !empty($deg_year)){
				//if all are selected remove existing records and add new records
				$d = $connect->delete_data('dr_education', array('id'=>$id));
				$count = count($degree);
				for($i=0; $i<$count; $i++){			
					$dr_education 	= array('id'=> $last_id, 'degree'=> $degree[$i],'college'=> $college[$i],'year'=> $deg_year[$i]);
					$connect->insert_data2('dr_education', $dr_education);		
				}
			}
			//insert into dr_experience table
			if(!empty($hospital) || !empty($from_date) || !empty($to_date) || !empty($disignation)){
				//if all are selected remove existing records and add new records
				$d = $connect->delete_data('dr_experience', array('id'=>$id));
				$count = count($hospital);
				for($i=0; $i<$count; $i++){			
					$dr_exp 	= array('id'=> $last_id, 'hospital_name'=> $hospital[$i],'from_date'=> $from_date[$i],'to_date'=> $to_date[$i], 'designation'=> $disignation[$i] );
					$connect->insert_data2('dr_experience', $dr_exp);		
				}
			}
			//insert into dr_awards table
			if(!empty($awards) || !empty($award_year)){
				//if all are selected remove existing records and add new records
				$d = $connect->delete_data('dr_awards', array('id'=>$id));
				$count = count($awards);
				for($i=0; $i<$count; $i++){			
					$dr_aw	= array('id'=> $last_id, 'award_name'=> $awards[$i],'year'=> $award_year[$i]);
					$connect->insert_data2('dr_awards', $dr_aw);		
				}
			}
			//insert into dr_membership table
			if(!empty($membership)){
				//if all are selected remove existing records and add new records
				$d = $connect->delete_data('dr_membership', array('id'=>$id));
				$count = count($membership);
				for($i=0; $i<$count; $i++){			
					$dr_mb	= array('id'=> $last_id, 'membership'=> $membership[$i]);
					$connect->insert_data2('dr_membership', $dr_mb);		
				}
			}
			//insert into dr_registration table
			if(!empty($registration)){
				//if all are selected remove existing records and add new records
				$d = $connect->delete_data('dr_registration', array('id'=>$id));
				$count = count($registration);
				for($i=0; $i<$count; $i++){			
					$dr_mb	= array('id'=> $last_id, 'registration'=> $registration[$i], 'year'	=> $reg_year[$i]);
					$connect->insert_data2('dr_registration', $dr_mb);		
				}
			}
		endif;
		echo '<script>';
		echo 'self.location="doctor-profile-edit.php?id='.$id.'&msg=Update successful";';
		echo '</script>';
	else :
		echo '<script>';
		echo 'self.location="doctor-profile-edit.php?id='.$id.'&msg=email id exists";';
		echo '</script>';
	endif;
}
//echo "hi";
//get all records of doctors to show and edit
$result = $connect->custom_query("SELECT * FROM doctors WHERE id=$id");
	foreach($result as $res);
		$path 		= 'profile/';
		
		//$specialist = explode(',',$res['specialization']);
		//$servicep    = explode(',', $res['services']);
		
		
?>


<!DOCTYPE html>

<html lang="en">

<head>


<?php include("css.php"); ?>

<script src="tinymce/tinymce.min.js" referrerpolicy="origin"></script>

		 <link rel="stylesheet" href="assets/css/feathericon.min.css">
		
		<!-- Datatables CSS -->
		<link rel="stylesheet" href="assets/plugins/datatables/datatables.min.css">

		<!-- Main CSS -->
				<link rel="stylesheet" href="assets/css/bootstrap.min.css">

<style>
/*-----------------
	27. Doctor Profile Settings
-----------------------*/

.profile-image img {
	margin-bottom: 1.5rem;
}
.change-photo-btn {
    background-color: #cf1b15;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 0 auto;
    padding: 10px 15px;
    position: relative;
    transition: .3s;
    text-align: center;
    width: 220px;
}
.change-photo-btn input.upload {
	bottom: 0;
    cursor: pointer;
    filter: alpha(opacity=0);
	left: 0;
    margin: 0;
    opacity: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
	width: 220px;
}
.dropzone {
    background-color: #fbfbfb;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}
.btn-icon {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
    text-align: center;
    position: absolute;
    padding: 0;
    font-size: 10px;
    width: 20px;
    height: 20px;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
    right: 3px;
    top: 3px;
	justify-content: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
}
.upload-images {
    position: relative;
    width: 80px;
}
.upload-images img {
	border-radius: 4px;
	height: 80px;
	width: auto;
}
.upload-wrap {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
.upload-wrap .upload-images + .upload-images {
	margin-left: 20px;
}
.contact-card .card-body {
	padding-bottom: 0.625rem;
}
.custom_price_cont {
	margin-top: 20px;
}
.btn.btn-danger.trash {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
    height: 40px;
    width: 40px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	justify-content: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
}
.add-more a {
	color: #20c0f3;
}
.bootstrap-tagsinput {
    border-color: #dcdcdc;
    box-shadow: inherit;
    min-height: 46px;
    width: 100%;
    border-radius: 0;
}
.bootstrap-tagsinput.focus {
	border-color: #bbb;
}
.bootstrap-tagsinput .tag {
    background-color: #20c0f3;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    font-weight: normal;
    margin-right: 2px;
    padding: 11px 15px;
    border-radius: 0;
}
.services-card .bootstrap-tagsinput input {
	width: 160px;
}
.submit-section .submit-btn {
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    min-width: 120px;
background-color: #cf1b15;
	border: 1px solid #cf1b15;
}
.submit-section .submit-btn:hover {
	background-color: #ff0000;
	border: 1px solid #ff0000;
}
.submit-section .submit-btn + .submit-btn {
    margin-left: 15px;
}
.change-avatar {
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
}
.change-avatar .profile-img {
	margin-right: 15px;
}
.change-avatar .profile-img img {
    border-radius: 4px;
    height: 100px;
    width: 100px;
    object-fit: cover;
}
.change-avatar .change-photo-btn {
    margin: 0 0 10px;
    width: 150px;
}
.widget-profile.pat-widget-profile .profile-info-widget .booking-doc-img {
	padding: 0;
}
.widget-profile.pat-widget-profile .profile-info-widget .booking-doc-img img {
    border-radius: 50%;
    height: 100px;
    width: 100px;
}
/*-----------------
	28. Responsive
-----------------------*/

@media only screen and (min-width:768px) {
	.avatar-xxl {
		width: 8rem;
		height: 8rem;
	}
	.avatar-xxl .border {
		border-width: 4px !important;
	}
	.avatar-xxl .rounded {
		border-radius: 12px !important;
	}
	.avatar-xxl .avatar-title {
		font-size: 42px;
	}
	.avatar-xxl.avatar-away:before,
	.avatar-xxl.avatar-offline:before,
	.avatar-xxl.avatar-online:before {
		border-width: 4px;
	}
}

@media only screen and (min-width: 992px) {
	#toggle_btn {
		align-items: center;
		color: #333;
		display: inline-flex;
		float: left;
		font-size: 30px;
		height: 60px;
		justify-content: center;
		margin-left: 15px;
		padding: 0 15px;
	}
	.mini-sidebar .header-left .logo img {
		height: auto;
		max-height: 40px;
		width: auto;
	}
	.mini-sidebar .header .header-left .logo {
		display: none;
	}
	.mini-sidebar .header-left .logo.logo-small {
		display: block;
	}
	.mini-sidebar .header .header-left {
		padding: 0 5px;
		width: 78px;
	}
	.mini-sidebar .sidebar {
		width: 78px;
	}
	.mini-sidebar.expand-menu .sidebar {
		width: 240px;
	}
	.mini-sidebar .menu-title {
		visibility: hidden;
		white-space: nowrap;
	}
	.mini-sidebar.expand-menu .menu-title {
		visibility: visible;
	}
	.mini-sidebar .menu-title a {
		visibility: hidden;
	}
	.mini-sidebar.expand-menu .menu-title a {
		visibility: visible;
	}
	.modal-open.mini-sidebar .sidebar {
		z-index: 1051;
	}
	.mini-sidebar .sidebar .sidebar-menu ul > li > a span {
		display: none;
		transition: all 0.2s ease-in-out;
		opacity: 0;
	}
	.mini-sidebar.expand-menu .sidebar .sidebar-menu ul > li > a span {
		display: inline;
		opacity: 1;
	}
	.mini-sidebar.expand-menu .sidebar .sidebar-menu > ul > li > a i {
		font-size: 24px;
		width: 20px;
	}
	.mini-sidebar .page-wrapper {
		margin-left: 78px;
	}
}

@media only screen and (max-width: 1400px) {
	.chat-window .chat-cont-left .chat-users-list a.media .media-body > div:first-child .user-name, 
	.chat-window .chat-cont-left .chat-users-list a.media .media-body > div:first-child .user-last-chat {
		max-width: 180px;
	}
}
@media only screen and (max-width: 1199px) {
	.chat-window .chat-cont-left .chat-users-list a.media .media-body > div:first-child .user-name, 
	.chat-window .chat-cont-left .chat-users-list a.media .media-body > div:first-child .user-last-chat {
		max-width: 150px;
	}
	.chat-window .chat-cont-left {
		flex: 0 0 40%;
		max-width: 40%;
	}
	.chat-window .chat-cont-right {
		flex: 0 0 60%;
		max-width: 60%;
	}
}
@media only screen and (max-width: 991.98px) {
	.header .header-left {
		position: absolute;
		width: 100%;
	}
	.mobile_btn {
		color: #333 !important;
		cursor: pointer;
		display: block;
		font-size: 24px;
		height: 60px;
		left: 0;
		line-height: 60px;
		padding: 0 15px;
		position: absolute;
		text-align: center;
		top: 0;
		z-index: 10;
	}
	#toggle_btn {
		display: none;
	}
	.top-nav-search {
		display: none;
	}
	.login-wrapper .loginbox .login-left {
		padding: 80px 50px;
		width: 50%;
	}
	.login-wrapper .loginbox .login-right {
		padding: 50px;
		width: 50%;
	}
	.sidebar {
		margin-left: -225px;
		width: 225px;
		-webkit-transition: all 0.4s ease;
		-moz-transition: all 0.4s ease;
		transition: all 0.4s ease;
		z-index: 1041;
	}
	.page-wrapper {
		margin-left: 0;
		padding-left: 0;
		padding-right: 0;
		-webkit-transition: all 0.4s ease;
		-moz-transition: all 0.4s ease;
		transition: all 0.4s ease;
	}
	.chat-window .chat-scroll {
		max-height: calc(100vh - 255px);
	}
	.chat-window .chat-cont-left, .chat-window .chat-cont-right {
		flex: 0 0 100%;
		max-width: 100%;
		transition: left 0.3s ease-in-out 0s, right 0.3s ease-in-out 0s;
		width: 100%;
	}
	.chat-window .chat-cont-left {
		border-right: 0;
	}
	.chat-window .chat-cont-right {
		position: absolute;
		right: calc(-100% + -1.875rem);
		top: 0;
	}
	.chat-window .chat-cont-right .chat-header {
		justify-content: start;
	}
	.chat-window .chat-cont-right .chat-header .back-user-list {
		display: block;
	}
	.chat-window .chat-cont-right .chat-header .chat-options {
		margin-left: auto;
	}
	.chat-window.chat-slide .chat-cont-left {
		left: calc(-100% + -1.875rem);
	}
	.chat-window.chat-slide .chat-cont-right {
		right: 0;
	}
	.sidebar-overlay.opened {
		display: block;
	}
}

@media only screen and (max-width: 767.98px) {
	body {
		font-size: 0.9375rem;
	}
	h1, .h1 {
		font-size: 2rem;
	}
	h2, .h2 {
		font-size: 1.75rem;
	}
	h3, .h3 {
		font-size: 1.5rem;
	}
	h4, .h4 {
		font-size: 1.125rem;
	}
	h5, .h5 {
		font-size: 1rem;
	}
	h6, .h6 {
		font-size: 0.875rem;
	}
	.header .has-arrow .dropdown-toggle:after {
		display: none;
	}
	.user-menu.nav > li > a > span:not(.user-img) {
		display: none;
	}
	.navbar-nav .open .dropdown-menu {
		float: left;
		position: absolute;
	}
	.navbar-nav.user-menu .open .dropdown-menu {
		left: auto;
		right: 0;
	}
	.header .header-left {
		padding: 0 15px;
	}
	.header .header-left .logo {
		display: none;
	}
	.header-left .logo.logo-small {
		display: inline-block;
	}
	.login-wrapper .loginbox .login-left {
		display: none;
	}
	.login-wrapper .loginbox {
		max-width: 450px;
		min-height: unset;
	}
	.login-wrapper .loginbox .login-right {
		float: none;
		padding: 1.875rem;
		width: 100%;
	}
	.invoice-container {
		padding: 20px;
	}
	.left-action {
		text-align: center;
		margin-bottom: 15px;
	}
	.right-action {
		text-align: center;
	}
	.top-action-left .float-left {
		float: none !important;
	}
	.top-action-left .btn-group {
		margin-bottom: 15px;
	}
	.top-action-right {
		text-align: center;
	}
	.top-action-right a.btn.btn-white {
		margin-bottom: 15px;
	}
	.mail-sent-time {
		float: left;
		margin-top: 10px;
		width: 100%;
	}
	.profile-btn {
		flex: 0 0 100%;
		margin-top: 20px;
	}
	.chat-window .chat-cont-left .chat-users-list a.media .media-body > div:first-child .user-name, 
	.chat-window .chat-cont-left .chat-users-list a.media .media-body > div:first-child .user-last-chat {
		max-width: 250px;
	}
	.app-dropdown {
		display: none;
	}
	.edit-link {
		font-size: 0.875rem;
		margin-top: 0;
	}
	.product_price {
		font-size: 1.5rem;
	}
	.login-wrapper .loginbox .login-right h1 {
		font-size: 22px;
	}
	.error-box h1 {
		font-size: 6em;
	}
	.error-box .btn {
		font-size: 15px;
		min-width: 150px;
		padding: 8px 20px;
	}
	.dash-count {
		font-size: 16px;
	}
}

@media only screen and (max-width: 575.98px) {
	.card {
		margin-bottom: 0.9375rem;
	}
	.page-wrapper > .content {
		padding: 0.9375rem 0.9375rem 0;
	}
	.chat-window {
		margin-bottom: 0.9375rem;
	}
	.card-body {
		padding: 1.25rem;
	}
	.card-header {
		padding: .75rem 1.25rem;
	}
	.card-footer {
		padding: .75rem 1.25rem;
	}
	.card-chart .card-body {
		padding: 5px;
	}
	.page-header {
		margin-bottom: 0.9375rem;
	}
	.account-wrapper {
		padding: 0.9375rem;
	}
	.pagination-lg .page-link {
		font-size: 1.2rem;
		padding: 0.5rem 0.625rem;
	}
	.profile-image {
		flex: 0 0 100%;
		margin-bottom: 20px;
		text-align: center;
	}
	.profile-user-info {
		text-align: center;
	}
	.profile-btn {
		text-align: center;
	}
	.invoice-details, .invoice-payment-details > li span {
		float: left;
		text-align: left;
	}
	.fc-toolbar .fc-right {
		display: inline-block;
		float: none;
		margin: 10px auto 0;
		width: 200px;
		clear: both;
	}
	.fc-toolbar .fc-left {
		float: none;
		margin: 0 auto;
		width: 200px;
	}
	.fc-toolbar .fc-center {
		display: inline-block;
		width: 100%;
		text-align: center;
	}
	.fc-toolbar .fc-center h2 {
		width: 100%;
	}
	.profile-tab-cont {
		padding-top: 1.25rem;
	}
	.chat-window .chat-cont-right .chat-header .media .media-body {
		display: none;
	}
}

@media only screen and (max-width: 479px) {
	.add-btn {
		font-size: 14px;
		padding: 6px 7px;
	}
	.chat-window .chat-cont-left .chat-users-list a.media .media-body > div:first-child .user-name, 
	.chat-window .chat-cont-left .chat-users-list a.media .media-body > div:first-child .user-last-chat {
		max-width: 160px;
	}
	.page-header .breadcrumb {
		display: none;
	}
}
</style>
<script>

      tinymce.init({

		selector: '#buyers,#sellers,#content',

		height: 300,

	plugins: 'print preview paste importcss searchreplace autolink autosave save directionality code visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists wordcount imagetools textpattern noneditable help charmap emoticons',

	menubar: 'file edit view insert format tools table help',

	toolbar: 'undo redo | bold italic underline strikethrough | fontselect fontsizeselect formatselect | alignleft aligncenter alignright alignjustify | outdent indent |  numlist bullist | forecolor backcolor removeformat | pagebreak | charmap emoticons | fullscreen  preview save print | insertfile image media template link anchor codesample | ltr rtl',

  toolbar_sticky: false,

  image_advtab: true,

	external_filemanager_path:"filemanager/",

   filemanager_title:"Filemanager" ,

   external_plugins: { "filemanager" : "../filemanager/plugin.min.js"},

  content_css: [

    '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',

    '//www.tiny.cloud/css/codepen.min.css'

  ],

  extended_valid_elements: 'span[class=]',

  importcss_append: false,



});



function chnageLang(val){

	self.location = 'department.php';

}





</script>

</head>

<body class="sidebar-pinned">

<?php include("left.php") ?>

<main class="admin-main">

<!--site header begins-->

<?php include("admin_header.php");?>

<!--site header ends -->

    <section class="admin-content ">

        <div class="bg-dark">

            <div class="container  m-b-30">

                <div class="row">

                    <div class="col-12 text-white p-t-40 p-b-90">
                        <h4 class="">Manage Doctor</h4>
                        <p class="opacity-75 "></p>
                    </div>

                </div>

            </div>

        </div>

		

		<div class="container  pull-up">



            <div class="row" style="margin: 0 auto; width:100%; align-items: center;

  justify-content: center;">

  


			<!--message-->

			

		

						<div class="col-lg-12">

				              <div class="card m-b-30">

		                        <div class="card-header">
														<div class="row">

<div class="col-sm-7 col-auto">
								<h3 class="page-title">Doctor Profile</h3>
								<ul class="breadcrumb">
									<li class="breadcrumb-item"><a href="patient-dashboard.php">Dashboard</a></li><li class="breadcrumb-item active">Doctor Profile</li>
								</ul>
							</div>
							
							</div>
		                        </div>				
	<form action="<?php echo $_SERVER['PHP_SELF']."?id=".$id;?>" method="post" enctype="multipart/form-data" class="needs-validation" novalidate>
<div class="row">
						<div class="col-md-12">
							<div class="card">
								<div class="card-body">
									<h4 class="card-title">Basic Information</h4>
									<span class="form-text text-success text-center"><?php echo isset($_GET['msg'])?$_GET['msg']:'';?></span>
									<div class="row form-row">
										<div class="col-md-12">
											<div class="form-group">
												<div class="change-avatar">
													<div class="profile-img">
																												<img src="<?php echo $path.$res['dr_image'];?>" alt="User Image">

													</div>
													<div class="upload-img">
														<div class="change-photo-btn">
															<span><i class="fa fa-upload"></i> Upload Photo</span>
															<input type="file" class="upload" name="dr_image" >
															<input type="hidden" name="old_dr_image" value="<?php echo $res['dr_image'];?>"/>

														</div>
														<small class="form-text text-muted">Allowed JPG, GIF or PNG. Max size of 2MB</small>
													</div>
												</div>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label for="customvalidation1">Email <span class="text-danger">*</span></label>
												<input type="email" class="form-control" name="email" required id="customvalidation1" value="<?php echo $res['username'];?>" readonly  />
												<input type="hidden" name="check_avail" value="1" id="check_avail"/>
												<div class="spinner-border text-primary" role="status" id="spinloader" style="display:none">
												  <span class="sr-only">Loading...</span>
												</div>
												<div class="" id="emailcheck"></div>
												<div class="invalid-feedback">
														Please enter email id.
												</div>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label for="customvalidation2">Password <span class="text-danger">*</span></label>
												<input type="password" class="form-control" name="psw" id="customvalidation2" ->
												<input type="hidden" name="oldpsw" value="<?php echo $res['password'];?>"/>
												<small class="form-text text-muted">Note: Leave it blank, if you don't want to change password</small>												
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label for="customvalidation3">First Name <span class="text-danger">*</span></label>
												<input type="text" class="form-control" name="first_name" id="customvalidation3" required value="<?php echo $res['first_name'];?>"/>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label for="customvalidation4">Last Name <span class="text-danger">*</span></label>
												<input type="text" class="form-control" name="last_name" id="customvalidation4" value="<?php echo $res['last_name'];?>" required>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label for="customvalidation5">Phone Number</label>
												<input type="text" class="form-control" id="customvalidation5" name="phone" value="<?php echo $res['phone'];?>">
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label for="customvalidation6">Gender</label>
												<select class="form-control" name="gender" id="customvalidation6">
													<option value="">Select</option>
													<option value="male" <?php echo $res['gender'] == 'male' ? 'selected':'';?>>Male</option>
													<option value="female" <?php echo $res['gender'] == 'female' ? 'selected':'';?> >Female</option>
												</select>
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group mb-0">
												<label for="customvalidation7">Date of Birth</label>
												<input type="date" class="form-control datetimepicker" id="customvalidation7" name="dob" value="<?php echo $res['dob'];?>">
											</div>
										</div>
										
									</div>
								</div>
							</div>
							<!-- /Basic Information -->
							
							<!-- About Me -->
							<div class="card">
								<div class="card-body">
									<h4 class="card-title">About Doctor</h4>
									<div class="form-group mb-0">
										<label for="customvalidation8">Biography</label>
										<textarea class="form-control editor" rows="5" name="aboutme" id="customvalidation8"><?php echo $res['about_me'];?></textarea>
									</div>
								</div>
							</div>
							<!-- /About Me -->
							
						

							<!-- Contact Details -->
							<div class="card contact-card">
								<div class="card-body">
									<h4 class="card-title">Contact Details</h4>
									<div class="row form-row">
										<div class="col-md-6">
											<div class="form-group">
												<label>Address Line 1</label>
												<input type="text" class="form-control" name="address1" value="<?php echo $res['address1'];?>">
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label">Address Line 2</label>
												<input type="text" class="form-control" name="address2" value="<?php echo $res['address2'];?>">
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label">City</label>
												<input type="text" class="form-control" name="city" value="<?php echo $res['city'];?>">
											</div>
										</div>

										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label">State / Province</label>
												<input type="text" class="form-control" name="state" value="<?php echo $res['state'];?>">
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label">Country</label>
												<input type="text" class="form-control" name="country" value="<?php echo $res['country'];?>">
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<label class="control-label">Postal Code</label>
												<input type="text" class="form-control" name="postal_code" value="<?php echo $res['postal_code'];?>">
											</div>
										</div>
									</div>
								</div>
							</div>
							<!-- /Contact Details -->
							
							<!-- Pricing -->
							<div class="card">
								<div class="card-body">
									<h4 class="card-title">Pricing</h4>
									
									<div class="form-group mb-0">
										<div id="pricing_select">
											<div class="custom-control custom-radio custom-control-inline">
												<input type="radio" id="price_free" name="rating_option" class="custom-control-input" value="price_free" <?php echo $res['pricing']==0 ?'checked' : '';?>>
												<label class="custom-control-label" for="price_free">Free</label>
											</div>
											<div class="custom-control custom-radio custom-control-inline">
												<input type="radio" id="price_custom" name="rating_option" value="custom_price" class="custom-control-input"<?php echo $res['pricing']!=0 ?'checked' : '';?> >
												<label class="custom-control-label" for="price_custom">Custom Price (per hour)</label>
											</div>
										</div>

									</div>
									
									<div class="row custom_price_cont" id="custom_price_cont" <?php echo $res['pricing']==0 ?'style="display: none;"' : '';?>>
										<div class="col-md-4">
											<input type="text" class="form-control" id="custom_rating_input" name="custom_rating_count" value="" placeholder="20" value="<?php echo $res['pricing'];?>">
											<small class="form-text text-muted">Custom price you can add</small>
										</div>
									</div>
									
								</div>
							</div>
							<!-- /Pricing -->
							
							<!-- Services and Specialization -->
							<div class="card services-card">
								<div class="card-body">
									<h4 class="card-title">Department</h4>
									<div class="form-group">
										<label>Department</label>
										<!--
										<input type="text" data-role="tagsinput" class="input-tags form-control" placeholder="Enter Services" name="services" value="Tooth cleaning " id="services">
										-->	
										<select multiple="multiple" id="department" class="input-tags form-control multiple-tag-select" name="department[]">
										  <?php 
											$ser 	= $connect->query_data('mng_department');
											$serv   = explode(',',$res['department']);
											//print_r($serv);
											foreach($ser as $sr) :
												if(in_array($sr['heading'], $serv))
													$sel = 'selected';
												else
													$sel = '';
										  ?>
											<option <?php echo $sel;?> value="<?php echo $sr['heading'];?>"><?php echo $sr['heading'];?></option>
										<?php endforeach;?>
										</select>
										<small class="form-text text-muted">Note : Type & select specialization</small>
									</div>  
								</div>              
							</div>
							<!-- /Services and Specialization -->
						 
							<!-- Education -->
							<div class="card">
								<div class="card-body">
									<h4 class="card-title">Education</h4>
									<div class="education-info">
									
									<!--start education info-->
									<?php 
										$educ = $connect->custom_query("SELECT * FROM dr_education WHERE id=$id");
										$i=1;
										foreach($educ as $edu) :
									?>
										<div class="row form-row education-cont">
											<div class="col-12 col-md-10 col-lg-11">
												<div class="row form-row">
													<div class="col-12 col-md-6 col-lg-4">
														<div class="form-group">
															<label>Degree</label>
															<input type="text" class="form-control" name="degree[]" value="<?php echo $edu['degree'];?>">
														</div> 
													</div>
													<div class="col-12 col-md-6 col-lg-4">
														<div class="form-group">
															<label>College/Institute</label>
															<input type="text" class="form-control" name="college[]" value="<?php echo $edu['college'];?>">
														</div> 
													</div>
													<div class="col-12 col-md-6 col-lg-4">
														<div class="form-group">
															<label>Year of Completion</label>
															<input type="text" class="form-control" name="deg_year[]" value="<?php echo $edu['year'];?>">
														</div> 
													</div>
												</div>
											</div>
											<?php if($i>1) :?>
												<div class="col-12 col-md-2 col-lg-1"><label class="d-md-block d-sm-none d-none">&nbsp;</label><a href="#" class="btn btn-danger trash"><i class="fa fa-trash"></i></a></div>
											<?php endif; ?>
										</div>
										
								<?php 
										
										$i++; 
									endforeach;
								?>
										<!--end education loop-->
									</div>
									<div class="add-more">
										<a href="javascript:void(0);" class="add-education"><i class="fa fa-plus-circle"></i> Add More</a>
									</div>
								</div>
							</div>
							<!-- /Education -->
						
							<!-- Experience -->
							<div class="card">
								<div class="card-body">
									<h4 class="card-title">Experience</h4>
									<div class="experience-info">
									<?php 
										$expe = $connect->custom_query("SELECT * FROM dr_experience WHERE id=$id");
										$i=1;
										foreach($expe as $exp) :
									?>
										<div class="row form-row experience-cont">
											<div class="col-12 col-md-10 col-lg-11">
												<div class="row form-row">
													<div class="col-12 col-md-6 col-lg-4">
														<div class="form-group">
															<label>Hospital Name</label>
															<input type="text" class="form-control" name="hospital[]" value="<?php echo $exp['hospital_name'];?>">
														</div> 
													</div>
													<div class="col-12 col-md-6 col-lg-4">
														<div class="form-group">
															<label>From</label>
															<input type="date" class="form-control" name="from_date[]" value="<?php echo $exp['from_date'];?>">
														</div> 
													</div>
													<div class="col-12 col-md-6 col-lg-4">
														<div class="form-group">
															<label>To</label>
															<input type="date" class="form-control" name="to_date[]" value="<?php echo $exp['to_date'];?>">
														</div> 
													</div>
													<div class="col-12 col-md-6 col-lg-4">
														<div class="form-group">
															<label>Designation</label>
															<input type="text" class="form-control" name="disignation[]" value="<?php echo $exp['designation'];?>">
														</div> 
													</div>
												</div>
											</div>
											<?php if($i>1) :?>
												<div class="col-12 col-md-2 col-lg-1"><label class="d-md-block d-sm-none d-none">&nbsp;</label><a href="#" class="btn btn-danger trash"><i class="fa fa-trash"></i></a></div>
										<?php endif; ?>
										</div>
										
								<?php $i++; endforeach;?>
										
										
									</div>
									<div class="add-more">
										<a href="javascript:void(0);" class="add-experience"><i class="fa fa-plus-circle"></i> Add More</a>
									</div>
								</div>
							</div>
							<!-- /Experience -->
							
							<!-- Awards -->
							<div class="card">
								<div class="card-body">
									<h4 class="card-title">Awards</h4>
									<div class="awards-info">
									<?php 
										$awar = $connect->custom_query("SELECT * FROM dr_awards WHERE id=$id");
										$i=1;
										foreach($awar as $aw) :
									?>
										<div class="row form-row awards-cont">
											<div class="col-12 col-md-5">
												<div class="form-group">
													<label>Awards</label>
													<input type="text" class="form-control" name="awards[]" value="<?php echo $aw['award_name'];?>">
												</div> 
											</div>
											<div class="col-12 col-md-5">
												<div class="form-group">
													<label>Year</label>
													<input type="text" class="form-control" name="award_year[]" value="<?php echo $aw['year'];?>">
												</div> 
											</div>
											<?php if($i>1) :?>
												<div class="col-12 col-md-2"><label class="d-md-block d-sm-none d-none">&nbsp;</label><a href="#" class="btn btn-danger trash"><i class="fa fa-trash"></i></a></div>
											<?php endif; ?>
										</div>
										
								<?php $i++; endforeach; ?>
									</div>
									<div class="add-more">
										<a href="javascript:void(0);" class="add-award"><i class="fa fa-plus-circle"></i> Add More</a>
									</div>
								</div>
							</div>
							<!-- /Awards -->
							
							<!-- Memberships -->
							<div class="card">
								<div class="card-body">
									<h4 class="card-title">Memberships</h4>
									<div class="membership-info">
									<?php 
										$memb = $connect->custom_query("SELECT * FROM dr_membership WHERE id=$id");
										$i=1;
										foreach($memb as $mem) :
									?>
										<div class="row form-row membership-cont">
											<div class="col-12 col-md-10 col-lg-5">
												<div class="form-group">
													<label>Memberships</label>
													<input type="text" class="form-control" name="membership[]" value="<?php echo $mem['membership'];?>">
												</div> 
											</div>
										<?php if($i>1) :?>
												<div class="col-12 col-md-2"><label class="d-md-block d-sm-none d-none">&nbsp;</label><a href="#" class="btn btn-danger trash"><i class="fa fa-trash"></i></a></div>
											<?php endif; ?>
										</div>
										
								<?php $i++; endforeach; ?>
										
									</div>
									<div class="add-more">
										<a href="javascript:void(0);" class="add-membership"><i class="fa fa-plus-circle"></i> Add More</a>
									</div>
								</div>
							</div>
							<!-- /Memberships -->
							
							<!-- Registrations -->
							<div class="card">
								<div class="card-body">
									<h4 class="card-title">Registrations</h4>
									<div class="registrations-info">
									<?php 
										$regi = $connect->custom_query("SELECT * FROM dr_registration WHERE id=$id");
										$i=1;
										foreach($regi as $reg) :
									?>
										<div class="row form-row reg-cont">
											<div class="col-12 col-md-5">
												<div class="form-group">
													<label>Registrations</label>
													<input type="text" class="form-control" name="registration[]" value="<?php echo $reg['registration'];?>">
												</div> 
											</div>
											<div class="col-12 col-md-5">
												<div class="form-group">
													<label>Year</label>
													<input type="text" class="form-control" name="reg_year[]" value="<?php echo $reg['year'];?>">
												</div> 
											</div>
										<?php if($i>1) :?>
												<div class="col-12 col-md-2"><label class="d-md-block d-sm-none d-none">&nbsp;</label><a href="#" class="btn btn-danger trash"><i class="fa fa-trash"></i></a></div>
											<?php endif; ?>
										</div>
										
								<?php $i++; endforeach; ?>
									</div>
									<div class="add-more">
										<a href="javascript:void(0);" class="add-reg"><i class="fa fa-plus-circle"></i> Add More</a>
									</div>
								</div>
							</div>
							<!-- /Registrations -->
							
							<div class="submit-section submit-btn-bottom mb-5">
								<input type="submit" name="submit" class="btn btn-primary" value="Save Changes"/>
							</div>
						</div>		
					</div>
								
</div>


                    </div>

				</div>

			

		

    </section>

</main>



<?php include("js.php"); ?>



<!--Additional Page includes-->

<script src="assets/vendor/apexchart/apexcharts.min.js"></script>

<!--chart data for current dashboard-->

<script src="assets/js/dashboard-01.js" type="text/javascript"></script>
        <script src="assets/js/jquery-3.2.1.min.js"></script>

 <script src="assets/js/popper.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>

 <script src="assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
		
		<!-- Datatables JS -->
		<script src="assets/plugins/datatables/jquery.dataTables.min.js"></script>
		<script src="assets/plugins/datatables/datatables.min.js"></script>
		<script  src="assets/js/script.js"></script>
				<link rel="stylesheet" href="assets/css/bootstrap.min">


<script>

grecaptcha.ready(function () {

	grecaptcha.execute('<?php print $sitekey; ?>',{action:'login'}).then(function(token){

		var recaptchaResponse = document.getElementById('recaptchaResponse');

		recaptchaResponse.value = token;

	});

});

</script>
		<script src="assets/js/profile-settings.js"></script>

</body>

</html>						
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY