Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

added css styles #2

Merged
merged 1 commit into from

2 participants

@anvk

No description provided.

@cindyli cindyli merged commit 1aaff5d into cindyli:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 21, 2013
  1. @anvk

    added css styles

    anvk authored
This page is out of date. Refresh to see the latest.
View
27 add_places.php
@@ -27,22 +27,31 @@
$result = mysql_query($sql);
?>
+<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
+<link rel="stylesheet" type="text/css" href="css/styles.css">
<body>
<h1>Welcome <?php echo $username; ?></h1>
-
- <form action="" method="post">
- <label>Add places you wish to travel to:</label>
- <input type="text" name="place" />
- <input type="submit" value="Submit "/><br />
- </form>
+ <div class="navbar">
+ <div class="navbar-inner">
+ <label class="brand">Add places where you want to eat on Thursday:</label>
+ <ul class="nav">
+ <li>
+ <form class="navbar-form pull-left" action="" method="post">
+ <input type="text" name="place" />
+ <button type="submit" class="btn" value="submit">Submit</button>
+ </form>
+ </li>
+ </ul>
+ </div>
+ </div>
- <table>
<?php
while ($row = mysql_fetch_assoc($result)) {
+ $myRow = ($row["username"] == $username) ? "alert-success" : "";
// Notice string concatenation using "."
- echo "<span style=\"color: blue\">". $row["place_name"] ."</span> was added by " . $row["username"] . " at " . $row["created_date"] . "<br />";
+ echo "<div class='well " . $myRow . "'><h3>". $row["place_name"] ."</h3> was suggested by " . $row["username"] . " <div class='pull-right'> at " . $row["created_date"] . "</div></div>";
}
?>
- </table>
+
</body>
View
9 css/bootstrap.min.css
9 additions, 0 deletions not shown
View
9 css/styles.css
@@ -0,0 +1,9 @@
+body {
+ padding-top: 1em;
+ width: 90%;
+ margin: auto auto;
+}
+
+input {
+ min-height: 2em;
+}
View
21 login.php
@@ -27,9 +27,18 @@
?>
-<form action="" method="post">
- <label>UserName :</label>
- <input type="text" name="username" /><br />
-
- <input type="submit" value=" Submit "/><br />
-</form>
+<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
+<link rel="stylesheet" type="text/css" href="css/styles.css">
+<div class="navbar">
+ <div class="navbar-inner">
+ <label class="brand">UserName :</label>
+ <ul class="nav">
+ <li>
+ <form class="navbar-form pull-left" action="" method="post">
+ <input type="text" name="username" />
+ <button type="submit" class="btn" value="submit">Submit</button>
+ </form>
+ </li>
+ </ul>
+ </div>
+</div>
Something went wrong with that request. Please try again.