diff --git a/home.php b/home.php index e7180b6..dba0b0c 100644 --- a/home.php +++ b/home.php @@ -55,6 +55,17 @@ +
+

Bulletin Board

+
+ +
+ + + +
+
+ 0) { ?> -
-

Bulletin Board

-
- + fetch(PDO::FETCH_OBJ)) { @@ -85,7 +93,8 @@ - + diff --git a/search.php b/search.php new file mode 100644 index 0000000..7f445d0 --- /dev/null +++ b/search.php @@ -0,0 +1,95 @@ + + + + + +Welcome - <?php echo $userRow['email']; ?> + + + + +
+ Search Results of '".$_POST['message_target']."'"; + ?> +
+ +query($sql_search); + if(count($result) > 0) + { + ?> +
Message By TimeActionsDelete
quote($_POST['email']); $upass = md5($_POST['pass']); $sql = "SELECT * FROM users WHERE email=$email"; $res=$conn->query($sql); $row=$res->fetch(PDO::FETCH_BOTH); - var_dump($row); - var_dump($upass); if($row['password']==$upass) { $_SESSION['user'] = $row['user_id']; + $_SESSION['username'] = $row['username']; ?>
Sign In Here
+ + + + + fetch(PDO::FETCH_OBJ)) + { + echo ""; + echo ""; + echo ""; + if($_SESSION['user']==$row->uid) + { + ?> + + + "; + } + } + echo "
MessageByTimeDelete
".$row -> msg."".$row -> username."".$row -> msg_time." +
+
"; +} +else +{ + echo "No message here ! be the first !"; +} + + } + catch(Exception $e) + { + die(var_dump($e)); + } +} +?> +Go Back \ No newline at end of file diff --git a/style.css b/style.css index 9ab8b58..3c382bf 100644 --- a/style.css +++ b/style.css @@ -12,9 +12,7 @@ } table#login { - border:solid #dcdcdc 5px; padding:25px; - box-shadow: 0px 0px 1px rgba(0,0,0,0.2); } table tr,td { @@ -25,8 +23,8 @@ table tr td input { width:97%; height:45px; - border:solid #e1e1e1 1px; - border-radius:3px; + border:solid #3e94ec 1px; + border-radius:0px; padding-left:10px; font-family:Verdana, Geneva, sans-serif; font-size:16px; @@ -50,6 +48,23 @@ table tr td button#login font-weight:bolder; text-transform:uppercase; } + +button#signup +{ + width:100%; + height:45px; + border:0px; + background:#3e94ec; + 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; @@ -119,8 +134,44 @@ textarea#msg{ background-repeat: no-repeat; resize : none; } -input#msg_submit{ - margin-left:40px; +textarea#msg_search_box{ + margin-left:40px; + width: 40%; + height: 20px; + border: 3px solid #cccccc; + padding: 5px; + font-family: Tahoma, sans-serif; + background-position: bottom right; + background-repeat: no-repeat; + resize : none; +} +button#msg_submit{ +border: 2px solid #fafafa; +width: 20%; + margin-left:40px; + height:45px; + background:#3e94ec; + background:-moz-linear-gradient(top, #595959 , #515151); + border-radius:3px; + color:#f9f9f9; + font-family:Verdana, Geneva, sans-serif; + font-size:18px; + font-weight:bolder; + text-transform:uppercase; +} +button#msg_search{ + border: 2px solid #fafafa; + position: relative; + top:-12px; + width:20%; + height:35px; + background:#3e94ec; + background:-moz-linear-gradient(top, #595959 , #515151); + color:#f9f9f9; + font-family:Verdana, Geneva, sans-serif; + font-size:18px; + font-weight:bolder; + text-transform:uppercase; } /* css for home page */ @@ -291,4 +342,15 @@ img.invert:hover { button#del_btn { background-color: transparent; +} +a#back_to_home +{ + margin-left: 40px; + color: #fafafa; + font-size: 30px; + font-weight: 400; + font-style:normal; + font-family: "Roboto", helvetica, arial, sans-serif; + text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.1); + text-transform:uppercase; } \ No newline at end of file