You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
256 lines
9.2 KiB
256 lines
9.2 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>New Job Posting</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
<style>
|
|
.Existing_client {
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
label.required::after {
|
|
content: "*";
|
|
color: black;
|
|
margin-left: 5px;
|
|
}
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
.form-group label {
|
|
margin-right: 1px;
|
|
width: 150px;
|
|
}
|
|
.form-group select,
|
|
.form-group input {
|
|
flex: 1;
|
|
}
|
|
ul {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin-bottom: 20px;
|
|
margin-left: 300px;
|
|
}
|
|
li {
|
|
float: left;
|
|
margin-bottom: 20px;
|
|
margin-left: -10px;
|
|
}
|
|
li a {
|
|
display: block;
|
|
color: black;
|
|
text-align: center;
|
|
padding: 1px;
|
|
text-decoration: underline;
|
|
margin-top: 20px;
|
|
margin-left: 60px;
|
|
}
|
|
a:hover {
|
|
color: red;
|
|
}
|
|
.container {
|
|
width: 60%; /* Adjusted width */
|
|
margin: auto;
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
margin-left: 300px; /* Adjusted margin */
|
|
}
|
|
.form-group button {
|
|
margin-left: auto;
|
|
margin-top: 10px;
|
|
display: block;
|
|
}
|
|
table {
|
|
width: 60%; /* Adjusted width */
|
|
border-collapse: collapse;
|
|
margin-bottom: 50px;
|
|
margin-left: 350px;
|
|
margin-top: 30px;
|
|
}
|
|
th, td {
|
|
border: 1px solid #DDDDDD;
|
|
padding: 8px;
|
|
text-align: left;
|
|
color: white;
|
|
text-align: center;
|
|
}
|
|
th {
|
|
background-color: #336699;
|
|
}
|
|
td {
|
|
color: black;
|
|
background-color: white;
|
|
}
|
|
.add-button {
|
|
margin-top: 20px;
|
|
text-align: right;
|
|
margin-right: 270px;
|
|
}
|
|
.save-button {
|
|
width: 10%;
|
|
}
|
|
.add a {
|
|
text-decoration: none;
|
|
}
|
|
.add p {
|
|
margin-left: 1180px;
|
|
margin-top: 3px;
|
|
}
|
|
.add span {
|
|
display: inline-block;
|
|
width: 25px;
|
|
height: 25px;
|
|
border: 2px solid black; /* Add border property */
|
|
border-radius: 50%;
|
|
text-align: center;
|
|
line-height: 30px;
|
|
margin-left: 1200px;
|
|
color: black;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="Existing_client">
|
|
<div class="container">
|
|
<div class="form-group">
|
|
<label for="ClientDropdown" class="required">Client:</label>
|
|
<select id="ClientDropdown" name="Client" required style="margin-left: -80px; height: 30px;">
|
|
|
|
<option value="">Select Client</option>
|
|
<option value="oracle">Oracle</option>
|
|
<option value="skyonn">Skyonn</option>
|
|
<option value="capgemini">Capgemini</option>
|
|
</select>
|
|
<label for="SubClientDropdown" class="required">Sub Client:</label>
|
|
<select id="SubClientDropdown" name="SubClient" required style="margin-left: -50px; height: 30px;">
|
|
|
|
<option value="">Select Sub Client</option>
|
|
<option value="vr heights">VR Heights</option>
|
|
<option value="sky tower">Sky Tower</option>
|
|
<option value="tech park">Tech Park</option>
|
|
</select>
|
|
<button id="getDetailsButton" type="button" style="margin-left: 30px;margin-top: 0px; background-color: #77C3EC; color: white; height: 30px;">Get Details</button>
|
|
|
|
</div>
|
|
</div>
|
|
<ul style="margin-top: -25px;">
|
|
<li><a href="javascript:void(0);" class="department-link" data-department="hiring_managers">HIRING MANAGERS</a></li>
|
|
<li><a href="javascript:void(0);" class="department-link" data-department="accounts">ACCOUNT DEPARTMENT</a></li>
|
|
<li><a href="javascript:void(0);" class="department-link" data-department="human_resources">HUMAN RESOURCES</a></li>
|
|
<li><a href="javascript:void(0);" class="department-link" data-department="administration">ADMINISTRATION AND LEGAL</a></li>
|
|
</ul>
|
|
<br><br>
|
|
<div class="original-table">
|
|
<table id="originalEmployeeTable">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Designation</th>
|
|
<th>Department</th>
|
|
<th>Phone</th>
|
|
<th>Email</th>
|
|
<th>Location</th>
|
|
<th>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- Rows will be added here dynamically -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="add">
|
|
<a href="#" onclick="addNewTable()">
|
|
<span class="circle"><i class="fas fa-plus" style="margin-top: -10px;"></i></span>
|
|
<p>Add New</p>
|
|
</a>
|
|
</div>
|
|
<script>
|
|
<!--document.addEventListener('DOMContentLoaded', function () {-->
|
|
<!-- const getDetailsButton = document.getElementById('getDetailsButton');-->
|
|
<!-- if (getDetailsButton) {-->
|
|
<!-- console.log('Button found, adding event listener.'); // This should print if the button is successfully found-->
|
|
<!-- getDetailsButton.addEventListener('click', function() {-->
|
|
<!-- console.log('Get Details clicked'); // This should print when the button is clicked-->
|
|
<!-- const clientId = document.getElementById('ClientDropdown').value;-->
|
|
<!-- const department = 'hiring_managers'; // Example, adjust as necessary-->
|
|
<!-- fetchContacts(clientId, department);-->
|
|
<!-- });-->
|
|
<!-- } else {-->
|
|
<!-- console.log('Get Details button not found.'); // This helps identify if there's a problem in finding the button-->
|
|
<!-- }-->
|
|
<!--});-->
|
|
|
|
<!-- // Initialize with hiring managers data-->
|
|
<!-- fetchContacts(clientDropdown.value, currentDepartment);-->
|
|
|
|
<!-- // Event listener for "Get Details" button-->
|
|
<!-- getDetailsButton.addEventListener('click', () => {-->
|
|
<!-- fetchContacts(clientDropdown.value, currentDepartment);-->
|
|
<!-- });-->
|
|
|
|
<!-- // Event listeners for department links-->
|
|
<!-- departmentLinks.forEach(link => {-->
|
|
<!-- link.addEventListener('click', (e) => {-->
|
|
<!-- e.preventDefault();-->
|
|
<!-- currentDepartment = e.target.getAttribute('data-department');-->
|
|
<!-- fetchContacts(clientDropdown.value, currentDepartment);-->
|
|
<!-- // Update active class-->
|
|
<!-- departmentLinks.forEach(lnk => lnk.classList.remove('active'));-->
|
|
<!-- e.target.classList.add('active');-->
|
|
<!-- });-->
|
|
<!-- });-->
|
|
|
|
<!-- const updateContactsDisplay = (contacts) => {-->
|
|
<!-- const tableBody = document.querySelector('#originalEmployeeTable tbody');-->
|
|
<!-- tableBody.innerHTML = ''; // Clear existing rows-->
|
|
<!-- contacts.forEach(contact => {-->
|
|
<!-- const row = tableBody.insertRow();-->
|
|
<!-- Object.values(contact).forEach(text => {-->
|
|
<!-- const cell = row.insertCell();-->
|
|
<!-- cell.textContent = text;-->
|
|
<!-- });-->
|
|
<!-- // Add action buttons if needed-->
|
|
<!-- });-->
|
|
|
|
<!-- // Show a message if no contacts found-->
|
|
<!-- if (contacts.length === 0) {-->
|
|
<!-- const row = tableBody.insertRow();-->
|
|
<!-- const cell = row.insertCell();-->
|
|
<!-- cell.textContent = "No data available";-->
|
|
<!-- cell.colSpan = 7;-->
|
|
<!-- }-->
|
|
<!-- };-->
|
|
<!--});-->
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
// Console log to confirm the script is running
|
|
console.log('Script is running');
|
|
|
|
// Function to be called when the button is clicked
|
|
function buttonClicked() {
|
|
console.log('Get Details button was clicked');
|
|
// You can place your fetchContacts logic here
|
|
}
|
|
|
|
// Attach the event listener to the button
|
|
const getDetailsButton = document.getElementById('getDetailsButton');
|
|
if (getDetailsButton) {
|
|
getDetailsButton.addEventListener('click', buttonClicked);
|
|
} else {
|
|
console.log('Get Details button not found');
|
|
}
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|