Advertisement
Guest User

Untitled

a guest
Jan 26th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title> CS GROUP SIX </title>
  5. <link rel="stylesheet" type="text/css" href="main.css" />
  6. <style type="text/css">
  7. .menutitle{
  8. cursor:pointer;
  9. margin-bottom: 5px;
  10. background: url('') no-repeat;
  11. color:#000000;
  12. width:650px;
  13. padding: 7px 2px 7px 16px;
  14. text-align:left;
  15. font-weight:bold;
  16. border-style: solid;
  17. border-radius: 15px 50px;
  18. }
  19. .submenu{
  20. margin-bottom: 0.5em;
  21. font-size: 15px;
  22. width:625px;
  23. border-style: solid;
  24. border-radius: 15px 15px 15px 15px;
  25. padding: 7px 2px 7px 16px;
  26. margin-left: 25px;
  27. }
  28. </style>
  29. <script type="text/javascript" src="menu.js">
  30. /***********************************************
  31. * Switch Menu script- by Martial B of http://getElementById.com/
  32. * Modified by Dynamic Drive for format & NS4/IE4 compatibility
  33. * Visit http://www.dynamicdrive.com/ for full source code
  34. ***********************************************/
  35. </script>
  36.  
  37.  
  38.  
  39. </head>
  40. <body>
  41.  
  42. <div id="wrapper">
  43.  
  44.  
  45.  
  46.  
  47. <div id="leftcol">
  48.  
  49. <div class="smid">
  50.  
  51. <div id="masterdiv">
  52. <img src="crap.png" alt="img">
  53. <br /> <br />
  54. <div class="menutitle" onclick="SwitchMenu('task1')">Task 1</div>
  55. <span class="submenu" id="task1">
  56. <?php
  57.  
  58.  
  59. $host = "db.dcs.aber.ac.uk";
  60. $user = "csgpadm_6";
  61. $pass = "vg2VTiba";
  62. $db = "csgp_6_15_16";
  63.  
  64.  
  65.  
  66. $mysqli = mysqli_connect( $host, $user, $pass, $db);
  67. if (mysqli_connect_errno($mysqli)){
  68. echo "Failed to connect to MySQL: " . mysqli_connect_error();
  69. } else {
  70. echo "connected to sql server";
  71. }
  72.  
  73.  
  74. $sql = "SELECT TaskID FROM Tasks";
  75. $result = mysqli_query($mysqli, $sql);
  76.  
  77. if (mysqli_num_rows($result) > 0) {
  78.  
  79. while($row = mysqli_fetch_assoc($result)) {
  80. echo "TaskID: " . $row["TaskID"];
  81. }
  82. } else {
  83.  
  84. echo "0 results";
  85. }
  86.  
  87. ?>
  88. <form action="demo_form.asp" method="get">
  89. <input type="checkbox" name="Subtask1" value="Subtask1" checked><strong><em><s>Sub-Task 1</s></em></strong></form>
  90. <em>a really boring sub task like making this sub task section lol tick box but i already did it so strikey</em>
  91.  
  92. <form action="demo_form.asp" method="get">
  93. <input type="checkbox" name="Subtask2" value="Subtask2"><strong>Sub-Task 2</strong></form>
  94. another boring sub task like adding progression bars
  95.  
  96. </span>
  97.  
  98. <div class="menutitle" onclick="SwitchMenu('task2')">Task 2</div>
  99. <span class="submenu" id="task2">
  100. <strong>Task:</strong> other boring task<br />
  101. <strong>Date created:</strong> 22/09/2016 <br />
  102. <strong>Due Date:</strong> 17/05/2017<br />
  103. <strong>Team member(s) assigned:</strong> lae19<br />
  104.  
  105. Full description of task: task is boring<br />
  106. </span>
  107.  
  108.  
  109. </div>
  110.  
  111.  
  112. </div>
  113.  
  114. </div>
  115. </div>
  116.  
  117.  
  118. </body>
  119. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement