Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yadira Cervantes committed Feb 6, 2024
2 parents 2c563ab + 716a7a8 commit e6f4850
Show file tree
Hide file tree
Showing 8 changed files with 440 additions and 85 deletions.
4 changes: 2 additions & 2 deletions admin_announcement.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
<div class="container p-3" id="main-container">
<h3 class="form-header">Admin Announcement Form</h3>
<div class="form-container">
<form method="post" action="https://dragonfly.greenriverdev.com/vardump.php" class="form-body my-3">
<form method="post" action="adminannouncementPHP.php" class="form-body my-3">
<div class="mb-4">
<label for="announcement-title" class="form-label">Title*</label>
<input type="text" class="form-control" id="announcement-title" name="announcement-title"
placeholder="Name and Position" required>
</div>
<div class="mb-4">
<label class="foSrm-label">Job or Internship*</label>
<label class="form-label">Job or Internship*</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="job-or-intern" id="job" value="job" required>
<label class="form-check-label" for="job">Job</label>
Expand Down
10 changes: 5 additions & 5 deletions admin_dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,12 @@ <h6>Incomplete Apps</h6>
</div>
</div>
</div>
<div class="row p-3">
<div class="col-8 d-flex justify-content-center" id="new-app-container">
<button id="new-app-btn" class="submit-btn">New Application</button>
<div class="row py-3">
<div class="col-9 d-flex justify-content-center" id="new-app-container">
<button class="submit-btn">New Application</button>
</div>
<div class="col-4 text-center" id="update-account-container">
<a href="#" class="" style="color:green">Update Account Setting</a>
<div class="col-3 d-flex justify-content-center" id="update-account-container">
<button id="update-acc-btn" class="submit-btn"><i class="fa-solid fa-gear px-1"></i>Update Account</button>
</div>
</div>
<div class="row dashboard-top">
Expand Down
222 changes: 222 additions & 0 deletions adminannouncementPHP.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,222 @@
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Team Dragonfly - Sprint 2</title>
<!-- Load theme from localstorage -->
<script src="js/themescript.js"></script>
<!-- Latest compiled and minified CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
<link rel="stylesheet" href="styles.css"/>
<!-- Latest compiled JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<nav class="navbar navbar-expand-lg sticky-top py-1 ">
<div class="container-fluid">
<img src="images/GRC_Logo-Rich-Black.png" alt="GreenRiver College logo" id="grc-logo">
<button type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" class="navbar-toggler"><span class="navbar-toggler-icon"></span></button>
<div class="collapse navbar-collapse mx-1" id="navbar-menu">
<ul class="navbar-nav nav-underline">
<li><a href="index.html" class="nav-link">User Dashboard</a></li>
<li><a href="signup.html" class="nav-link">Sign-up</a></li>
<li><a href="applicationform.html" class="nav-link">New Application</a></li>
<li><a href="contactForm.html" class="nav-link">Contact</a></li>
<li>
<ul class="navbar-nav nav-underline">
<li><a href="admin_dashboard.html" class="nav-link">Admin Dashboard</a></li>
<li><a href="admin_announcement.html" class="nav-link">Admin Announcement</a></li>
</ul>
</li>
<li class="d-flex justify-content-end" id= "dark-mode-list-item">
<div class="form-check form-switch">
<label class="form-check-label" for="dark-mode-switch">Dark Mode</label>
<input class="form-check-input" type="checkbox" role="switch" id="dark-mode-switch">
</div>
</li>
</ul>
</div>
</div>
</nav>
<main>
<div class="container p-3" id="main-container">
<?php
if(! empty($_POST)) {

// removing
foreach ($_POST as $value) {
$value = trim($value);

if (empty($value) && $value != $_POST['additional-text']) {
?>
<div class="content">
<h2>Failed to send.</h2>
</div>

<?php
return;
}
}

$title = $_POST['announcement-title'];
$job = $_POST['job-or-intern'];
$location = $_POST['location'];
$employer = $_POST['employer'];
$addltext = $_POST['additional-text'];
$url = $_POST['url'];
$sentto = $_POST['sent-to'];

// sanitization
$title = strip_tags(filter_var($title, FILTER_SANITIZE_ADD_SLASHES));
$job = strip_tags(filter_var($job, FILTER_SANITIZE_ADD_SLASHES));
$location = strip_tags(filter_var($location, FILTER_SANITIZE_ADD_SLASHES));
$employer = strip_tags(filter_var($employer, FILTER_SANITIZE_ADD_SLASHES));
$url = strip_tags(filter_var($url, FILTER_SANITIZE_ADD_SLASHES));
$sentto = strip_tags(filter_var($sentto, FILTER_SANITIZE_ADD_SLASHES));

?>
<div class="form-receipt-container">
<div class="content">
<h3><?php echo 'Success! Your announcement has been sent.'; ?></h3>
<ul class="list-group">
<li class="list-group-item">
<?php echo "Title: " . $title; ?>
</li>
<li class="list-group-item">
<?php echo "Job Type: " . $job; ?>
</li>
<li class="list-group-item">
<?php echo "Location: " . $location; ?>
</li>
<li class="list-group-item">
<?php echo "Employer: " . $employer; ?>
</li>
<li class="list-group-item">
<?php echo "More Information: " . $addltext; ?>
</li>
<li class="list-group-item">
<?php echo "URL: " . $url; ?>
</li>
<li class="list-group-item">
<?php echo "Sent To: " . $sentto; ?>
</li>
</ul>
</div>
</div>
<?php
}
?>
</div>
</main>
<footer>
<div class="container footer-div p-3 ">
<div class="row justify-content-start">
<div class="footer-btn-div col-2 text-end px-4">
<p id="footer-jobs-btn" class="showing">FIND JOBS:</p>
<p id="footer-resources-btn">RESOURCES:</p>
</div>
<div class="col-1 footer-vert-line"></div>
<div class="col footer-jobs-div m-auto">
<div class="row footer-show" id="footer-jobs">
<div class="col">
<ul class="resources-list list-group list-group-horizontal-sm">
<li class="list-group-item p-0 m-0">
<a href="https://www.linkedin.com/" target="_blank" class="btn
text-dark btn-sm">
<img src="images/In-Blue-Logo.png" alt="5" style="max-height: 25px; padding-right: 4px;">LinkedIn
</a>
</li>
<li class="list-group-item p-0 m-0">
<a href="https://www.indeed.com/" target="_blank" class="btn
text-dark btn-sm">
<img src="images/Indeed_Logo_RGB.png" alt="5" style="max-height: 25px">
</a>
</li>
<li class="list-group-item p-0 m-0">
<a href="https://www.glassdoor.com/index.htm" target="_blank" class="btn
text-dark btn-sm">
<img src="images/glassdoor-icon.png" alt="5" style="max-height: 25px; padding-right: 4px;"> Glassdoor
</a>
</li>
<li class="list-group-item p-0 m-0">
<a href="https://www.levels.fyi/?compare=Amazon,Microsoft,Facebook&track=Software%20Engineer" target="_blank" class="btn
text-dark btn-sm">
<img src="images/levelsfyi.png" alt="5" style="max-height: 25px; padding-right: 4px;">Levels FYI
</a>
</li>
<li class="list-group-item p-0 m-0">
<a href="https://www.google.com/search?q=software+development+jobs" target="_blank" class="btn text-dark btn-sm">
More
</a>
</li>
</ul>
</div>
</div>
<div class="container footer-hide" id="footer-resources" >
<div class="row" >
<div class="col-6">
<div class="row footer-title">
CAREER RESOURCES
</div>
<div class="row" style="height:100px;">
<ul>
<li><a href="https://www.devs.greenrivertech.net/studentResources" target="_blank">GRC Student Resources</a></li>
<li><a href="https://www.levels.fyi/?compare=Amazon,Microsoft,Facebook&track=Software%20Engineer" target="_blank">Compare Job Salaries</a></li>
</ul>
</div>

</div>
<div class="col-6">
<div class="row footer-title">
RESUME
</div>
<div class="row" style="height:100px;">
<ul>
<li><a href="https://www.devs.greenrivertech.net/resources/Resume-FirstnameLastname.docx" target="_blank">Getting Started Resume Template</a></li>
<li><a href="https://www.devs.greenrivertech.net/resources/resume2.docx" target="_blank">Sample Technical Resume By April Curley</a></li>
<li><a href="https://www.glassdoor.com/blog/winning-resume/" target="_blank">How to Craft a Winning Software Resume</a></li>
<li><a href="https://www.jobscan.co/blog/resume-tips/" target="_blank">52 Resume Tips to Transform Your Job Search</a></li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="col-6">
<div class="row footer-title">
INTERVIEWING
</div>
<div class="row" style="height:100px;">
<ul>
<li><a href="https://interviewing.io/" target="_blank">Interviewing.io</a></li>
<li><a href="https://www.interviewcake.com/" target="_blank">Interview Cake</a></li>
<li><a href="https://www.dailycodingproblem.com/" target="_blank">Daily Coding Problem Dot Com</a></li>
<li><a href="https://medium.com/code-like-a-girl/acing-the-technical-interview-ea0c888feb9e#.vaums4td3" target="_blank">Acing the Technical Interview</a></li>
</ul>
</div>
</div>
<div class="col-6">
<div class="row footer-title">
COVER LETTER
</div>
<div class="row">
<ul>
<li><a href="https://www.linkedin.com/pulse/use-cover-letters-ceos-read-brian-de-haaff?trk=hp-feed-article-title" target="_blank">Tips for Writing a Cover Email and Letter</a></li>
<li><a href="http://www.fastcompany.com/3036904/hit-the-ground-running/10-words-and-phrases-that-are-killing-your-cover-letter" target="_blank">10 Words and Phrases That Are Killing Your Cover Letter</a></li>
<li><a href="https://www.themuse.com/advice/the-cover-letter-formula-that-skyrocketed-my-interviews-from-0-to-55" target="_blank">The Cover Letter Formula That Skyrocketed My Interviews</a></li>
<li><a href="http://www.greenriver.edu/student-affairs/tutoring-and-resources/writing-center.htm" target="_blank">Visit the Writing Center at Green River</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
<script src="js/main.js"></script>
</body>
</html>

2 changes: 1 addition & 1 deletion applicationform.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<h3 class="form-header">Application Form</h3>
<!-- <h2 class="pt-3">Application Form</h2>-->
<div class="form-container">
<form method="post" action="https://dragonfly.greenriverdev.com/sprint2/applicationformPHP.php" class="form-body my-3">
<form method="post" action="applicationformPHP.php" class="form-body my-3">
<div class="mb-4">
<label for="job-name" class="form-label">Job Name*</label>
<input type="text" class="form-control" id="job-name" name="job-name" required>
Expand Down
Loading

0 comments on commit e6f4850

Please sign in to comment.