Summary Files Commits Branches @commit @diff @stats
path: root / src / views / dashboard.php
diff options
context:
space:
mode:
1 files changed, 17 insertions, 0 deletions
-rw-r--r--src/views/dashboard.php17
diff --git a/src/views/dashboard.php b/src/views/dashboard.php
new file mode 100644
index 0000000..06be539
--- /dev/null
+++ b/src/views/dashboard.php
@@ -0,0 +1,17 @@
+<?php
+ foreach($jobs as $job) {
+ echo "{$job->id} {$job->title} {$job->description} " . self::$companies[$job->companyId] . " {$job->salary}
+ <form method=\"post\">
+ <input type=\"hidden\" name=\"_method\" value=\"get\">
+ <input type=\"hidden\" name=\"jobId\" value=\"{$job->id}\">
+ <input type=\"submit\" value=\"Edit\">
+ </form>
+ <form method=\"post\">
+ <input type=\"hidden\" name=\"_method\" value=\"delete\">
+ <input type=\"hidden\" name=\"jobId\" value=\"{$job->id}\">
+ <input type=\"submit\" value=\"Delete\">
+ </form>
+ <br>";
+ }
+?>
+<a href="/">&lt; Back</a>