-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd-project.php
More file actions
176 lines (127 loc) · 6.1 KB
/
add-project.php
File metadata and controls
176 lines (127 loc) · 6.1 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
169
170
171
172
173
174
175
176
<?php include './partials/head/head.php';
include_once './config/loader.php';
$auth->is_login();
$sql = "SELECT * FROM `customers`";
$hasuser = $conn->query($sql);
$hasuser->execute();
$data = $hasuser->fetchAll(PDO::FETCH_OBJ);
$row_member = $hasuser->rowCount();
?>
<link rel="stylesheet" href="@sweetalert2/theme-minimal/minimal.css">
<script src="sweetalert2/dist/sweetalert2.min.js"></script>
<script>
Swal.fire({
icon: "error",
title: "اووووپس...",
text: "شماره مورد نظر نامعتبر میباشد",
footer: 'ناموسا شماره رو از کجات در اوردی؟'
});
</script>
<?php if (isset($_GET['usernot']) && $_GET['usernot'] == true) { ?>
<script>
Swal.fire({
icon: "error",
title: "اووووپس...",
text: "این مشتری قبلا اضافه شده",
footer: 'کم تر بزن!!'
});
</script>
<?php
}
?>
<div class="wrapper">
<!-- Navbar Start -->
<?php include './partials/navbar/navbar.php'; ?>
<!-- /.navbar End -->
<!-- Main Sidebar Container -->
<?php include './partials/sidebar/sidebar.php'; ?>
<!-- END Main Sidebar Container -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
</div><!-- /.col -->
<div class="col-sm-6">
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content">
<div class="card card-primary">
<div class="card-header">
<h3 class="card-title">افزودن پروژه</h3>
</div>
<!-- /.card-header -->
<!-- form start -->
<form method="post" action="action/save-project.php" role="form">
<div class="card-body">
<div class="form-group ">
<label for="project-name">نام پروژه :</label>
<input type="text" name="project-name" class="form-control" placeholder="نام پروژه را به صورت کامل وارد کنید">
</div>
<div class="form-group ">
<label for="project-price">هزینه پروژه(تومان)</label>
<input type="number" class="form-control" name="project-price" id="exampleInputPassword1" placeholder="هزینه پروژه را به توماان وارد کنید">
</div>
<div class="form-group ">
<label for="project_status">درصد تکمیلی پروژه </label>
<input type="number" class="form-control" name="project_status" id="exampleInputPassword1" placeholder="به درصد وارد کنید برای مثال 80">
</div>
<div class="form-group">
<label>آیا نماد اعتماد ثبت شده؟</label>
<select name="is_enamad" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
<option value="1">بله</option>
<option value="0">اخیر</option>
</select>
</div>
<div class="form-group">
<label>آیا در گاه پرداخت ثبت شده؟</label>
<select name="is_dargah" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
<option value="1">بله</option>
<option value="0">اخیر</option>
</select>
</div>
<div class="form-group">
<label>نوع پروژه</label>
<select name="project_type" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
<option>وردپرسی</option>
<option>اختصاصی</option>
<option>نامعلوم</option>
</select>
</div>
<div class="form-group">
<label>انتخاب مشتری</label>
<select name="customer_select" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
<?php
foreach ($data
as $key => $item) {
?>
<option value='<?php echo $item->phone ?>'><?php echo $item->name ?></option>
<?php } ?>
</select>
</div>
</div>
<div class="card-footer">
<button type="submit" name="save_customer" class="btn btn-primary">ذخیره مشتری</button>
</div>
</form>
</div>
</div>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<!-- ./wrapper -->
<!-- REQUIRED SCRIPTS -->
<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.min.js"></script>
</body>
</html>