From aa382f3dba8e67a00dbbd38bbd9f272a8bd1a9a1 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 10 Oct 2024 14:05:51 +0200 Subject: [PATCH] 2 --- .gitignore | 1 + css/style.css | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ index.php | 27 +++++++++++++++++++++++ sql/init.sql | 14 ++++++++++++ sql/sql.sql | 14 ++++++++++++ 5 files changed, 116 insertions(+) create mode 100644 .gitignore create mode 100644 css/style.css create mode 100644 index.php create mode 100644 sql/init.sql create mode 100644 sql/sql.sql diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000..c87d034 --- /dev/null +++ b/css/style.css @@ -0,0 +1,60 @@ +body { + /* Center the form on the page */ + text-align: center; + } + + form { + display: inline-block; + /* Form outline */ + padding: 1em; + border: 1px solid #ccc; + border-radius: 1em; + } + + p + p { + margin-top: 1em; + } + + label { + /* Uniform size & alignment */ + display: inline-block; + min-width: 90px; + text-align: right; + } + + input, + textarea { + /* To make sure that all text fields have the same font settings + By default, textareas have a monospace font */ + font: 1em sans-serif; + /* Uniform text field size */ + width: 300px; + box-sizing: border-box; + /* Match form field borders */ + border: 1px solid #999; + } + + input:focus, + textarea:focus { + /* Additional highlight for focused elements */ + border-color: #000; + } + + textarea { + /* Align multiline text fields with their labels */ + vertical-align: top; + /* Provide space to type some text */ + height: 5em; + } + + .button { + /* Align buttons with the text fields */ + padding-left: 90px; /* same size as the label elements */ + } + + button { + /* This extra margin represent roughly the same space as the space + between the labels and their text fields */ + margin-left: 0.5em; + } + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..77cf549 --- /dev/null +++ b/index.php @@ -0,0 +1,27 @@ + + + + + + Document + + +

test

+
+

+ + +

+

+ + +

+

+ + +

+
+ + + + diff --git a/sql/init.sql b/sql/init.sql new file mode 100644 index 0000000..2e4d6ea --- /dev/null +++ b/sql/init.sql @@ -0,0 +1,14 @@ +CREATE TABLE Persons ( + PersonID int primary key auto_increment, + LastName varchar(255), + FirstName varchar(255), + Email varchar(255), + Subject varchar(255), + Path varchar(255) +); + +INSERT INTO Persons (LastName, FirstName, Email, Subject, Path) +VALUES +('Smith', 'John', 'john.smith@example.com', 'Math', '/path/to/johnsmith'), +('Doe', 'Jane', 'jane.doe@example.com', 'Physics', '/path/to/janedoe'), +('Brown', 'Charlie', 'charlie.brown@example.com', 'Chemistry', '/path/to/charliebrown'); diff --git a/sql/sql.sql b/sql/sql.sql new file mode 100644 index 0000000..2e4d6ea --- /dev/null +++ b/sql/sql.sql @@ -0,0 +1,14 @@ +CREATE TABLE Persons ( + PersonID int primary key auto_increment, + LastName varchar(255), + FirstName varchar(255), + Email varchar(255), + Subject varchar(255), + Path varchar(255) +); + +INSERT INTO Persons (LastName, FirstName, Email, Subject, Path) +VALUES +('Smith', 'John', 'john.smith@example.com', 'Math', '/path/to/johnsmith'), +('Doe', 'Jane', 'jane.doe@example.com', 'Physics', '/path/to/janedoe'), +('Brown', 'Charlie', 'charlie.brown@example.com', 'Chemistry', '/path/to/charliebrown');