Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.57 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4. <!DOCTYPE HTML>
  5. <html class=" js">
  6. <head>
  7. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  8. <title>Twitbay</title>
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <meta charset="utf-8">
  11. <link href="http://twitter.com/phoenix/iefavicon.ico" rel="shortcut icon" type="image/x-icon">
  12. <link rel="stylesheet" href="twitbay_files/phoenix_core_logged_out.css" type="text/css" media="screen">
  13. <style charset="utf-8" class="lazyload">
  14. @import "twitbay_files/phoenix_more.bundle.css";
  15. </style>
  16.  
  17. <!-- Not TODO - make background image random -->
  18. <!-- USE PHP FOR THE RANDOMNESS -->
  19. <!-- Available backgrounds:
  20. background1.jpg
  21. background2.jpg
  22. background3.jpg
  23. background4.jpg
  24. -->
  25.  
  26. <style id="user-style-Hicksdesign-bg-img">
  27. body.user-style-Hicksdesign {
  28. background-image: url(
  29.  
  30. <?php
  31. $bgNum = rand (1 , 4);
  32. echo "twitbay_files/background$bgNum.jpg";
  33. ?>
  34.  
  35. );
  36. }
  37. </style>
  38.  
  39. <!-- End of BG image -->
  40.  
  41. </head>
  42. <body class="logged-out mozilla user-style-Hicksdesign">
  43. <div class="route-profile" id="doc">
  44. <div id="top-stuff">
  45. <div id="top-bar-outer">
  46. <div id="top-bar-bg"></div>
  47. <div id="top-bar">
  48. <div style="left: 0px;" class="top-bar-inside">
  49. <div class="static-links">
  50. <div id="logo">
  51. <a href="http://localhost/">
  52. <img src="twitbay_files/logo.png" alt="nope"/>
  53. </a>
  54. </div>
  55. </div>
  56. <div class="active-links">
  57. <div id="session">
  58.  
  59. <!-- not TODO - if not logged in, display login form -->
  60. <!-- TODO - when the form action is completed - your app should process -->
  61. <!-- the login request, and if the credentials are good - store the login
  62. <!-info in the session -->
  63. <!-- If the user IS logged in then display a welcome message. -->
  64. <?php
  65.  
  66. if(isset($_SESSION["name"])){
  67. echo "Welcome!";
  68. }
  69. else{
  70. ?>
  71. <form action="handler.php" method="post">
  72. Username: <input type="text" name="username" required/>
  73. Password: <input type="text" name="password" required/>
  74. <input type="submit" value="Sign in" />
  75. </form>
  76. <?php
  77. }
  78. ?>
  79.  
  80. <!-- end of login -->
  81.  
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <div id="page-outer">
  89. <div class="profile-container" id="page-container">
  90. <div>
  91. <div style="min-height: 683px;" class="main-content">
  92. <div class="profile-header">
  93. <div class="profile-info clearfix">
  94. <div class="profile-image-container">
  95. <img src="twitbay_files/megaphone.png" alt="Twitbay">
  96. </div>
  97. <div class="profile-details">
  98. <div class="full-name">
  99. <h2>Twitbay Listings</h2>
  100. </div>
  101. <div class="screen-name-and-location">
  102. <span class="screen-name screen-name-Hicksdesign pill">@Twitbay</span>
  103. Cardiff, Wales, UK
  104. </div>
  105. <div class="bio">
  106. Only the finest products, services, bric-a-brac and budget bargains - all served
  107. with a dash of ASP.NET goodness...
  108. </div>
  109. <div class="url">
  110. <a target="_blank" rel="me nofollow" href="http://www.spiderstudios.co.uk/">http://www.spiderstudios.co.uk/</a>
  111. </div>
  112. </div>
  113. </div>
  114. <ul class="stream-tabs">
  115. <li class="stream-tab stream-tab-tweets active">
  116. <a class="tab-text">Posts</a>
  117. </li>
  118. </ul>
  119. </div>
  120. <div class="stream-manager">
  121. <div class="js-stream-manager" id="profile-stream-manager">
  122. <div class="stream-container">
  123. <div class="stream stream-user">
  124. <div id="stream-items-id" class="stream-items">
  125.  
  126.  
  127. <!-- TODO 1. show all postings -->
  128. <!-- TODO 2. show only those posts from user in URL -->
  129.  
  130. <!-- TODO - start of a posting - note that all postings will need to be created from DB -->
  131.  
  132.  
  133.  
  134. <?php
  135. for ($i = 0; $i <10; $i++){
  136. //this is php
  137. ?>
  138.  
  139. here html
  140.  
  141. <?php
  142. }
  143. ?>
  144. <div media="true" class="js-stream-item stream-item">
  145. <div class="stream-item-content tweet js-actionable-tweet stream-tweet">
  146. <div class="tweet-image">
  147. <img src="twitbay_files/userPic.jpg" alt="Post pic" class="user-profile-link" height="48" width="48">
  148. </div>
  149. <div class="tweet-content">
  150. <a class="tweet-screen-name user-profile-link">Tom Monson</a>
  151. <p class="tweet-text js-tweet-text">I have the latest Lady-Gaga album
  152. for sale - hurry now now nownow now, you must buy it no-ow!</p>
  153. <p class="tweet-timestamp">24 minutes ago</p>
  154. </div>
  155. </div>
  156. </div>
  157.  
  158. <!-- end of item -->
  159.  
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="dashboard profile-dashboard">
  167. <div class="component">
  168. <div class="signup-call-out">
  169. <h1>
  170. <span>Twitbay Users</span>
  171. </h1>
  172. <h2>Don't miss products from your favourite users!</h2>
  173.  
  174. <!-- TODO - List all Twitbay users in DB -->
  175. <li>Boris</li>
  176. <li>John</li>
  177.  
  178. <!-- End of user list -->
  179.  
  180.  
  181. <hr />
  182.  
  183. <div class="profile-subpage-call-out">
  184.  
  185. <!-- TODO - If logged in, display text box where user can post -->
  186. <!-- ??? -->
  187. <!-- End of posting form -->
  188.  
  189.  
  190. <!-- TODO - If not logged in, display a sign up form -->
  191. <!-- ??? -->
  192. <!-- End of signup form -->
  193.  
  194. <hr />
  195.  
  196. <!-- TODO - If logged in, display a summary of cart stats, together with
  197. a link to enable folks to checkout -->
  198. <!-- ??? -->
  199. <!-- End of cart details -->
  200.  
  201. </div>
  202. </div>
  203. <hr class="component-spacer">
  204. </div>
  205. <div class="component">
  206. <div class="dashboard-profile-annotations clearfix">
  207. <h2 class="dashboard-profile-title">
  208. <img src="twitbay_files/megaphone.png" alt="Acme Rocket Bikes" class="profile-dashboard" width="24">
  209. Twitbay Stats
  210. </h2>
  211. </div>
  212. <!-- TODO - display site stats pulled from database -->
  213. <ul class="user-stats clearfix">
  214. <li>
  215. <a class="user-stats-count">99<span class="user-stats-stat">Users</span></a>
  216. </li>
  217. <li>
  218. <a class="user-stats-count">9,000<span class="user-stats-stat">Posts</span></a>
  219. </li>
  220. <li>
  221. <a class="user-stats-count">£100,000<span class="user-stats-stat">Sales</span></a>
  222. </li>
  223. </ul>
  224. <!-- end of stats -->
  225.  
  226. <hr class="component-spacer">
  227. </div>
  228. </div>
  229. </div>
  230. <hr class="component-spacer">
  231. </div>
  232. </div>
  233. <div class="component">
  234. <hr class="component-spacer">
  235. </div>
  236. <!--[if lte IE 6]>
  237. <script>using('bundle/ie6').load();</script>
  238. <![endif]-->
  239. </body>
  240. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement