source: schedule/authenticate/body.php@ 15718

Last change on this file since 15718 was 15685, checked in by tanio, 12 years ago
File size: 7.0 KB
Line 
1 <?php
2
3ini_set('error_reporting', E_ALL | E_STRICT);
4ini_set('display_errors', 'Off');
5include 'function/sourcelist.php';
6include 'function/SplitDelete.php';
7include 'function/function.php';
8 ?>
9
10
11
12<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
13<html xmlns="http://www.w3.org/1999/xhtml">
14 <head>
15 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
16 <title>FACT project</title>
17 <meta name="keywords" content="" />
18 <meta name="description" content="" />
19 <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen" />
20 </head>
21 <body style="background-color: #000;">
22 <div id="bg2"></div>
23 <div id="wrapper1">
24 <div id="header2">
25 <ul>
26 <li><a href="http://www.fact-project.org">FACT <li2>OBSERVATION SCHEDULING</li2></a></li>
27 </ul>
28 <div class="clear"></div>
29 </div>
30 <div id="content_bg_top"></div>
31 <div id="content_box">
32
33 <br />
34 <div id="column_box">
35 <div id="column1">
36
37 <div id="calendar" align="center">
38
39 <?php require_once 'Module/calendar.php'; ?>
40 </div>
41 <br/>
42 <div width="100px">
43 <label style=" color:#37DFB1; font-size:14px;"> Search : </label><input type="search" id="textbox" size="26" style="font-weight:normal" />
44
45 <script type="text/javascript">
46 jQuery.fn.filterByText = function(textbox, selectSingleMatch) {
47 return this.each(function() {
48 var select = this;
49 var options = [];
50
51 $(select).find('option').each(function() {
52 options.push({value: $(this).val(), text: $(this).text()});
53 });
54 $(select).data('options', options);
55 $(textbox).bind('change keyup', function() {
56 var options = $(select).empty().scrollTop(0).data('options');
57 var search = $.trim($(this).val());
58 var regex = new RegExp(search,'gi');
59
60 $.each(options, function(i) {
61 var option = options[i];
62 if(option.text.match(regex) !== null) {
63 $(select).append(
64 $('<option>').text(option.text).val(option.value)
65 );
66 }
67
68
69 });
70 if (selectSingleMatch === true &&
71 $(select).children().length === 1) {
72 $(select).children().get(0).selected = true;
73 }
74 });
75 });
76 };
77
78 $(function() {
79
80 $('#source').filterByText($('#textbox'), true);
81
82
83 });
84 </script>
85 <script>
86 $(document).ready(function() {
87 $("#source").blur(function() {
88 if ($(this).val() != ''){
89 $("#textbox").attr("disabled", "disabled");
90 }else{
91 $("#textbox").removeAttr("disabled");
92 }
93 });
94
95 $("#remove").click(function(){
96
97 $("#textbox").removeAttr("disabled");
98
99
100 });
101
102
103 });
104 </script>
105
106
107 <br />
108 </div>
109
110
111 <table width="50%">
112 <tr>
113 <td style=" color:#37DFB1; font-size:14px;" align="center">
114 Source List
115 <br/>
116 <select name="source" id="sourcelist" multiple="multiple" style="width:100%; min-width:110px; heigth:150%;" size="10">
117 </select>
118
119 </td>
120 <td>
121 <br/>
122 <input type="button" id="add" value=">>">
123 <br/>
124 <input type="button" id="remove" value="<<">
125 </td>
126 <td style=" color:#37DFB1; font-size:14px;" align="center">
127 display<br/>
128 <select id="sourcedisplay" name="sourcedisplay" multiple="multiple" style="width:100%; min-width:110px; heigth:150%;" size="10"></select>
129 </td>
130 </tr>
131 </table>
132 </div>
133 <div id="column3">
134 <div id="Graph" style="height: 300px"></div>
135
136 </div>
137 <div class="clear">
138 </div>
139 </div>
140 <div style="width:100%;" align="right">
141 <input type="button" id="save" value="SAVE" class="button" title="Click to save">&nbsp;&nbsp;&nbsp;<input type="button" id="LoadPrev" value="Load Previous Night" class="button" title="Click to load previous night">
142 </div>
143 <div style="border:2px solid white; width:100%;">
144 <table width="100%" id="TableHolder" >
145 <tr>
146 <td width="184" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Time</td>
147 <td width="145" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Source list</td>
148 <td width="170" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Measurement</td>
149 <td width="316" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Value</td>
150 <td width="141" style="border:1px solid white; color:#37DFB1; font-size:14px;" align="center" >Transaction</td>
151 </tr>
152 <tr>
153 <td height="45" align="center" style="border:0px solid white; color:#37DFB1; font-size:10px;" >
154 <p><strong>Start Time</strong> </p>
155 <p>
156 <input type="time" value="19:00" >
157 </p></td>
158
159 <td style="border:0px solid white; color:#37DFB1; font-size:14px;" colspan="4">&nbsp;</td>
160 </tr>
161
162 </table>
163 <table width="100%" id="TableH">
164 </table>
165 <table width="100%" id="TableH1">
166 </table>
167
168 <table width="100%">
169 <tr>
170
171 <td width="19.4%" align="center" style="border:0px solid white; color:#37DFB1; font-size:10.5px;"><p><strong>End Time</strong>
172 </p>
173 <p>
174 <input type="time" value="07:00">
175 </p></td>
176 <td style="border:0px solid white; color:#37DFB1; font-size:14px;" width="80%" align="center">&nbsp;</td>
177
178 </tr>
179 </table>
180
181 </div>
182 <div style="border:2px solid white; width:100%;" align="center" id="SchedulingAppend">
183 </div>
184 <div style="border:2px solid white; width:100%;" align="center">
185 </div>
186
187 <div id="footer_bot">
188 <p>&copy; 2012 FACT Project Design by i-SoftTech</p>
189 <p>Western Mindanao State University (<strong><a href="http://www.wmsu.edu.ph">WMSU</a>,Philippines</strong>)</p>
190 </div>
191 </div>
192 <div id="data"></div>
193 <div id="day"></div>
194
195
196 </div>
197
198 </body>
199</html>
Note: See TracBrowser for help on using the repository browser.