My Admin

Inline Style Navigation Menu
Erase Cookies
Image Upload with Preview

Edit Logo



📷
Edit Store Details

Store Information

Welcome, User

Name Store Name
Hours 00:00 AM - 00:00 PM
Description Main Store
Category Category A
Edit Contact Details

Contact Information

Phone Number 123-456-7890
Email example@email.com
Web Link
Location 123 Main St, City, Country

Edit Contact Details

Events Manager
Image Upload with Preview

Edit Image



📷
Add Job Section
`; jobItem.querySelector('.edit').onclick = function() { editJob(jobItem, job); } jobItem.querySelector('.delete').onclick = function() { if (confirm('Are you sure you want to delete this job?')) { deleteJob(job.job_id, jobItem); } } jobList.appendChild(jobItem); }); } else { // alert('Error: ' + data.error); } }) .catch(error => { console.error('Error:', error); }); } function addJob(job) { fetch('/wp-content/themes/hello-elementor/update_job.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ jobName: job.name, jobDescription: job.description, positions: job.positions, contactEmail: job.email }) }) .then(response => response.json()) .then(data => { if (data.success) { fetchJobs(); // Reload job list closeModal(); } else { alert('Error: ' + data.error); } }) .catch(error => { console.error('Error:', error); }); } function updateJob(job, index) { fetch('/wp-content/themes/hello-elementor/update_job.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ jobName: job.name, jobDescription: job.description, positions: job.positions, contactEmail: job.email }) }) .then(response => response.json()) .then(data => { if (data.success) { fetchJobs(); // Reload job list closeModal(); } else { //alert('Error: ' + data.error); } }) .catch(error => { console.error('Error:', error); }); } function editJob(jobItem, job) { editIndex = Array.from(jobList.children).indexOf(jobItem); modalTitle.textContent = 'Edit Job'; jobForm.jobName.value = job.job_title; jobForm.jobDescription.value = job.job_description; jobForm.positions.value = job.positions; jobForm.contactEmail.value = job.job_email; jobForm.jobName.disabled = true; // Disable the job name input when editing modal.style.display = 'block'; btn.style.display = 'none'; } function deleteJob(jobId, jobItem) { fetch('/wp-content/themes/hello-elementor/delete_job.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: new URLSearchParams({ jobId: jobId }) }) .then(response => response.json()) .then(data => { if (data.success) { jobList.removeChild(jobItem); } else { //alert('Error: ' + data.error); } }) .catch(error => { console.error('Error:', error); }); } function closeModal() { modal.style.display = 'none'; btn.style.display = 'block'; jobForm.jobName.disabled = false; // Re-enable the job name input when closing the modal } });
Inline Style Navigation Menu
Contact Information

This website uses cookies.