Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahamudun Hassan committed Nov 19, 2023
1 parent 4e1fef3 commit 6b3b40a
Show file tree
Hide file tree
Showing 149 changed files with 6,259 additions and 527 deletions.
101 changes: 101 additions & 0 deletions accounting_job.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Accounting/Finance Jobs</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cloud.tinymce.com/stable/tinymce.min.js"></script>
<script>tinymce.init({ selector:'textarea' });</script>
<style type="text/css">

.jobs_link a{
text-decoration: none;
}
#link a{

text-decoration:none;

}
.jumbotron:hover{
background: #fffbc7;


}
#bdy{
min-height: 550px;
}


</style>

</head>
<body>

<?php include('navbar.php'); ?>
<br>


<div id="bdy" class="container">
<div class="col-md-10 col-md-offset-1">

<?php

include('database.php');

$sql="SELECT * FROM all_jobs WHERE job_category='Accounting' ";


$select =mysqli_query($connect,$sql);


if (mysqli_num_rows($select) > 0) {

// output data of each row
while($row = mysqli_fetch_assoc($select))
{
?>
<div class="jobs_link">
<a style="text-decoration: none;" href="view_details.php?job_id=<?php echo $row['all_jobs_id'] ?>"
target="_blank">

<div class="jumbotron">
<h3 style="color: green"><?php echo $row["company_name"] ?></h3>
<h3 style="color: purple"><?php echo $row["position_name"] ?></h3>
<table>
<tr>
<td><h5 style="font-weight: bold;">Education</h5></td>
<td>:</td>
<td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<?php echo $row["educational_requirements"] ?></td>
</tr>
<tr>
<td><h5 style="font-weight: bold;">Experience</h5></td>
<td>:</td>
<td>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<?php echo $row["experience_requirement"] ?></td>
</tr>
</table>
</div>
</a>

</div>

<?php

}
}

?>

</div>

</div>

<?php include('footer.php'); ?>

</body>
</html>



37 changes: 16 additions & 21 deletions admin.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Admin</title>
<title>Admin Login</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Favicon -->
Expand All @@ -10,17 +10,18 @@
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
<link href='//fonts.googleapis.com/css?family=Arsenal' rel='stylesheet'>
<!-- CSS -->
<style type="text/css">
/*login and registration css*/
/*login and registration css*/
.login_box{
width: 325px;
min-height: auto;
margin: 0% auto;
margin: 100px auto;
padding: 20px;
border-radius: 5px;
box-shadow: inset 0 0 5px gray;
background: #E1E1E1;
/*#BDBDBD*/
}
.login_head{
text-align: center;
Expand All @@ -30,16 +31,8 @@
width: 150px;
height: 150px;
}
/*.login_head h2{
color: #77D330;
line-height: 0px;
font-family: 'Arsenal',sans-serif;
font-size: 33px;
}*/
/*.login_head hr{
line-height: 0px;
color: green;
}*/
.login_body{
margin-top: 30px;
text-align: center;
Expand All @@ -57,7 +50,7 @@
.login_box .btn{
width: 290px;
padding: 8px;
background: #638E9B;
background: #1670B9;
cursor: pointer;
color: #fff;
font-size: 17px;
Expand All @@ -75,8 +68,12 @@
.login_box a:hover{
color: green;
}
</style>
body{
background-color: #A65656;
}
</style>
</head>
<body class="custom">
<div class="cbody">
Expand All @@ -88,19 +85,17 @@
</div>
<div class="login_body">
<form action="functions.php" method="post">
<input type="text" name="admin" class="input" placeholder="admin name"> <br>
<input type="password" name="pwd" class="input" placeholder="Password">
<input type="text" name="admin" class="input" placeholder="Admin Username"> <br>
<input type="password" name="pwd" class="input" placeholder="Admin Password">
<button class="btn" name="adminLogin">Login</button>
</form>
</div>
<br>
<!-- <a href="registration.php">New Member? Sign up here</a><br> -->
<!-- <a href="">Forgot the Password?</a> -->
</div>
</div>
<script type="text/javascript"></script>
</body>
</html>
59 changes: 59 additions & 0 deletions admin_action.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?php
require_once("database.php");


// delete employers

if (isset($_GET['emp_name'])) {
$uname=$_GET['emp_name'];
$q="DELETE FROM employer_table WHERE username='$uname'";
$r=mysqli_query($connect,$q);
// echo $id;
if(!$r){
echo "<script>alert('Not Deleted')</script>";
echo "<script>location='employer_list.php'</script>";
}else{
// echo "<script>alert('Application Deleted')</script>";
echo "<script>location='employer_list.php'</script>";
}
}



// delete users

if (isset($_GET['user_name'])) {
$user_name=$_GET['user_name'];
$q="DELETE FROM user_table WHERE username='$user_name' ";
$r=mysqli_query($connect,$q);
// echo $id;
if(!$r){
echo "<script>alert('Not Deleted')</script>";
echo "<script>location='user_list.php'</script>";
}else{

echo "<script>location='user_list.php'</script>";
}
}


// delete users

if (isset($_GET['apply_id'])) {
$app_id=$_GET['apply_id'];
$q="DELETE FROM apply_table WHERE id='$app_id' ";
$r=mysqli_query($connect,$q);
// echo $id;
if(!$r){
echo "<script>alert('Not Deleted')</script>";
echo "<script>location='applied_history.php'</script>";
}else{

echo "<script>location='applied_history.php'</script>";
}
}




?>
82 changes: 71 additions & 11 deletions admin_home.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,49 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<style type="text/css">

#tbl1{
border: 1px solid #45AEF0;
float: left;
background-color: #45AEF0 ;
min-height: 400px;
margin-right: 20px;
}
#tbl1 a{
text-decoration: none;
padding: 0px;
margin: 0px;
font-size: 20px;
color: white;
}
#tbl1 a:hover{
/*color:red;*/
color: #EA5200;
display: inline-block;
}

#tbl2{

width: 80%;
}
table th,td,tr{
text-align: center;
}
.jumbotron{
min-height: 700px;
}
.active{
color: white;
background-color: #C84040;

}

#dash{
color:#C01717;
}

</style>
</head>
<body>

Expand All @@ -42,23 +85,39 @@

</ul>


</div>
</nav>

<h2 style="text-align: center;
color: blue;"> Admin Access Panel </h2>

<div class="container">
<div class="jumbotron">

<h2 style="text-align: center;color: blue;"> Admin Access Panel </h2>

<h2 style="text-align: center;">Welcome ! <?php echo $_SESSION['adminName'];?> </h2><br>

<h2 style="text-align: center;">Welcome <?php echo $_SESSION['adminName'];?> </h2>

<div class="container">
<table id="tbl1" width="15%" >
<tr>
<td valign="top">

<div class="col-md-10 col-md-offset-1">
<div class="jumbotron">
<table class="table table-hover table-bordered">
<h3 id="dash">Dashboard</h3><hr>
<a href="admin_home.php" class="active">All Jobs</a><br>
<a href="employer_list.php">All Employers</a><br>
<a href="user_list.php">All Users</a><br>

<!-- <a href="functions.php?adminName=<?php //echo $_SESSION['adminName'];?> "><span class="glyphicon glyphicon-log-out"></span></a> <br> -->

</td>

</tr>
</table>



<!-- <div class="col-md-10 col-md-offset-1"> -->


<table id="tbl2" class="table table-hover table-bordered" width="50%">
<thead >
<th>Serial</th>
<th>Company Name</th>
Expand Down Expand Up @@ -97,10 +156,11 @@
}
}
?>

</table>
</div>

</div>
<!-- </div> -->

</div>

Expand Down
12 changes: 1 addition & 11 deletions applicant_cv_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,7 @@
<div class="col-md-10 col-md-offset-1">
<div class="jumbotron">
<?php
// applicant information show


/* if (isset($_GET['applicant_view_id'])) {
$id=$_GET['applicant_view_id'];
$q="SELECT applicant_name FROM apply_table WHERE id='$id'";
$r=mysqli_query($connect,$q);
// cv show from database
*/




if (isset($_GET['appicant_username'])) {
Expand Down
Loading

0 comments on commit 6b3b40a

Please sign in to comment.