-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreate_New_Job.php
More file actions
252 lines (217 loc) · 7.53 KB
/
Copy pathCreate_New_Job.php
File metadata and controls
252 lines (217 loc) · 7.53 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
<?php
if(isset($message)){
foreach($message as $message){
echo '
<div class="message">
<span>'.$message.'</span>
<i class="fas fa-times" onclick="this.parentElement.remove();"></i>
</div>
';
}
}
?>
<?php
@include 'config.php';
session_start();
$creator_id = $_SESSION['user_id'];
if(!isset($creator_id)){
//header('location:Login.php');
echo "<script> window.location.href='Login.php'</script>";
};
if(isset($_POST['logout'])){
session_unset();
session_destroy();
//header('location:index.php');
echo "<script> window.location.href='index.php'</script>";
}
if(isset($_POST['post_job'])){
//header('location:Create_Job.php');
echo "<script> window.location.href='Create_Job.php'</script>";
}else{
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/glass-menu.css" />
<link rel="stylesheet" href="css/Nevigation.css" />
<link rel="stylesheet" href="css/Common.css" />
<link rel="stylesheet" href="css/footer.css" />
<link rel="stylesheet" href="css/Create_New_Job.css" />
<link rel="stylesheet" href="ChatBot/botstyle.css">
<script src="ChatBot/botscript.js" defer></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<link rel="icon" href="images/icon.ico" type="image/x-icon" />
<title>MoodWave</title>
</head>
<body id="swup" class="transition-fade">
<?php
if(isset($message)){
foreach($message as $message){
echo '
<div class="message">
<span>'.$message.'</span>
<i class="fas fa-times" onclick="this.parentElement.remove();"></i>
</div>
';
}
}
?>
<form action="" method="POST" enctype="multipart/form-data">
<!--Navigation bar start-->
<center>
<section class="navigation_section">
<nav class="Navigation_Bar">
<ul>
<li><a id="index" href="#"><img src="images/Logo.png" alt="MoodWave_logo"/></a></li>
<li class="features"><a id="Need_Help" href="#">HELP</a></li>
<li><a id="About_us" href="#" class="ABOUT transition-fade" >ABOUT US</a></li>
<li>
<button name="logout">Logout</button>
</li>
</ul>
</nav>
</section>
</center>
<!--Navigation bar end-->
<br /><br /><br /><br /><br /><br />
<section class="Land">
<div class="Main_topic_sides">CREATE NEW JOB</div>
<div class="Small_topic_sides">
Music creators have the ability to generate a task for listeners,
wherein they can request an analysis of the emotions in their music by
engaging the perspectives of actual listeners.They can easily follow few
steps and create a new job without any problem.Let's start to create new
job and find the emotion of your music.<br /><br />
<img src="images/dots.png" alt="" />
</div>
<br /><br /><br />
<div class="button_holder">
<div>
<button class="middle_button_Creator_main" name="post_job">New Job</button>
</div>
</div>
<div class="description">
<div class="sub_topic_sides">My Jobs</div>
</div>
<center><div
class="grit_card_section"
data-aos="fade-up"
data-aos-duration="3000"
>
<div class="card_section">
<table>
<tr>
<th>Job Name</th>
<th>Needed Listeners</th>
<th>Completed</th>
</tr>
<?php
$select_jobs = mysqli_query($conn, "SELECT * FROM `jobs` WHERE creater_id='$creator_id'") or die('query failed');
if(mysqli_num_rows($select_jobs) > 0){
while($fetch_jobs = mysqli_fetch_assoc($select_jobs)){
?>
<tr>
<td> <?php echo $fetch_jobs['song_name']; ?></td>
<td> <?php echo $fetch_jobs['workers_need']; ?></td>
<td> <?php
$complete_no=$fetch_jobs['completed'];
$works=$fetch_jobs['workers_need'];
$persontage=$complete_no/$works *100;
if($persontage>75){
echo '<span class="percentage">'.intval($persontage).'%</span><div class="colorcode"></div>';
}elseif($persontage>45){
echo '<span class="percentage">'.intval($persontage).'%</span><div class="colorcode_yellow"></div>';
}else{
echo '<span class="percentage">'.intval($persontage).'%</span><div class="colorcode_red"></div>';
}
?></td>
</tr>
<?php
}
}
?>
</table>
</div>
</div></center>
<br /><br /><br /><br />
<button class="chatbot-toggler">
<span class="material-symbols-outlined">mode_comment</span>
<span class="material-symbols-outlined">close</span>
</button>
<div class="chatbot">
<header>
<h2>Moody</h2>
<span class="close-btn material-symbols-outlined">close</span>
</header>
<ul class="chatbox">
<li class="chat incoming">
<span class="material-symbols-outlined">smart_toy</span>
<p>Hi there 🖐️ <br> How can I help you today?</p>
</li>
</ul>
<div class="chat-input">
<textarea name="" id="" cols="20" rows="2" placeholder='Enter a message...'></textarea>
<span id="send-btn" class="material-symbols-outlined">send</span>
</div>
</div>
<!-- Footer start-->
<div class="container_footer">
<footer>
<div class="Icon_bar">
<a href="#"></a><i class="fab fa-facebook-square"></i></a>
<a href="#"></a><i class="fab fa-instagram"></i></a>
<a href="#"></a><i class="fab fa-twitter"></i></a>
</div>
</footer>
</div>
<div class="box">Copyright | FOC - SUSL</div>
<!-- Footer end-->
<script src="JS/vanilla-tilt.min.js"></script>
<script>
VanillaTilt.init(document.querySelectorAll(".card"), {
max: 25,
speed: 400,
glare: true,
"max-glare": 1,
});
</script>
<script src="JS/Script.js"></script>
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init();
</script>
<!--Loader script end-->
<script src="https://unpkg.com/swup@4"></script>
<script>
const swup = new Swup();
</script>
<script>
document.getElementById("About_us").addEventListener("click", function(event) {
event.preventDefault();
window.location.href = 'About_us.php';
});
document.getElementById("Need_Help").addEventListener("click", function(event) {
event.preventDefault();
window.location.href = 'Need_Help.php';
});
document.getElementById("index").addEventListener("click", function(event) {
event.preventDefault();
window.location.href = 'index.php';
});
</script>
</body>
</html>