From 3b01253f7c3709f7428d1f8920fa9b07dba77306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=B5=E9=96=8E=E5=82=91?= Date: Fri, 27 May 2016 14:00:04 +0800 Subject: [PATCH] initial commit --- dbconnect.php | 10 +++++ home.php | 31 ++++++++++++++ index.php | 58 ++++++++++++++++++++++++++ logout.php | 19 +++++++++ register.php | 62 ++++++++++++++++++++++++++++ style.css | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 290 insertions(+) create mode 100644 dbconnect.php create mode 100644 home.php create mode 100644 index.php create mode 100644 logout.php create mode 100644 register.php create mode 100644 style.css diff --git a/dbconnect.php b/dbconnect.php new file mode 100644 index 0000000..6496be6 --- /dev/null +++ b/dbconnect.php @@ -0,0 +1,10 @@ + '.mysql_error()); +} +if(!mysql_select_db("dbtest")) +{ + die('oops database selection problem ! --> '.mysql_error()); +} +?> \ No newline at end of file diff --git a/home.php b/home.php new file mode 100644 index 0000000..6ae8af9 --- /dev/null +++ b/home.php @@ -0,0 +1,31 @@ + + + + + +Welcome - <?php echo $userRow['email']; ?> + + + + + + \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..31cdc4e --- /dev/null +++ b/index.php @@ -0,0 +1,58 @@ + + + + + + + +cleartuts - Login & Registration System + + + +
+
+
+ + + + + + + + + + + + + +
Sign Up Here
+
+
+
+ + \ No newline at end of file diff --git a/logout.php b/logout.php new file mode 100644 index 0000000..0c78e8b --- /dev/null +++ b/logout.php @@ -0,0 +1,19 @@ + \ No newline at end of file diff --git a/register.php b/register.php new file mode 100644 index 0000000..8a897ad --- /dev/null +++ b/register.php @@ -0,0 +1,62 @@ + + + + + + + + + +Login & Registration System + + + + +
+
+
+ + + + + + + + + + + + + + + + +
Sign In Here
+
+
+
+ + \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..a4bef12 --- /dev/null +++ b/style.css @@ -0,0 +1,110 @@ +@charset "utf-8"; +/* CSS Document */ + +* +{ + margin:0; + padding:0; +} +#login-form +{ + margin-top:70px; +} +table +{ + border:solid #dcdcdc 1px; + padding:25px; + box-shadow: 0px 0px 1px rgba(0,0,0,0.2); +} +table tr,td +{ + padding:15px; + //border:solid #e1e1e1 1px; +} +table tr td input +{ + width:97%; + height:45px; + border:solid #e1e1e1 1px; + border-radius:3px; + padding-left:10px; + font-family:Verdana, Geneva, sans-serif; + font-size:16px; + background:#f9f9f9; + transition-duration:0.5s; + box-shadow: inset 0px 0px 1px rgba(0,0,0,0.4); +} + +table tr td button +{ + width:100%; + height:45px; + border:0px; + background:#db8d00; + background:-moz-linear-gradient(top, #595959 , #515151); + border-radius:3px; + box-shadow: 1px 1px 1px rgba(1,0,0,0.2); + color:#f9f9f9; + font-family:Verdana, Geneva, sans-serif; + font-size:18px; + font-weight:bolder; + text-transform:uppercase; +} +table tr td button:active +{ + position:relative; + top:1px; +} +table tr td a +{ + text-decoration:none; + color:#00a2d1; + font-family:Verdana, Geneva, sans-serif; + font-size:18px; +} + +/* css for home page */ + +* +{ + margin:0; + padding:0; +} +#header +{ + width:100%; + height:60px; + background:rgba(00,11,22,33); + color:#9fa8b0; + font-family:Verdana, Geneva, sans-serif; +} +#header #left +{ + float:left; + position:relative; +} +#header #left label +{ + position:relative; + top:5px; + left:100px; + font-size:35px; +} +#header #right +{ + float:right; + position:relative; +} +#header #right #content +{ + position:relative; + top:20px; + right:100px; + color:#fff; +} +#header #right #content a +{ + color:#00a2d1; +} + +/* css for home page */ \ No newline at end of file