diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-09 16:08:31 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-09 16:08:31 -0400 |
| commit | 4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70 (patch) | |
| tree | 66da68060b7a9b1d46880d965be7f0b3146ae921 | |
| parent | ea0c4c66550c2a649374b23989d05b11c550ca4f (diff) | |
| download | webpage-4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70.tar.gz webpage-4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70.tar.bz2 webpage-4ba6f3e5ceed1bd7ff454fce96348e3b5c052b70.zip | |
Starting working on showing bugs
| -rw-r--r-- | ws2a/bugs.html | 2 | ||||
| -rw-r--r-- | ws2a/bugs/1 | 6 | ||||
| -rw-r--r-- | ws2a/bugview.html | 70 | ||||
| -rw-r--r-- | ws2a/bugview.js | 11 | ||||
| -rw-r--r-- | ws2a/showbug.c | 13 |
5 files changed, 101 insertions, 1 deletions
diff --git a/ws2a/bugs.html b/ws2a/bugs.html index 67ec743..e833a25 100644 --- a/ws2a/bugs.html +++ b/ws2a/bugs.html @@ -46,8 +46,8 @@ <tr> <th>Submitter</th> <th>Date Submitted</th> - <th>Status</th> <th>Description</th> + <th>Status</th> </tr> </thead> <tbody id="bugstable"> diff --git a/ws2a/bugs/1 b/ws2a/bugs/1 index 81991a4..8c78654 100644 --- a/ws2a/bugs/1 +++ b/ws2a/bugs/1 @@ -3,3 +3,9 @@ Date_submitted Short Description Status<Unassigned, Assigned, Closed> Long description + +User person +Comment + +Another User +Their comment diff --git a/ws2a/bugview.html b/ws2a/bugview.html new file mode 100644 index 0000000..8e64517 --- /dev/null +++ b/ws2a/bugview.html @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> + <meta name="description" content=""> + <meta name="author" content=""> + + <title>WS2A</title> + + <!-- Bootstrap core CSS --> + <link href="../css/bootstrap.min.css" rel="stylesheet"> + + <!-- Custom styles for this template --> + <link href="jumbotron-narrow.css" rel="stylesheet"> + + <script type="text/javascript" src="bugview.js"></script> + + <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> + <!--[if lt IE 9]> + <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> + <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> + <![endif]--> + </head> + + <body> + + <div class="container"> + <div class="header clearfix"> + <nav> + <ul class="nav nav-pills pull-right"> + <li role="presentation"><a href="./index.html">Home</a></li> + <li role="presentation" class="active"><a href="./bugs.html">Bugs</a></li> + <li role="presentation"><a href="./help.html">Help</a></li> + </ul> + </nav> + <h3 class="text-muted">Winter Survival 2 - Anarchy</h3> + </div> + + <h2 class="sub-header" id="bugshort">Bug short description</h2> + + + <div class="panel panel-primary"> + <div class="panel-heading"> + <div class="row"> + <div class="col-sm-4"> + Submitter:<id id="submitter">Loading...</id> + </div> + <div class="col-sm-4"> + Date submited:<id id="date">Loading...</id></div> + <div class="col-sm-4">Status:<id id="status">Loading...</id></div> + </div> + </div> + + <div class="panel-body">Long description</div> + <div id="Comments"> + + </div> + </div> + + <footer class="footer"> + <p>Contact the admin at <a href="mailto:apickx@cogarr.org">Apickx@cogarr.org</a></p> + </footer> + + </div> <!-- /container --> + + </body> +</html> diff --git a/ws2a/bugview.js b/ws2a/bugview.js new file mode 100644 index 0000000..4c8b007 --- /dev/null +++ b/ws2a/bugview.js @@ -0,0 +1,11 @@ +function loadLastBugs() { + var xhttp = new XMLHttpRequest(); + xhttp.onreadystatechange = function() { + if (xhttp.readyState == 4 && xhttp.status == 200) { + document.getElementById("bugstable").innerHTML = xhttp.responseText; + } + }; + xhttp.open("GET", "/cgi-bin/bugsdata.cgi", true); + xhttp.send(); +} +window.onload = loadLastBugs diff --git a/ws2a/showbug.c b/ws2a/showbug.c new file mode 100644 index 0000000..b8c46e2 --- /dev/null +++ b/ws2a/showbug.c @@ -0,0 +1,13 @@ +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <stdint.h> + +int main(){ + char* data = getenv("QUERY_STRING"); + //char data[20] = "?id=1"; + char* hardip = getenv("REMOTE_ADDR"); + printf("%s%c%c\n", + "Content-Type:text/html;charset=iso-8859-1",13,10); + printf("Data:%s",data); +} |
