Merge pull request #55 from jtanx/master
[matches/MCTX3420.git] / testing / MCTXWeb / public_html / control.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3   <head>
4     <title>MCTX3420 Web Interface</title>
5     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6     <!--[if lte IE 8]>
7       <script language="javascript" type="text/javascript" src="static/excanvas.min.js"></script>
8     <![endif]-->
9     <script type="text/javascript" src="static/jquery-1.10.1.min.js"></script>
10     <script type="text/javascript" src="static/jquery.flot.min.js"></script>
11     <script type="text/javascript" src="static/mctx.gui.js"></script>
12     
13     <link rel="stylesheet" type="text/css" href="static/style.css">
14     <link rel="stylesheet" type="text/css" href="static/nav-menu.css">
15     <script type="text/javascript">
16       runBeforeLoad().done(function () {
17         $(document).ready(function () {
18          //Show the content!
19          $("#content").css("display", "block");
20          //Set the welcome bar
21          var name = " " + (mctx.friendlyName ? mctx.friendlyName : "");
22          $("#welcome-container").text("Welcome"+ name + "!");
23          $("#logout-container").css("display", "block");
24          //$("#menu-container").populateNavbar();
25
26          $("#logout").click(function () {
27            $("#logout").logout();
28          });
29
30          $("#main_controls").submit(function () {
31            //Validate!
32            return false;
33          });
34
35          $("#errorlog").setErrorLog();
36        });       
37       })
38
39     </script>
40   </head>
41   
42   <body>
43     <div id="header">
44       <div id="leftnav">
45         <a href="http://www.uwa.edu.au/" target="_blank">
46           <img alt = "The University of Western Australia"
47           src="static/uwacrest-text.png">
48         </a>
49         <span id="title">Exploding Cans</span>
50       </div>
51       <div id="rightnav">
52         <span id="welcome-container">
53         </span>
54         <span id="date">
55           <script type="text/javascript">getDate();</script>
56         </span>
57         <div id="logout-container">
58           <form action="#">
59             <div>
60               <input type="button" id="logout" value="Logout">
61             </div>
62           </form>
63         </div>
64       </div>
65       <div class="clear"></div>
66     </div>
67     <!-- End header -->
68     
69     <noscript>
70       <div class="widget centre">
71         <div class="title">JavaScript required</div>
72         This website requires JavaScript to function correctly.
73         Please enable JavaScript to use this site.
74       </div>
75     </noscript>
76     
77     <div id="content">
78       <div id="sidebar">
79         <div class="widget">
80           <div class="title">Navigation menu</div>
81                   
82         </div>
83         <div class="widget">
84           <div class="title">Help</div>
85           
86         </div>
87       </div>
88       <!-- End sidebar -->
89
90       <div id="main">
91         <div class="widget">
92           <div class="title">Controls</div>
93           <b>Main controls</b>
94           <form id="main_controls" action="">
95             <table>
96               <tr>
97                 <td>Experiment name</td>
98                 <td><input name="experiment_name" type="text"></td>
99               </tr>
100               <tr>
101                 <td>Experiment mode</td>
102                 <td>
103                   <input name="experiment_type" value="strain" type="radio"> Strain it
104                   <input name="experiment_type" value="explode" type="radio"> Explode it
105                 </td>
106               </tr>
107               <tr>
108                 <td>
109                 </td>
110                 <td align="right">
111                   <input type="submit" value="Start">
112                   <input type="submit" value="Pause">
113                   <input type="submit" value="Stop">
114                 </td>
115               </tr>
116             </table>
117           </form>
118           <b>Error and warning messages</b><br>
119           <textarea id="errorlog" wrap="off" rows="4" cols="30" readonly></textarea>
120         </div>
121       </div>
122       <!-- End main content -->
123       
124     </div>
125   </body>
126 </html>

UCC git Repository :: git.ucc.asn.au