Advertisement
richskrenta

bootstrap_marginleft

Oct 17th, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 6.06 KB | None | 0 0
  1. <?php
  2.    define ('BASEPATH', 1);
  3.  
  4.    include 'source/db.connect.php';
  5.  
  6.    $pageTitle = 'Index Page';
  7. ?>
  8.  
  9. <!DOCTYPE html>
  10.     <html lang="en">
  11.         <head>
  12.             <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css">
  13.             <link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap-responsive.css">
  14.             <link rel="stylesheet" type="text/css" href="css/user.css">
  15.             <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
  16.  
  17.             <title>
  18.                 <?php
  19.                    if (empty($pageTitle) || !isset($pageTitle)) {
  20.                        echo "Page title not define!";
  21.                    } else {
  22.                        echo $pageTitle;
  23.                    }
  24.                ?> - Rich Store.
  25.             </title>
  26.  
  27.         </head>
  28.  
  29.         <body>
  30.             <div class="container-fluid">
  31.                 <div class="row-fluid">
  32.                     <div class="span12" id="main-container">
  33.                         <div class="row-fluid">
  34.                             <div class="span12" id="header-box">
  35.  
  36.                                 <div class="row-fluid">
  37.                                     <div class="span4" id="site-logo">
  38.                                         <a href="<?php $_SERVER['BASE_URL']; ?>" title="Homepage">
  39.                                             <img src="images/storeLogo.png" alt="Site Logo" />
  40.                                         </a>
  41.                                     </div>
  42.  
  43.                                     <div class="span4 offset4">
  44.                                         <ul id="user-menu">
  45.                                             <li><a href="user/index.php?do=login" title="Login to Your Account">Login</a></li>
  46.                                             <li><a href="user/index.php?do=register" title="Register new account">Register</a></li>
  47.                                             <li><a href="user/index.php?do=reset" title="Reset your account">Reset</a></li>
  48.                                         </ul>
  49.                                     </div>
  50.                                 </div>
  51.                             </div>
  52.                         </div>
  53.  
  54.                         <div class="row-fluid">
  55.                             <div class="span12" id="navigation-bar">
  56.                                 <div class="navbar">
  57.                                     <div class="navbar-inner">
  58.                                         <ul class="nav">
  59.                                             <li class="active"><a href="index.php" title="Homepage">Home</a></li>
  60.                                             <li><a href="blog.php" title="Blog">Blog</a></li>
  61.                                             <li><a href="sitemap.php" title="Site Map">Sitemap</a></li>
  62.                                             <li><a href="contact.php" title="Contact Us">Contact Us</a></li>
  63.                                         </ul>
  64.  
  65.                                         <form class="navbar-search pull-right">
  66.                                             <input type="text" class="search-query" placeholder="Search our products here ...">
  67.                                         </form>
  68.                                     </div>
  69.                                 </div>
  70.                             </div>
  71.                         </div>
  72.  
  73.                         <div class="row-fluid">
  74.                             <div class="span12" id="notif-bar">
  75.                                 <p>here is system notification would be ...</p>
  76.                             </div>
  77.                         </div>
  78.  
  79.                         <div class="row-fluid">
  80.                             <div class="span2" id="left-sidebar">
  81.                                 <p>Manufactures</p>
  82.                                 <ul>
  83.                                     <?php
  84.                                        $result = $source->query("SELECT * FROM Categories");
  85.  
  86.                                         while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
  87.                                             echo "<li><a href=\"category.php?id=".$row['categoryId']."\" title=\"".$row['categoryName']."\">".$row['categoryName']."</a></li>";
  88.                                         }
  89.                                     ?>
  90.                                 </ul>
  91.                             </div>
  92.  
  93.                             <div class="span8" id="main-box">
  94.                                 <p>Product Gallery</p>
  95.                                     <?php
  96.                                        $result = $source->query("SELECT * FROM Products INNER JOIN Categories ON Products.productCategory = Categories.categoryId");
  97.  
  98.                                         while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
  99.                                             echo "<div class=\"span3\" id=\"products\">";
  100.                                             echo "<a href=\"product.php?id=".$row['productId']."\" title=\"".$row['productTitle']."\"><img src=\"".$row['productImage']."\" alt=\"".$row['productTitle']."\"></a>";
  101.                                             echo "<p>Product Name: <a href=\"product.php?id=".$row['productId']."\" title=\"".$row['productTitle']."\">". $row['productTitle']."</a></p>";
  102.                                             echo "<p>Product Code: ". $row['productCode'] ."</p>";
  103.                                             echo "<p>Product Category: ". $row['categoryName'] ."</p>";
  104.                                             echo "<p>Product Price: ". $row['productPrice'] ."</p>";
  105.                                             echo "</div>";
  106.                                         }
  107.                                     ?>
  108.                             </div>
  109.  
  110.                             <div class="span2" id="right-sidebar">
  111.                                 <p>Advertisement Here</p>
  112.                             </div>
  113.                         </div>
  114.                     </div>
  115.                 </div>
  116.             </div>
  117.         </body>
  118.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement