From f6b24f9842fbbc6add0bdf3732e5b9df5b6a4b5a Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 09:05:30 +0300 Subject: Added create (job) offer and view that have demo functionality (basic post request and echo values) --- src/views/create-offer.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/views/create-offer.php (limited to 'src/views/create-offer.php') diff --git a/src/views/create-offer.php b/src/views/create-offer.php new file mode 100644 index 0000000..2bdeeaf --- /dev/null +++ b/src/views/create-offer.php @@ -0,0 +1,19 @@ +

Works

+ +
+ + +
+ + +
+ + +
+ + +
+ +
-- cgit v1.3.1-26-gb76a From 56a5223e14f798e2c875c4347faecc4e2e9730fc Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 09:31:25 +0300 Subject: Implemented job offer form creating a new job offer in the database; Fixed insertIntoDB method of JobOffer; Added a link to JobOffer page in landing page --- src/controllers/CreateOfferController.php | 15 ++++++++++----- src/models/JobOffer.php | 2 +- src/views/create-offer.php | 6 +++++- src/views/landing.php | 2 ++ 4 files changed, 18 insertions(+), 7 deletions(-) (limited to 'src/views/create-offer.php') diff --git a/src/controllers/CreateOfferController.php b/src/controllers/CreateOfferController.php index d510978..a223463 100644 --- a/src/controllers/CreateOfferController.php +++ b/src/controllers/CreateOfferController.php @@ -1,16 +1,21 @@ insertValue(self::TABLE_NAME, $jb->title, $jb->description, $jb->company, $jb->salary); + self::$DB->insertValue(self::TABLE_NAME, $jb->title, $jb->description, $jb->companyId, $jb->salary); } /* Read */ diff --git a/src/views/create-offer.php b/src/views/create-offer.php index 2bdeeaf..9162c90 100644 --- a/src/views/create-offer.php +++ b/src/views/create-offer.php @@ -9,7 +9,11 @@

diff --git a/src/views/landing.php b/src/views/landing.php index 06e32a5..e6477ee 100644 --- a/src/views/landing.php +++ b/src/views/landing.php @@ -5,3 +5,5 @@ echo "{$job->id} {$job->title}
"; } ?> + +Create a new Job Offer -- cgit v1.3.1-26-gb76a From 3d40b19a379b7cd013283e623f773b760b281bdd Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 3 Apr 2021 10:02:39 +0300 Subject: Added cross page links --- src/views/create-offer.php | 3 +-- src/views/dashboard-login.php | 1 + src/views/landing.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/views/create-offer.php') diff --git a/src/views/create-offer.php b/src/views/create-offer.php index 9162c90..19f2186 100644 --- a/src/views/create-offer.php +++ b/src/views/create-offer.php @@ -1,5 +1,3 @@ -

Works

-
@@ -21,3 +19,4 @@
+< Back diff --git a/src/views/dashboard-login.php b/src/views/dashboard-login.php index 1431b4f..a4cefe7 100644 --- a/src/views/dashboard-login.php +++ b/src/views/dashboard-login.php @@ -10,3 +10,4 @@ +< Back diff --git a/src/views/landing.php b/src/views/landing.php index e6477ee..d794d93 100644 --- a/src/views/landing.php +++ b/src/views/landing.php @@ -7,3 +7,4 @@ ?> Create a new Job Offer +Dashboard -- cgit v1.3.1-26-gb76a