-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEditDoctorInfo.php
More file actions
168 lines (160 loc) · 7.7 KB
/
EditDoctorInfo.php
File metadata and controls
168 lines (160 loc) · 7.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<?php
include_once("Config.php");
$doctor = new DoctorController();
$profileInfo = new DoctorView();
$id = $_POST['doctor_id'];
?>
<html dir="rtl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>کلینیک سلامت</title>
<link rel="stylesheet" href="css/bootstrap.rtl.css">
<link type="text/css" rel="stylesheet" href="panelmodir.css">
</head>
<body>
<header class="sticky">
<div class="container-fluid" id="pageHeader">
<div class="row">
<div class="col-md-1 py-2">
<img src="img/logo.jpg" class="rounded" width="100" height="100">
</div>
<div class="col-md-8 py-5" id="pageTitle">
<p>پنل کاربری مدیر کلینیک سلامت</p>
</div>
</div>
</div>
<nav>
<ol class="breadcrumb px-3 bg-light">
<li class="breadcrumb-item"><a href="asli.html">صفحه اصلی</a></li>
<li class="breadcrumb-item">پنل کاربری مدیر</li>
<li class="breadcrumb-item active">ویرایش مشخصات پزشک</li>
</ol>
</nav>
</header>
<div class="py-3" align="center">
<div class="container">
<h3 align="start">مشخصات پزشک</h3>
<div class="col-md-8">
<div class="row">
<div class="col-md-6" align="start">
<label>نام و نام خانوادگی</label>
<input type="text" id="name" class="form-control formColor" value="<?php $profileInfo->FetchName($id); ?>">
</div>
<div class="col-md-6" align="start">
<label>تخصص</label>
<input type="text" id="expertise" class="form-control formColor" value="<?php $profileInfo->FetchExpertise($id); ?>">
</div>
</div>
<div class="row">
<div class="col-md-6" align="start">
<label>نام کاربری</label>
<input type="text" id="username" class="form-control formColor" value="<?php $profileInfo->FetchUsername($id); ?>">
</div>
<div class="col-md-6" align="start">
<label>رمز عبور</label>
<input type="password" id="password" class="form-control formColor">
</div>
</div>
<div class="row">
<div class="col-md-6" align="start">
<label>شماره نظام</label>
<input type="tel" id="code" class="form-control formColor" value="<?php $profileInfo->FetchCode($id); ?>">
</div>
<div class="col-md-6" align="start">
<label>تکرار رمز عبور</label>
<input type="password" id="repeat_password" class="form-control formColor">
</div>
</div>
<div class="row">
<div class="col-md-6" align="start">
<label>شماره تماس</label>
<input type="tel" id="phone" class="form-control formColor" value="<?php $profileInfo->FetchPhone($id); ?>">
</div>
<div class="col-md-6" align="start">
<label>ایمیل</label>
<input type="email" id="email" class="form-control formColor" value="<?php $profileInfo->FetchEmail($id); ?>">
</div>
</div>
<div align="start">
<label>آدرس</label>
<input type="text" id="address" class="form-control formColor" value="<?php $profileInfo->FetchAddress($id); ?>">
</div>
<div class="col-md-8" align="start">
<label>توضیحات</label>
<textarea class="form-control formColor" id="description" rows="4">
<?php $profileInfo->FetchDescription($id); ?>
</textarea>
</div>
</div>
<br />
<input type="submit" id="EditDoctorInfo" class="btn btn-success subBtn" value="ثبت تغییرات" />
<input type="submit" id="CloseBtn" class="btn btn-danger exitModal" value="بستن" />
<br />
</div>
<br />
<div id="message"></div>
</div>
<div class="container">
<footer class="d-flex flex-wrap justify-content-between align-items-center py-3 my-3 border-top">
<p class="col-md-4 mt-0 text-muted">
آدرس : رشت، گلسار، نبش کوچه 110
<br>
ساختمان سلامت
</p>
<div class="col-md-4 d-flex align-items-center justify-content-center mb-3 mb-md-0 me-md-auto text-decoration-none">
<img src="img/clinic.jpg" class="rounded" width="150">
</div>
<div class="col-md-4 mb-0 text-muted">
شماره های تماس :
<p class="d-flex justify-content-end">013-32117683</p>
<p class="d-flex justify-content-end">013-32117689</p>
</p>
</footer>
</div>
<script src="js/bootstrap.bundle.js"></script>
<script src="jquery-3.6.4.js"></script>
<script src="https://code.jquery.com/jquery-3.7.0.min.js"
integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g="
crossorigin="anonymous">
</script>
<script>
$(document).ready(function(){
$('#EditDoctorInfo').click(function(){
var name = $("#name").val();
var username = $("#username").val();
var password = $("#password").val();
var repeat_password = $("#repeat_password").val();
var code = $("#code").val();
var expertise = $("#expertise").val();
var phone = $("#phone").val();
var email = $("#email").val();
var address = $("#address").val();
var description = $("#description").val();
var doctor_id = "<?php echo $id; ?>";
$("#message").load("Includes/EditDoctorProfileByAdmin.Include.php",
{
name: name,
username: username,
password: password,
repeat_password: repeat_password,
code: code,
expertise: expertise,
phone: phone,
email: email,
address: address,
description: description,
doctor_id: doctor_id
});
});
});
</script>
<script>
$(document).ready(function(){
$('#CloseBtn').click(function(){
window.open("panelmodir.php");
});
});
</script>
</body>
</html>