From 46d89228ed7a577628dc8c37c2e72161e39ec0a4 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sun, 5 Apr 2026 15:37:11 +0530 Subject: Added PHP sample website --- php/01-common-theme/common/footer.php | 5 +++ php/01-common-theme/common/header.php | 19 +++++++++++ php/01-common-theme/common/style.css | 57 +++++++++++++++++++++++++++++++++ php/01-common-theme/contact-process.php | 20 ++++++++++++ php/01-common-theme/contact.php | 35 ++++++++++++++++++++ php/01-common-theme/index.php | 12 +++++++ 6 files changed, 148 insertions(+) create mode 100644 php/01-common-theme/common/footer.php create mode 100644 php/01-common-theme/common/header.php create mode 100644 php/01-common-theme/common/style.css create mode 100644 php/01-common-theme/contact-process.php create mode 100644 php/01-common-theme/contact.php create mode 100644 php/01-common-theme/index.php (limited to 'php') diff --git a/php/01-common-theme/common/footer.php b/php/01-common-theme/common/footer.php new file mode 100644 index 0000000..f01e7c1 --- /dev/null +++ b/php/01-common-theme/common/footer.php @@ -0,0 +1,5 @@ + + + diff --git a/php/01-common-theme/common/header.php b/php/01-common-theme/common/header.php new file mode 100644 index 0000000..83d762f --- /dev/null +++ b/php/01-common-theme/common/header.php @@ -0,0 +1,19 @@ + + + + + Welcome! | CEIT Open Course Content + + + + +
+ CEIT Open Course Content +
+ + diff --git a/php/01-common-theme/common/style.css b/php/01-common-theme/common/style.css new file mode 100644 index 0000000..48e53fb --- /dev/null +++ b/php/01-common-theme/common/style.css @@ -0,0 +1,57 @@ +body { + font-size: 1.125em; + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + line-height: 1.6em; + color: rgb(32, 34, 36);; + background-color: #FFF; + padding: 10px 5px; +} + + +.main-nav { + margin-top: 0; + padding: 0; +} + +.main-nav ul { + margin: 0; + padding : 0; + list-style-type: none; + background-color: #F6F8F8; + border: 1px solid #eee; +} + +.main-nav ul li { + margin-left: 0; + display: inline; + padding: 0 8px; + border-left: 1px solid #F9F9FF; + border-right: 1px solid #F9F9FF; +} + +.main-nav ul li:hover { + background-color: white; + border-left: 1px solid #addfff; + border-right: 1px solid #addfff; +} + +.main-nav ul li a { + color: #555; + font-weight: bold; +} + +.main-nav ul li a:hover { + color: #000; + background-color: blue; +} + +footer { + font-size: 80%; + border-top: solid 1px #000; +} + +input, textarea { + display: block; + margin-bottom: 4px; +} + diff --git a/php/01-common-theme/contact-process.php b/php/01-common-theme/contact-process.php new file mode 100644 index 0000000..20181f8 --- /dev/null +++ b/php/01-common-theme/contact-process.php @@ -0,0 +1,20 @@ + + +

Thank you! Your message with the subject "" was received successfully.

+ + + + + +
+ +Subject: + + +Body: + + + + +
+ + + +

This is the home page content.

+ +